/* ShortURL7 — design system
   Sky blue + white. White dominant, sky blue for personality & interaction. */

:root {
    /* ShortURL7 brand palette (Sky → Blue → Purple → Pink) */
    --sky-300: #7FD8FF;
    --sky-400: #00C6FF;   /* Sky Blue — primary brand */
    --sky-500: #0095FF;   /* Blue — accent / interactive */
    --sky-600: #0A6BD8;   /* accessible link + hover text */
    --sky-700: #0B52A8;
    --sky-rgb: 0, 150, 255;      /* for alpha tints */
    --purple: #6A00FF;    /* Purple — growth */
    --purple-rgb: 106, 0, 255;
    --pink: #E91E63;      /* Pink — highlight */
    --blue-50: #F8FAFF;   /* Light surface */
    --blue-100: #E6F2FF;
    --white: #FFFFFF;
    --ink: #0F172A;       /* Navy — text/depth */
    --ink-soft: #334155;
    --muted: #5A6A80;
    --border: #E7EDF6;
    --border-strong: #D4DEED;
    --success: #22C55E;   /* Green */
    --warning: #FF9800;   /* Orange — action */
    --error: #E11D48;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-xs: 0 1px 2px rgba(11, 18, 32, .05);
    --shadow-sm: 0 1px 3px rgba(11, 18, 32, .05), 0 1px 2px rgba(11, 18, 32, .04);
    --shadow-md: 0 10px 28px -8px rgba(11, 18, 32, .10), 0 3px 8px -3px rgba(11, 18, 32, .06);
    --shadow: 0 30px 60px -22px rgba(0, 120, 255, .26), 0 10px 28px -12px rgba(11, 18, 32, .12);
    --shadow-glow: 0 20px 55px -18px rgba(var(--purple-rgb), .38);
    --grad-cta: linear-gradient(135deg, #00C6FF 0%, #0095FF 42%, #6A00FF 100%);
    --grad-primary: linear-gradient(135deg, #00C6FF 0%, #8A00FF 100%);
    --grad-accent: linear-gradient(135deg, #8B5CFF 0%, #EC4899 100%);
    --maxw: 1200px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --accent: #0095FF;          /* solid brand accent (buttons, highlights) */
    --accent-hover: #0A84E8;
    --accent-soft: #EAF5FF;     /* tinted surfaces: icon chips, pills */
    --page: #F7F8FA;            /* light grey section background */
    --line: #E6E9EF;            /* hairlines */
    --dark: #1B1F2A;            /* dark feature band */
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01";
}

a { color: var(--sky-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--sky-500); }
::selection { background: rgba(var(--sky-rgb),.18); }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px -14px rgba(11,18,32,.25); }
.nav {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 28px;
}
.nav .brand { margin-right: 6px; }
.nav-actions { margin-left: auto; }
/* One rounded "Sign in with Google" pill on the right, like the reference layout. */
.nav-actions > .btn-ghost[href*="auth/google"] { display: none; }
.nav-actions .btn-google { padding: 10px 18px; font-size: 14px; font-weight: 600; border-color: var(--line); box-shadow: none; }
.nav-actions .btn-google:hover { border-color: #c9d2de; box-shadow: var(--shadow-xs); }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.03em;
    color: var(--ink);
}
.brand .brand-mark { width: 30px; height: 30px; }
.brand .brand-mark-img { width: auto; height: 32px; object-fit: contain; }
.brand b { color: var(--sky-500); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: inline-block;
    color: #3F4756;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
}
.nav-links a:hover { color: var(--ink); background: var(--page); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 9px;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; }

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 18px -10px rgba(var(--sky-rgb), .9);
}
.btn-primary:hover { color: #fff; background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(var(--sky-rgb), .95); }
.btn-xl { padding: 14px 26px; font-size: 16px; font-weight: 700; gap: 9px; }
.btn-xl .icon { width: 19px; height: 19px; }
.btn-lift { box-shadow: 0 14px 26px -14px rgba(var(--sky-rgb), .85); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { color: var(--ink); border-color: #b9c6d6; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-google { color: var(--ink); background: #fff; border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-google:hover { border-color: #b9c6d6; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 15px; height: 15px; }

/* ---------- Hero (three columns: copy · laptop with the shortener · feature tiles) ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 620px at 100% 0%, rgba(0,149,255,.14), transparent 62%),
        radial-gradient(700px 520px at 85% 100%, rgba(0,198,255,.08), transparent 60%),
        linear-gradient(180deg, #FAFBFD 0%, #F5F8FC 100%);
    border-bottom: 1px solid var(--line);
}
/* Kept compact and centred so wide laptop/desktop screens don't stretch it out. */
.hero-container { max-width: var(--maxw); }
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px) auto;
    gap: 36px;
    align-items: center;
    padding: 52px 0 60px;
}
.hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14.5px; font-weight: 600; color: var(--accent);
    background: #fff; border: 1px solid rgba(var(--sky-rgb), .35);
    padding: 7px 15px; border-radius: 999px; margin-bottom: 20px;
}
.hero-pill .icon { width: 16px; height: 16px; }
.hero h1 {
    font-size: clamp(34px, 3.4vw, 50px);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: 0 0 16px;
    font-weight: 700;
    color: #23262F;
}
.hero h1 .accent, .shortener-head .accent { color: var(--accent); }
.hero p.lead {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.6;
    color: #4A5160;
    margin: 0 0 24px;
    max-width: 28em;
}
.hero-trust {
    list-style: none; margin: 22px 0 26px; padding: 0;
    display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 12px 28px;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; color: #3F4756; font-size: 13.5px; line-height: 1.3; }
.hero-trust .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.hero-trust span { white-space: nowrap; }

/* Live activity numbers: one light inline row, not big cards */
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 30em; }
.hstat { display: flex; align-items: baseline; gap: 6px; }
.hstat-num { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; }
.hstat-label { font-size: 13px; font-weight: 500; color: var(--muted); }

/* Laptop mockup holding the shortener */
.hero-device { min-width: 0; width: 100%; max-width: 420px; justify-self: center; }
.laptop-screen {
    background: #fff;
    border: 10px solid #1E222B;
    border-bottom-width: 14px;
    border-radius: 18px 18px 5px 5px;
    box-shadow: 0 26px 50px -26px rgba(11,18,32,.45);
    overflow: hidden;
}
.laptop-base {
    height: 13px; margin: 0 -22px;
    background: linear-gradient(180deg, #D3D9E2, #AEB6C2);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 20px -12px rgba(11,18,32,.35);
}
.laptop-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 12px;
}
.laptop-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); }
.laptop-brand img { height: 14px; width: auto; }
.laptop-nav { display: inline-flex; gap: 14px; color: var(--muted); }

/* Feature tiles (3 × 3) */
.hero-tiles { display: grid; grid-template-columns: repeat(3, 92px); gap: 12px; }
.tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    height: 92px; padding: 8px 5px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 6px 16px -12px rgba(11,18,32,.35);
    color: #2B303B; font-size: 12.5px; font-weight: 600; line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile .icon { width: 26px; height: 26px; color: var(--accent); stroke-width: 1.8; }
.tile:hover { color: var(--ink); transform: translateY(-3px); border-color: rgba(var(--sky-rgb), .35); box-shadow: 0 14px 26px -14px rgba(var(--sky-rgb), .55); }

/* ---------- Shortener card ---------- */
.shortener {
    position: relative;
    background: #fff;
    padding: 14px 16px 16px;
}
.shortener-head { text-align: center; margin-bottom: 14px; }
.shortener-head strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #23262F; }
.shortener-head small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.shortener-drop {
    border: 2px dashed rgba(var(--sky-rgb), .35);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #F7FBFF);
    padding: 16px 16px 18px;
}
.shortener-drop .field { margin-bottom: 12px; }
.shortener .field-label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: -.01em;
}
.input {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
    outline: none;
    border-color: var(--sky-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .18);
}
.input::placeholder { color: #9fb0c3; }

.alias-row { display: flex; align-items: stretch; margin-top: 4px; }
.alias-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    color: var(--muted);
    background: var(--blue-50);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    white-space: nowrap;
}
.alias-row .input {
    border-radius: 0 var(--radius) var(--radius) 0;
}
.optional-tag { color: var(--muted); font-weight: 400; }

.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; margin-top: 7px; min-height: 16px; }
.hint.is-success { color: var(--success); }
.hint.is-error { color: var(--error); }
.hint.is-checking { color: var(--muted); }

.guest-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.guest-note b { color: var(--ink); }

/* ---------- Result ---------- */
.result {
    margin-top: 18px;
    border: 1px solid rgba(var(--sky-rgb),.28);
    background: linear-gradient(180deg, #F3FBFF, #E9F6FF);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
    animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result .result-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--success); margin-bottom: 10px; }
.result .result-url {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 12px;
}
.result .result-url a { font-weight: 600; font-size: 15px; word-break: break-all; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Inline QR + details after a link is created */
.result-main { display: flex; align-items: flex-start; gap: 16px; }
.result-body { flex: 1; min-width: 0; }
.result-qr {
    flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 8px; background: #fff; border: 1px solid var(--border);
    border-radius: 12px; box-shadow: var(--shadow-xs); cursor: pointer; line-height: 0;
    transition: box-shadow .2s ease, transform .15s ease;
}
.result-qr:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.result-qr img { width: 104px; height: 104px; display: block; border-radius: 6px; }
.result-qr-cap { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.2; }
/* Inside the hero laptop the card is narrow: stack QR above the link and actions. */
.hero-form .result-main { flex-direction: column; align-items: center; text-align: center; }
.hero-form .result-body { width: 100%; }
.hero-form .result-actions { justify-content: center; }
.btn-whatsapp { color: #0f6e5c; }
.btn-whatsapp svg { color: #25D366; }
.btn-whatsapp:hover { color: #0f6e5c; border-color: #b9c6d6; }
@media (max-width: 480px) {
    .result-main { flex-direction: column; align-items: center; text-align: center; }
    .result-body { width: 100%; }
    .result-actions { justify-content: center; }
}

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block-tint { background: var(--page); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.section-eyebrow {
    display: inline-block; color: var(--accent); font-weight: 700; font-size: 12.5px;
    letter-spacing: .12em; text-transform: uppercase;
}
.section-title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em; margin: 10px 0 0; font-weight: 700; line-height: 1.15; color: #23262F; }
.section-head .section-title { margin-top: 8px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 56ch; margin: 12px auto 0; }

/* Cards shared by steps and features */
.step, .feature {
    position: relative; background: #fff;
    border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 8px 22px -18px rgba(11,18,32,.45);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover, .feature:hover { transform: translateY(-3px); border-color: rgba(var(--sky-rgb), .3); box-shadow: 0 16px 30px -18px rgba(var(--sky-rgb), .55); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step { padding: 24px 22px; }
.step .num {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em;
    background: var(--accent-soft); padding: 6px 11px; border-radius: 10px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.015em; font-weight: 700; }
.step p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; }

/* Features */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 40px; }
.feature { padding: 24px; }
.feature .f-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--accent); color: #fff; margin-bottom: 18px;
    box-shadow: 0 10px 18px -10px rgba(var(--sky-rgb), .9);
}
.feature .f-icon .icon { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.015em; font-weight: 700; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.feature.span-6 { grid-column: span 6; }
.feature.span-4 { grid-column: span 4; }
.feature.span-8 { grid-column: span 8; }

.feature-wide { display: flex; gap: 18px; align-items: flex-start; }

/* CTA band */
section.block-cta { padding-top: 24px; }
.cta {
    position: relative; overflow: hidden;
    background: var(--accent);
    border-radius: 24px;
    color: #fff; padding: 56px 40px; text-align: center;
    box-shadow: 0 24px 48px -26px rgba(var(--sky-rgb), .9);
}
.cta::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(520px 240px at 15% -10%, rgba(255,255,255,.22), transparent 60%),
        radial-gradient(520px 260px at 95% 120%, rgba(0,60,160,.35), transparent 55%);
    pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 10px; letter-spacing: -.025em; font-weight: 700; }
.cta p { margin: 0 0 26px; color: rgba(255,255,255,.92); font-size: 17px; }
.cta .btn-ghost { background: #fff; border-color: transparent; color: var(--accent); font-weight: 700; box-shadow: 0 10px 24px -10px rgba(2,30,55,.4); }
.cta .btn-ghost:hover { background: #fff; color: var(--accent-hover); }

/* ---------- App strip (under the header) ---------- */
.app-strip {
    border-bottom: 1px solid rgba(var(--sky-rgb), .2);
    background: linear-gradient(90deg, #EEF7FF, #F6FAFF 60%, #EEF7FF);
}
.app-strip[hidden] { display: none; }
.app-strip-inner { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.app-strip img { border-radius: 8px; flex: none; }
.app-strip p { flex: 1; min-width: 0; margin: 0; font-size: 15px; color: #4A5160; line-height: 1.4; }
.app-strip p strong { color: var(--ink); }
.app-strip .btn { flex: none; padding: 10px 16px; font-size: 14.5px; border-radius: 8px; }
.app-strip-x { flex: none; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); padding: 4px 8px; cursor: pointer; border-radius: 8px; }
.app-strip-x:hover { color: var(--ink); background: rgba(11,18,32,.05); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; border-top: 1px solid var(--line); background: #fff; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 30ch; margin: 0; line-height: 1.6; }
.footer-col h4 { font-size: 14px; color: var(--ink); font-weight: 700; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Content pages ---------- */
.page-head {
    position: relative; overflow: hidden;
    background:
        radial-gradient(760px 420px at 100% 0%, rgba(0,149,255,.14), transparent 62%),
        linear-gradient(180deg, #FAFBFD, #F5F8FC);
    border-bottom: 1px solid var(--line); padding: 56px 0;
}
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.03em; margin: 10px 0 0; font-weight: 700; color: #23262F; }
.prose { max-width: 760px; padding: 52px 0 80px; }
.prose h2 { font-size: 22px; letter-spacing: -.02em; margin: 34px 0 10px; font-weight: 700; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.prose ul { padding-left: 20px; }
.prose a { font-weight: 600; }

/* Status / error pages */
.status-wrap {
    min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 72px 20px;
    background:
        radial-gradient(640px 300px at 50% -10%, rgba(56,189,248,.16), transparent 60%),
        linear-gradient(180deg, #fff, #F3FAFF);
}
.status-code {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--sky-700);
    background: rgba(var(--sky-rgb),.09); border: 1px solid rgba(var(--sky-rgb),.18); padding: 6px 13px; border-radius: 999px;
}
.status-wrap h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 16px 0 12px; letter-spacing: -.03em; font-weight: 800; }
.status-wrap p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; font-size: 16px; line-height: 1.6; }
.status-wrap .btn + .btn { margin-left: 10px; }

/* Forms (report abuse / contact) */
.form-card { max-width: 640px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.form-card .field-label { display:block; font-size:13px; font-weight:600; margin: 0 0 7px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
textarea.input { min-height: 120px; resize: vertical; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.plan { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: #fff; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--sky-400); box-shadow: var(--shadow); position: relative; }
.plan.featured .plan-tag { position: absolute; top: -11px; left: 24px; background: var(--sky-500); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0; }
.plan .price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; flex: 1; }
.plan li { font-size: 14px; color: #334155; padding: 7px 0 7px 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 14px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230EA5E9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

/* Toast */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
    background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
    padding: 11px 16px; border-radius: 10px; box-shadow: 0 12px 30px -10px rgba(15,23,42,.5);
    display: inline-flex; align-items: center; gap: 9px; animation: toastIn .22s ease;
}
.toast.is-error { background: var(--error); }
.toast .icon { color: #7ee787; }
.toast.is-error .icon { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Share sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 90; display: none; }
.sheet-backdrop.open { display: block; }
.share-sheet {
    position: fixed; z-index: 91; left: 50%; bottom: 0; transform: translateX(-50%);
    width: min(440px, 100%); background: #fff; border-radius: 16px 16px 0 0;
    padding: 20px; box-shadow: 0 -10px 40px -12px rgba(15,23,42,.4); display: none;
}
.share-sheet.open { display: block; animation: sheetUp .24s ease; }
@keyframes sheetUp { from { transform: translate(-50%, 100%);} to { transform: translate(-50%, 0);} }
.share-sheet h4 { margin: 0 0 4px; font-size: 16px; }
.share-sheet .su { font-size: 13px; color: var(--muted); margin: 0 0 16px; word-break: break-all; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 12px; color: var(--ink); }
.share-opt .so-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--sky-600); }
@media (min-width: 560px) { .share-sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); border-radius: 16px; } .share-sheet.open { animation: pop .2s ease; } }

/* QR modal */
.qr-box { text-align: center; }
.qr-box img { width: 220px; height: 220px; border: 1px solid var(--border); border-radius: 12px; padding: 8px; background: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- User chip (signed in) ---------- */
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.user-avatar-fallback { background: var(--sky-500); color: #fff; font-size: 13px; font-weight: 700; }
.user-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.user-logout { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); }
.user-logout:hover { background: var(--blue-50); color: var(--error); }

/* ---------- Flash messages ---------- */
.flash { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius); font-size: 14.5px; font-weight: 500; border: 1px solid transparent; }
.flash-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* ---------- Dashboard ---------- */
.dash-head {
    background:
        radial-gradient(640px 280px at 88% -50%, rgba(56,189,248,.12), transparent 60%),
        linear-gradient(180deg, #fff, #F4FAFF);
    border-bottom: 1px solid var(--border); padding: 44px 0;
}
.dash-head .dash-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-head h1 { font-size: 28px; letter-spacing: -.03em; margin: 0; font-weight: 800; }
.dash-head p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; padding: 20px 22px; box-shadow: var(--shadow-xs); }
.stat .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.stat .stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; }

/* Responsive table wrapper */
.table-wrap { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .links-table, .table-wrap .admin-table { margin-top: 0; border: none; box-shadow: none; border-radius: 0; min-width: 760px; }
/* Inside an admin panel the panel is already the card — keep the wrapper transparent. */
.admin-panel .table-wrap { margin-top: 0; border: none; box-shadow: none; background: transparent; border-radius: 0; }

.links-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.links-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 15px 18px; border-bottom: 1px solid var(--border); background: var(--blue-50); white-space: nowrap; }
.links-table td { padding: 15px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: middle; }
.links-table tbody tr { transition: background .15s ease; }
.links-table tbody tr:hover { background: #FAFCFF; }
.links-table tr:last-child td { border-bottom: none; }
.links-table .short a { font-weight: 650; }
.links-table .short, .links-table td:nth-child(4) { white-space: nowrap; }
.links-table .dest { color: var(--muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge-active { background: #f0fdf4; color: #166534; }
.badge-disabled { background: #fef2f2; color: #991b1b; }
.badge-expired { background: #fffbeb; color: #92400e; }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.row-actions .btn-sm { padding: 7px 12px; font-size: 12.5px; }
/* Inside a scrollable table, keep actions on one line (scroll horizontally to reach them). */
.table-wrap .row-actions { flex-wrap: nowrap; }
.empty-state { text-align: center; padding: 64px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: linear-gradient(180deg,#fff,#F8FBFF); margin-top: 20px; }
.empty-state h3 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.02em; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }

.links-search { display: flex; gap: 10px; margin: 0 0 20px; max-width: 560px; }
.links-search .input { flex: 1; }
.btn-danger { color: var(--error); }
.btn-danger:hover { border-color: #fecaca; background: #fef2f2; color: var(--error); }

.pager { margin-top: 24px; }
.pager ul.pagination { display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.pager ul.pagination li a, .pager ul.pagination li.active span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
    padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600; background: #fff;
}
.pager ul.pagination li.active span { background: var(--sky-500); border-color: var(--sky-500); color: #fff; }
.pager ul.pagination li.disabled span { color: #cbd5e1; }
.pager ul.pagination li a:hover { border-color: #bae6fd; }

.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.history-list li:last-child { border-bottom: none; }
.history-field { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--sky-600); font-weight: 700; }
.history-change { font-size: 13.5px; color: #334155; margin: 4px 0; word-break: break-all; }
.history-change .old { color: var(--muted); text-decoration: line-through; }
.history-change .new { color: var(--ink); font-weight: 600; }
.history-time { font-size: 12px; color: var(--muted); }

/* ---------- Analytics ---------- */
.stats-5 { grid-template-columns: repeat(5, 1fr); }
.stat-hint { font-size: 10px; font-weight: 600; color: var(--muted); }
.chart-card, .bd-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; padding: 20px 22px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.chart-head h2 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
.chart-sub { font-size: 13px; color: var(--muted); }
.timechart { width: 100%; height: 220px; display: block; }
.timechart .bar { fill: var(--sky-500); }
.timechart .bar:hover { fill: var(--sky-600); }
.timechart .axis { stroke: var(--border); stroke-width: 1; }
.chart-xaxis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

.breakdowns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.bd-card h3 { font-size: 14px; margin: 0 0 14px; letter-spacing: -.01em; }
.bd-empty { color: var(--muted); font-size: 13.5px; margin: 0; }
.bd-list { list-style: none; margin: 0; padding: 0; }
.bd-list li { margin-bottom: 12px; }
.bd-list li:last-child { margin-bottom: 0; }
.bd-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.bd-label { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-val { color: var(--ink); font-weight: 600; white-space: nowrap; }
.bd-pct { color: var(--muted); font-weight: 500; font-size: 12px; }
.bd-bar { height: 7px; border-radius: 999px; background: var(--blue-50); overflow: hidden; }
.bd-bar span { display: block; height: 100%; background: var(--sky-500); border-radius: 999px; min-width: 3px; }
.analytics-note { color: var(--muted); font-size: 12.5px; margin-top: 16px; }

/* ---------- Advanced options / UTM ---------- */
.advanced { margin: 4px 0 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--blue-50); }
.advanced > summary { cursor: pointer; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before { content: "+"; font-size: 16px; color: var(--sky-600); font-weight: 700; }
.advanced[open] > summary::before { content: "–"; }
.advanced > *:not(summary) { margin-left: 16px; margin-right: 16px; }
.advanced .adv-grid:last-of-type { margin-bottom: 16px; }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.adv-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 6px 0 10px; }
.api-example { background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; margin: 0; }
.api-example code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 560px) { .adv-grid { grid-template-columns: 1fr; } }

@media (max-width: 980px) { .breakdowns { grid-template-columns: repeat(2, 1fr); } .stats-5 { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 760px) {
    .stats { grid-template-columns: 1fr; }
    .stats-5 { grid-template-columns: repeat(2, 1fr); }
    .breakdowns { grid-template-columns: 1fr; }
    .links-table .dest { max-width: 160px; }
    .container[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ---------- Dark feature band (home: app promo) ---------- */
section.block-dark { background: var(--dark); color: #fff; border-top: 1px solid var(--dark); }
.block-dark .app-promo { background: none; border: 0; box-shadow: none; padding: 0; }
.block-dark .section-eyebrow {
    color: #fff; background: rgba(var(--sky-rgb), .9); padding: 4px 10px; border-radius: 6px;
    font-size: 11.5px; letter-spacing: .06em;
}
.block-dark .app-promo h2 { color: #fff; }
.block-dark .app-promo p, .block-dark .app-promo-list li { color: rgba(255,255,255,.78); }
.block-dark .app-promo p strong { color: #fff; }
.block-dark .play-badge { background: var(--accent); }
.block-dark .phone { border-color: #3A4152; background: #262B37; box-shadow: 0 30px 60px -28px rgba(0,0,0,.7); }
.block-dark .phone-bar { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    /* Tiles move under the copy + laptop and spread into one row of three columns each side. */
    .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hero-tiles { grid-column: 1 / -1; grid-template-columns: repeat(9, minmax(0, 1fr)); }
    .tile { height: 88px; font-size: 12.5px; }
}
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 52px; }
    .hero-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tile { height: 100px; }
    .laptop-base { margin: 0 -14px; }
    .features { grid-template-columns: repeat(6, 1fr); }
    .feature.span-6, .feature.span-8, .feature.span-4 { grid-column: span 6; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .plans { grid-template-columns: repeat(2, 1fr); }

    /* Collapse the desktop nav into the hamburger menu at <=900px so the full
       nav (links + Sign In + Continue with Google) never overflows on tablet
       widths such as 768px. All nav-action buttons live in the mobile menu, so
       hide them in the bar; keep the user chip for signed-in users. */
    .nav-links, .nav-actions .btn { display: none; }
    .nav-toggle { display: inline-block; }
    .nav.open + .mobile-menu { display: block; }
}
@media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 16px; }
    .step::before { display: none; }
    section.block { padding: 52px 0; }
    .app-strip p span { display: none; }
}
@media (max-width: 520px) {
    .features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .plans { grid-template-columns: 1fr; }
    .cta { padding: 32px 22px; }
    .hero-pill { font-size: 14px; padding: 7px 14px; margin-bottom: 18px; }
    .hero-trust { gap: 14px 16px; margin: 24px 0 26px; }
    .hero-trust li { font-size: 14px; }
    .hero-trust span { white-space: normal; }
    .btn-xl { width: 100%; padding: 16px 22px; font-size: 17px; }
    .laptop-screen { border-width: 8px; border-bottom-width: 12px; border-radius: 16px 16px 4px 4px; }
    .laptop-bar .laptop-nav { display: none; }
    .shortener { padding: 14px 12px 16px; }
    .shortener-drop { padding: 12px; }
    .hero-tiles { gap: 10px; }
    .tile { height: 92px; font-size: 13px; border-radius: 14px; }
    .tile .icon { width: 26px; height: 26px; }
    .app-strip-inner { gap: 10px; }
    .app-strip img { display: none; }
    .app-strip p { font-size: 13.5px; }
}

.mobile-menu { display: none; border-top: 1px solid var(--border); background: #fff; padding: 14px 0; }
.mobile-menu a { display: block; padding: 10px 20px; color: var(--ink); font-weight: 500; }
.mobile-menu .btn { display: flex; margin: 10px 20px 0; width: calc(100% - 40px); }

/* ---------- Super Admin ---------- */
body.admin { background: #f1f5f9; }
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-side { background: #0f172a; color: #cbd5e1; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { color: #fff; font-size: 17px; margin: 4px 8px 22px; }
.admin-side .brand b { color: var(--sky-400); }
.admin-side .brand em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--sky-400); background: rgba(56,189,248,.12); padding: 2px 7px; border-radius: 6px; margin-left: 2px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { color: #cbd5e1; font-size: 14px; font-weight: 500; padding: 10px 12px; border-radius: 8px; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.is-active { background: var(--sky-500); color: #fff; }
.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.admin-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.admin-user { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.admin-email { color: var(--muted); }
.admin-content { padding: 24px 28px 48px; min-width: 0; }

.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.admin-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }

.admin-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.admin-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-panel-head h2 { font-size: 16px; margin: 0; letter-spacing: -.01em; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .dest { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.admin-table code { background: var(--blue-50); padding: 2px 6px; border-radius: 5px; font-size: 12.5px; }

.admin-filter-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-filter-tabs a { font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--ink); }
.admin-filter-tabs a.is-active { background: var(--sky-500); border-color: var(--sky-500); color: #fff; }

.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inline-add { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.inline-add .input { flex: 1; min-width: 120px; }

.settings-group { margin-bottom: 24px; }
.settings-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--sky-600); margin: 0 0 12px; }
.settings-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 14px; margin-bottom: 12px; }
.settings-row label { font-size: 14px; font-weight: 500; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; height: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-two-col { grid-template-columns: 1fr; }
    .settings-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Admin: Traffic analytics ---------- */
.an-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.an-tabs a { font-size: 13.5px; font-weight: 600; padding: 9px 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.an-tabs a:hover { color: var(--ink); }
.an-tabs a.is-active { color: var(--sky-700); border-bottom-color: var(--sky-500); }

.an-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.an-range { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.an-chip { font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; color: var(--ink); }
.an-chip:hover { border-color: var(--sky-400); color: var(--sky-700); }
.an-chip.is-active { background: var(--sky-500); border-color: var(--sky-500); color: #fff; }
.an-custom { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-custom .input { width: auto; padding: 8px 10px; }
.an-meta { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.6; }
.an-note { font-size: 13px; color: var(--ink-soft); background: var(--blue-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; margin: 0 0 16px; line-height: 1.55; }

.an-metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.an-metric { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.an-metric-live { background: linear-gradient(180deg, #fff, var(--blue-100)); }
.an-metric .stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.an-metric .stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; color: var(--ink); }
.an-sub { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.an-delta { font-size: 12.5px; font-weight: 700; margin-top: 6px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.an-up { color: var(--success); }
.an-down { color: var(--error); }
.an-flat { color: var(--muted); }

.an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.an-export { font-size: 12px; font-weight: 700; color: var(--sky-600); }
.an-export:hover { color: var(--sky-700); }
.an-deflist { list-style: none; margin: 0; padding: 0; }
.an-deflist li { font-size: 13.5px; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.an-deflist li:last-child { border-bottom: none; }
.an-deflist code { background: var(--blue-50); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }

@media (max-width: 1100px) { .an-metrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .an-metrics { grid-template-columns: repeat(2, 1fr); } .an-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .an-metrics { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ---------- Android app: promo, Play badge, banner, delete account ---------- */
.app-promo {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
    padding: 44px; border-radius: var(--radius-xl); background: linear-gradient(160deg, #fff 0%, var(--blue-50) 55%, var(--blue-100) 100%);
    border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.app-promo h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; margin: 14px 0 10px; font-weight: 800; }
.app-promo p { color: var(--ink-soft); margin: 0 0 14px; }
.app-promo-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.app-promo-list li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 15px; }
.app-promo-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--sky-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.play-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px;
    background: #0B1220; color: #fff; font-weight: 700; font-size: 17px; line-height: 1.1; text-decoration: none;
    box-shadow: var(--shadow-sm); transition: transform .15s ease;
}
.play-badge:hover { color: #fff; transform: translateY(-1px); }
.play-badge small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; opacity: .85; }
.play-badge.is-soon { opacity: .75; cursor: default; }
.app-promo-phone { display: flex; justify-content: center; }
.phone {
    width: 230px; padding: 16px 14px 22px; border-radius: 34px; background: var(--blue-50);
    border: 8px solid #0B1220; box-shadow: var(--shadow);
}
.phone-bar { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.phone-bar b { color: var(--sky-500); }
.pb-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--grad-cta); }
.phone-card { background: #fff; border-radius: 16px; padding: 12px; border: 1px solid var(--border); }
.phone-card small { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.phone-link { margin: 6px 0 10px; padding: 8px; border-radius: 10px; background: var(--blue-100); color: var(--sky-700); font-weight: 800; font-size: 12.5px; }
.phone-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.phone-actions span { font-size: 9px; font-weight: 700; text-align: center; padding: 6px 0; border-radius: 8px; background: var(--blue-50); border: 1px solid var(--border); }
.phone-actions span.on { background: var(--sky-500); color: #fff; border-color: var(--sky-500); }
.phone-qr { display: block; width: 104px; height: 104px; margin: 12px auto 0; border-radius: 8px; border: 1px solid var(--border); }
@media (max-width: 820px) {
    .app-promo { grid-template-columns: 1fr; padding: 28px 22px; }
    .app-promo-phone { display: none; }
}

.app-banner {
    position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.app-banner[hidden] { display: none; }
.app-banner img { border-radius: 9px; }
.app-banner div { flex: 1; min-width: 0; line-height: 1.25; }
.app-banner strong { display: block; font-size: 13.5px; }
.app-banner span { font-size: 12px; color: var(--muted); }
.app-banner-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 6px; cursor: pointer; }

.danger-box {
    max-width: 760px; margin: 0 0 80px; padding: 24px; border-radius: var(--radius-lg);
    border: 1px solid #f5c2c2; background: #fff7f7;
}
.danger-box h2 { margin: 0 0 6px; font-size: 20px; }
.danger-box p { margin: 0 0 14px; color: var(--ink-soft); }
.danger-box form { display: flex; gap: 10px; flex-wrap: wrap; }
.danger-box .input { max-width: 220px; }
.danger-box .btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.danger-box .btn-danger:hover { color: #fff; filter: brightness(.95); }

/* ---- PWA install call-to-action ---- */
.pwa-install {
    max-width: 760px; margin: 0 0 8px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--blue-50), #fff);
    box-shadow: var(--shadow-sm);
}
.pwa-install-main { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.pwa-badge {
    flex: none; width: 44px; height: 44px; border-radius: 12px; color: #fff;
    display: grid; place-items: center; background: var(--grad-cta); box-shadow: var(--shadow-glow);
}
.pwa-install-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pwa-install-copy strong { font-size: 16px; }
.pwa-install-hint { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pwa-install .btn { flex: none; white-space: nowrap; }
.pwa-install.is-installed .pwa-badge { background: var(--success); box-shadow: none; }

@media (max-width: 560px) {
    .pwa-install-main { flex-wrap: wrap; }
    .pwa-install .btn { width: 100%; }
}

/* Download options: PWA + store badges side by side */
.download-grid { display: grid; gap: 16px; max-width: 760px; margin: 0 0 8px; }
@media (min-width: 720px) { .download-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }

.page-head-sub { max-width: 640px; margin: 10px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ---- FAQ accordion (home) ---- */
.faq-list { max-width: 820px; margin: 22px auto 0; display: grid; gap: 10px; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-xs); overflow: hidden;
}
.faq-item summary {
    list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600;
    font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 2px; }
.faq-item[open] summary { color: var(--sky-600); }
.faq-answer { padding: 0 18px 16px; }
.faq-answer p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* ---------- Download page (/download) ---------- */
.dl-banner {
    position: relative; overflow: hidden; color: #fff; text-align: center;
    background:
        radial-gradient(520px 220px at 12% 120%, rgba(255,255,255,.18), transparent 60%),
        radial-gradient(600px 260px at 90% -30%, rgba(236,72,153,.35), transparent 60%),
        var(--grad-cta);
    padding: 54px 0 46px;
}
.dl-banner h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.dl-crumbs { margin-top: 8px; font-size: 14px; opacity: .92; display: inline-flex; gap: 8px; align-items: center; }
.dl-crumbs a { color: #fff; font-weight: 600; }
.dl-crumbs a:hover { color: #fff; text-decoration: underline; }
section.block.dl-main { padding: 56px 0 80px; }
.dl-title { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 0; text-transform: uppercase; }
.dl-title span { color: var(--muted); font-weight: 600; text-transform: none; font-size: .7em; letter-spacing: 0; }
.dl-lead { color: var(--ink-soft); font-size: 16.5px; margin: 10px 0 0; max-width: 70ch; }
.dl-hero { display: block; width: 100%; height: auto; margin: 26px 0 0; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.dl-detected {
    display: inline-block; margin: 16px 0 0; padding: 7px 14px; border-radius: 999px; font-size: 14px;
    background: rgba(var(--sky-rgb), .08); border: 1px solid rgba(var(--sky-rgb), .2); color: var(--sky-700);
}
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 30px; }
.dl-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dl-card.is-mine { border-color: transparent; box-shadow: 0 0 0 2px var(--sky-500), var(--shadow); }
.dl-card.is-mine .dl-card-head { padding-top: 34px; }
.dl-card-head {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 20px;
    background: linear-gradient(180deg, var(--blue-50), #fff); border-bottom: 1px solid var(--border);
}
.dl-card-head h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; display: flex; flex-direction: column; }
.dl-card-head small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.dl-icon {
    flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    color: #fff; background: var(--grad-cta); box-shadow: 0 10px 20px -10px rgba(var(--purple-rgb), .5);
}
.dl-icon-windows { background: linear-gradient(135deg, #00C6FF, #0067D6); }
.dl-icon-macos { background: linear-gradient(135deg, #334155, #0F172A); }
.dl-icon-linux { background: linear-gradient(135deg, #FFB547, #FF9800); }
.dl-icon-ios { background: linear-gradient(135deg, #8B5CFF, #6A00FF); }
.dl-icon-android { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.dl-icon-docs { background: linear-gradient(135deg, #8B5CFF, #EC4899); }
.dl-tag {
    position: absolute; top: 10px; right: 14px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: #fff; background: var(--grad-primary); padding: 3px 9px; border-radius: 999px;
}
.dl-list { list-style: none; margin: 0; padding: 18px 20px 6px; display: grid; gap: 9px; flex: 1; }
.dl-list li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.dl-list svg { flex: none; margin-top: 2px; color: var(--success); }
.dl-btn {
    margin: 14px 20px 20px; height: 46px; color: #fff; background: var(--grad-cta); border: 0; border-radius: 12px;
    box-shadow: 0 12px 24px -12px rgba(var(--purple-rgb), .7); cursor: pointer;
}
.dl-btn:hover { color: #fff; transform: translateY(-1px); }
.dl-btn:disabled { opacity: .6; cursor: default; transform: none; }
.dl-btn.is-soon { background: var(--blue-100); color: var(--sky-700); box-shadow: none; cursor: default; }
.dl-btn-ghost { background: #fff; color: var(--sky-600); border: 1px solid var(--border-strong); box-shadow: none; }
.dl-btn-ghost:hover { color: var(--sky-700); border-color: var(--sky-500); }
.dl-hint {
    margin: -6px 20px 18px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.5;
    background: var(--blue-50); border: 1px dashed var(--border-strong); color: var(--ink-soft);
}
.dl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.dl-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.dl-panel h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.dl-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.dl-log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.dl-log-head span { font-size: 13px; color: var(--muted); }
.dl-log ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 7px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.prose.dl-about { padding: 44px 0 0; }
@media (max-width: 860px) { .dl-split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .dl-banner { padding: 40px 0 34px; } section.block.dl-main { padding: 36px 0 60px; } }

/* Super Admin → Users: device + location */
.dev-meta { color: var(--muted); font-size: 12px; }
.dev-h { font-size: 18px; margin: 26px 0 12px; }
.dev-map { display: block; width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 16px; }
