:root {
    --brand-950: #081121;
    --brand-900: #0d1830;
    --brand-800: #16264a;
    --brand-700: #1d3561;
    --sky-500: #119dcb;
    --sky-400: #3cc4ee;
    --sky-100: #d8f4ff;
    --gold-500: #f7b64d;
    --gold-100: #fff3d9;
    --rose-500: #f97360;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --surface-dark: rgba(8, 17, 33, 0.82);
    --line: rgba(15, 23, 42, 0.09);
    --ink: #0f172a;
    --muted: #5c6a82;
    --success: #0f9f6e;
    --shadow-lg: 0 28px 80px rgba(8, 17, 33, 0.12);
    --shadow-md: 0 18px 50px rgba(8, 17, 33, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ink);
}

.brand-display {
    font-family: 'Be Vietnam Pro', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.05em;
}

/* Homepage — editorial, flat and deliberately spacious */
.home-body {
    margin: 0;
    background: #f4f3ee;
    color: #17201d;
    font-family: 'Be Vietnam Pro', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.home-body a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; background: #17201d; color: #fff; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.home-header { padding: 1.25rem clamp(1rem, 4vw, 4rem) 0; }
.home-nav, .home-main, .home-footer { width: min(1360px, 100%); margin-inline: auto; }
.home-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid rgba(23, 32, 29, .16);
}
.home-brand { display: inline-flex; align-items: center; gap: .7rem; font-size: .94rem; font-weight: 500; letter-spacing: -.03em; }
.home-brand b { font-weight: 800; }
.home-logo { width: 34px; height: 34px; fill: #17201d; }
.home-logo .logo-cut { fill: #f4f3ee; }
.home-nav-links, .home-nav-actions { display: flex; align-items: center; gap: 1.65rem; font-size: .82rem; font-weight: 600; }
.home-nav-links a, .home-link-button { transition: opacity .2s ease; }
.home-nav-links a:hover, .home-link-button:hover { opacity: .52; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 46px; padding: .75rem 1.15rem; font-size: .82rem; font-weight: 700; transition: transform .25s ease, background .25s ease; }
.home-button:hover { transform: translateY(-2px); }
.home-button:active { transform: translateY(0) scale(.98); }
.home-button:focus-visible, .home-body a:focus-visible { outline: 3px solid #dfff54; outline-offset: 3px; }
.home-button-dark { background: #17201d; color: #fff !important; }
.home-main { padding-inline: clamp(1rem, 4vw, 4rem); }
.home-flash { margin-top: 1rem; padding: .9rem 1rem; border-left: 3px solid #b7db24; background: #fff; font-size: .88rem; }
.home-hero { position: relative; min-height: min(760px, calc(100dvh - 94px)); display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(2rem, 5vw, 6rem); padding: clamp(5rem, 9vw, 8.5rem) 0; isolation: isolate; }
.home-eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.6rem; color: #5c6662; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.home-eyebrow > span { width: 24px; height: 1px; background: currentColor; }
.hero-copy h1, .section-intro h2, .home-cta h2 { margin: 0; font-size: clamp(3.3rem, 1.5vw, 1.5rem); line-height: .96; letter-spacing: -.075em; font-weight: 700; text-wrap: balance; }
.hero-copy h1 em, .section-intro h2 em { color: #718078; font-style: normal; font-weight: 400; }
.hero-lead { max-width: 620px; margin: 2rem 0 0; color: #59635f; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.8; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.25rem; }
.home-button-accent { background: #d9f05b; color: #17201d; }
.home-button-accent:hover { background: #cce743; }
.home-text-link { display: inline-flex; gap: .8rem; align-items: center; font-size: .78rem; font-weight: 700; border-bottom: 1px solid #17201d; padding-bottom: .3rem; }
.hero-proof { display: flex; align-items: center; gap: .8rem; margin-top: 3rem; color: #6b7470; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-proof i { width: 22px; height: 1px; background: #b9bfbb; }
.ai-canvas { position: relative; min-height: 610px; margin: -3rem -8vw -3rem -4rem; overflow: visible; color: #17201d; isolation: isolate; }
.ai-canvas::after { content: ""; position: absolute; z-index: -2; inset: -12% -16% -12% -12%; background: radial-gradient(ellipse at 54% 48%, rgba(78,98,50,.32) 0%, rgba(127,151,63,.17) 31%, rgba(217,240,91,.09) 49%, transparent 74%); filter: blur(2px); animation: homeAmbient 9s ease-in-out infinite; }
.ai-canvas::before { content: ""; position: absolute; z-index: -1; inset: -5%; opacity: .22; background-image: linear-gradient(rgba(23,32,29,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(23,32,29,.14) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 58% 58% at center, #000 10%, transparent 78%); }
.ai-glow { position: absolute; width: 410px; height: 410px; left: 50%; top: 48%; transform: translate(-50%, -50%); border-radius: 50%; background: #b9d633; opacity: .2; filter: blur(78px); animation: homePulse 5s ease-in-out infinite; }
.ai-core { position: absolute; left: 50%; top: 47%; translate: -50% -50%; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; background: #d9f05b; color: #17201d; box-shadow: 0 0 0 12px rgba(217,240,91,.08); z-index: 2; }
.ai-core svg { position: absolute; inset: 18px; width: 80px; opacity: .28; fill: none; stroke: currentColor; stroke-width: 1; animation: homeSpin 18s linear infinite; }
.ai-core strong { font-size: 1.25rem; letter-spacing: -.06em; }
.ai-orbit { position: absolute; left: 50%; top: 47%; translate: -50% -50%; border: 1px solid rgba(82,104,35,.3); border-radius: 50%; }
.orbit-one { width: 290px; height: 290px; }
.orbit-two { width: 480px; height: 480px; border-style: dashed; animation: homeSpin 28s linear infinite reverse; }
.ai-node { position: absolute; z-index: 3; width: 150px; padding: 1rem; border-left: 2px solid rgba(99,121,45,.38); background: rgba(244,243,238,.76); color: #17201d; backdrop-filter: blur(8px); animation: homeFloat 6s ease-in-out infinite; }
.ai-node small { display: block; margin-bottom: .75rem; color: #7a847f; font-size: .6rem; }
.ai-node b, .ai-node span { display: block; }
.ai-node b { font-size: .85rem; }
.ai-node span { margin-top: .25rem; color: #6e7773; font-size: .63rem; }
.node-idea { left: 7%; top: 14%; }
.node-script { right: 5%; top: 25%; animation-delay: -2s; }
.node-visual { left: 10%; bottom: 9%; animation-delay: -4s; }
.signal { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #d9f05b; box-shadow: 0 0 14px #d9f05b; animation: homeSignal 4s ease-in-out infinite; }
.signal-one { top: 25%; left: 47%; }
.signal-two { bottom: 22%; right: 23%; animation-delay: -2s; }
.canvas-caption { position: absolute; right: 1.5rem; bottom: 1.25rem; margin: 0; display: flex; align-items: center; gap: .5rem; color: rgba(23,32,29,.55); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.canvas-caption span { width: 6px; height: 6px; border-radius: 50%; background: #d9f05b; animation: homeBlink 1.5s infinite; }
.workflow-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 9rem); border-top: 1px solid rgba(23,32,29,.16); padding: clamp(6rem, 10vw, 10rem) 0; }
.section-intro h2 { font-size: clamp(2.6rem, 4.5vw, 5rem); }
.workflow-list article { display: grid; grid-template-columns: 48px 1fr auto; gap: 1.5rem; padding: 1.8rem 0; border-bottom: 1px solid rgba(23,32,29,.18); }
.workflow-list article:first-child { border-top: 1px solid rgba(23,32,29,.18); }
.workflow-list article > span { color: #7a837f; font-size: .7rem; }
.workflow-list article > b { font-weight: 400; transition: transform .25s ease; }
.workflow-list article:hover > b { transform: translate(4px, 4px); }
.workflow-list h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.035em; }
.workflow-list p { max-width: 560px; margin: .6rem 0 0; color: #68716d; font-size: .88rem; line-height: 1.7; }
.feature-band { padding: 2rem 0 clamp(7rem, 10vw, 11rem); }
.feature-quote { max-width: 1000px; margin: 0; font-size: clamp(2rem, 4.5vw, 4.8rem); line-height: 1.15; letter-spacing: -.06em; text-wrap: balance; }
.feature-quote em { font-style: normal; color: #718078; }
.feature-tags { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 3rem; }
.feature-tags span { border: 1px solid rgba(23,32,29,.24); padding: .72rem 1rem; font-size: .68rem; font-weight: 600; }
.home-cta { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: clamp(3rem, 6vw, 6rem); background: #202a26; color: #fff; }
.home-eyebrow-light { color: rgba(255,255,255,.58); }
.home-cta h2 { font-size: clamp(2.8rem, 5.5vw, 6rem); }
.cta-circle { flex: 0 0 auto; width: clamp(90px, 10vw, 140px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #d9f05b; color: #17201d !important; font-size: 2rem; transition: transform .3s ease, background .3s ease; }
.cta-circle:hover { transform: rotate(-12deg) scale(1.05); background: #fff; }
.home-footer { padding: 2rem clamp(1rem, 4vw, 4rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; color: #68716d; font-size: .7rem; }
.home-footer > div { display: flex; gap: 1.5rem; }

@keyframes homeSpin { to { transform: rotate(360deg); } }
@keyframes homeFloat { 50% { transform: translateY(-9px); } }
@keyframes homePulse { 50% { opacity: .25; transform: translate(-50%, -50%) scale(1.12); } }
@keyframes homeBlink { 50% { opacity: .3; } }
@keyframes homeSignal { 50% { transform: translate(70px, 38px); opacity: .35; } }
@keyframes homeAmbient { 50% { transform: scale(1.06) translate3d(-1.5%, 1%, 0); opacity: .82; } }

@media (max-width: 900px) {
    .home-nav-links { display: none; }
    .home-hero, .workflow-section { grid-template-columns: 1fr; }
    .home-hero { padding-top: 5rem; }
    .ai-canvas { min-height: 520px; margin: -2rem 0 0; }
}
@media (max-width: 600px) {
    .home-header { padding-top: .5rem; }
    .home-nav { min-height: 64px; }
    .home-nav-actions { gap: .8rem; }
    .home-link-button { display: none; }
    .home-main { overflow: hidden; }
    .home-hero { padding: 4rem 0 5rem; }
    .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.4rem; }
    .hero-proof { gap: .45rem; }
    .hero-proof i { width: 10px; }
    .ai-canvas { min-height: 440px; margin: -1rem -1.5rem 0; }
    .orbit-two { width: 350px; height: 350px; }
    .ai-node { width: 128px; padding: .8rem; }
    .node-script { right: 3%; }
    .node-visual { left: 4%; }
    .workflow-section { padding: 6rem 0; gap: 3rem; }
    .home-cta { align-items: flex-start; flex-direction: column; padding: 3rem 1.5rem; }
    .cta-circle { align-self: flex-end; }
    .home-footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .home-body *, .home-body *::before, .home-body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Shared auth and dashboard system */
.simple-header { width: min(1360px, calc(100% - 2rem)); min-height: 88px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid rgba(23,32,29,.16); }
.auth-switch { font-size: .76rem; color: #69726e !important; }
.auth-switch b { margin-left: .35rem; color: #17201d; }
.auth-main { width: min(1360px, calc(100% - 2rem)); min-height: calc(100dvh - 88px); margin-inline: auto; display: grid; grid-template-columns: 1.08fr .92fr; }
.auth-visual { position: relative; overflow: hidden; min-height: 620px; padding: clamp(3rem, 6vw, 7rem); display: flex; flex-direction: column; justify-content: center; background: #202a26; color: #fff; }
.auth-visual h1 { position: relative; z-index: 2; margin: 0; font-size: clamp(3.1rem, 5.4vw, 6.5rem); line-height: .98; letter-spacing: -.075em; }
.auth-visual h1 em { color: #d9f05b; font-style: normal; font-weight: 400; }
.auth-orbit { position: absolute; right: -70px; bottom: -80px; width: 330px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(217,240,91,.25); border-radius: 50%; }
.auth-orbit::before, .auth-orbit::after { content: ""; position: absolute; border: 1px dashed rgba(255,255,255,.14); border-radius: 50%; animation: homeSpin 24s linear infinite; }
.auth-orbit::before { inset: 38px; }
.auth-orbit::after { inset: 82px; animation-direction: reverse; }
.auth-orbit i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #d9f05b; }
.auth-orbit i:first-child { left: 35px; top: 82px; }
.auth-orbit i:nth-child(2) { right: 30px; bottom: 100px; }
.auth-orbit strong { font-size: 1.2rem; }
.auth-visual-note { position: absolute; left: clamp(3rem, 6vw, 7rem); bottom: 2.5rem; margin: 0; color: rgba(255,255,255,.52); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.auth-form-wrap { max-width: 520px; width: 100%; margin: auto; padding: 4rem clamp(1.25rem, 5vw, 5rem); }
.auth-form-head h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.065em; }
.auth-form-head > p:last-child { margin: 1rem 0 2.5rem; color: #6c7571; font-size: .86rem; line-height: 1.7; }
.minimal-form { display: grid; }
.minimal-form label, .editor-dialog-card label { margin: 1.2rem 0 .55rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.minimal-form label:first-child { margin-top: 0; }
.minimal-form label small { float: right; color: #89918d; font-weight: 500; }
.minimal-form input, .editor-dialog-card input { width: 100%; border: 0; border-bottom: 1px solid #b8beba; border-radius: 0; background: transparent; padding: .8rem 0; color: #17201d; font: inherit; font-size: .92rem; outline: none; transition: border-color .2s ease; }
.minimal-form input:focus, .editor-dialog-card input:focus { border-color: #17201d; }
.form-submit { min-height: 50px; margin-top: 2rem; border: 0; background: #202a26; color: #fff; padding: .8rem 1.1rem; display: flex; align-items: center; justify-content: space-between; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.form-submit:hover { transform: translateY(-2px); background: #35433d; }
.form-submit-accent { background: #d9f05b; color: #17201d; }
.form-submit-accent:hover { background: #cce743; }
.auth-back { display: inline-block; margin-top: 2rem; color: #77807c !important; font-size: .7rem; }
.form-message { margin-bottom: 1.25rem; padding: .8rem 1rem; border-left: 3px solid #9fbc28; background: rgba(217,240,91,.2); font-size: .75rem; line-height: 1.6; }
.form-message p { margin: 0; }
.form-message-error { border-color: #c05a49; background: #f8e7e2; color: #8a3528; }

.dashboard-main { width: min(1360px, calc(100% - 2rem)); margin-inline: auto; padding-bottom: 6rem; }
.dashboard-nav { display: flex; align-items: center; gap: 1.6rem; color: #646d69; font-size: .72rem; font-weight: 600; }
.dashboard-nav a:not(.home-button):hover { color: #17201d; }
.dashboard-flash { margin: 1rem 0 0; }
.dashboard-intro { padding: clamp(1.5rem, 1vw, 1rem) 0 4rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4rem; }
.dashboard-intro h1 { margin: 0; font-size: clamp(3rem, 5.6vw, 1.7rem); line-height: .95; letter-spacing: -.075em; }
.dashboard-intro h1 em { color: #748079; font-style: normal; font-weight: 400; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); border-top: 1px solid rgba(23,32,29,.2); }
.dashboard-stats div { min-width: 100px; padding: 1.15rem .8rem 0 0; }
.dashboard-stats strong, .dashboard-stats span { display: block; }
.dashboard-stats strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.dashboard-stats span { margin-top: .3rem; color: #77807c; font-size: .6rem; }
.projects-section { border-top: 1px solid rgba(23,32,29,.18); padding-top: 2rem; }
.projects-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.projects-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.045em; }
.projects-head p { margin: .45rem 0 0; color: #747d79; font-size: .75rem; }
.project-list { border-top: 1px solid rgba(23,32,29,.18); }
.project-row { display: grid; grid-template-columns: 1.2fr 1.6fr .9fr auto; align-items: center; gap: 1.25rem; min-height: 90px; border-bottom: 1px solid rgba(23,32,29,.14); }
.project-list.has-owner .project-row { grid-template-columns: 1.2fr 1.5fr .7fr .8fr auto; }
.project-row:not(.project-labels) { transition: background .2s ease, padding .2s ease; }
.project-row:not(.project-labels):hover { background: rgba(255,255,255,.42); padding-inline: .8rem; }
.project-row.project-labels { min-height: 42px; color: #89918d; font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-name { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.project-name small { color: #929a96; font-size: .6rem; }
.project-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.project-row p, .project-row time { margin: 0; color: #6e7773; font-size: .7rem; line-height: 1.5; }
.project-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.project-actions button { border: 0; padding: 0; background: none; color: #68716d; font: inherit; font-size: .68rem; cursor: pointer; }
.project-actions .project-open { font-size: .7rem; font-weight: 700; }
.project-actions .danger-link { color: #a34e41; }
.dashboard-empty { padding: 7rem 1rem; text-align: center; border-top: 1px solid rgba(23,32,29,.18); border-bottom: 1px solid rgba(23,32,29,.18); }
.dashboard-empty > span { color: #9ca39f; font-size: .65rem; }
.dashboard-empty h3 { margin: 1rem 0 .5rem; font-size: 2rem; letter-spacing: -.055em; }
.dashboard-empty p { max-width: 500px; margin: 0 auto 2rem; color: #747d79; font-size: .8rem; line-height: 1.7; }
.dashboard-empty .home-button { width: max-content; margin-inline: auto; }
.editor-dialog[hidden] { display: none; }
.editor-dialog { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 1rem; background: rgba(23,32,29,.62); backdrop-filter: blur(8px); }
.editor-dialog-card { position: relative; width: min(460px, 100%); padding: 2.5rem; background: #f4f3ee; }
.editor-dialog-card h3 { margin: 0 0 1.5rem; font-size: 2rem; letter-spacing: -.055em; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; border: 0; background: none; font-size: 1.4rem; cursor: pointer; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }
.dialog-actions > button:first-child { border: 0; background: none; color: #68716d; cursor: pointer; }
.dialog-actions .form-submit { width: auto; min-height: 44px; margin: 0; }

@media (max-width: 920px) {
    .auth-main { grid-template-columns: 1fr; }
    .auth-visual { min-height: 390px; }
    .auth-form-wrap { padding-block: 4.5rem; }
    .dashboard-intro { grid-template-columns: 1fr; }
    .project-labels { display: none; }
    .project-row { grid-template-columns: 1fr auto; padding: 1.25rem 0; }
    .project-row > p, .project-row > time { grid-column: 1; }
    .project-actions { grid-column: 2; grid-row: 1 / span 3; }
}
@media (max-width: 620px) {
    .simple-header { min-height: 70px; }
    .auth-switch { font-size: 0; }
    .auth-switch b { font-size: .7rem; }
    .auth-visual { min-height: 330px; padding: 3rem 1.5rem; }
    .auth-visual h1 { font-size: 3.15rem; }
    .auth-visual-note { left: 1.5rem; }
    .auth-orbit { width: 230px; }
    .dashboard-nav > span, .dashboard-nav > a:not(.home-button) { display: none; }
    .dashboard-intro { padding-top: 4rem; gap: 3rem; }
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .projects-head { align-items: flex-start; flex-direction: column; }
    .project-row { grid-template-columns: 1fr; gap: .65rem; }
    .project-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: .5rem; }
}

/* AI editor — aligned with the public site's flat visual system */
.editor-page { background: #f4f3ee; color: #17201d; font-family: 'Be Vietnam Pro', sans-serif; }
.editor-page-shell { width: min(1480px, calc(100% - 2rem)); margin-inline: auto; padding-bottom: 4rem; }
.editor-page .editor-header { min-height: 76px; padding: 0; border: 0; border-bottom: 1px solid rgba(23,32,29,.16); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.editor-page .brand-chip { padding: 0; border-radius: 0; background: transparent; color: #17201d; }
.editor-page .brand-chip-badge { width: 34px; height: 34px; border-radius: 0; background: #17201d; color: #d9f05b; }
.editor-page .brand-chip .text-sky-200 { color: #707975; }
.editor-page .brand-display { font-family: 'Be Vietnam Pro', sans-serif; letter-spacing: -.04em; }
.editor-page .editor-header .inline-pill { border: 0; border-radius: 0; background: transparent; padding-inline: 0; color: #707975; }
.editor-page .editor-header .action-ghost { min-height: auto; padding: .6rem .2rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #5f6964; font-size: .7rem; }
.editor-page .editor-header .action-ghost:hover { color: #17201d; transform: none; }
.editor-page .editor-workspace { margin-top: 0; padding: clamp(2.5rem, 1vw, 5rem) 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.editor-page .editor-workspace > .flex:first-child { padding-bottom: 1.5rem; border-bottom: 1px solid rgba(23,32,29,.16); }
.editor-page .data-badge { border-radius: 0; background: rgba(217,240,91,.32); color: #526218; }
.editor-page .workspace-grid { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
.editor-page .workspace-sidebar { position: sticky; top: 1.5rem; }
.editor-page .form-card { border: 0; border-top: 1px solid rgba(23,32,29,.2); border-radius: 0; padding: 1.75rem 0 0; background: transparent; box-shadow: none; }
.editor-page .form-card h2 { letter-spacing: -.055em; }
.editor-page .muted-copy { color: #707975; line-height: 1.7; }
.editor-page .section-kicker { color: #69726e; font-size: .63rem; letter-spacing: .11em; }
.editor-page .field-label { margin-bottom: .55rem; color: #38423e; font-size: .65rem; font-weight: 700; letter-spacing: .03em; }
.editor-page .product-input,
.editor-page .product-select,
.editor-page textarea,
.editor-page .modal-content input[type="text"],
.editor-page .modal-content input[type="password"] {
    border: 0;
    border-bottom: 1px solid #b5bcb8;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #17201d;
    padding: .75rem .15rem;
    font-family: inherit;
}
.editor-page .product-input:focus,
.editor-page .product-select:focus,
.editor-page textarea:focus,
.editor-page .modal-content input:focus { border-color: #17201d; box-shadow: none; outline: none; }
.editor-page .action-primary,
.editor-page .action-secondary,
.editor-page .action-ghost,
.editor-page .collapse-toggle { border-radius: 0; box-shadow: none; font-size: .7rem; }
.editor-page .action-primary { background: #202a26; color: #fff; }
.editor-page #generate-btn { justify-content: space-between; background: #d9f05b; color: #17201d; }
.editor-page #generate-btn:hover { background: #cce743; }
.editor-page .action-secondary { background: #d9f05b; color: #17201d; }
.editor-page .action-ghost, .editor-page .collapse-toggle { border: 1px solid rgba(23,32,29,.2); background: transparent; color: #33403a; }
.editor-page .workspace-main { min-width: 0; }
.editor-page .preview-card.result-shell { min-height: 80px; padding: 1.5rem 2rem; display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; border: 0; border-radius: 0; background: #202a26; color: #fff; box-shadow: none; overflow: hidden; position: relative; }
.editor-page .preview-card.result-shell::before { content: "AI"; position: absolute; right: 1rem; top: -2.8rem; color: rgba(217,240,91,.07); font-size: clamp(8rem, 14vw, 12rem); font-weight: 800; letter-spacing: -.1em; line-height: 1; }
.editor-page .preview-card.result-shell h2 { position: relative; max-width: 620px; margin-bottom: 0; font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -.06em; }
.editor-page .preview-card.result-shell .muted-copy { position: relative; color: rgba(255,255,255,.58); }
.editor-page .preview-card.result-shell .section-kicker { position: relative; color: #d9f05b; }
.editor-page .form-summary-card { border: 0; border-left: 3px solid #d9f05b; border-radius: 0; background: rgba(255,255,255,.5); box-shadow: none; }
.editor-page .dashboard-panel { border: 0; border-radius: 0; background: transparent; padding: 0; box-shadow: none; }
.editor-page #result-container { min-height: calc(100dvh - 250px); max-height: calc(100dvh - 170px); padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid rgba(23,32,29,.14); border-radius: 0; background: rgba(255,255,255,.5); box-shadow: none; }
.editor-page #result-section > .dashboard-panel > .flex:first-child { margin-bottom: .75rem; }
.editor-page #result-section > .dashboard-panel > .flex:first-child h2 { margin-top: .35rem; font-size: 1.35rem; letter-spacing: -.045em; }
.editor-page #result-section > .dashboard-panel > .flex:first-child .section-kicker { display: none; }
.editor-page #video-tools { margin-top: .75rem; }
.editor-page #video-tools > h3 { margin-bottom: .4rem; font-size: .75rem; }
.editor-page #video-tools .surface-panel { padding: .7rem; }
.editor-page #video-tools .grid { gap: .45rem; }
.editor-page #script-output h2 { color: #17201d; text-align: left; font-size: 2rem; letter-spacing: -.05em; }
.editor-page #script-output h3 { color: #17201d; border-bottom-color: rgba(23,32,29,.18); }
.editor-page #script-output strong { color: #52651a; }
.editor-page #script-output em { background: rgba(217,240,91,.28); color: #344039; border-radius: 0; }
.editor-page .surface-panel { border: 0; border-radius: 0 !important; background: rgba(255,255,255,.42); box-shadow: none; }
.editor-page .scene-container { border: 0 !important; border-top: 1px solid rgba(23,32,29,.18) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 1.5rem 0 !important; }
.editor-page .scene-container:focus-within { box-shadow: inset 3px 0 #d9f05b !important; padding-left: 1rem !important; }
.editor-page .thumbnail-container { border-radius: 0; }
.editor-page .thumbnail-container:hover { border-color: #d9f05b; }
.editor-page .modal { background: rgba(23,32,29,.68); backdrop-filter: blur(8px); }
.editor-page .modal-content { border-radius: 0 !important; background: #f4f3ee !important; color: #17201d; box-shadow: 0 30px 90px rgba(23,32,29,.25); }
.editor-page .modal-content button.bg-blue-600,
.editor-page .modal-content button.bg-indigo-600,
.editor-page .modal-content button.bg-purple-600 { border-radius: 0; background: #202a26; box-shadow: none; }
.editor-page .modal-content button.bg-blue-600:hover,
.editor-page .modal-content button.bg-indigo-600:hover,
.editor-page .modal-content button.bg-purple-600:hover { background: #35433d; }
.editor-page #loading i { color: #8da51f; }
.editor-page button:focus-visible, .editor-page a:focus-visible, .editor-page input:focus-visible, .editor-page select:focus-visible, .editor-page textarea:focus-visible { outline: 3px solid #d9f05b; outline-offset: 3px; }

@media (max-width: 980px) {
    .editor-page .workspace-grid { grid-template-columns: 1fr; }
    .editor-page .workspace-sidebar { position: static; }
}
@media (max-width: 680px) {
    .editor-page-shell { width: min(100% - 1.25rem, 1480px); }
    .editor-page .editor-header .inline-pill, .editor-page .editor-header a[href="index.php"].action-ghost, .editor-page .editor-header a[href="logout.php"] { display: none; }
    .editor-page .nav-cluster { gap: .6rem; }
    .editor-page .preview-card.result-shell { min-height: 120px; padding: 1.25rem; }
    .editor-page #result-container { min-height: 70dvh; max-height: none; }
}

.api-pool-manager { border-top: 1px solid rgba(23,32,29,.18); border-bottom: 1px solid rgba(23,32,29,.18); padding: 1.25rem 0; }
.api-key-list { display: grid; gap: .55rem; max-height: 320px; overflow-y: auto; }
.api-key-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 1rem; padding: .85rem; background: rgba(255,255,255,.48); border-left: 3px solid #a9b1ad; }
.api-key-row:has(.key-status-active) { border-left-color: #8da51f; }
.api-key-row:has(.key-status-error) { border-left-color: #b24f40; }
.api-key-row strong { font-size: .78rem; }
.api-key-row code { display: block; margin-top: .35rem; color: #68716d; font-size: .66rem; }
.key-status, .key-scope { padding: .18rem .38rem; font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.key-status-active { background: rgba(217,240,91,.45); color: #526218; }
.key-status-inactive { background: #e1e3e1; color: #66706b; }
.key-status-error { background: #f5dcd6; color: #8d382b; }
.key-scope { border: 1px solid rgba(23,32,29,.15); color: #66706b; }
.key-error { margin: .35rem 0 0; color: #a34335; font-size: .63rem; line-height: 1.4; }
.api-key-metrics { display: grid; gap: .15rem; color: #7b837f; font-size: .58rem; text-align: right; }
.api-key-actions { display: flex; gap: .6rem; }
.api-key-actions button { border: 0; padding: 0; background: transparent; color: #53605a; font: inherit; font-size: .62rem; cursor: pointer; }
.api-key-actions .danger-link { color: #a34335; }
.api-key-empty { padding: 1.5rem; background: rgba(255,255,255,.4); color: #747d79; font-size: .72rem; text-align: center; }
.api-key-form input:not([type="checkbox"]), .api-key-form select { width: 100%; border: 0; border-bottom: 1px solid #b5bcb8; border-radius: 0; background: transparent; padding: .7rem .1rem; font: inherit; font-size: .7rem; outline: none; }
.api-key-check, .api-key-weight { display: flex; align-items: center; gap: .5rem; color: #5f6964; font-size: .67rem; }
.api-key-weight input { max-width: 72px; margin-left: auto; }
.fix-scene-prompt-btn { border: 1px solid rgba(141,165,31,.38); background: rgba(217,240,91,.25); color: #526218; transition: background .2s ease; }
.fix-scene-prompt-btn:hover { background: rgba(217,240,91,.52); }

@media (max-width: 680px) {
    .api-key-row { grid-template-columns: 1fr; }
    .api-key-metrics { grid-template-columns: repeat(3, auto); text-align: left; }
}

.product-body {
    background:
        radial-gradient(circle at top left, rgba(17, 157, 203, 0.18), transparent 22%),
        radial-gradient(circle at bottom right, rgba(247, 182, 77, 0.18), transparent 24%),
        linear-gradient(180deg, #f4f8fc 0%, #eef4fb 36%, #f8fbfe 100%);
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(20px) saturate(135%);
    box-shadow: 0 16px 36px rgba(8, 17, 33, 0.08);
}

.nav-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(8, 17, 33, 0.96), rgba(17, 31, 58, 0.94));
    color: white;
}

.brand-chip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky-500), var(--sky-400));
    color: white;
    font-weight: 800;
}

.inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.84);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.action-primary,
.action-secondary,
.action-ghost,
.action-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 18px;
    padding: 13px 18px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.action-primary:hover,
.action-secondary:hover,
.action-ghost:hover,
.action-danger:hover {
    transform: translateY(-1px);
}

.action-primary {
    background: linear-gradient(135deg, var(--brand-950), var(--brand-800));
    color: white;
    box-shadow: 0 16px 32px rgba(8, 17, 33, 0.2);
}

.action-secondary {
    background: linear-gradient(135deg, var(--gold-500), #ffd071);
    color: var(--brand-950);
    box-shadow: 0 14px 28px rgba(247, 182, 77, 0.24);
}

.action-ghost {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
}

.action-danger {
    border: 1px solid rgba(249, 115, 96, 0.2);
    background: rgba(255, 241, 239, 0.9);
    color: #b03425;
}

.hero-panel,
.surface-panel,
.dashboard-panel,
.editor-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 36px;
    box-shadow: 0 18px 52px rgba(8, 17, 33, 0.09);
}

.hero-panel {
    padding: 36px;
    background:
        radial-gradient(circle at top right, rgba(60, 196, 238, 0.2), transparent 28%),
        radial-gradient(circle at bottom left, rgba(247, 182, 77, 0.16), transparent 24%),
        linear-gradient(145deg, rgba(8, 17, 33, 0.96), rgba(18, 38, 74, 0.94));
    color: white;
}

.surface-panel,
.dashboard-panel,
.editor-panel {
    background: var(--surface);
    backdrop-filter: blur(18px);
}

.dashboard-panel,
.editor-panel {
    padding: 28px;
}

.landing-panel {
    position: relative;
    overflow: hidden;
    border-radius: 38px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
        linear-gradient(135deg, rgba(216, 244, 255, 0.65), rgba(255, 243, 217, 0.35));
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(8, 17, 33, 0.08);
}

.landing-hero-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

@media (min-width: 1100px) {
    .landing-hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    }
}

.landing-stage {
    position: relative;
    min-height: 440px;
    border-radius: 34px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at top right, rgba(17, 157, 203, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(247, 182, 77, 0.18), transparent 26%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(239, 248, 255, 0.72));
    overflow: hidden;
}

.landing-stage::before {
    content: "";
    position: absolute;
    inset: -18%;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent),
        radial-gradient(circle, rgba(17, 157, 203, 0.12), transparent 56%);
    animation: aiSheen 10s linear infinite;
}

.landing-stage-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(17, 157, 203, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 157, 203, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
}

.ai-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(0.4px);
    animation: aiFloat 9s ease-in-out infinite;
}

.ai-orb.one {
    width: 260px;
    height: 260px;
    top: 54px;
    right: 70px;
    background: radial-gradient(circle, rgba(17, 157, 203, 0.32), rgba(17, 157, 203, 0.06) 68%, transparent 74%);
}

.ai-orb.two {
    width: 180px;
    height: 180px;
    bottom: 48px;
    left: 54px;
    background: radial-gradient(circle, rgba(247, 182, 77, 0.28), rgba(247, 182, 77, 0.06) 68%, transparent 76%);
    animation-duration: 12s;
}

.ai-orb.three {
    width: 88px;
    height: 88px;
    top: 110px;
    left: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(60, 196, 238, 0.08) 70%, transparent 76%);
    animation-duration: 7s;
}

.ai-ring {
    position: absolute;
    inset: 50% auto auto 50%;
    border-radius: 999px;
    border: 1px solid rgba(17, 157, 203, 0.18);
    transform: translate(-50%, -50%);
    animation: aiRotate 20s linear infinite;
}

.ai-ring.one {
    width: 280px;
    height: 280px;
}

.ai-ring.two {
    width: 380px;
    height: 380px;
    border-color: rgba(247, 182, 77, 0.18);
    animation-direction: reverse;
    animation-duration: 24s;
}

.ai-chip {
    position: absolute;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(14px);
    padding: 12px 14px;
    box-shadow: 0 14px 28px rgba(8, 17, 33, 0.08);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.ai-chip.one {
    top: 42px;
    left: 34px;
}

.ai-chip.two {
    right: 24px;
    bottom: 120px;
}

.ai-chip.three {
    left: 52px;
    bottom: 46px;
}

.landing-stage-card {
    position: absolute;
    right: 28px;
    bottom: 30px;
    width: min(360px, calc(100% - 56px));
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    padding: 22px;
    box-shadow: 0 20px 42px rgba(8, 17, 33, 0.1);
}

.landing-flow-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.landing-flow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.flat-grid {
    display: grid;
    gap: 22px;
}

@media (min-width: 980px) {
    .flat-grid.two {
        grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    }
}

.list-stack {
    display: grid;
    gap: 16px;
}

.list-row {
    display: grid;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.list-row:first-child {
    border-top: none;
    padding-top: 0;
}

.list-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(17, 157, 203, 0.1);
    color: #0f6f93;
    font-size: 13px;
    font-weight: 800;
}

.footer-shell {
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(8, 17, 33, 0.94);
    color: white;
    box-shadow: var(--shadow-lg);
}

.soft-grid {
    display: grid;
    gap: 18px;
}

.metric-card,
.feature-card,
.preview-card,
.auth-card,
.form-card,
.table-shell {
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow-md);
}

.metric-card,
.feature-card,
.preview-card,
.auth-card,
.form-card {
    padding: 22px;
}

.stat-value {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
}

.muted-copy {
    color: var(--muted);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #bfefff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.light-kicker {
    background: rgba(17, 157, 203, 0.08);
    color: #0f6f93;
}

.form-shell {
    max-width: 480px;
    width: 100%;
}

.auth-layout {
    display: grid;
    gap: 28px;
    align-items: start;
}

@media (min-width: 1024px) {
    .auth-layout {
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, 420px);
    }
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.product-input,
.product-textarea,
.product-select {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.98);
    padding: 14px 16px;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.product-input:focus,
.product-textarea:focus,
.product-select:focus {
    outline: none;
    border-color: rgba(17, 157, 203, 0.42);
    box-shadow: 0 0 0 4px rgba(17, 157, 203, 0.12);
}

.product-textarea {
    resize: vertical;
}

.workspace-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 1180px) {
    .workspace-grid {
        grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
        align-items: start;
    }

    .workspace-grid.form-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }
}

.workspace-sidebar,
.workspace-main {
    min-width: 0;
}

.workspace-grid.form-collapsed .workspace-sidebar {
    display: none;
}

.collapse-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.84);
    padding: 10px 14px;
    color: var(--ink);
    font-weight: 700;
}

.result-shell {
    min-height: 360px;
}

.form-summary-card {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    padding: 16px 18px;
    box-shadow: var(--shadow-md);
}

.workspace-grid.form-collapsed + .form-summary-card,
.form-summary-card.is-visible {
    display: flex;
}

.table-shell {
    overflow: hidden;
}

.table-shell table {
    width: 100%;
}

.table-shell thead {
    background: rgba(8, 17, 33, 0.04);
}

.table-shell tbody tr:hover {
    background: rgba(17, 157, 203, 0.03);
}

.flash-success,
.flash-error,
.flash-info {
    border-radius: 22px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.flash-success {
    border-color: rgba(15, 159, 110, 0.18);
    background: rgba(230, 255, 245, 0.92);
    color: #0a7a53;
}

.flash-error {
    border-color: rgba(249, 115, 96, 0.2);
    background: rgba(255, 241, 239, 0.95);
    color: #b03425;
}

.flash-info {
    border-color: rgba(17, 157, 203, 0.18);
    background: rgba(230, 247, 255, 0.95);
    color: #0f6f93;
}

.data-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(17, 157, 203, 0.08);
    color: #0f6f93;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
}

.footer-shell {
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(8, 17, 33, 0.94);
    color: white;
    box-shadow: var(--shadow-lg);
}

.footer-link {
    color: rgba(191, 239, 255, 0.86);
    transition: color 0.18s ease;
}

.footer-link:hover {
    color: white;
}

@keyframes aiFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -14px, 0) scale(1.04);
    }
}

@keyframes aiRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes aiSheen {
    0% {
        transform: translate3d(-12%, -8%, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(8%, 6%, 0) rotate(4deg);
    }
    100% {
        transform: translate3d(-12%, -8%, 0) rotate(0deg);
    }
}

@media (max-width: 767px) {
    .page-shell {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .hero-panel,
    .dashboard-panel,
    .editor-panel {
        padding: 22px;
        border-radius: 28px;
    }

    .top-nav {
        border-radius: 22px;
    }
}
