:root {
    --navy: #06142d;
    --navy-2: #0b1f46;
    --card: rgba(12, 31, 69, 0.82);
    --border: rgba(125, 211, 252, 0.22);
    --cyan: #24d7ff;
    --gold: #facc15;
    --orange: #fb923c;
    --text: #eff8ff;
    --muted: #b6c9e3;
    --dark-text: #071634;
    --green: #34d399;
    --primary: #005f8f;
    --primary-dark: #002543;
    --secondary: #00b4d8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #071021;
    color: var(--text);
    line-height: 1.75;
}
a { color: inherit; }
.x10-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(36, 215, 255, 0.22), transparent 28rem),
        radial-gradient(circle at 100% 12%, rgba(250, 204, 21, 0.13), transparent 22rem),
        linear-gradient(180deg, #071634 0%, #071021 70%, #030814 100%);
}
.x10-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0;
    backdrop-filter: blur(12px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    color: #fff;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--cyan), var(--gold));
}
.topbar-links {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 800;
}
.topbar-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.88);
}
.x10-hero {
    padding: 112px 0 34px;
}
.hero-grid, .section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.78fr);
    align-items: center;
    gap: 36px;
    padding: 42px 0 22px;
}
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid rgba(250,204,21,0.45);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(250,204,21,0.08);
    font-weight: 900;
}
.breadcrumb {
    margin-bottom: 14px;
    color: rgba(255,255,255,0.76);
    font-size: 0.92rem;
}
.breadcrumb a {
    color: rgba(255,255,255,0.96);
    text-decoration: none;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.hero-copy p,
.section-heading p {
    color: var(--muted);
    font-size: 1.08rem;
}
.hero-actions, .prompt-head, .prompt-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.btn, .copy-btn, .tab {
    min-height: 44px;
    border: 1px solid rgba(125,211,252,0.35);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.manual-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 8px;
    padding: 8px 14px;
    min-height: 36px;
    border: 1px solid rgba(125, 211, 252, 0.38);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    vertical-align: middle;
}
.manual-pdf-btn:hover {
    border-color: rgba(33, 212, 253, 0.72);
    background: rgba(33, 212, 253, 0.12);
}
.deploy-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.deploy-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}
.deploy-action--host { background: linear-gradient(135deg, #22c55e, #16a34a); }
.deploy-action--line { background: linear-gradient(135deg, #06c755, #00a844); }
.deploy-action--dev { background: linear-gradient(135deg, #2563eb, #0891b2); }
.btn-primary, .tab.is-active {
    color: var(--dark-text);
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold), #f97316);
}
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}
.hero-metrics article,
.outcome-grid article,
.business-grid article,
.package-card,
.spec-grid article,
.builder-form,
.builder-preview,
.prompt-panel,
.code-card,
.timeline article,
.admin-grid article,
.feature-box,
.submission-grid article {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}
.hero-metrics article {
    padding: 16px;
}
.hero-metrics strong {
    display: block;
    color: var(--gold);
    font-size: 1.7rem;
    line-height: 1;
}
.hero-metrics span { color: var(--muted); }
.hero-card { min-width: 0; }
.browser-card {
    min-height: 430px;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05));
    box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}
.browser-dots { display: flex; gap: 8px; margin-bottom: 18px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.38); }
.promo-banner {
    min-height: 168px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: var(--dark-text);
    background: radial-gradient(circle at 20% 0%, #fff 0%, #fde68a 35%, #fb923c 100%);
    font-size: 1.6rem;
    font-weight: 1000;
    text-align: center;
}
.mini-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 18px 0;
}
.mini-products span,
.admin-strip {
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    font-weight: 900;
    background: rgba(255,255,255,0.1);
}
.admin-strip { color: var(--cyan); }
.anchor-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px max(7.5vw, calc((100vw - 1400px) / 2));
    background: rgba(3,8,20,0.88);
    border-block: 1px solid rgba(125,211,252,0.12);
    backdrop-filter: blur(16px);
}
@media (min-width: 1648px) {
    .anchor-nav {
        padding-inline: calc((100vw - 1400px) / 2);
    }
}
.anchor-nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.92rem;
}
.section {
    scroll-margin-top: 76px;
    padding: 58px 0;
}
.section-heading { max-width: 860px; margin-bottom: 22px; }
.section-heading span {
    display: block;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 1000;
}
.heading-with-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.heading-with-action h2 {
    margin-right: auto;
}
.heading-download-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.92rem;
}
h2 { margin: 8px 0 12px; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.25; }
.outcome-grid,
.business-grid,
.package-grid,
.spec-grid,
.admin-grid,
.submission-grid {
    display: grid;
    gap: 14px;
}
.outcome-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.business-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
.package-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.spec-grid, .admin-grid, .submission-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.outcome-grid article,
.business-grid article,
.package-card,
.spec-grid article,
.admin-grid article,
.submission-grid article { padding: 20px; }
.outcome-grid strong,
.submission-grid strong { display:block; color:#fff; font-size:1.05rem; }
.outcome-grid p,
.business-grid p,
.spec-grid li,
.admin-grid p,
.submission-grid span,
.feature-box li { color: var(--muted); }
.emoji { font-size: 2.2rem; }
.business-grid h3, .spec-grid h3, .admin-grid h3 { color: #fff; }
.package-card {
    position: relative;
    overflow: hidden;
}
.package-card__bar {
    height: 8px;
    margin: -20px -20px 18px;
    background: linear-gradient(90deg, var(--pkg-primary), var(--pkg-accent));
}
.package-card h3 {
    margin-bottom: 4px;
    color: #fff;
}
.package-card__type {
    margin-bottom: 8px;
    color: var(--gold);
    font-weight: 900;
}
.package-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.sql-details {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}
.sql-details summary {
    cursor: pointer;
    color: #fff;
    font-weight: 900;
}
.sql-details textarea {
    width: 100%;
    min-height: 320px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid rgba(125,211,252,0.32);
    border-radius: 8px;
    color: #dff7ff;
    background: rgba(3, 8, 20, 0.72);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    resize: vertical;
}
.package-note { margin-top: 22px; }
.favicon-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.favicon-card h3 {
    margin-bottom: 8px;
    color: #fff;
}
.favicon-card p {
    color: var(--muted);
}
.mini-copy-textarea {
    width: 100%;
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(125,211,252,0.32);
    border-radius: 8px;
    color: #dff7ff;
    background: rgba(3, 8, 20, 0.72);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    resize: vertical;
}
ul, ol { padding-left: 20px; margin-bottom: 0; }
.builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}
.builder-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}
.builder-form label, .prompt-panel label {
    display: grid;
    gap: 7px;
    color: #fff;
    font-weight: 900;
}
.x10-auth-card label,
.x10-submit-form label {
    display: grid;
    gap: 7px;
    color: #fff;
    font-weight: 900;
}
.builder-form label small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
}
.builder-form textarea, .builder-form input, .builder-form select,
.prompt-panel textarea,
.x10-auth-card input,
.x10-submit-form input,
.x10-submit-form textarea {
    width: 100%;
    border: 1px solid rgba(125,211,252,0.30);
    border-radius: 12px;
    padding: 11px 12px;
    color: #fff;
    background: rgba(255,255,255,0.08);
    font: inherit;
    resize: vertical;
}
.builder-form textarea { min-height: 128px; }
.builder-form .builder-form__wide { grid-column: 1 / -1; }
.builder-preview { padding: 20px; position: sticky; top: 86px; }
.builder-preview h3 { color: #fff; }
.builder-preview li { color: var(--muted); }
.free-prompt-note {
    margin: 22px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 12px;
    color: #dff8ff;
    background: rgba(8, 145, 178, 0.14);
    line-height: 1.55;
}
.free-prompt-note strong { color: #fff; }
.free-prompt-note b { color: var(--cyan); }
.prompt-tabs { margin: 22px 0 12px; }
.tab { font-size: 0.92rem; }
.prompt-panel { display: none; padding: 18px; }
.prompt-panel.is-active { display: block; }
.prompt-panel.favicon-prompt-panel { display: block; }
.favicon-prompt-panel + .favicon-prompt-panel { margin-top: 14px; }
.prompt-head { justify-content: space-between; margin-bottom: 12px; }
.prompt-head h3 { margin: 0; color: #fff; }
.prompt-panel textarea {
    min-height: 440px;
    line-height: 1.65;
    white-space: pre-wrap;
}
.copy-btn { color: var(--dark-text); background: var(--cyan); }
.code-card { padding: 18px; overflow-x: auto; }
.zip-tree-card { padding: 22px; }
pre { margin: 0; white-space: pre-wrap; color: #dff8ff; }
.zip-tree-card pre {
    font-size: 0.9rem;
    line-height: 1.72;
}
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.timeline article { padding: 20px; }
.timeline span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 50%;
    color: var(--dark-text);
    background: var(--gold);
    font-weight: 1000;
}

.x10-flash-wrap {
    padding-bottom: 0;
}
.x10-alert {
    max-width: 1180px;
    margin: 0 auto 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.28);
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.15);
}
.x10-alert--success {
    color: #dcfce7;
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.16);
}
.x10-alert--error {
    color: #fee2e2;
    border-color: rgba(248, 113, 113, 0.5);
    background: rgba(248, 113, 113, 0.16);
}
.x10-alert a { color: #ffffff; font-weight: 900; }
.x10-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.x10-auth-card,
.x10-submit-panel,
.x10-user-panel,
.x10-submission-status {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
}
.x10-auth-card {
    display: grid;
    gap: 14px;
    padding: 20px;
}
.x10-auth-card h3 { margin: 0; color: #fff; }
.x10-user-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}
.x10-user-panel strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
}
.x10-user-panel span { color: var(--muted); }
.x10-submit-panel {
    margin-top: 24px;
    padding: 22px;
}
.x10-submit-panel .section-heading {
    margin-bottom: 14px;
}
.x10-submit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.x10-submit-form label:first-of-type,
.x10-submit-form label:nth-of-type(6) {
    grid-column: 1 / -1;
}
.x10-submit-form textarea {
    min-height: 110px;
}
.x10-submit-form .btn[type="submit"] {
    grid-column: 1 / -1;
    justify-self: center;
}
.x10-submission-status {
    margin-bottom: 16px;
    padding: 14px 16px;
}
.x10-submission-status strong {
    display: block;
    color: #fff;
}
.x10-submission-status span,
.x10-submission-status p {
    color: var(--muted);
}
.timeline h3 { color: #fff; }
.timeline p { color: var(--muted); }
.feature-box { padding: 20px; }
.page-footer {
    padding: 32px 16px 44px;
    text-align: center;
    color: var(--muted);
    background: rgba(3,8,20,0.78);
}
.page-footer strong { color: #fff; }
.page-footer a { color: var(--cyan); font-weight: 900; text-decoration: none; }
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--dark-text);
    background: var(--gold);
    font-weight: 1000;
    transition: 0.24s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
    .topbar-links { display: none; }
    .hero-grid, .builder-layout { grid-template-columns: 1fr; }
    .hero-card { max-width: 560px; }
    .outcome-grid, .business-grid, .package-grid, .favicon-layout { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .spec-grid, .admin-grid, .submission-grid, .timeline { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .builder-preview { position: static; }
}
@media (max-width: 720px) {
    .hero-grid, .section { width: min(100% - 24px, 1180px); }
    .hero-metrics,
    .outcome-grid,
    .business-grid,
    .package-grid,
    .favicon-layout,
    .spec-grid,
    .admin-grid,
    .submission-grid,
    .timeline,
    .builder-form,
    .x10-auth-grid,
    .x10-submit-form { grid-template-columns: 1fr; }
    .x10-topbar { width: min(100% - 24px, 1180px); }
    .section { padding: 42px 0; }
    .x10-user-panel { align-items: flex-start; flex-direction: column; }
    .x10-submit-form label:first-of-type,
    .x10-submit-form label:nth-of-type(6) { grid-column: auto; }
    .builder-form label:nth-child(6), .builder-form label:nth-child(7) { grid-column: auto; }
    .prompt-head { align-items: stretch; }
    .copy-btn { width: 100%; }
    .prompt-panel textarea { min-height: 520px; }
}

/* ========= 2026-06-11 patch: zoom + readability fixes ========= */

/* Global zoom 0.95 */
body { zoom: 0.95; }

/* Force readable colors on dark page (safety overrides) */
.section-heading h2,
.section h2,
.section h3,
.section h4 {
    color: #ffffff !important;
}
.section-heading p,
.section p,
.section li {
    color: #d8e8ff;
}
.section a {
    color: #7dd3fc;
    font-weight: 600;
}
.section a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* Code chunks in deploy section */
.section code {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 4px;
    color: #fde68a;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.88em;
}

/* Feature box on dark bg */
.feature-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 14px;
}
.feature-box h3 { color: #ffffff !important; }
.feature-box ul { color: #d8e8ff; padding-left: 22px; }
.feature-box li { color: #d8e8ff !important; line-height: 1.85; }

/* Timeline cards visibility */
.timeline article {
    background: rgba(12, 31, 69, 0.85);
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 14px;
}
.timeline h3 { color: #ffffff !important; font-size: 1.05rem; }
.timeline p { color: #d8e8ff !important; }
.timeline p a { color: #7dd3fc; font-weight: 700; }

/* Make timeline 4-column on wide screens to fit 10 steps better */
@media (min-width: 1100px) {
    .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mobile zoom fallback (zoom doesn't work on Firefox) */
@supports not (zoom: 0.95) {
    html { font-size: 95%; }
}

/* ========= 2026-06-11 v3: Font + zoom match index.php ========= */

/* Use Prompt font like index.php, line-height 1.6 */
html, body {
    font-family: 'Prompt', "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    line-height: 1.6 !important;
}
.x10-page,
.x10-page *:not(i):not(.fas):not(.far):not(.fab):not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: 'Prompt', "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
/* Ensure FontAwesome keeps its font */
.x10-page .fas, .x10-page .far, .x10-page .fab, .x10-page .fa,
.x10-page .fa-solid, .x10-page .fa-regular, .x10-page .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}
.x10-page .fab, .x10-page .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
}

/* zoom 0.95 — slight scale-down for whole page */
body { zoom: 0.95 !important; }
.x10-page { font-size: 1rem; }

/* Weight tweaks — index uses 400-700 range, x10 had 800-1000 (heavy) */
.x10-page h1 { font-weight: 700; }
.x10-page h2 { font-weight: 700; }
.x10-page h3 { font-weight: 600; }
.x10-page strong,
.x10-page b { font-weight: 600; }
.x10-page .pill,
.x10-page .training-btn,
.x10-page .copy-btn,
.x10-page .nav-link,
.x10-page .topbar-links a { font-weight: 600; }
.x10-page .section-heading span { font-weight: 700; }

/* Heading sizes to feel like index */
.x10-page h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.18; }
.x10-page h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); line-height: 1.3; }
.x10-page h3 { font-size: 1.15rem; }
.x10-page p { font-size: 1rem; }

/* ========= Phase 2G: Font-size match training + connect banner ========= */

/* Phase 2G: x10-page font-size 1rem, body keeps zoom 0.95 from above */
.x10-page { font-size: 1rem !important; }
body { font-size: 16px; }
/* Re-affirm zoom 0.95 (overrides any earlier zoom:1 left over) */
body { zoom: 0.95 !important; }

/* Connection banner */
.x10-connect-banner {
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 24px;
    font-size: 0.92rem;
    color: #ffffff;
}
.x10-connect-banner--ok {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(99, 102, 241, 0.18));
    border-bottom: 1px solid rgba(52, 211, 153, 0.45);
}
.x10-connect-banner--ok strong { color: #fde047; }
.x10-connect-banner--info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.20));
    border-bottom: 1px solid rgba(125, 211, 252, 0.45);
}
.x10-connect-banner .x10-connect-actions {
    display: inline-flex;
    gap: 14px;
}
.x10-connect-banner a {
    color: #7dd3fc !important;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(125, 211, 252, 0.5);
}
.x10-connect-banner a:hover {
    color: #ffffff !important;
    border-bottom-color: #ffffff;
}

/* Warn banner (logged in but no plan) */
.x10-connect-banner--warn {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.30), rgba(244, 114, 182, 0.22));
    border-bottom: 1px solid rgba(251, 191, 36, 0.55);
}
.x10-connect-banner--warn strong { color: #fde047; }

/* ========= Phase 2H: Tagline helper + Theme dropdown preview ========= */

.x10-field-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.x10-field-row > input,
.x10-field-row > select {
    flex: 1;
    min-width: 0;
}
.x10-helper-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.3);
}
.x10-helper-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4);
}

/* Theme dropdown preview */
.theme-preview {
    margin-top: 8px;
}
.theme-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    min-height: 56px;
}
.theme-swatch {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.theme-name {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.95rem;
}

#themeStyleOther {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(125, 211, 252, 0.30);
    border-radius: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
}

/* AI helper modal + floating tools */
.ai-helper-modal,
.ai-tools-modal,
.manual-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
}
.ai-helper-modal { z-index: 9500; }
.ai-tools-modal { z-index: 9300; }
.manual-modal { z-index: 9400; }
.ai-helper-modal.is-open,
.ai-tools-modal.is-open,
.manual-modal.is-open {
    display: flex;
}
.ai-helper-modal__dialog,
.ai-tools-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
    border-radius: 16px;
    color: #1f2937;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}
.ai-tools-modal__dialog { width: min(900px, 100%); }
.manual-modal__dialog {
    position: relative;
    width: min(1120px, 100%);
    height: min(86vh, 860px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    color: #1f2937;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}
.ai-helper-modal__close,
.ai-tools-modal__close,
.manual-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.65rem;
    cursor: pointer;
}
.manual-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 56px 14px 20px;
    border-bottom: 1px solid #e5e7eb;
}
.manual-modal__header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.12rem;
}
.manual-modal__header p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 0.86rem;
}
.manual-modal__open {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 9px;
    color: #ffffff !important;
    background: #4f46e5;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
}
.manual-modal iframe {
    width: 100%;
    flex: 1;
    border: 0;
    background: #f3f4f6;
}
.ai-helper-modal__dialog h3,
.ai-tools-modal__dialog h3 {
    margin: 0 0 6px;
    color: #1f2937;
}
.ai-tools-modal__dialog h3 {
    display: flex;
    gap: 10px;
    align-items: center;
}
.ai-tools-modal__dialog h4 {
    margin: 18px 0 10px;
    color: #4f46e5;
}
.ai-helper-modal__hint,
.ai-tools-modal__hint {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 0.92rem;
}
.ai-helper-modal__text {
    width: 100%;
    min-height: 340px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    color: #1f2937;
    background: #f9fafb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
}
.ai-helper-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}
.ai-helper-modal .btn:not(.btn-primary),
.ai-tools-modal .btn:not(.btn-primary) {
    color: #1f2937;
    border-color: #d1d5db;
    background: #ffffff;
}
.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}
.ai-tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1f2937;
    background: #f8fafc;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}
.ai-tool-card:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
    transform: translateY(-1px);
}
.ai-tool-card strong { color: #1e293b; }
.ai-tool-card small {
    color: #64748b;
    font-size: 0.8rem;
}
.ai-tool-card--feature {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
}
.ai-tool-card--feature strong { color: #78350f; }
.ai-tool-card--feature small { color: #92400e; }
.ai-tools-fab {
    position: fixed;
    left: 16px;
    bottom: 22px;
    z-index: 750;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.45);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.ai-tools-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.6);
}
.floating-actions {
    position: fixed;
    right: 16px;
    top: 50%;
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 170px;
    padding: 10px 10px 12px;
    border: 1px solid rgba(125, 211, 252, 0.35);
    border-radius: 14px;
    background: rgba(7, 22, 52, 0.94);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transform: translateY(-50%);
    user-select: none;
}
.floating-actions.is-dragging {
    border-color: rgba(250, 204, 21, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.62);
}
.floating-actions__handle {
    align-self: center;
    padding: 4px 8px;
    border: 0;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    font-size: 1.1rem;
    cursor: grab;
}
.floating-actions__handle:active {
    color: #fde047;
    cursor: grabbing;
}
.floating-actions__btn {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.95rem;
}
.floating-actions__btn--save {
    background: linear-gradient(135deg, #34d399, #22d3ee);
    color: #052b33;
}
.floating-actions__btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

@media (max-width: 720px) {
    .ai-tools-fab {
        bottom: 82px;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .ai-tools-fab span,
    .floating-actions__btn span {
        display: none;
    }
    .floating-actions {
        right: 8px;
        top: auto;
        bottom: 16px;
        min-width: 0;
        flex-direction: row;
        padding: 8px;
        transform: none;
    }
    .floating-actions__btn {
        min-height: 38px;
        padding: 6px 10px;
        font-size: 0.84rem;
    }
    .ai-helper-modal__dialog,
    .ai-tools-modal__dialog {
        padding: 18px;
    }
}

/* ========= Shared FABs (training + x10) ========= */

.login-fab {
    position: fixed;
    left: 16px;
    bottom: 78px;   /* sits ABOVE ai-tools-fab */
    z-index: 750;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    color: #08111f;
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
    font-weight: 800;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.42);
    transition: transform 0.15s, box-shadow 0.15s;
}
.login-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.55);
}
.login-fab--active {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}
.login-fab--active:hover {
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.6);
}

/* Auth Modal (shared) */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9400;
    padding: 16px;
    backdrop-filter: blur(6px);
}
.auth-modal.is-open { display: flex; }
.auth-modal__dialog {
    background: #ffffff;
    color: #1f2937;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 24px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.auth-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #6b7280;
    cursor: pointer;
}
.auth-modal h3 {
    margin: 0 0 16px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}
.auth-modal h3 i { color: #4f46e5; }

.auth-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    margin-bottom: 14px;
}
.auth-user-card i { font-size: 2rem; color: #059669; }
.auth-user-card__name { font-weight: 800; font-size: 1.05rem; }
.auth-user-card__sub { font-size: 0.85rem; color: #047857; }

.auth-tabs {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
}
.auth-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: 0;
    color: #6b7280;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}
.auth-tab.is-active {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-form { display: none; flex-direction: column; gap: 10px; }
.auth-form.is-active { display: flex; }
.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}
.auth-form input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1f2937;
    background: #ffffff;
    font: inherit;
    min-height: 40px;
}
.auth-form input:focus {
    outline: 2px solid #4f46e5;
    outline-offset: -1px;
    border-color: transparent;
}
.auth-error {
    padding: 10px 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 10px;
    border: 0;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    margin-top: 4px;
}
.auth-btn--primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
}
.auth-btn--primary:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}
.auth-btn--danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    width: 100%;
}
.auth-btn--danger:hover { background: #fecaca; }

@media (max-width: 720px) {
    .login-fab { padding: 8px 14px; font-size: 0.82rem; bottom: 66px; }
    .login-fab span { display: none; }
}

/* ========= 2026-06-14: match training-social-network look exactly ========= */

/* Remove all earlier zoom — match training page (no zoom) */
body { zoom: 1 !important; }
html { font-size: 100% !important; }
.x10-page { font-size: 1rem !important; }

/* AI Tools FAB — match training exactly */
.ai-tools-fab {
    position: fixed !important;
    left: 16px !important;
    bottom: 22px !important;
    z-index: 750 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 18px !important;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.45) !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}
.ai-tools-fab:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.6) !important;
}

/* Floating actions panel — match training exactly (NO !important on positioning so JS drag works) */
.floating-actions {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 800 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px 10px 12px !important;
    background: rgba(7, 22, 52, 0.94) !important;
    border: 1px solid rgba(125, 211, 252, 0.35) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    min-width: 160px !important;
    width: auto;
    height: auto;
    resize: none;
    user-select: none !important;
}
.floating-actions.is-dragging {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(250, 204, 21, 0.5) !important;
}
.floating-actions__handle {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.45) !important;
    align-self: center !important;
    padding: 4px 8px !important;
    cursor: grab !important;
    font-size: 1.1rem !important;
}
.floating-actions__handle:active {
    cursor: grabbing !important;
    color: #fde047 !important;
}
.floating-actions__btn {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    min-height: 42px !important;
    padding: 8px 14px !important;
    font-size: 0.95rem !important;
    border: 1px solid rgba(125, 211, 252, 0.38) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    font-family: inherit !important;
}
.floating-actions__btn:hover {
    border-color: rgba(33, 212, 253, 0.72) !important;
    background: rgba(33, 212, 253, 0.12) !important;
}
.floating-actions__btn--save {
    border-color: rgba(250, 204, 21, 0.65) !important;
    color: #08111f !important;
    background: linear-gradient(135deg, #fde047, #f59e0b) !important;
}

/* Login FAB — already shared style, just ensure positioning */
.login-fab {
    position: fixed !important;
    left: 16px !important;
    bottom: 78px !important;
    z-index: 750 !important;
}

@media (max-width: 720px) {
    .ai-tools-fab { padding: 10px 14px !important; font-size: 0.85rem !important; }
    .ai-tools-fab span { display: none !important; }
    .login-fab { bottom: 66px !important; padding: 8px 14px !important; font-size: 0.82rem !important; }
    .login-fab span { display: none !important; }
    .floating-actions {
        right: 8px !important;
        top: auto !important;
        bottom: 16px !important;
        transform: none !important;
        flex-direction: row !important;
        min-width: 0 !important;
        padding: 8px !important;
    }
    .floating-actions__btn { font-size: 0.8rem !important; padding: 6px 10px !important; min-height: 38px !important; }
    .floating-actions__btn span { display: none !important; }
}

/* ========= Shared SSIS Hub navbar/footer for blog-style page ========= */
.x10-page .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(0, 37, 67, 0.95);
    backdrop-filter: blur(10px);
}
.x10-page .nav-container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.x10-page .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.x10-page .logo img { max-height: 40px; }
.x10-page .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 0;
}
.x10-page .nav-links > li { position: relative; }
.x10-page .nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    display: block;
    padding: 0.5rem 0;
}
.x10-page .nav-links a:hover { color: var(--secondary); }
.x10-page .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
    padding: 0;
    margin: 0;
}
.x10-page .nav-links li:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}
.x10-page .dropdown-menu li {
    list-style: none;
    border-bottom: 1px solid #eeeeee;
}
.x10-page .dropdown-menu li:last-child { border-bottom: none; }
.x10-page .dropdown-menu a {
    display: block;
    color: #333333;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 0.95rem;
}
.x10-page .dropdown-menu a:hover {
    background: #f0f9ff;
    color: var(--primary);
    padding-left: 25px;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.x10-page footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.84);
    padding: 3rem 5%;
    text-align: center;
    font-size: 0.9rem;
}
.x10-page footer p { margin: 0 0 0.5rem; }
.x10-page footer strong { color: #ffffff; }
.x10-page .footer-admin-link {
    color: rgba(255,255,255,0.25);
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
}
.x10-connect-banner {
    margin-top: 76px;
    z-index: 900;
}
.x10-connect-banner + .x10-hero {
    padding-top: 34px;
}

@media (max-width: 1080px) {
    .x10-page .nav-links { display: none; }
    .x10-page .nav-container { justify-content: center; }
}

/* ========= Blog article cover + scale alignment ========= */
body { zoom: 1 !important; }
html { font-size: 100% !important; }
.x10-hero {
    padding: 135px 0 52px !important;
}
.hero-grid,
.section {
    width: 85%;
    max-width: 1400px;
}
.hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
    gap: 34px;
    padding: 0;
}
.x10-page h1 {
    font-size: clamp(2rem, 4vw, 3.05rem) !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
}
.hero-copy p {
    font-size: 1.08rem;
}
.hero-cover-card {
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 22px;
    background: rgba(255,255,255,0.09);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}
.hero-cover-card picture,
.hero-cover-card img {
    display: block;
    width: 100%;
}
.hero-cover-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    background: #e6f2ff;
}
.x10-connect-banner + .x10-hero {
    padding-top: 52px !important;
}

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-card {
        max-width: 720px;
    }
}

@media (max-width: 720px) {
    .x10-hero {
        padding: 112px 0 42px !important;
    }
    .hero-grid,
    .section {
        width: min(100% - 24px, 1180px);
    }
}
