/* =====================================================================================================================
   DashTurbo  -  the site

   The product chrome: navigation, marketing pages, the build wizard, the member area, checkout and invoices.
   Dashboards themselves are styled by css/dash.css, per theme, and deliberately ignore the site theme - a dashboard
   is a designed document and looks the same to everyone who opens it.

   The look: bright white pages with big, living gradient shapes - coral into hot pink into violet - behind the
   moments that matter; deep night-purple bands with star dust and glowing dot waves for the technical sections;
   Josefin Sans headlines in deep indigo over Mulish text, small uppercase labels and the three-dot divider under
   every section title; white cards that float on soft shadows and light up in the gradient when touched; rounded
   gradient buttons that carry a little arrow tile. Everything rises into view as it scrolls in (js/turbo.js).
   css/turbo.css, loaded last, dresses the sections other stylesheets draw (Ask AI, export, live data) to match.
   ===================================================================================================================== */

:root {
    --coral: #FB5155;
    --pink: #F92A75;
    --violet: #8A3FFC;
    --purple: #6129AC;
    --flame: #FF9F43;

    --accent: #F92A75;
    --accent-2: #FB5155;
    --accent-light: #FF8DB5;
    --accent-soft: rgba(249, 42, 117, 0.09);
    --amber: #FF9F43;

    --bg: #FFFFFF;
    --bg-2: #F7F5FC;
    --bg-3: #ECE8F6;
    --card: #FFFFFF;
    --input: #F6F4FB;
    --ink: #1D165C;
    --ink-2: #605A80;
    --ink-3: #8C88A6;
    --muted: #B6B2CA;
    --line: rgba(29, 22, 92, 0.08);
    --line-2: rgba(29, 22, 92, 0.15);
    --head-fade: #C9C5DB;

    /* The night panels. */
    --panel: #18003A;
    --panel-2: #25104A;
    --panel-3: #331863;
    --panel-ink: #FFFFFF;
    --panel-mute: #BDB3DC;
    --panel-line: rgba(255, 255, 255, 0.09);
    --panel-line-2: rgba(255, 255, 255, 0.16);
    --panel-bg: radial-gradient(55% 65% at 90% 0%, rgba(249, 42, 117, 0.34), transparent 62%), radial-gradient(50% 65% at 6% 100%, rgba(138, 63, 252, 0.4), transparent 62%), #18003A;
    --panel-rules: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.6px) 0 0 / 26px 26px;

    /* Names the application scripts and css/dash.css rely on. */
    --brand: #F92A75;
    --brand-hover: #FB5155;
    --brand-2: #8A3FFC;
    --brand-3: #FF9F43;
    --brand-ink: #B3165A;
    --brand-tint: rgba(249, 42, 117, 0.08);
    --brand-line: rgba(249, 42, 117, 0.28);
    --grad: linear-gradient(135deg, #FB5155, #F92A75 52%, #8A3FFC);
    --grad-btn: linear-gradient(90deg, #FB5155 0%, #F92A75 50%, #FB5155 100%);
    --grad-violet: linear-gradient(135deg, #8A3FFC, #F92A75);
    --grad-text: linear-gradient(92deg, #FB5155, #F92A75 45%, #8A3FFC);
    --focus: rgba(249, 42, 117, 0.22);
    --good: #0E9F6E;
    --good-bg: rgba(14, 159, 110, 0.10);
    --warn: #B45309;
    --warn-bg: rgba(255, 159, 67, 0.16);
    --bad: #E0344B;
    --bad-bg: rgba(224, 52, 75, 0.09);

    --shadow-sm: 0 2px 6px rgba(29, 22, 92, 0.05);
    --shadow: 0 20px 50px -22px rgba(29, 22, 92, 0.28);
    --shadow-lg: 0 40px 90px -34px rgba(29, 22, 92, 0.4);
    --shadow-card: 0 12px 40px -12px rgba(29, 22, 92, 0.12);
    --shadow-pink: 0 18px 36px -14px rgba(249, 42, 117, 0.6);

    --r-sm: 6px;
    --r: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --pill: 999px;

    --font: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display: 'Josefin Sans', 'Mulish', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Menlo, monospace;
    --nav-h: 90px;

    --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='12' viewBox='0 0 70 12'%3E%3Cg fill='none' stroke-width='1.6'%3E%3Ccircle cx='6' cy='6' r='4' stroke='%23C9C5DB'/%3E%3Cpath d='M11 6h14' stroke='%23C9C5DB'/%3E%3Ccircle cx='35' cy='6' r='4' stroke='%23F92A75'/%3E%3Cpath d='M45 6h14' stroke='%23C9C5DB'/%3E%3Ccircle cx='64' cy='6' r='4' stroke='%23C9C5DB'/%3E%3C/g%3E%3C/svg%3E");
    --dots-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='12' viewBox='0 0 70 12'%3E%3Cg fill='none' stroke-width='1.6'%3E%3Ccircle cx='6' cy='6' r='4' stroke='%23FFFFFF' stroke-opacity='.35'/%3E%3Cpath d='M11 6h14' stroke='%23FFFFFF' stroke-opacity='.35'/%3E%3Ccircle cx='35' cy='6' r='4' stroke='%23FF5C93'/%3E%3Cpath d='M45 6h14' stroke='%23FFFFFF' stroke-opacity='.35'/%3E%3Ccircle cx='64' cy='6' r='4' stroke='%23FFFFFF' stroke-opacity='.35'/%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] {
    --accent: #FF4F93;
    --accent-2: #FF6A6E;
    --accent-soft: rgba(255, 79, 147, 0.13);
    --bg: #0E0524;
    --bg-2: #140A30;
    --bg-3: #1E1240;
    --card: #1A0F38;
    --input: #140A2E;
    --ink: #F6F3FF;
    --ink-2: #C6BEE2;
    --ink-3: #978FB9;
    --muted: #625A86;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.14);
    --head-fade: #3F3566;
    --panel: #1A0838;
    --panel-bg: radial-gradient(55% 65% at 90% 0%, rgba(249, 42, 117, 0.3), transparent 62%), radial-gradient(50% 65% at 6% 100%, rgba(138, 63, 252, 0.34), transparent 62%), #150630;

    --brand: #FF4F93;
    --brand-hover: #FF6FA3;
    --brand-ink: #FFB3CF;
    --brand-tint: rgba(255, 79, 147, 0.13);
    --good: #3DDC97;
    --good-bg: rgba(61, 220, 151, 0.12);
    --warn: #FF9F43;
    --warn-bg: rgba(255, 159, 67, 0.13);
    --bad: #FF6B7D;
    --bad-bg: rgba(255, 107, 125, 0.12);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
    --shadow-card: 0 14px 40px -14px rgba(0, 0, 0, 0.6);
    --dots: var(--dots-dark);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 16.5px;
    font-weight: 500;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.16; letter-spacing: -0.005em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 70px); }
h2 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 600; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.3; }
p { color: var(--ink-2); text-wrap: pretty; }
a { color: var(--accent); cursor: pointer; text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent-2); }
img, svg { max-width: 100%; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.fine { font-size: 13px; color: var(--ink-3); margin: 6px 0 14px; }
.center-cta { text-align: center; margin-top: 48px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

html.signed-out .auth-only, html.signed-in .guest-only { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.wrap.narrow { max-width: 960px; }

#app { flex: 1; }
.page { display: none; min-height: calc(100vh - 180px); padding-top: 120px; animation: pageIn 0.45s ease both; }
.page.active { display: block; }
#page-home, #page-login, #page-register, #page-forgot, #page-reset, #page-activate, .page:has(> .wrap > .page-top), .page.has-banner { padding-top: 0; }
html.embed-mode .page { padding-top: 0; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* The night panels share their surface: star dust fading in from the edges. */
.hero, .cta-band, .footer, .auth-wrap, .pricing-grid, .plan-hero, .own-theme-band { position: relative; isolation: isolate; }
.cta-band::after, .footer::after, .auth-wrap::after {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: var(--panel-rules);
    -webkit-mask: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000); mask: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000);
}


/* ---------------------------------------------------------------------------------------------------------------------
   BUTTONS  -  rounded gradient buttons; the big ones carry an arrow tile that slides on hover
   --------------------------------------------------------------------------------------------------------------------- */

.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; isolation: isolate;
    height: 52px; padding: 0 26px; border-radius: 8px; border: 1px solid transparent;
    font: 800 15px/1 var(--font); letter-spacing: 0.01em; cursor: pointer; white-space: nowrap; text-decoration: none !important;
    transition: background-position 0.5s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--grad-btn); background-size: 200% 100%; color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { background-position: 100% 0; color: #fff; transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(249, 42, 117, 0.75); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--pink); color: var(--pink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--card); border-color: var(--pink); color: var(--pink); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 18px 40px -16px rgba(24, 0, 58, 0.55); }
.btn-light:hover { color: var(--pink); transform: translateY(-2px); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.05); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; gap: 8px; border-radius: 7px; }
.btn-block { width: 100%; }

/* The arrow tile. */
.btn-lg.btn-primary, .btn-lg.btn-light, .btn-nav, .own-theme-band .btn, .plan-hero .btn { padding-right: 7px; gap: 16px; }
.btn-lg.btn-primary > i, .btn-lg.btn-light > i, .btn-nav > i, .own-theme-band .btn > i, .plan-hero .btn > i { display: none; }
.btn-lg.btn-primary::after, .btn-lg.btn-light::after, .btn-nav::after, .own-theme-band .btn::after, .plan-hero .btn::after {
    content: '\f061'; font: 900 14px/1 'Font Awesome 6 Pro'; width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.2); color: #fff;
    transition: transform 0.35s cubic-bezier(.3, 1.4, .5, 1), background 0.3s ease;
}
.btn-lg.btn-light::after { background: var(--grad); color: #fff; }
.btn-nav::after { width: 34px; height: 34px; font-size: 12px; border-radius: 5px; }
.btn-lg:hover::after, .btn-nav:hover::after, .own-theme-band .btn:hover::after, .plan-hero .btn:hover::after { transform: translateX(3px) rotate(-45deg); background: rgba(255, 255, 255, 0.3); }
.btn-lg.btn-light:hover::after { background: var(--grad); }

.icon-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
    color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
}
.icon-btn:hover { background: var(--card); color: var(--pink); border-color: var(--pink); }
.icon-btn .theme-sun { display: none; }
[data-theme="dark"] .icon-btn .theme-sun { display: inline-block; }
[data-theme="dark"] .icon-btn .theme-moon { display: none; }

/* The play button: a white disc with a gradient triangle and two rings pulsing out of it. */
.play-btn { display: inline-flex; align-items: center; gap: 16px; height: 58px; padding: 0 6px 0 0; border: 0; background: none; cursor: pointer; font: 800 15px/1.25 var(--font); color: var(--ink); text-align: left; transition: color 0.3s ease; }
.play-ring { position: relative; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; background: #fff; color: var(--pink);
    box-shadow: 0 14px 34px -10px rgba(249, 42, 117, 0.55); transition: transform 0.35s cubic-bezier(.3, 1.4, .5, 1); }
.play-ring i { margin-left: 3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.play-ring::before, .play-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(249, 42, 117, 0.45); animation: ringOut 2.4s ease-out infinite; }
.play-ring::after { animation-delay: 1.2s; }
@keyframes ringOut { from { transform: scale(1); opacity: 1; } to { transform: scale(1.75); opacity: 0; } }
.play-btn:hover { color: var(--pink); }
.play-btn:hover .play-ring { transform: scale(1.08); }
.play-btn.light { color: #fff; }
.play-btn.light .play-ring::before, .play-btn.light .play-ring::after { border-color: rgba(255, 255, 255, 0.6); }
[data-theme="dark"] .play-btn { color: #fff; }

/* Back to top, with the page's scroll progress drawn as a ring. */
.to-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
    color: #fff; font-size: 15px;
    background: radial-gradient(closest-side, #F92A75 80%, transparent 82%), conic-gradient(#FB5155 calc(var(--p, 0) * 1%), rgba(249, 42, 117, 0.18) 0);
    box-shadow: 0 14px 30px -10px rgba(249, 42, 117, 0.6);
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
html.embed-mode .to-top, html.dash-mode .to-top { display: none; }


/* ---------------------------------------------------------------------------------------------------------------------
   NAVIGATION  -  clear over the opening banner, white once the page scrolls under it
   --------------------------------------------------------------------------------------------------------------------- */

.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: var(--nav-h); transition: background 0.35s ease, height 0.35s ease, box-shadow 0.35s ease; }
.nav.solid { height: 76px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 12px 34px -18px rgba(29, 22, 92, 0.3); }
[data-theme="dark"] .nav.solid { background: rgba(14, 5, 36, 0.9); box-shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.8); }
.nav-inner { width: 100%; max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 36px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; flex-shrink: 0; }
.brand-emblem { display: block; width: 44px; height: 44px; filter: drop-shadow(0 8px 16px rgba(249, 42, 117, 0.35)); transition: transform 0.5s cubic-bezier(.3, 1.4, .5, 1); }
.brand:hover .brand-emblem { transform: rotate(-8deg) scale(1.06); }
.brand-name { font: 700 28px/1 var(--display); letter-spacing: -0.01em; padding-top: 5px; white-space: nowrap; }
.brand-name b { font-weight: 700; color: var(--ink); transition: color 0.3s ease; }
.brand-name i { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo { display: block; height: 36px; width: auto; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; color: var(--ink); font: 700 16px/1 var(--font); padding: 12px 14px; text-decoration: none; transition: color 0.25s ease; }
.nav-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad-btn); transform: scaleX(0); transform-origin: right; transition: transform 0.35s ease; }
.nav-links a:hover { color: var(--pink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--pink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-links + .nav-actions { margin-left: 18px; }
.nav-signin { color: var(--ink); font: 700 16px/1 var(--font); padding: 12px; }
.nav-signin:hover { color: var(--pink); }
.btn-nav { height: 48px; padding-left: 22px; font-size: 15px; }
.mobile-toggle { display: none; }

/* Clear over a banner: white words. On the home page the logo sits on white and the links on the gradient. */
.nav:not(.solid) .nav-links a, .nav:not(.solid) .nav-signin, .nav:not(.solid) .icon-btn { color: #fff; }
.nav:not(.solid) .icon-btn { border-color: rgba(255, 255, 255, 0.35); }
.nav:not(.solid) .icon-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.nav:not(.solid) .nav-links a::after { background: #fff; }
.nav:not(.solid) .nav-links a:hover, .nav:not(.solid) .nav-links a.active, .nav:not(.solid) .nav-signin:hover { color: #fff; }
.nav:not(.solid) .brand-name b { color: #fff; }
.nav:not(.solid) .brand-name i { background: linear-gradient(92deg, #FFB0B2, #FF8DB5 50%, #D9C2FF); -webkit-background-clip: text; background-clip: text; }
.nav:not(.solid) .account-btn { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
body:has(#page-home.active) .nav:not(.solid) .brand-name b { color: var(--ink); }
body:has(#page-home.active) .nav:not(.solid) .brand-name i { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; }
body:has(#page-home.active, .page.active .auth-wrap) .nav:not(.solid) :is(.nav-links a, .nav-signin, .icon-btn, .account-btn) { color: var(--ink); border-color: var(--line-2); }
body:has(#page-home.active) .nav:not(.solid) .nav-links a::after { background: var(--grad-btn); }
[data-theme="dark"] body:has(#page-home.active) .nav:not(.solid) :is(.nav-links a, .nav-signin, .icon-btn, .account-btn) { color: #fff; }
[data-theme="dark"] body:has(#page-home.active) .nav:not(.solid) .brand-name b { color: #fff; }

.nav-account { position: relative; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px 0 5px; border-radius: var(--pill); border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--ink); }
.account-btn .fa-chevron-down { font-size: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 800 13px/1 var(--font); }
.tier-pill { font: 800 10.5px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--pill); background: var(--accent-soft); color: var(--pink); }
.nav:not(.solid) .tier-pill { background: rgba(255, 255, 255, 0.18); color: #fff; }
.tier-pill.pro { background: var(--grad); color: #fff; }
.tier-pill.business { background: var(--flame); color: #1D165C; }
.account-menu {
    position: absolute; right: 0; top: calc(100% + 14px); width: 280px; padding: 8px; border-radius: 14px;
    background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-top: 3px solid var(--pink);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.25s ease; z-index: 60;
}
.account-menu.open { opacity: 1; visibility: visible; transform: none; }
.account-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account-menu-head strong { display: block; font: 700 16px/1.4 var(--display); color: var(--ink); }
.account-menu-head span { font-size: 13px; color: var(--ink-3); word-break: break-all; }
.account-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font: 700 14.5px/1.2 var(--font); text-decoration: none; transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease; }
.account-menu a i { width: 16px; text-align: center; color: var(--pink); }
.account-menu a:hover { background: var(--bg-2); color: var(--pink); padding-left: 16px; }
.account-menu a.danger, .mobile-menu a.danger, .account-menu a.danger i { color: var(--bad); }
.menu-rule { height: 1px; background: var(--line); margin: 6px 0; }

.mobile-menu {
    position: fixed; top: calc(var(--nav-h) - 4px); left: 12px; right: 12px; z-index: 49; padding: 8px 18px 14px; display: none;
    border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--pink); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 110px); overflow-y: auto;
}
.mobile-menu.open { display: block; animation: menuIn 0.3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu a { display: flex; align-items: center; gap: 14px; padding: 15px 4px; color: var(--ink); font: 700 17px/1.2 var(--font); text-decoration: none; }
.mobile-menu a + a { border-top: 1px solid var(--line); }
.mobile-menu a i { width: 18px; color: var(--pink); font-size: 14px; }

html.embed-mode .nav, html.embed-mode .footer, html.embed-mode .mobile-menu { display: none !important; }
html.dash-mode .footer { display: none; }


/* ---------------------------------------------------------------------------------------------------------------------
   SECTION FURNITURE  -  a small label, the title, the three-dot divider, a line of explanation
   --------------------------------------------------------------------------------------------------------------------- */

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 800 13px/1.4 var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--accent-soft); flex-shrink: 0; }
.eyebrow i { display: none; }

.section { position: relative; padding: 120px 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: block; max-width: 760px; margin: 0 0 60px; }
.section-head > h1, .section-head > h2 { margin-top: 16px; }
.section-head > h1::after, .section-head > h2::after { content: ''; display: block; width: 70px; height: 12px; margin-top: 22px; background: var(--dots) center / contain no-repeat; }
.section-head > p { margin-top: 22px; font-size: 17.5px; line-height: 1.7; max-width: 680px; }
.section-head.center, .section-head:not(.left):not(.page-top) { margin-left: auto; margin-right: auto; text-align: center; max-width: 820px; }
.section-head.center > h1::after, .section-head.center > h2::after, .section-head:not(.left) > h2::after { margin-left: auto; margin-right: auto; }
.section-head.center > p, .section-head:not(.left) > p { margin-left: auto; margin-right: auto; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left > h2::after { margin-left: 0; }
.section-head > .period-toggle { margin-top: 30px; }
.accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* A section head can carry a button beside the title. */
.section-head:has(> .head-btn) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; max-width: none; text-align: left; align-items: end; }
.section-head:has(> .head-btn) > * { grid-column: 1; }
.section-head:has(> .head-btn) > h2::after { margin-left: 0; }
.section-head:has(> .head-btn) > p { margin-left: 0; }
.section-head > .head-btn { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-bottom: 6px; }

/* Inner pages open on a banner: the title and its breadcrumb on the left, the emblem in its rings on the right, over the
   gradient night with a slanted foot. */
.page-top { position: relative; isolation: isolate; text-align: left; display: block; max-width: none; padding: 180px 0 130px; margin: 0 0 90px; color: rgba(255, 255, 255, 0.82); }
.page-top::before {
    content: ''; position: absolute; z-index: -2; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
    background: radial-gradient(40% 80% at 80% 50%, rgba(249, 42, 117, 0.45), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(138, 63, 252, 0.5), transparent 70%),
                linear-gradient(100deg, rgba(24, 0, 58, 0.85), rgba(24, 0, 58, 0.35) 70%), url(/images/banner-dashturbo.jpg) center / cover no-repeat, #18003A;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 0 100%);
}
.page-top::after {
    content: ''; position: absolute; z-index: -1; right: 10px; top: calc(50% - 150px); width: 290px; height: 290px; border-radius: 50%; pointer-events: none;
    background: url(/images/dashturbo-emblem.svg) center / 104px no-repeat,
                radial-gradient(circle, rgba(255, 255, 255, 0.12) 0 70px, transparent 71px 94px, rgba(255, 255, 255, 0.22) 95px 96px, transparent 97px 122px, rgba(255, 255, 255, 0.12) 123px 124px, transparent 125px),
                conic-gradient(from 20deg, transparent 0 70%, rgba(255, 141, 181, 0.55) 80%, transparent 90%);
    -webkit-mask: radial-gradient(circle, #000 0 145px, transparent 146px); mask: radial-gradient(circle, #000 0 145px, transparent 146px);
    animation: bannerFloat 7s ease-in-out infinite;
}
@keyframes bannerFloat { 50% { transform: translateY(-14px); } }
.page-top .eyebrow { display: none; }
.page-top h1 { color: #fff; font-size: clamp(40px, 4.8vw, 68px); font-weight: 700; line-height: 1.08; margin: 0 0 24px; max-width: 800px; text-shadow: 0 10px 40px rgba(24, 0, 58, 0.35); }
.page-top h1::after { display: none; }
.page-top h1 .accent, .page-top h1 em { background: linear-gradient(92deg, #FFB0B2, #FFD0E1); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.page-top p { color: rgba(255, 255, 255, 0.86); font-size: 18px; max-width: 660px; margin: 22px 0 0; }
.page-top .period-toggle { margin-top: 30px; }
.page-banner { padding: 180px 0 120px; margin-bottom: 70px; }
.page-banner h1 { font-size: clamp(40px, 4.6vw, 64px); }
@media (max-width: 1000px) { .page-top::after { display: none; } }

/* The breadcrumb under a banner's title. */
.crumbs { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 8px; font: 700 15px/1 var(--font); color: #fff;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.crumbs a { color: rgba(255, 255, 255, 0.8); cursor: pointer; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs a .fa-house { color: #FF8DB5; margin-right: 4px; }
.crumbs > i { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.crumbs span { color: #FFB0CB; }

/* Where a banner carries the title, the page's own heading steps aside. */
.has-banner .page-head > div > h1, .has-banner .create-head h1, .has-banner .checkout-summary > h1 { display: none; }
.has-banner .create-head { justify-content: center; }
.has-banner .create-wrap, .has-banner .checkout-wrap, .has-banner .invoice-wrap { padding-top: 0; }
.has-banner .member-layout { padding-top: 0; }


/* The widget editor's "Other" switch (render.js openEditor) */
.ed-other { display: flex; align-items: flex-start; gap: 10px; margin: -2px 0 16px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.ed-other input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }
.ed-other b { color: var(--ink); font-weight: 600; }
.ed-other small { display: block; font-size: 12.5px; }

/* Power BI and Tableau marks (images/powerbi.svg, images/tableau.svg) as icons that take the text colour and size, like
   Font Awesome's: <i class="bi-icon bi-powerbi"></i>. Inlined so they are there the moment a page or an animation needs them. */
.bi-icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; background-color: currentColor;
    -webkit-mask: var(--bi) center / contain no-repeat; mask: var(--bi) center / contain no-repeat; }
.bi-icon::before { content: none !important; }
.bi-powerbi { --bi: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHRpdGxlPlBvd2VyIEJJPC90aXRsZT48cGF0aCBkPSJNMTMuNTAxIDE2aC03LjQ5OGMwIDAtMCAwLTAgMC0wLjY5IDAtMS4yNSAwLjU1OS0xLjI1IDEuMjUgMCAwIDAgMCAwIDB2MCAxMi40OTZjMCAwIDAgMCAwIDAgMCAwLjY5IDAuNTU5IDEuMjUgMS4yNSAxLjI1IDAgMCAwIDAgMCAwaDguNzQ3di0xMy43NDZjMC0wLjY5LTAuNTU5LTEuMjUtMS4yNS0xLjI1djB6TTE5Ljc0OSA4LjUwMmgtNy40OThjMCAwLTAgMC0wIDAtMC42OSAwLTEuMjUgMC41NTktMS4yNSAxLjI1IDAgMCAwIDAgMCAwdjAgNS42MjNoMi40OTljMS4wMzUgMC4wMDEgMS44NzMgMC44NCAxLjg3NCAxLjg3NHYxMy43NDZoNS42MjN2LTIxLjI0NGMwLTAuNjktMC41NTktMS4yNS0xLjI1LTEuMjV2MHpNMjcuMjQ3IDIuMjU0djI3LjQ5MmMwIDAgMCAwIDAgMCAwIDAuNjktMC41NTkgMS4yNS0xLjI1IDEuMjUgMCAwLTAgMC0wIDBoLTQuMzc0di0yMS4yNDRjLTAuMDAxLTEuMDM1LTAuODQtMS44NzMtMS44NzQtMS44NzRoLTIuNDk5di01LjYyM2MwLTAgMC0wIDAtMCAwLTAuNjkgMC41NTktMS4yNSAxLjI1LTEuMjVoNy40OThjMC42OSAwIDEuMjUgMC41NTkgMS4yNSAxLjI1IDAgMCAwIDAgMCAwdjB6Ii8+PC9zdmc+"); }
.bi-tableau { --bi: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48dGl0bGU+VGFibGVhdTwvdGl0bGU+PHBhdGggZD0iTTI0Mi42OSwzNDAuM2gyNi42MlYyNjcuN2g2N1YyNDEuODhoLTY3di03Mi42SDI0Mi42OXY3Mi42SDE3Ni41NFYyNjcuN2g2Ni4xNVoiLz48cGF0aCBkPSJNMTE5LjI2LDQ0NS4xOGgyMi41OVYzODAuNjRoNTkuN1YzNjAuNDdoLTU5LjdWMjk1LjEzSDExOS4yNnY2NS4zNGgtNTkuN3YyMC4xN2g1OS43WiIvPjxwYXRoIGQ9Ik0zNzAuMTUsMjEyaDIyLjU5VjE0Ny41aDYwLjVWMTI4LjEzaC02MC41VjYyLjc5SDM3MC4xNXY2NS4zNGgtNTkuN1YxNDcuNWg1OS43WiIvPjxwYXRoIGQ9Ik0yNDYuNzIsNDk2aDE5LjM2VjQ1MGg0MS4xNVY0MzMuMDhIMjY2LjA4di00NkgyNDYuNzJ2NDZIMjA2LjM5VjQ1MGg0MC4zM1oiLz48cGF0aCBkPSJNMTIwLjA3LDIxMmgyMVYxNDYuNjloNjAuNTFWMTI4LjEzSDE0MVY2Mi43OWgtMjF2NjUuMzRINTkuNTZ2MTguNTZoNjAuNTFaIi8+PHBhdGggZD0iTTQzNS43MiwzMDguODRoMTkuMzZWMjYzLjY2SDQ5NlYyNDUuOTJINDU1LjA4VjIwMC43NEg0MzUuNzJ2NDUuMThIMzk1LjM5djE3Ljc0aDQwLjMzWiIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTM3MC4xNSw0NDUuMThoMjIuNTlWMzgwLjY0aDYwLjVWMzYwLjQ3aC02MC41VjI5NS4xM0gzNzAuMTV2NjUuMzRoLTU5Ljd2MjAuMTdoNTkuN1oiLz48cGF0aCBkPSJNMzA3LDc0LjA4VjYwLjM3SDI2Ni42NlYxNkgyNTIuMTRWNjAuMzdIMjExLjgxVjc0LjA4aDQwLjMzdjQ0LjM3aDE0LjUyVjc0LjA4Wk01Ni4xMSwzMDUuNjFINzAuNjNWMjYxLjI0SDExMVYyNDcuNTNINzAuNjNWMjA0SDU2LjExdjQzLjU2SDE2djE0LjUyTDU2LjExLDI2MloiLz48L3N2Zz4="); }


/* ---------------------------------------------------------------------------------------------------------------------
   CREATE  -  the build wizard
   --------------------------------------------------------------------------------------------------------------------- */

.create-wrap { padding-top: 30px; padding-bottom: 110px; }
.create-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.create-head h1 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.045em; }
.stepper { list-style: none; display: flex; gap: 4px; padding: 5px; border-radius: var(--pill); background: var(--card); }
.stepper li { display: flex; align-items: center; gap: 9px; font: 600 14px/1 var(--font); color: var(--ink-3); padding: 9px 16px 9px 9px; border-radius: var(--pill); }
.stepper li span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-2); font-size: 12.5px; }
.stepper li.active { color: #fff; background: var(--accent); }
.stepper li.active span { background: #fff; color: var(--accent); }
.stepper li.done { color: var(--ink); }
.stepper li.done span { background: var(--good); color: #fff; }

.dropzone {
    position: relative; display: block; text-align: center; padding: 80px 24px 72px; border-radius: 22px;
    border: 2px dashed rgba(123, 47, 247, 0.3); background: var(--card); cursor: pointer; transition: all 0.3s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #FFF5F9; }
[data-theme="dark"] .dropzone:hover, [data-theme="dark"] .dropzone.drag { background: var(--bg-3); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-icon { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--accent); background: radial-gradient(circle at 30% 25%, #fff, #FFE4EF 72%); box-shadow: 0 18px 36px -16px rgba(123, 47, 247, 0.5); transition: transform 0.4s cubic-bezier(.3, 1.3, .5, 1); }
.dropzone:hover .dz-icon { transform: translateY(-6px) scale(1.05); }
.dropzone h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 10px; }
.dropzone .link { color: var(--accent); font-weight: 600; }
.dz-limit { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.dz-progress { display: none; max-width: 420px; margin: 24px auto 0; }
.dropzone.busy .dz-progress { display: block; }
.dz-bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-bottom: 8px; }
.dz-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; }
.dz-progress > span { font-size: 14px; color: var(--ink-3); }

.samples { margin-top: 40px; }
.samples-label { display: flex; align-items: center; gap: 10px; font: 600 13.5px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.samples-label::before { content: '\f1b2'; font: 900 13px/1 'Font Awesome 6 Pro'; }
.sample-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sample-card { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-align: left; padding: 20px; border-radius: 18px; border: 0; background: var(--card); cursor: pointer; font: inherit; color: var(--ink); transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s ease; }
.sample-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sample-card i { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, #FFE4EF 72%); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sample-card strong { font: 600 17px/1.3 var(--font); letter-spacing: -0.015em; }
.sample-card span { font-size: 13.5px; color: var(--ink-3); }

.assurance { display: flex; justify-content: center; gap: 12px 30px; flex-wrap: wrap; margin-top: 34px; font-size: 14.5px; color: var(--ink-2); }
.assurance i { color: var(--accent); margin-right: 8px; }

.review-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.review-warnings .notice { margin-bottom: 10px; }
.review-joins { margin-bottom: 24px; }
.join-list { display: grid; gap: 10px; }
.join-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 14px; background: var(--card); font-size: 15px; }
.join-item code { font: 500 12.5px/1.3 var(--mono); background: var(--bg-2); padding: 4px 8px; border-radius: 6px; color: var(--ink); }
.join-item .arrow { color: var(--accent); }
.join-item .cov { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--good); }
.join-item .cov.weak { color: var(--warn); }

.review-tables { display: grid; gap: 14px; }
.rt { border-radius: 18px; background: var(--card); overflow: hidden; }
.rt.excluded { opacity: 0.55; }
.rt-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; }
.rt-head .rt-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.rt-head h3 { font-size: 19px; }
.rt-head .rt-meta { font-size: 13.5px; color: var(--ink-3); }
.rt-head .rt-toggle { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.rt-body { display: none; border-top: 1px solid var(--line); }
.rt.open .rt-body { display: block; }
.rt-notes { padding: 12px 22px; font-size: 14px; color: var(--ink-2); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.rt-notes i { color: var(--accent); margin-right: 6px; }
.col-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.col-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--pill); background: var(--bg-2); font-size: 13px; color: var(--ink); }
.col-chip .t { font: 600 9.5px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 6px; border-radius: var(--pill); background: var(--bg-3); color: var(--ink-3); }
.col-chip .t.number, .col-chip .t.integer { background: rgba(123, 47, 247, 0.12); color: var(--accent); }
.col-chip .t.date, .col-chip .t.datetime { background: rgba(124, 58, 237, 0.12); color: #A23BEC; }
.col-chip .t.string { background: var(--good-bg); color: var(--good); }
.col-chip .t.boolean { background: var(--warn-bg); color: var(--warn); }
.col-chip .k { color: var(--warn); font-size: 11px; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--bg-3); border-radius: 999px; transition: 0.25s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.25s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(20px); }

.template-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 20px 0 28px; }
.template-picker .tmpl-card.selected { box-shadow: 0 0 0 3px var(--accent); }
.template-picker .tmpl-card.locked { opacity: 0.6; }

.instructions-box { background: var(--card); border-radius: 18px; padding: 24px; }
.instructions-box label { display: block; font: 600 16px/1.4 var(--font); color: var(--ink); margin-bottom: 12px; }
.instructions-box label i { color: var(--accent); margin-right: 8px; }
.build-bar { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.build-stage { max-width: 600px; margin: 40px auto; text-align: center; }
.build-orb { position: relative; width: 128px; height: 128px; margin: 0 auto 36px; border-radius: 50%; background: var(--panel-bg); display: flex; align-items: center; justify-content: center; color: var(--amber); font-size: 40px; box-shadow: 0 30px 60px -20px rgba(123, 47, 247, 0.6); animation: orbPulse 2.4s ease-in-out infinite; }
.orb-ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(123, 47, 247, 0.35); animation: orbRing 2.4s ease-out infinite; }
.orb-ring.r2 { animation-delay: 1.2s; }
@keyframes orbPulse { 50% { transform: scale(1.04); } }
@keyframes orbRing { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.build-status { font-size: 16.5px; color: var(--ink-2); margin: 12px 0 22px; min-height: 26px; }
.build-meter { height: 8px; border-radius: 999px; background: var(--card); overflow: hidden; margin-bottom: 28px; }
.build-meter span { display: block; height: 100%; width: 3%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.8s ease; }
.build-checklist { list-style: none; text-align: left; display: grid; gap: 12px; max-width: 440px; margin: 0 auto 16px; }
.build-checklist li { display: flex; gap: 14px; align-items: center; color: var(--ink-3); font-size: 15.5px; }
.build-checklist li.done { color: var(--ink); }
.build-checklist li.done i { color: var(--good); }
.build-checklist li.now { color: var(--ink); font-weight: 600; }
.build-checklist li.now i { color: var(--accent); }


/* ---------------------------------------------------------------------------------------------------------------------
   MEMBER AREA
   --------------------------------------------------------------------------------------------------------------------- */

.member-layout { max-width: 1320px; margin: 0 auto; padding: 20px 40px 110px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.member-nav { position: sticky; top: 120px; align-self: start; display: grid; gap: 2px; padding: 10px; border-radius: 20px; background: var(--card); }
.member-nav .mn-plan { padding: 20px; border-radius: 14px; background: var(--panel-bg); color: var(--panel-mute); margin-bottom: 8px; }
.member-nav .mn-plan span { font-size: 12.5px; color: var(--panel-mute); display: block; }
.member-nav .mn-plan strong { display: block; font: 600 26px/1.2 var(--font); letter-spacing: -0.03em; color: #fff; margin: 2px 0; }
.member-nav .mn-plan a { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--amber); }
.member-nav > a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--ink-2); font: 500 15.5px/1.2 var(--font); text-decoration: none; transition: all 0.2s ease; }
.member-nav > a i { width: 18px; text-align: center; color: var(--ink-3); }
.member-nav > a:hover { background: var(--bg-2); color: var(--ink); }
.member-nav > a.active { background: var(--accent-soft); color: var(--accent); }
.member-nav > a.active i { color: var(--accent); }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -0.045em; }
.page-head h2 { font-size: 30px; }

.panel { background: var(--card); border-radius: 20px; padding: 34px; margin-bottom: 20px; }
.panel h2 { font-size: 26px; margin-bottom: 22px; }
.panel-danger { box-shadow: inset 0 0 0 1px rgba(210, 60, 60, 0.3); }
.panel-danger p { margin-bottom: 18px; }
.sub-head { font-size: 18px; margin: 24px 0 16px; padding-top: 22px; border-top: 1px dashed var(--line-2); }

.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.dcard { position: relative; border-radius: 20px; background: var(--card); padding: 10px; overflow: hidden; transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.4s ease; cursor: pointer; }
.dcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dcard-thumb { height: 160px; position: relative; overflow: hidden; border-radius: 12px; }
.dcard-body { padding: 16px 10px 4px; }
.dcard-body h3 { font-size: 18px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard-body p { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcard-foot { display: flex; align-items: center; gap: 10px; padding: 10px 10px 8px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.dcard-menu { position: absolute; top: 18px; right: 18px; z-index: 2; }
.dcard-menu > button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(22, 5, 47, 0.7); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.dcard-menu .menu { right: 0; top: 40px; }
.dcard-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 270px; border: 2px dashed rgba(123, 47, 247, 0.3); background: transparent; color: var(--ink); font: 600 17px/1 var(--font); }
.dcard-new i { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, #FFE4EF 72%); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 70px 24px; border-radius: 22px; background: var(--card); }
.empty-state i { font-size: 30px; color: var(--accent); margin-bottom: 22px; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, #FFE4EF 72%); display: inline-flex; align-items: center; justify-content: center; }
.empty-state h2 { font-size: 34px; margin-bottom: 10px; }
.empty-state p { margin: 0 auto 24px; max-width: 520px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font); padding: 6px 10px; border-radius: var(--pill); background: var(--bg-2); color: var(--ink-2); }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.brand { background: var(--accent-soft); color: var(--accent); }

.menu { position: absolute; min-width: 200px; padding: 6px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: none; z-index: 30; }
.menu.open { display: block; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--ink-2); font: 500 14.5px/1.2 var(--font); cursor: pointer; text-align: left; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--bg-2); color: var(--ink); }
.menu a i, .menu button i { width: 16px; text-align: center; color: var(--accent); }
.menu .danger, .menu .danger i { color: var(--bad); }

.plan-hero { overflow: hidden; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; padding: 40px 44px; border-radius: 22px; color: var(--panel-mute); margin-bottom: 20px; background: var(--panel-bg); }
.plan-hero span { font-size: 13.5px; color: var(--accent-light); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.plan-hero h2 { color: #fff; font-size: clamp(40px, 4.4vw, 64px); letter-spacing: -0.045em; margin: 8px 0 10px; }
.plan-hero p { color: var(--panel-mute); }
.plan-hero .btn { height: 56px; }
.usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.usage { padding: 26px; border-radius: 20px; background: var(--card); }
.usage span { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.usage strong { display: block; font: 600 42px/1.1 var(--font); letter-spacing: -0.045em; color: var(--ink); margin: 10px 0 14px; }
.usage strong small { font: 500 14px var(--font); color: var(--ink-3); letter-spacing: 0; }
.meter { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.meter.warn span { background: var(--amber); }
.meter.full span { background: var(--bad); }


/* ---------------------------------------------------------------------------------------------------------------------
   FORMS
   --------------------------------------------------------------------------------------------------------------------- */

.field { margin-bottom: 18px; }
.field label { display: block; font: 600 14px/1.4 var(--font); color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea, textarea, .input {
    width: 100%; height: 54px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; background: var(--input);
    color: var(--ink); font: 400 16px/1.4 var(--font); transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; outline: none;
}
textarea, .field textarea { height: auto; padding: 14px 20px; resize: vertical; }
.field input:focus, .field select:focus, textarea:focus, .input:focus { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px var(--focus); }
.field.has-error input { border-color: var(--bad); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: 2fr 1.3fr 1fr; }
.field-row { display: flex; justify-content: flex-end; margin: -6px 0 18px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); margin: 8px 0 22px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.form-card { width: 100%; max-width: 480px; padding: 46px 42px; border-radius: 22px; background: var(--card); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7); margin: 0 auto; }
.form-header { text-align: center; margin-bottom: 30px; }
.form-header h1, .form-header h2 { font-size: 36px; letter-spacing: -0.04em; margin: 22px 0 8px; }
.form-icon { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, #FFE4EF 72%); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 16px 34px -14px rgba(123, 47, 247, 0.5); }
.form-card .btn-block { height: 56px; margin-top: 6px; }
.form-footer { text-align: center; margin-top: 24px; font-size: 15px; color: var(--ink-3); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.55; }
.notice i { margin-top: 4px; }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.notice-info { background: var(--accent-soft); color: var(--brand-ink); }
.notice-good { background: var(--good-bg); color: var(--good); }
.notice-bad { background: var(--bad-bg); color: var(--bad); }


/* ---------------------------------------------------------------------------------------------------------------------
   TABLES
   --------------------------------------------------------------------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { text-align: left; font: 600 12px/1.2 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.data-table td { padding: 16px 14px; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); vertical-align: middle; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .empty { text-align: center; color: var(--ink-3); padding: 36px 12px; }


/* ---------------------------------------------------------------------------------------------------------------------
   CHECKOUT / INVOICE
   --------------------------------------------------------------------------------------------------------------------- */

.checkout-wrap { padding-top: 30px; padding-bottom: 110px; }
.checkout-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.checkout-summary h1 { font-size: clamp(40px, 5vw, 68px); letter-spacing: -0.045em; }
.order-card { margin: 24px 0; padding: 28px; border-radius: 20px; background: var(--card); }
.order-line { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.order-line strong { display: block; font: 600 18px/1.3 var(--font); color: var(--ink); }
.order-line span { font-size: 14px; color: var(--ink-3); }
.order-total { display: flex; justify-content: space-between; padding-top: 16px; font: 600 24px/1.2 var(--font); letter-spacing: -0.03em; color: var(--ink); }
.order-tax { display: flex; justify-content: space-between; padding-top: 8px; font-size: 14px; color: var(--ink-3); }
.order-switch { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.checkout-assure { list-style: none; display: grid; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.checkout-assure i { color: var(--accent); width: 22px; }
.pay-card { padding: 38px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-lg); }
.pay-card h2 { font-size: 28px; margin-bottom: 8px; }
#PayPalButtons { margin: 24px 0 16px; min-height: 60px; }

.success-card { max-width: 680px; margin: 40px auto; text-align: center; padding: 56px 44px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-lg); }
.success-icon { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--good); background: var(--good-bg); }
.receipt { display: grid; gap: 12px; margin: 28px auto; max-width: 420px; text-align: left; }
.receipt div { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.receipt span { color: var(--ink-3); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* Buying without an account (js/action.js enterCheckout, guestSuccess, enterActivate) */
.checkout-account { margin: 18px 0 20px; padding: 18px; border-radius: 16px; background: var(--input); border: 1px solid var(--line); }
.checkout-account label { display: block; margin-bottom: 8px; font: 600 14.5px/1.3 var(--font); color: var(--ink); }
.checkout-account input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); font: 500 15px/1 var(--font); color: var(--ink); }
.checkout-account input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
.checkout-account.has-error input { border-color: var(--bad); }
.ca-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: var(--brand-ink); background: var(--brand-tint); border: 1px solid var(--brand-line); }
.ca-note i { margin-top: 3px; color: var(--accent); }
.ca-note strong { font-weight: 650; }
.ca-signin { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }
.ca-signin a { color: var(--accent); font-weight: 600; cursor: pointer; }
[data-theme="dark"] .ca-note { color: #FFC2D9; }

.activate-panel { margin: 26px auto 8px; max-width: 560px; padding: 22px 22px 18px; border-radius: 18px; text-align: left; background: var(--warn-bg); border: 1px solid rgba(255, 159, 67, 0.45); }
.ap-head { display: flex; gap: 14px; align-items: flex-start; }
.act-ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; font-size: 18px; color: #1F1400; background: linear-gradient(135deg, #FFD2A1, #FF9F43 60%, #F2711C); box-shadow: 0 10px 22px -10px rgba(255, 159, 67, 0.9); }
.act-ico.warn { color: #fff; background: linear-gradient(135deg, #F87171, #D23C3C); box-shadow: 0 10px 22px -10px rgba(210, 60, 60, 0.8); }
.ap-head h3 { margin: 2px 0 4px; font: 650 18px/1.3 var(--font); color: var(--ink); }
.ap-head p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ap-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: ap; display: grid; gap: 9px; }
.ap-steps li { position: relative; padding-left: 36px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); counter-increment: ap; }
.ap-steps li::before { content: counter(ap); position: absolute; left: 0; top: -1px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font: 700 12.5px/1 var(--font); color: #fff; background: var(--accent); }
.ap-steps b { color: var(--ink); }
.ap-fine { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(168, 101, 0, 0.35); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.ap-fine i { margin-right: 6px; color: var(--warn); }
.ap-fine a { color: var(--accent); font-weight: 600; cursor: pointer; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.success-card .lede { margin: 0 auto; color: var(--ink-2); }
.form-icon.ok { color: #fff; background: radial-gradient(circle at 30% 25%, #6EE7B7, #0E9F6E 72%); box-shadow: 0 16px 34px -14px rgba(14, 159, 110, 0.7); }
#page-activate .notice { margin-bottom: 18px; }
#LoginNotice .notice { margin-bottom: 18px; }
#LoginNotice a { font-weight: 600; cursor: pointer; text-decoration: underline; }

.invoice-wrap { padding-top: 30px; padding-bottom: 110px; max-width: 900px; }
.invoice-tools { display: flex; justify-content: space-between; margin-bottom: 22px; }
.invoice-doc { background: #fff; color: #111827; border-radius: 18px; box-shadow: var(--shadow); padding: 52px 56px; font-size: 14.5px; line-height: 1.6; }
.invoice-doc h1 { color: #111827; font-size: 34px; }
.invoice-doc p, .invoice-doc td, .invoice-doc span { color: #374151; }
.inv-top { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.inv-brand { display: flex; align-items: center; gap: 10px; font: 700 24px/1 var(--display); color: #111827; margin-bottom: 16px; }
.inv-brand .w-dashboard { color: #1D165C; }
.inv-brand .w-ace { color: #D97706; }
.inv-meta { text-align: right; }
.inv-meta div { margin-bottom: 4px; }
.inv-meta strong { color: #111827; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; padding: 22px 0; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
.inv-parties h4 { font: 600 11px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: #7B2FF7; margin-bottom: 12px; }
.inv-parties strong { color: #111827; }
.inv-lines { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.inv-lines th { text-align: left; font: 600 11px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: #6B7280; padding: 12px 0; border-bottom: 1px solid #D1D5DB; }
.inv-lines td { padding: 15px 0; border-bottom: 1px solid #F3F4F6; }
.inv-lines .r { text-align: right; }
.inv-totals { margin-left: auto; width: 300px; }
.inv-totals div { display: flex; justify-content: space-between; padding: 7px 0; }
.inv-totals .grand { border-top: 2px solid #111827; margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 17px; color: #111827; }
.inv-paid { display: inline-flex; gap: 8px; align-items: center; margin-top: 30px; padding: 10px 16px; border-radius: 999px; background: #ECFDF5; color: #047857 !important; font-weight: 600; }
.inv-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid #E5E7EB; font-size: 12.5px; color: #6B7280; }


/* ---------------------------------------------------------------------------------------------------------------------
   SUPPORT / PROSE
   --------------------------------------------------------------------------------------------------------------------- */

.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 110px; }
.support-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 34px 28px 38px; border-radius: 20px; background: var(--card); transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.4s ease; }
.support-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.support-item i { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--accent); background: #FFE4EF; }
[data-theme="dark"] .support-item i { background: var(--accent-soft); }
.support-item strong { display: block; font: 600 22px/1.3 var(--font); letter-spacing: -0.02em; color: var(--ink); word-break: break-word; margin-bottom: 6px; }
.support-item span { font-size: 15.5px; color: var(--ink-2); }

.contact-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; align-items: stretch; margin-bottom: 110px; }
.contact-form { padding: 50px 50px 46px; margin: 0; }
.contact-form h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 500; letter-spacing: -0.04em; margin-bottom: 34px; }
.contact-form .field label { font-size: 15px; font-weight: 500; color: var(--ink-3); margin-bottom: 0; }
.contact-form .field input, .contact-form .field textarea { background: transparent; border: 0; border-bottom: 1px dashed var(--line-2); border-radius: 0; padding-left: 0; padding-right: 0; height: 48px; }
.contact-form .field textarea { height: auto; padding-top: 12px; }
.contact-form .field input:focus, .contact-form .field textarea:focus { box-shadow: none; border-bottom: 1.5px solid var(--accent); background: transparent; }
.contact-form .form-row { gap: 30px; }
.contact-form .btn { margin-top: 12px; }
.contact-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 46px 42px; border-radius: 20px; color: var(--panel-mute);
    background: linear-gradient(180deg, rgba(60, 16, 110, 0.55), rgba(22, 5, 47, 0.95) 70%), url(/images/banner-dashturbo.jpg) 30% center / cover, #16052F; }
.contact-cta .eyebrow { color: var(--accent-light); }
.contact-cta h3 { color: #fff; font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.contact-cta p { color: rgba(255, 255, 255, 0.78); margin-bottom: 10px; }
.contact-cta .btn { align-self: flex-start; }

.prose-page { padding-bottom: 110px; }
.prose { font-size: 17.5px; line-height: 1.8; }
.prose h2 { font-size: 30px; margin: 46px 0 14px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 16px; }
.prose ul { padding-left: 22px; }
.prose li::marker { color: var(--accent); }


/* ---------------------------------------------------------------------------------------------------------------------
   OVERLAYS  -  toasts, dialogs, modals, loading
   --------------------------------------------------------------------------------------------------------------------- */

.loading-overlay { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; display: flex; gap: 12px; align-items: center;
    padding: 14px 22px; border-radius: 999px; background: rgba(22, 5, 47, 0.92); color: #fff; font-size: 15px; backdrop-filter: blur(10px); box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.5); transition: all 0.3s ease; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast i { font-size: 15px; }
.toast.success i { color: #3DDC97; }
.toast.error i { color: #FF6B6B; }
.toast.warning i { color: var(--amber); }
.toast.info i { color: var(--accent-light); }

.modal-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(22, 5, 47, 0.5); backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; opacity: 0; transition: opacity 0.25s ease; }
.modal-overlay.show { opacity: 1; }
.modal { width: 100%; max-width: 580px; background: var(--card); color: var(--ink); border-radius: 22px; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.6); transform: translateY(14px) scale(0.99); transition: transform 0.3s cubic-bezier(.2, .7, .2, 1); }
.modal-overlay.show .modal { transform: none; }
.modal.wide { max-width: 980px; }
.modal.xl { max-width: 1200px; }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 22px 28px; border-bottom: 1px dashed var(--line-2); }
.modal-head h2 { font-size: 24px; letter-spacing: -0.03em; font-weight: 600; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 26px 28px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px; border-top: 1px dashed var(--line-2); flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
.dialog-message { color: var(--ink-2); margin-bottom: 18px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ask-chip { display: inline-flex; align-items: center; gap: 8px; text-align: left; padding: 9px 14px; border-radius: 999px; border: 0; background: var(--bg-2); color: var(--ink-2); font: 500 14px/1.35 var(--font); cursor: pointer; transition: all 0.2s ease; }
.ask-chip i { color: var(--accent); font-size: 12px; }
.ask-chip:hover { background: var(--accent-soft); color: var(--accent); }
.dialog-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.modal.danger .dialog-icon { background: var(--bad-bg); color: var(--bad); }


/* ---------------------------------------------------------------------------------------------------------------------
   THEME CARDS, PICKER, SHOWCASE, PRICING VALUE STRIP
   --------------------------------------------------------------------------------------------------------------------- */

.theme-card { border-radius: 16px; border: 0; box-shadow: 0 1px 2px rgba(29, 22, 92, 0.06); }
.theme-card:hover, .theme-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.theme-card.current { box-shadow: 0 0 0 3px var(--accent); }
.theme-new { border: 2px dashed rgba(123, 47, 247, 0.3); }
.theme-filters button { border-radius: 999px; border: 0; background: var(--card); color: var(--ink-2); font: 600 14px/1 var(--font); padding: 11px 18px; }
.theme-filters button.active { background: var(--accent); color: #fff; box-shadow: none; }
.theme-filters button.new { background: var(--accent-soft); color: var(--accent); }

.value-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 60px 0 10px; }
.value-strip div { display: flex; flex-direction: column; gap: 10px; padding: 32px 30px; border-radius: 20px; background: var(--card); }
.value-strip i { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 22px; margin-bottom: 20px; background: radial-gradient(circle at 30% 25%, #fff, #FFE4EF 72%); }
.value-strip strong { font: 600 22px/1.25 var(--font); letter-spacing: -0.02em; color: var(--ink); }
.value-strip span { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }

.theme-filters.centered { justify-content: center; margin-bottom: 28px; }
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.showcase-head > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.showcase-head strong { font: 600 34px/1.1 var(--font); letter-spacing: -0.04em; color: var(--ink); }
.showcase-head span:not(.chip) { color: var(--ink-3); font-size: 15.5px; }
.showcase-head p { margin: 0; font-size: 14px; color: var(--ink-3); }
.template-live { padding: 10px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.showcase-grid { margin-top: 50px; }
.own-theme-band { overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 70px 0 110px; padding: 54px 56px; border-radius: 22px; color: var(--panel-mute); background: var(--panel-bg); }
.own-theme-band h2 { font-size: clamp(32px, 3.8vw, 54px); margin: 0 0 14px; color: #fff; }
.own-theme-band h2 i { color: var(--amber); margin-right: 10px; font-size: 0.7em; }
.own-theme-band p { margin: 0; color: var(--panel-mute); max-width: 680px; }
.own-theme-band .btn { flex-shrink: 0; height: 56px; }
.picker-grid { margin: 20px 0 30px; }


/* ---------------------------------------------------------------------------------------------------------------------
   THEMES PAGE  —  the quick picks above the live preview
   --------------------------------------------------------------------------------------------------------------------- */

.quick-themes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.quick-themes button { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
    color: var(--ink); font: 600 15px/1 var(--font); cursor: pointer; transition: transform 0.3s cubic-bezier(.3, 1.3, .5, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.quick-themes button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-themes button.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 14px 30px -14px rgba(123, 47, 247, 0.6); }
.qt-swatch { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(29, 22, 92, 0.12); flex-shrink: 0; }
.quick-themes em { font: 700 10px/1 var(--font); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: #FF9F43; color: #1D165C; }
.quick-themes .qt-all { padding: 0 20px; background: var(--accent); border-color: var(--accent); color: #fff; }
.quick-themes .qt-all:hover { background: var(--accent-2); }
.showcase-grid-head { margin-top: 110px; scroll-margin-top: 110px; }
.showcase-grid-head .section-head { margin-bottom: 22px; }
.showcase-grid-head + .showcase-grid { margin-top: 10px; }



/* ---------------------------------------------------------------------------------------------------------------------
   DOT WAVES  -  a field of dots rolling like the sea at the foot of the night sections (js/turbo.js draws them)
   --------------------------------------------------------------------------------------------------------------------- */

.dot-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; z-index: -1; pointer-events: none; -webkit-mask: linear-gradient(180deg, transparent, #000 40%); mask: linear-gradient(180deg, transparent, #000 40%); }


/* ---------------------------------------------------------------------------------------------------------------------
   IN VIEW  -  things rise and fade in as they scroll into view (js/turbo.js adds .rv, then .in)
   --------------------------------------------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    /* translate and scale, not transform, so a card's own hover lift still works once it is in */
    .rv { opacity: 0; translate: 0 46px; transition: opacity 0.9s cubic-bezier(.2, .8, .2, 1) var(--rv-d, 0s), translate 0.9s cubic-bezier(.2, .8, .2, 1) var(--rv-d, 0s), scale 0.9s cubic-bezier(.2, .8, .2, 1) var(--rv-d, 0s),
        transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.5s ease, background 0.4s ease, border-color 0.3s ease; }
    .rv.rv-l { translate: -60px 0; }
    .rv.rv-r { translate: 60px 0; }
    .rv.rv-z { translate: none; scale: 0.8; }
    .rv.in { opacity: 1; translate: none; scale: none; }
}




/* ---------------------------------------------------------------------------------------------------------------------
   SIGN IN / REGISTER  -  a split screen: the brand on the night to the left, the form on white to the right
   --------------------------------------------------------------------------------------------------------------------- */

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); background: var(--bg); }
.auth-aside { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 56px 50px; color: var(--panel-mute); background: var(--panel-bg); }
.auth-aside::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--panel-rules); -webkit-mask: linear-gradient(160deg, #000, transparent 55%); mask: linear-gradient(160deg, #000, transparent 55%); }
.aa-blob { position: absolute; z-index: -1; width: 620px; height: 560px; right: -260px; bottom: -200px; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: var(--grad); opacity: 0.55; animation: authMorph 14s ease-in-out infinite; }
.aa-ring { position: absolute; z-index: -1; width: 300px; height: 300px; right: 40px; top: 60px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.2); animation: spin 40s linear infinite; }
@keyframes authMorph { 0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; } 50% { border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%; } }
.auth-aside .brand-name b { color: #fff; }
.auth-aside .brand-name i { background: linear-gradient(92deg, #FF8A8E, #FF6FA3 50%, #C9A7FF); -webkit-background-clip: text; background-clip: text; }
.aa-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); font: 800 12px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: #FFB0CB; }
.aa-copy h2 { margin: 22px 0 26px; color: #fff; font-size: clamp(32px, 3.2vw, 46px); max-width: 520px; }
.aa-copy h2 em { font-style: normal; background: linear-gradient(92deg, #FF9F43, #FB5155 40%, #FF4F93); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aa-copy ul { list-style: none; display: grid; gap: 14px; }
.aa-copy li { display: flex; align-items: center; gap: 12px; font: 700 16px/1.4 var(--font); color: #fff; }
.aa-copy li i { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--grad); font-size: 11px; }
.aa-card { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; padding: 14px 20px 14px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px); animation: bannerFloat 6s ease-in-out infinite; }
.aa-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff; font-size: 19px; }
.aa-card b { display: block; font: 700 24px/1 var(--display); color: #fff; padding-top: 3px; }
.aa-card small { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.auth-wrap > .form-card { align-self: center; justify-self: center; width: 100%; max-width: 500px; margin: 0; padding: 130px 40px 60px; background: none; box-shadow: none; }
.auth-wrap .form-header { text-align: left; }
.auth-wrap .form-icon { margin: 0; }
.auth-wrap .form-header h1 { font-size: 40px; }
.auth-wrap .field input { height: 56px; background: var(--input); }


/* ---------------------------------------------------------------------------------------------------------------------
   THE CLOSING CALL  -  the gradient, blobs and rings, the emblem, and a white button
   --------------------------------------------------------------------------------------------------------------------- */

.cta-band { overflow: hidden; padding: 130px 0 180px; text-align: center; background: linear-gradient(115deg, #6129AC 0%, #8A3FFC 25%, #F92A75 65%, #FB5155 100%); }
.cta-band::after { -webkit-mask: radial-gradient(60% 80% at 50% 50%, transparent 40%, #000); mask: radial-gradient(60% 80% at 50% 50%, transparent 40%, #000); }
.cta-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cb-blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; background: rgba(255, 255, 255, 0.1); animation: authMorph 12s ease-in-out infinite; }
.cb-blob.b1 { width: 520px; height: 480px; left: -160px; top: -200px; }
.cb-blob.b2 { width: 440px; height: 420px; right: -140px; bottom: -220px; animation-delay: -5s; background: rgba(24, 0, 58, 0.18); }
.cb-ring { position: absolute; width: 180px; height: 180px; right: 12%; top: 18%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.35); animation: spin 30s linear infinite; }
.cb-ring.r2 { width: 110px; height: 110px; left: 10%; right: auto; top: auto; bottom: 26%; border-style: solid; border-color: rgba(255, 255, 255, 0.2); }
.cta-bg .hero-streaks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.cta-band .wrap { position: relative; max-width: 920px; }
.cta-emblem { display: inline-block; margin-bottom: 26px; padding: 12px; border-radius: 24px; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 30px 60px -24px rgba(24, 0, 58, 0.6); animation: bannerFloat 5s ease-in-out infinite; }
.cta-emblem img { display: block; width: 72px; height: 72px; }
.cta-band h2 { color: #fff; font-size: clamp(38px, 4.8vw, 66px); font-weight: 700; margin-bottom: 22px; text-shadow: 0 10px 40px rgba(24, 0, 58, 0.3); }
.cta-band p { color: rgba(255, 255, 255, 0.9); font-size: 19px; line-height: 1.65; max-width: 720px; margin: 0 auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 30px; margin-top: 40px; }


/* ---------------------------------------------------------------------------------------------------------------------
   FOOTER  -  a contact strip over the night, the columns, the name in giant letters
   --------------------------------------------------------------------------------------------------------------------- */

.footer { background: var(--panel-bg); color: var(--panel-mute); padding: 0; overflow: visible; }
body:has(#page-home.active) .footer { margin-top: -80px; }
.footer::after { border-radius: 0; }
.footer-strip { position: relative; z-index: 2; top: -60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 24px; align-items: center; padding: 28px 30px; border-radius: 22px; background: var(--card); box-shadow: 0 40px 80px -40px rgba(24, 0, 58, 0.6); }
.fs-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fs-item + .fs-item { padding-left: 24px; border-left: 1px solid var(--line); }
.fs-item > span { width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--pink); font-size: 18px; }
.fs-item small { display: block; font: 800 11px/1.2 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.fs-item b { display: block; margin-top: 4px; font: 700 16px/1.25 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.footer-strip .btn-light { background: var(--grad-btn); background-size: 200% 100%; color: #fff; box-shadow: var(--shadow-pink); }
.footer-strip .btn-light::after { background: rgba(255, 255, 255, 0.2); }
.footer-strip .btn-light:hover { color: #fff; background-position: 100% 0; }
.footer .brand-name b { color: #fff; }
.footer .brand-name i { background: linear-gradient(92deg, #FF8A8E, #FF6FA3 50%, #C9A7FF); -webkit-background-clip: text; background-clip: text; }
.footer .brand-emblem { width: 48px; height: 48px; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 50px; padding-top: 20px; }
.footer-brand p { margin-top: 26px; font-size: 16px; line-height: 1.75; max-width: 400px; color: var(--panel-mute); }
.footer-social { display: flex; gap: 10px; margin-top: 28px; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.3s ease, transform 0.3s ease; }
.footer-social a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-3px); }
.footer-col h4 { position: relative; font: 700 21px/1.2 var(--display); color: #fff; margin-bottom: 30px; padding-bottom: 16px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-btn); }
.footer-col a { position: relative; display: block; width: fit-content; color: var(--panel-mute); font-size: 16px; font-weight: 600; margin-bottom: 14px; transition: color 0.25s ease, padding 0.3s ease; }
.footer-col a::before { content: '\f105'; position: absolute; left: 0; top: 50%; transform: translateY(-50%); font: 900 11px/1 'Font Awesome 6 Pro'; color: var(--pink); opacity: 0; transition: opacity 0.3s ease; }
.footer-col a:hover { color: #fff; padding-left: 14px; }
.footer-col a:hover::before { opacity: 1; }
.footer-giant { position: relative; z-index: 0; display: flex; justify-content: center; margin: 60px 0 -0.24em; overflow: hidden; font: 700 clamp(90px, 17vw, 270px)/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; pointer-events: none; user-select: none; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12); }
.footer-giant span:last-child { background: linear-gradient(180deg, rgba(249, 42, 117, 0.5), rgba(249, 42, 117, 0) 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1.5px rgba(255, 141, 181, 0.25); }
.footer-legal { display: flex; gap: 22px; order: 2; }
.footer-legal a { color: var(--panel-mute); cursor: pointer; font-weight: 600; }
.footer-legal a + a { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.footer-legal a:hover { color: #fff; }
.footer-copy { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14.5px; color: var(--panel-mute); }
.footer-copy > span:nth-child(2) { order: 3; flex-basis: 100%; font-size: 13.5px; opacity: 0.75; }
.footer .dot-wave { opacity: 0.55; }
.footer > .wrap:not(.footer-strip) { position: relative; }
.footer { isolation: isolate; }
.footer-grid, .footer-giant, .footer-copy { overflow-x: clip; }


/* ---------------------------------------------------------------------------------------------------------------------
   SUPPORT, ABOUT AND THE LEGAL PAGES
   --------------------------------------------------------------------------------------------------------------------- */

.support-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; margin-bottom: 110px; }
.support-side .section-head { margin-bottom: 26px; }
.support-grid { display: grid; gap: 12px; margin: 0 0 20px; grid-template-columns: minmax(0, 1fr); }
.support-item { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 18px 20px; }
.support-item i { width: 54px !important; height: 54px !important; font-size: 19px !important; flex-shrink: 0; border-radius: 14px !important; }
.support-item strong { font: 700 17px/1.3 var(--display); margin-bottom: 2px; }
.support-item span { font-size: 14.5px; }
.support-item:hover { transform: translateX(6px); }
.contact-cta { min-height: 280px; }
.contact-form { position: sticky; top: 100px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.about-grid .prose p:first-child { font: 600 22px/1.6 var(--display); color: var(--ink); }
.about-facts { position: sticky; top: 110px; display: grid; gap: 12px; padding: 24px; border-radius: 22px; background: var(--panel-bg); color: var(--panel-mute); box-shadow: 0 40px 80px -40px rgba(24, 0, 58, 0.7); }
.about-facts > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding-bottom: 12px; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); }
.about-facts i { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--grad); color: #fff; font-size: 16px; }
.about-facts b { font: 700 20px/1.2 var(--display); color: #fff; padding-top: 3px; }
.about-facts span { font-size: 13.5px; line-height: 1.45; }
.about-facts .btn { margin-top: 6px; }

/* Legal pages carry a contents list beside the text (js/turbo.js builds it from the headings) */
.prose-page.has-toc { max-width: 1180px; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 60px; align-items: start; }
.toc { position: sticky; top: 110px; display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-card); }
.toc b { margin: 0 8px 10px; font: 800 11.5px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.toc a { padding: 9px 10px; border-radius: 9px; font: 700 14px/1.35 var(--font); color: var(--ink-2); border-left: 3px solid transparent; transition: all 0.25s ease; }
.toc a:hover { background: var(--bg-2); color: var(--ink); }
.toc a.on { background: var(--accent-soft); color: var(--pink); border-left-color: var(--pink); }
.prose h2 { scroll-margin-top: 100px; }


/* ---------------------------------------------------------------------------------------------------------------------
   THE BUILD WIZARD AND THE MEMBER AREA  -  a connected stepper, the samples beside the drop zone, a night rail
   --------------------------------------------------------------------------------------------------------------------- */

.stepper { position: relative; gap: 0; padding: 0; background: none; box-shadow: none; }
.stepper li { position: relative; flex-direction: column; gap: 8px; min-width: 110px; padding: 0 10px; background: none !important; color: var(--ink-3); font-size: 13.5px; }
.stepper li::before { content: ''; position: absolute; top: 18px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 3px; border-radius: 3px; background: var(--bg-3); }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.active::before { background: var(--grad-btn); }
.stepper li span { width: 38px; height: 38px; font-size: 14px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line-2); color: var(--ink-3); }
.stepper li.active { color: var(--ink); }
.stepper li.active span { background: var(--grad); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft), 0 10px 20px -8px rgba(249, 42, 117, 0.7); }
.stepper li.done span { background: var(--ink); color: #fff; box-shadow: none; }

#UploadPane { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 26px; align-items: stretch; }
#UploadPane .dropzone { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
#UploadPane .samples { margin: 0; padding: 26px; border-radius: 18px; background: var(--bg-2); }
#UploadPane .sample-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
#UploadPane .assurance { grid-column: 1 / -1; margin-top: 10px; }

.member-nav { background: var(--panel-bg); padding: 12px; }
.member-nav > a { color: var(--panel-mute); }
.member-nav > a i { color: rgba(255, 255, 255, 0.45); }
.member-nav > a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.member-nav > a.active { background: var(--grad); color: #fff; }
.member-nav > a.active i { color: #fff; }
.member-nav .mn-plan { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }


/* ---------------------------------------------------------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------------------------------------------------------- */

@media (max-width: 1240px) {
    .nav-inner { gap: 20px; }
    .nav-links a { padding: 12px 10px; font-size: 15px; }
    .nav-links a::after { left: 10px; right: 10px; }
}

@media (max-width: 1100px) {
    .value-strip { grid-template-columns: minmax(0, 1fr); }
    .section-head:has(> .head-btn) { grid-template-columns: minmax(0, 1fr); }
    .section-head > .head-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 26px; }
    .support-layout, .about-grid, .legal-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-form, .about-facts, .toc { position: static; }
    .footer-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-strip .btn { grid-column: 1 / -1; justify-self: center; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .auth-wrap { grid-template-columns: minmax(0, 1fr); }
    .auth-aside { display: none; }
    .auth-wrap > .form-card { padding-top: 130px; }
    #UploadPane { grid-template-columns: minmax(0, 1fr); }
    #UploadPane .dropzone { grid-row: auto; }
}

@media (max-width: 900px) {
    :root { --nav-h: 74px; }
    .nav.solid { height: 70px; }
    .nav-inner { padding: 0 16px 0 18px; gap: 10px; }
    .nav-links { display: none; }
    .mobile-toggle { display: inline-flex; }
    .btn-nav { width: 46px; height: 46px; padding: 0; gap: 0; }
    .btn-nav span { display: none; }
    .btn-nav > i { display: inline-block; }
    .btn-nav::after { display: none; }
    .usage-grid { grid-template-columns: minmax(0, 1fr); }
    .member-layout { grid-template-columns: minmax(0, 1fr); padding-top: 10px; gap: 20px; }
    .member-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
    .member-nav .mn-plan { display: none; }
    .member-nav > a { white-space: nowrap; }
    .checkout-grid { grid-template-columns: minmax(0, 1fr); }
    .inv-top, .inv-parties { grid-template-columns: 1fr; flex-direction: column; }
    .inv-meta { text-align: left; }
    .invoice-doc { padding: 30px 24px; }
    .own-theme-band { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
    .footer-strip { grid-template-columns: minmax(0, 1fr); }
    .fs-item + .fs-item { padding-left: 0; border-left: 0; }
}

@media (max-width: 720px) {
    .wrap { padding: 0 18px; }
    .nav-signin { display: none; }
    .tier-pill { display: none; }
    .brand-name { font-size: 24px; }
    .brand-emblem { width: 38px; height: 38px; }
    .page { padding-top: 100px; }
    .section { padding: 84px 0; }
    .section-head { margin-bottom: 44px; }
    .section-head > p { font-size: 16.5px; }
    .cta-band { padding: 90px 0 150px; }
    .cta-band p { font-size: 17px; }
    .cta-actions .btn { width: 100%; justify-content: space-between; padding-left: 24px; }
    .page-top { padding: 140px 0 100px; margin-bottom: 50px; }
    .page-top::before { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); }
    .page-banner { padding: 130px 0 90px; margin-bottom: 36px; }
    .crumbs { font-size: 14px; padding: 8px 14px; }
    .form-row, .form-row.three { grid-template-columns: 1fr; gap: 0; }
    .auth-wrap > .form-card { padding: 110px 20px 50px; }
    .stepper li { min-width: 0; font-size: 0; padding: 0 6px; gap: 0; }
    .stepper li span { font-size: 13px; }
    .stepper li.active { font-size: 12.5px; gap: 6px; }
    .panel { padding: 22px 16px; border-radius: 14px; }
    .footer-strip { padding: 20px; top: -40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .footer-legal { gap: 14px; }
    .footer-legal a + a { padding-left: 14px; }
    .inv-totals { width: 100%; }
    .to-top { right: 14px; bottom: 14px; width: 52px; height: 52px; }
    .compare .table-scroll { padding: 6px 14px; }
    .compare-table th, .compare-table td { padding: 12px 8px; font-size: 13.5px; }
    .compare-table thead th { font-size: 17px; }
    .contact-form { padding: 32px 22px; }
    .contact-form .form-row { gap: 0; }
    .contact-cta { padding: 34px 24px; }
    .member-layout { padding-left: 12px; padding-right: 12px; }
    .create-wrap, .checkout-wrap, .invoice-wrap { padding-left: 12px; padding-right: 12px; }
    .template-live { padding: 0; border-radius: 14px; }
    .pricing-checkout { margin-top: 60px; }
    .pricing-guest .panel { padding: 26px 16px; }
    .quick-themes button { height: 42px; font-size: 14px; }
    .qt-swatch { width: 26px; height: 26px; }
    .about-grid .prose p:first-child { font-size: 19px; }
}

@media (max-width: 440px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Light / dark moves into the menu on a phone held upright. */
.mobile-menu .mobile-theme { display: none; }
@media (max-width: 720px) and (orientation: portrait) {
    .nav .nav-theme { display: none; }
    .mobile-menu .mobile-theme { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    .page, .page-top::after, .aa-blob, .aa-ring, .aa-card, .cb-blob, .cb-ring, .cta-emblem, .play-ring::before, .play-ring::after { animation: none !important; }
}


/* ---------------------------------------------------------------------------------------------------------------------
   PRINT  -  invoices and dashboards print clean
   --------------------------------------------------------------------------------------------------------------------- */

@media print {
    .nav, .footer, .mobile-menu, .no-print, .toast, .modal-overlay, .to-top { display: none !important; }
    body { background: #fff; }
    .page { animation: none; padding-top: 0; }
    .invoice-doc { box-shadow: none; border: 0; padding: 0; }
    .invoice-wrap { padding: 0; max-width: none; }
}
