/* Account area design system (sign in, sign up, dashboard, renew). Namespace: au-.
   Tokens first; every component below reads them. Dark theme only. */

:root {
    --au-bg: #0B1020;
    --au-bg-raised: #111931;
    --au-surface: #151E36;
    --au-surface-2: #1B2642;
    --au-border: rgba(255, 255, 255, 0.08);
    --au-border-strong: rgba(255, 255, 255, 0.16);
    --au-text: #EEF2FA;
    --au-text-2: #A9B4CC;
    --au-text-3: #73809C;
    --au-accent: #5AE271;
    --au-accent-ink: #06240D;
    --au-accent-soft: rgba(90, 226, 113, 0.14);
    --au-blue: #6D93FF;
    --au-blue-soft: rgba(109, 147, 255, 0.16);
    --au-warn: #FFC45C;
    --au-warn-soft: rgba(255, 196, 92, 0.14);
    --au-danger: #FF7A7A;
    --au-danger-soft: rgba(255, 122, 122, 0.14);
    --au-font: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    --au-font-display: "Oxanium", var(--au-font);
    --au-s1: 4px; --au-s2: 8px; --au-s3: 12px; --au-s4: 16px; --au-s5: 24px; --au-s6: 32px; --au-s7: 48px; --au-s8: 64px;
    --au-r-sm: 8px; --au-r: 14px; --au-r-lg: 20px;
    --au-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --au-ease: 160ms ease-out;
}

/* ---------------------------------------------------------------- shell */
html.au-html, body.au-body {
    margin: 0;
    padding: 0;
    background: var(--au-bg);
    color: var(--au-text);
    font-family: var(--au-font);
    font-size: 15px;
    line-height: 22px;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
}

/* The texture lives on body::before; the body itself stays transparent so it can show. */
body.au-body { overflow-x: hidden; background: transparent; }

/* Background texture: two soft brand glows, a faint dot grid and a grain layer. All CSS and
   inline SVG, no image files; sits behind everything and never moves with the content. */
body.au-body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 600px at 8% -10%, rgba(90, 226, 113, 0.20), transparent 60%),
        radial-gradient(1000px 700px at 100% 0%, rgba(109, 147, 255, 0.26), transparent 60%),
        radial-gradient(800px 500px at 50% 110%, rgba(109, 147, 255, 0.14), transparent 60%),
        radial-gradient(1400px 900px at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
    background-color: var(--au-bg);
}

body.au-body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.34; mix-blend-mode: soft-light;
    /* Grit: fine grain plus a coarser speckle, both from SVG noise; no image files. */
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.35'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='360'><filter id='s'><feTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='2' seed='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 -0.3'/></filter><rect width='100%' height='100%' filter='url(%23s)'/></svg>");
    background-size: 220px 220px, 360px 360px;
}

body.au-body > .au-shell { position: relative; z-index: 0; }

.au-shell { display: flex; flex-direction: column; min-height: 100vh; }

.au-main { flex: 1 0 auto; width: 100%; }

.au-container { max-width: 1120px; margin: 0 auto; padding: 0 var(--au-s5); }

.au-body *:focus-visible { outline: 2px solid var(--au-blue); outline-offset: 2px; border-radius: 4px; }

.au-body a { color: var(--au-blue); text-decoration: none; }
.au-body a:hover { text-decoration: underline; }

.au-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- top bar */
.au-topbar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(17, 25, 49, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--au-border);
}

.au-topbar-inner {
    display: flex; align-items: center; gap: var(--au-s4);
    height: 60px; max-width: 1120px; margin: 0 auto; padding: 0 var(--au-s5);
}

.au-brand { display: flex; align-items: center; flex: 0 0 auto; }
.au-brand img { height: 40px; width: auto; display: block; }

.au-nav { display: flex; align-items: center; gap: var(--au-s1); margin-left: var(--au-s3); overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.au-nav::-webkit-scrollbar { display: none; }

.au-nav a, .au-nav button {
    color: var(--au-text-2); font: 500 14px/20px var(--au-font);
    padding: 8px 10px; border-radius: var(--au-r-sm); white-space: nowrap;
    background: none; border: 0; cursor: pointer; text-decoration: none;
    transition: color var(--au-ease), background var(--au-ease);
}
.au-nav a:hover, .au-nav button:hover { color: var(--au-text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.au-nav a.au-current { color: var(--au-text); box-shadow: inset 0 -2px 0 var(--au-accent); border-radius: 0; }

.au-topbar-actions { display: flex; align-items: center; gap: var(--au-s2); margin-left: auto; flex: 0 0 auto; }

/* ---------------------------------------------------------------- footer */
.au-footer { border-top: 1px solid var(--au-border); background: var(--au-bg-raised); margin-top: var(--au-s8); }
.au-footer-inner { max-width: 1120px; margin: 0 auto; padding: var(--au-s5); display: flex; flex-wrap: wrap; gap: var(--au-s2) var(--au-s5); color: var(--au-text-3); font-size: 13px; line-height: 18px; }
.au-footer-inner a { color: var(--au-text-3); }
.au-footer-inner a:hover { color: var(--au-text-2); }

/* ---------------------------------------------------------------- type */
.au-h1 { font: 700 26px/32px var(--au-font); letter-spacing: -0.01em; margin: 0 0 var(--au-s2); }
.au-h2 { font: 600 20px/28px var(--au-font); margin: 0; }
.au-lead { color: var(--au-text-2); font-size: 15px; line-height: 22px; margin: 0 0 var(--au-s5); }
.au-muted { color: var(--au-text-3); }
.au-small { font-size: 13px; line-height: 18px; }
.au-eyebrow { font: 600 12px/16px var(--au-font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--au-text-3); }

/* ---------------------------------------------------------------- buttons */
.au-body .au-btn, .au-body .au-btn-ghost, .au-body .au-btn-link {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--au-s2);
    min-height: 44px; padding: 0 18px; border-radius: 10px;
    font: 600 15px/20px var(--au-font); cursor: pointer; text-decoration: none;
    transition: background var(--au-ease), border-color var(--au-ease), transform var(--au-ease), color var(--au-ease);
    white-space: nowrap;
}
.au-body .au-btn { background: var(--au-accent); color: var(--au-accent-ink); border: 1px solid transparent; }
.au-body .au-btn:hover { background: #6EF083; color: var(--au-accent-ink); text-decoration: none; }
.au-btn:active { transform: translateY(1px); }
.au-btn:disabled { opacity: 0.55; cursor: default; }
.au-body .au-btn-ghost { background: transparent; color: var(--au-text); border: 1px solid var(--au-border-strong); }
.au-body .au-btn-ghost:hover { border-color: var(--au-text-2); background: rgba(255, 255, 255, 0.04); color: var(--au-text); text-decoration: none; }
.au-body .au-btn-link { background: none; border: 0; color: var(--au-blue); padding: 0 4px; min-height: 32px; font-weight: 500; }
.au-btn-link:hover { text-decoration: underline; }
.au-btn-block { width: 100%; }
.au-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* ---------------------------------------------------------------- cards */
.au-card {
    background: var(--au-surface); border: 1px solid var(--au-border); border-radius: var(--au-r);
    padding: var(--au-s5); box-shadow: var(--au-shadow); min-width: 0;
}
.au-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--au-s3); margin-bottom: var(--au-s4); }
.au-card-foot { margin-top: var(--au-s4); color: var(--au-text-3); font-size: 13px; line-height: 18px; }

.au-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--au-s4); }
.au-span-2 { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- hero */
.au-hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: var(--au-s6);
    padding: var(--au-s6);
}
.au-hero::before {
    content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(90, 226, 113, 0.14), transparent 70%); pointer-events: none;
}
.au-hero-tone-warn::before { background: radial-gradient(closest-side, rgba(255, 196, 92, 0.14), transparent 70%); }
.au-hero-tone-danger::before { background: radial-gradient(closest-side, rgba(255, 122, 122, 0.14), transparent 70%); }
.au-hero > * { position: relative; }
.au-hero .au-h1 { font-size: 28px; line-height: 34px; margin-top: var(--au-s3); }
.au-hero-actions { display: flex; flex-wrap: wrap; gap: var(--au-s3); margin-top: var(--au-s5); }

.au-stat { background: var(--au-surface-2); border: 1px solid var(--au-border); border-radius: var(--au-r); padding: var(--au-s5); }
.au-stat-label { font: 600 12px/16px var(--au-font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--au-text-3); }
.au-stat-value { font: 700 32px/38px var(--au-font-display); margin: var(--au-s1) 0 var(--au-s3); letter-spacing: -0.01em; }
.au-stat-value-sm { font-size: 24px; line-height: 30px; }
.au-progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.au-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--au-accent); transition: width 300ms ease-out; }
.au-progress-warn > span { background: var(--au-warn); }
.au-progress-danger > span { background: var(--au-danger); }
.au-stat-row { display: flex; justify-content: space-between; gap: var(--au-s3); margin-top: var(--au-s2); color: var(--au-text-2); font-size: 13px; line-height: 18px; }
.au-stat-meta { display: flex; flex-wrap: wrap; gap: var(--au-s2) var(--au-s4); margin-top: var(--au-s4); font-size: 14px; }
.au-stat-meta strong { font-weight: 600; }

/* ---------------------------------------------------------------- badges + notices */
.au-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    font: 600 12px/16px var(--au-font); background: rgba(255, 255, 255, 0.08); color: var(--au-text-2); white-space: nowrap;
}
.au-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.au-badge-ok { background: var(--au-accent-soft); color: var(--au-accent); }
.au-badge-info { background: var(--au-blue-soft); color: var(--au-blue); }
.au-badge-warn { background: var(--au-warn-soft); color: var(--au-warn); }
.au-badge-danger { background: var(--au-danger-soft); color: var(--au-danger); }

.au-notice {
    display: flex; gap: var(--au-s3); align-items: flex-start;
    padding: var(--au-s3) var(--au-s4); border-radius: 10px; margin: 0 0 var(--au-s4);
    background: var(--au-blue-soft); border-left: 3px solid var(--au-blue); font-size: 14px; line-height: 20px;
}
.au-notice-ok { background: var(--au-accent-soft); border-left-color: var(--au-accent); }
.au-notice-warn { background: var(--au-warn-soft); border-left-color: var(--au-warn); }
.au-notice-danger { background: var(--au-danger-soft); border-left-color: var(--au-danger); }
.au-notice svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.au-notice ul { margin: 0; padding-left: 18px; }

/* ---------------------------------------------------------------- forms */
.au-field { margin-bottom: var(--au-s4); }
.au-label, .au-field label.au-label { display: block; font: 500 13px/18px var(--au-font); color: var(--au-text-2); margin-bottom: 6px; }
.au-input, .au-select {
    width: 100%; min-height: 44px; padding: 10px 14px; box-sizing: border-box;
    background: var(--au-surface-2); color: var(--au-text); border: 1px solid var(--au-border-strong); border-radius: 10px;
    font: 400 15px/22px var(--au-font); transition: border-color var(--au-ease), box-shadow var(--au-ease);
}
.au-input::placeholder { color: var(--au-text-3); }
.au-input:focus, .au-select:focus { outline: none; border-color: var(--au-blue); box-shadow: 0 0 0 3px rgba(109, 147, 255, 0.25); }
.au-input[readonly] { color: var(--au-text-2); }
.au-input.input-validation-error { border-color: var(--au-danger); }
.au-input-code { font: 700 26px/32px var(--au-font-display); letter-spacing: 10px; text-align: center; padding-left: 24px; }
.au-hint { display: block; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--au-text-3); }
.au-hint-ok { color: var(--au-accent); }
.au-field .field-validation-error, .au-field .text-danger, .au-error { display: block; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--au-danger) !important; }
.au-field .field-validation-valid { display: none; }
.au-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; color: var(--au-text-2); margin-bottom: var(--au-s4); }
.au-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--au-accent); flex: 0 0 18px; }
.au-check a { color: var(--au-accent); }
.validation-summary-errors ul { list-style: none; margin: 0 0 var(--au-s4); padding: var(--au-s3) var(--au-s4); border-radius: 10px; background: var(--au-danger-soft); border-left: 3px solid var(--au-danger); font-size: 14px; line-height: 20px; }
.validation-summary-valid { display: none; }

.au-divider { display: flex; align-items: center; gap: var(--au-s3); margin: var(--au-s5) 0; color: var(--au-text-3); font-size: 13px; }
.au-divider::before, .au-divider::after { content: ""; flex: 1; height: 1px; background: var(--au-border-strong); }
.au-google { display: flex; justify-content: center; min-height: 44px; }
.au-status { text-align: center; font-size: 13px; line-height: 18px; min-height: 18px; margin-top: var(--au-s2); color: var(--au-text-2); }

/* segmented control: hidden radios, pill labels */
.au-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--au-surface-2); padding: 4px; border-radius: 12px; border: 1px solid var(--au-border); }
.au-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.au-seg label { cursor: pointer; padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 9px; font: 500 14px/20px var(--au-font); color: var(--au-text-2); transition: background var(--au-ease), color var(--au-ease); }
.au-seg input:checked + label { background: var(--au-accent-soft); color: var(--au-accent); box-shadow: inset 0 0 0 1px rgba(90, 226, 113, 0.5); }
.au-seg input:focus-visible + label { outline: 2px solid var(--au-blue); outline-offset: 2px; }
.au-seg input:disabled + label { opacity: 0.4; cursor: not-allowed; }

/* stepper */
.au-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--au-border-strong); border-radius: 10px; overflow: hidden; background: var(--au-surface-2); }
.au-stepper button { width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--au-text); font: 600 20px/1 var(--au-font); cursor: pointer; }
.au-stepper button:hover { background: rgba(255, 255, 255, 0.06); }
.au-stepper input { width: 64px; text-align: center; border: 0; border-left: 1px solid var(--au-border); border-right: 1px solid var(--au-border); background: transparent; color: var(--au-text); font: 600 17px/24px var(--au-font); -moz-appearance: textfield; }
.au-stepper input::-webkit-outer-spin-button, .au-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.au-stepper input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--au-blue); }

/* ---------------------------------------------------------------- facts, table, copy */
.au-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--au-s3) var(--au-s4); margin: 0; }
.au-facts-1 { grid-template-columns: 1fr; }
.au-facts dt { font: 600 12px/16px var(--au-font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--au-text-3); margin: 0; }
.au-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; line-height: 22px; word-break: break-word; }

.au-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--au-s2)); max-width: calc(100% + 2 * var(--au-s2)); }
.au-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; min-width: 520px; }
.au-table th { text-align: left; padding: 8px var(--au-s2); font: 600 12px/16px var(--au-font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--au-text-3); border-bottom: 1px solid var(--au-border-strong); }
.au-table td { padding: 12px var(--au-s2); border-bottom: 1px solid var(--au-border); vertical-align: middle; }
.au-table tr:last-child td { border-bottom: 0; }
.au-table .au-num { font-variant-numeric: tabular-nums; }

.au-copy { display: flex; gap: var(--au-s2); }
.au-copy .au-input { font-size: 13px; letter-spacing: 0.02em; }

.au-list { margin: 0 0 var(--au-s5); padding: 0; list-style: none; counter-reset: step; }
.au-list li { position: relative; padding-left: 40px; margin-bottom: var(--au-s3); color: var(--au-text-2); line-height: 22px; }
.au-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--au-accent-soft); color: var(--au-accent); font: 700 13px/26px var(--au-font); text-align: center; }
.au-list li strong { color: var(--au-text); }

/* ---------------------------------------------------------------- quote panel */
.au-quote { background: var(--au-surface-2); border: 1px solid var(--au-border); border-radius: var(--au-r); padding: var(--au-s5); }
.au-quote-title { font: 600 17px/24px var(--au-font); margin: 0 0 var(--au-s1); }
.au-quote-amount { font: 700 34px/40px var(--au-font-display); margin: var(--au-s2) 0; letter-spacing: -0.01em; }
.au-quote-amount small { font: 500 14px/20px var(--au-font); color: var(--au-text-3); margin-left: 6px; }
.au-quote-line { color: var(--au-text-2); font-size: 14px; line-height: 20px; margin: 0 0 6px; }
.au-quote-actions { display: flex; flex-direction: column; gap: var(--au-s2); margin-top: var(--au-s4); }
.au-quote-actions .au-btn { white-space: normal; text-align: center; padding: 10px 16px; }
.au-quote-note { font-size: 12px; line-height: 16px; color: var(--au-text-3); margin: -2px 0 6px; }
.au-skeleton { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06)); background-size: 200% 100%; animation: au-shimmer 1.2s linear infinite; margin: 10px 0; }
.au-skeleton-lg { height: 34px; width: 50%; }
@keyframes au-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.au-renew { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: var(--au-s5); align-items: start; }
.au-renew-side { position: sticky; top: 80px; }

/* ---------------------------------------------------------------- plan choice + upsell */
.au-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--au-s3); }
.au-plan { position: relative; display: block; cursor: pointer; margin: 0; }
.au-plan input { position: absolute; opacity: 0; width: 0; height: 0; }
.au-plan-body { display: block; padding: var(--au-s4); border-radius: 12px; border: 1px solid var(--au-border-strong); background: var(--au-surface-2); transition: border-color var(--au-ease), background var(--au-ease); height: 100%; box-sizing: border-box; }
.au-plan input:checked + .au-plan-body { border-color: var(--au-accent); background: var(--au-accent-soft); box-shadow: inset 0 0 0 1px rgba(90, 226, 113, 0.45); }
.au-plan input:focus-visible + .au-plan-body { outline: 2px solid var(--au-blue); outline-offset: 2px; }
.au-plan-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 600 15px/22px var(--au-font); margin-bottom: 4px; }
.au-plan-text { display: block; font-size: 13px; line-height: 18px; color: var(--au-text-2); }
.au-upsell { background: linear-gradient(180deg, rgba(109, 147, 255, 0.10), rgba(109, 147, 255, 0.02)), var(--au-surface); border-color: rgba(109, 147, 255, 0.35); }
.au-upsell-done { background: var(--au-surface); border-color: var(--au-border); }
.au-upsell-row { display: flex; gap: var(--au-s3); align-items: flex-start; cursor: pointer; margin: 0; }
.au-upsell-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--au-accent); flex: 0 0 20px; }
.au-upsell-row input:disabled { opacity: 0.5; cursor: default; }
.au-upsell-body { display: block; }
.au-upsell-list { margin: 6px 0 0; padding-left: 18px; color: var(--au-text-2); font-size: 13px; line-height: 20px; }
.au-upsell-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--au-s4); margin-bottom: var(--au-s3); }
.au-upsell-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin-top: var(--au-s2); }
.au-body .au-toggle { flex: 0 0 auto; }
.au-body .au-btn.au-toggle-on { background: var(--au-bg-raised); color: var(--au-accent); border-color: var(--au-accent); box-shadow: inset 0 0 0 1px var(--au-accent); }
.au-body .au-btn.au-toggle-on::before { content: "\2713"; font-weight: 700; margin-right: 2px; }
.au-body .au-btn.au-toggle-on:hover { background: var(--au-surface-2); color: var(--au-accent); }
.au-mono-cta { display: flex; flex-wrap: wrap; gap: var(--au-s3); align-items: center; }

/* ---------------------------------------------------------------- auth column */
.au-auth { max-width: 460px; margin: 0 auto; padding: var(--au-s7) 0 var(--au-s6); }
.au-auth .au-card { padding: var(--au-s6); }
.au-auth-mark { display: flex; justify-content: center; margin-bottom: var(--au-s5); }
.au-auth-mark img { height: 48px; width: auto; }
.au-auth .au-h1 { text-align: center; }
.au-auth .au-lead { text-align: center; }
.au-auth-foot { text-align: center; color: var(--au-text-2); font-size: 14px; line-height: 20px; margin-top: var(--au-s5); }
.au-auth-foot form { display: inline; }
.au-check-icon { display: flex; justify-content: center; margin-bottom: var(--au-s4); }
.au-check-icon svg { width: 56px; height: 56px; }
.au-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.25); border-top-color: var(--au-accent); border-radius: 50%; animation: au-spin 0.9s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-code-box { font: 600 15px/22px var(--au-font-display); letter-spacing: 0.08em; word-break: break-all; user-select: all; background: var(--au-surface-2); border: 1px dashed var(--au-border-strong); border-radius: 10px; padding: var(--au-s3) var(--au-s4); text-align: center; }

/* ---------------------------------------------------------------- page bits */
.au-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--au-s4); margin: var(--au-s6) 0 var(--au-s5); }
.au-page-head .au-h1 { margin: 0; }
.au-stack { display: flex; flex-direction: column; gap: var(--au-s4); }
.au-stack > * { min-width: 0; }
.au-container { min-width: 0; }
.au-empty { color: var(--au-text-3); padding: var(--au-s4) 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
    .au-hero { grid-template-columns: 1fr; }
    .au-hero .au-stat { order: -1; }
    .au-renew { grid-template-columns: 1fr; }
    .au-renew-side { position: static; }
}

@media (max-width: 767px) {
    .au-plans { grid-template-columns: 1fr; }
    .au-upsell-head { flex-direction: column; }
    .au-upsell-head .au-toggle { width: 100%; }
    .au-upsell-grid { grid-template-columns: 1fr; }
    .au-container, .au-topbar-inner, .au-footer-inner { padding-left: var(--au-s4); padding-right: var(--au-s4); }
    .au-grid { grid-template-columns: 1fr; }
    .au-card, .au-hero, .au-auth .au-card { padding: var(--au-s5) var(--au-s4); }
    .au-hero .au-h1 { font-size: 24px; line-height: 30px; }
    .au-stat-value { font-size: 28px; line-height: 34px; }
    .au-page-head { margin-top: var(--au-s5); flex-direction: column; align-items: flex-start; }
    .au-hero-actions .au-btn, .au-hero-actions .au-btn-ghost { width: 100%; }
    .au-auth { padding-top: var(--au-s5); }
    .au-brand img { height: 34px; }
    .au-nav { margin-left: var(--au-s2); }
    .au-nav .au-nav-secondary { display: none; }
    .au-nav a, .au-nav button { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .au-skeleton, .au-spinner { animation: none; }
    .au-body * { transition: none !important; }
}

/* ---------------------------------------------------------------- download page */
.dl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--au-s4); margin: var(--au-s7) 0 var(--au-s5); }
.dl-head .au-h1 { font-size: 32px; line-height: 38px; }
.dl-region { display: flex; flex-wrap: wrap; align-items: center; gap: var(--au-s2) var(--au-s3); margin-bottom: var(--au-s5); }
.dl-region .au-label { margin: 0; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--au-s4); }
.dl-app { display: flex; flex-direction: column; gap: var(--au-s3); min-width: 0; }
.dl-app-top { display: flex; align-items: center; gap: var(--au-s3); }
.dl-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--au-surface-2); border: 1px solid var(--au-border); display: grid; place-items: center; flex: 0 0 44px; color: var(--au-text); }
.dl-icon svg { width: 24px; height: 24px; }
.dl-app-name { font: 600 17px/22px var(--au-font); margin: 0; }
.dl-app-os { color: var(--au-text-3); font-size: 13px; line-height: 18px; }
.dl-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-version { font: 700 22px/28px var(--au-font-display); letter-spacing: 0.01em; min-height: 28px; }
.dl-version-muted { color: var(--au-text-3); font-size: 16px; }
.dl-version .au-skeleton { display: inline-block; width: 130px; height: 18px; margin: 5px 0; vertical-align: middle; }
.dl-app-text { color: var(--au-text-2); font-size: 14px; line-height: 20px; margin: 0; flex: 1 1 auto; }
.dl-app-cta { margin-top: var(--au-s2); }
.dl-app-cta .au-btn { width: 100%; }
.dl-served { margin-top: var(--au-s2); font-size: 12px; line-height: 16px; color: var(--au-text-3); min-height: 16px; }
.dl-served a { color: var(--au-text-2); }
.au-body .au-btn.dl-btn-off { background: var(--au-surface-2); color: var(--au-text-3); border-color: var(--au-border); pointer-events: none; }
.dl-section { margin-top: var(--au-s4); }
.dl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--au-s5); }
.dl-step { display: flex; gap: var(--au-s3); align-items: flex-start; }
.dl-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--au-accent-soft); color: var(--au-accent); font: 700 14px/32px var(--au-font-display); text-align: center; flex: 0 0 32px; }
.dl-step h3 { font: 600 15px/22px var(--au-font); margin: 0 0 4px; }
.dl-step p { color: var(--au-text-2); font-size: 14px; line-height: 20px; margin: 0; }
.dl-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--au-s4); }
#dl-offline { margin-top: var(--au-s4); }
@media (max-width: 960px) {
    .dl-grid { grid-template-columns: 1fr; }
    .dl-steps { grid-template-columns: 1fr; }
    .dl-head { margin-top: var(--au-s5); }
    .dl-head .au-btn, .dl-head .au-btn-ghost { width: 100%; }
    .dl-help .au-hero-actions { width: 100%; }
    .dl-help .au-hero-actions a { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------- referral card */
.au-ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--au-s3); margin: var(--au-s4) 0; }
.au-ref-stat { background: var(--au-surface-2); border: 1px solid var(--au-border); border-radius: var(--au-r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.au-ref-stat .au-stat-value { margin: 0; }

/* ---------------------------------------------------------------- blog */
.bl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--au-s5); }
.bl-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--au-border); color: var(--au-text-2); font-size: 13px; line-height: 18px; background: var(--au-surface); }
.bl-tag:hover { border-color: var(--au-text-2); color: var(--au-text); text-decoration: none; }
.bl-tag.bl-tag-on { background: var(--au-accent-soft); color: var(--au-accent); border-color: var(--au-accent); }
.bl-tag small { color: var(--au-text-3); font-size: 12px; }
.bl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--au-s4); }
.bl-card { display: flex; flex-direction: column; gap: var(--au-s2); min-width: 0; }
.bl-meta { color: var(--au-text-3); font-size: 13px; line-height: 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bl-card h2 { font: 600 19px/26px var(--au-font); margin: 0; }
.bl-card h2 a { color: var(--au-text); }
.bl-card h2 a:hover { color: var(--au-accent); text-decoration: none; }
.bl-card p { color: var(--au-text-2); font-size: 14px; line-height: 20px; margin: 0; flex: 1 1 auto; }
.bl-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-card-tags a.au-badge { color: var(--au-text-2); }
.bl-card-tags a.au-badge:hover { color: var(--au-text); text-decoration: none; }
.bl-crumbs { font-size: 13px; color: var(--au-text-3); margin: var(--au-s5) 0 var(--au-s4); display: flex; gap: 8px; flex-wrap: wrap; }
.bl-article { max-width: 760px; margin: 0 auto; }
.bl-article-head { margin-bottom: var(--au-s6); }
.bl-article-head h1 { font: 700 36px/42px var(--au-font); letter-spacing: -0.02em; margin: var(--au-s3) 0 var(--au-s3); }
.bl-article-head .au-lead { font-size: 18px; line-height: 28px; margin-bottom: var(--au-s4); }
.bl-body { font-size: 17px; line-height: 28px; color: var(--au-text); }
.bl-body h2 { font: 700 25px/32px var(--au-font); margin: var(--au-s7) 0 var(--au-s3); letter-spacing: -0.01em; }
.bl-body h3 { font: 600 19px/26px var(--au-font); margin: var(--au-s6) 0 var(--au-s2); }
.bl-body h2:first-child { margin-top: 0; }
.bl-body p, .bl-body ul, .bl-body ol { margin: 0 0 var(--au-s4); }
.bl-body ul, .bl-body ol { padding-left: 24px; }
.bl-body li { margin-bottom: 6px; }
.bl-body a { color: var(--au-accent); text-decoration: underline; text-decoration-color: rgba(90, 226, 113, 0.45); text-underline-offset: 3px; }
.bl-body a:hover { text-decoration-color: var(--au-accent); }
.bl-body strong { color: var(--au-text); font-weight: 600; }
.bl-body blockquote { border-left: 3px solid var(--au-accent); margin: 0 0 var(--au-s4); padding: 4px 0 4px 18px; color: var(--au-text-2); }
.bl-body code { background: var(--au-surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.bl-body pre { background: var(--au-surface-2); border: 1px solid var(--au-border); padding: 14px 16px; border-radius: var(--au-r-sm); overflow: auto; margin: 0 0 var(--au-s4); }
.bl-body pre code { background: none; padding: 0; }
.bl-body img { max-width: 100%; height: auto; border-radius: var(--au-r-sm); border: 1px solid var(--au-border); }
.bl-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; margin: 0 0 var(--au-s4); }
.bl-body th, .bl-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--au-border); vertical-align: top; }
.bl-body th { color: var(--au-text-3); font: 600 12px/16px var(--au-font); letter-spacing: 0.06em; text-transform: uppercase; }
.bl-body hr { border: 0; border-top: 1px solid var(--au-border); margin: var(--au-s6) 0; }
.bl-body .table-responsive { overflow-x: auto; }
.bl-cta { margin-top: var(--au-s7); }
.bl-related { margin-top: var(--au-s7); }
.bl-related h2 { font: 600 20px/28px var(--au-font); margin: 0 0 var(--au-s4); }
@media (max-width: 760px) {
    .bl-grid { grid-template-columns: 1fr; }
    .bl-article-head h1 { font-size: 28px; line-height: 34px; }
    .bl-body { font-size: 16px; line-height: 26px; }
    .bl-body h2 { font-size: 22px; line-height: 28px; }
}

.au-auth-about { margin-top: var(--au-s4); }
.au-auth-about .au-h2 { margin-bottom: var(--au-s3); }
.au-auth-about .au-list { margin: 0; font-size: 14px; }

/* A white logo on the green button: tint it to the button ink so it reads. */
.au-body .au-btn .au-btn-ink-icon { filter: brightness(0.12); }

/* ---------------------------------------------------------------- modal (upsell pop-ups) */
.au-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: var(--au-s4); }
.au-modal[hidden] { display: none; }
.au-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 20, 0.72); backdrop-filter: blur(3px); }
.au-modal-card { position: relative; width: 100%; max-width: 520px; background: var(--au-surface); border: 1px solid var(--au-border-strong); border-radius: var(--au-r-lg); padding: var(--au-s6); box-shadow: var(--au-shadow); animation: au-pop 160ms ease-out; }
.au-modal-card .au-h1 { font-size: 24px; line-height: 30px; margin: var(--au-s2) 0 var(--au-s3); }
.au-modal-card .au-lead { margin-bottom: var(--au-s4); }
.au-modal-card .au-upsell-list { margin-bottom: var(--au-s5); font-size: 14px; }
.au-modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--au-text-3); font-size: 24px; line-height: 36px; cursor: pointer; }
.au-modal-x:hover { background: rgba(255, 255, 255, 0.06); color: var(--au-text); }
.au-modal-actions { display: flex; flex-wrap: wrap; gap: var(--au-s3); }
.au-modal-actions .au-btn, .au-modal-actions .au-btn-ghost { flex: 1 1 auto; }
body.au-modal-open { overflow: hidden; }
@keyframes au-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- upsell pop-up variants */
.au-modal-actions.au-modal-stack { flex-direction: column; align-items: stretch; }
.au-modal-actions.au-modal-stack .au-modal-quiet { align-self: center; flex: 0 0 auto; color: var(--au-text-2); border-color: transparent; }
.au-modal-actions.au-modal-stack .au-modal-quiet:hover { color: var(--au-text); }
.au-body .au-btn.au-btn-purple { background: #7C3AED; color: #FFFFFF; }
.au-body .au-btn.au-btn-purple:hover { background: #6D28D9; color: #FFFFFF; }
.au-body .au-btn.au-btn-blue { background: #2F77D6; color: #FFFFFF; }
.au-body .au-btn.au-btn-blue:hover { background: #2667BD; color: #FFFFFF; }
.au-shield { flex: 0 0 auto; }
.au-h1-icon { display: flex; align-items: center; gap: 10px; }
.au-h1-icon .au-shield { color: var(--au-accent); }

/* Continue with Google: Google's button look (white, grey border, the G mark), as a plain link. */
.au-body .au-btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #FFFFFF; color: #1F1F1F; border: 1px solid #747775; font: 500 15px/20px var(--au-font); text-decoration: none; transition: background var(--au-ease); }
.au-body .au-btn-google:hover, .au-body .au-btn-google:focus-visible { background: #F2F2F2; color: #1F1F1F; text-decoration: none; }
.au-btn-google svg { width: 20px; height: 20px; flex: none; }
