/* ============================================================
   Linear-inspired design system
   Near-black canvas · Inter Variable · indigo accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg-marketing: #08090a;
    --bg-deep: #010102;
    --bg-panel: #0f1011;
    --surface-1: #191a1b;
    --surface-2: #28282c;
    --surface-3: #34343a;

    --text-primary: #f7f8f8;
    --text-secondary: #d0d6e0;
    --text-tertiary: #8a8f98;
    --text-quaternary: #62666d;

    --brand: #5e6ad2;
    --accent: #7170ff;
    --accent-hover: #828fff;
    --lavender: #7a7fad;

    --green: #27a644;
    --emerald: #10b981;
    --red: #ff6369;
    --red-soft: rgba(255, 99, 105, 0.1);
    --amber: #f5a623;

    --border-subtle: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --line: #18191a;
    --line-solid: #23252a;

    --radius-micro: 2px;
    --radius-sm: 4px;
    --radius: 6px;
    --radius-card: 8px;
    --radius-panel: 12px;
    --radius-lg: 22px;

    --shadow-dialog:
        0 8px 2px rgba(0, 0, 0, 0),
        0 5px 2px rgba(0, 0, 0, 0.01),
        0 3px 2px rgba(0, 0, 0, 0.04),
        0 1px 1px rgba(0, 0, 0, 0.07),
        0 0 1px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-inset: inset 0 0 12px rgba(0, 0, 0, 0.2);

    --font-sans: "Inter Variable", "Inter", "SF Pro Display", -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
        "Open Sans", "Helvetica Neue", sans-serif;
    --font-mono: "Berkeley Mono", ui-monospace, "SF Mono", Menlo, Consolas,
        "Liberation Mono", monospace;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background: var(--bg-marketing);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    font-feature-settings: "cv01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
    font-feature-settings: inherit;
    color: inherit;
}

::selection {
    background: rgba(113, 112, 255, 0.35);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.09);
    border-radius: 9999px;
    border: 3px solid var(--bg-marketing);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 510;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.display-xl {
    font-size: 72px;
    font-weight: 510;
    line-height: 1;
    letter-spacing: -1.584px;
    color: var(--text-primary);
}
.display-lg {
    font-size: 64px;
    font-weight: 510;
    line-height: 1;
    letter-spacing: -1.408px;
    color: var(--text-primary);
}
.display {
    font-size: 48px;
    font-weight: 510;
    line-height: 1;
    letter-spacing: -1.056px;
    color: var(--text-primary);
}
.h1 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -0.704px;
    color: var(--text-primary);
}
.h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.33;
    letter-spacing: -0.288px;
    color: var(--text-primary);
}
.h3 {
    font-size: 20px;
    font-weight: 590;
    line-height: 1.33;
    letter-spacing: -0.24px;
    color: var(--text-primary);
}
.body-lg {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.165px;
    color: var(--text-tertiary);
}
.body {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.small {
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.165px;
    color: var(--text-tertiary);
}
.caption {
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: -0.13px;
    color: var(--text-tertiary);
}
.label {
    font-size: 12px;
    font-weight: 510;
    line-height: 1.4;
    color: var(--text-secondary);
}
.micro {
    font-size: 11px;
    font-weight: 510;
    line-height: 1.4;
    color: var(--text-tertiary);
}
.eyebrow {
    font-size: 11px;
    font-weight: 590;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.mono {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0;
}
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-quaternary { color: var(--text-quaternary); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.strong { font-weight: 590; color: var(--text-primary); }
.muted-line { color: var(--text-tertiary); }

/* ---------- Layout ---------- */
.shell {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}
.section {
    padding: 96px 0;
    position: relative;
}
.section-sm {
    padding: 64px 0;
    position: relative;
}
.section-tight {
    padding: 48px 0;
    position: relative;
}
.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head .eyebrow {
    margin-bottom: 16px;
}
.section-head h2 {
    margin-bottom: 16px;
}
.section-head p {
    color: var(--text-tertiary);
    font-size: 16px;
    line-height: 1.6;
}
.divider {
    height: 1px;
    background: var(--border-subtle);
    border: 0;
}
.stack {
    display: flex;
    flex-direction: column;
}
.row {
    display: flex;
    align-items: center;
}
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 24px; }
.gap-6 { gap: 32px; }
.grow { flex: 1; }
.center { text-align: center; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Ambient background */
.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 45% at 50% -5%, rgba(94, 106, 210, 0.10) 0%, transparent 70%),
        radial-gradient(40% 35% at 85% 20%, rgba(113, 112, 255, 0.05) 0%, transparent 70%);
}
.ambient-hairline {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 0%, transparent 75%);
}
.page-relative {
    position: relative;
    z-index: 1;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 510;
    line-height: 1;
    letter-spacing: -0.1px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease,
        color 0.15s ease, transform 0.15s ease;
}
.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
}
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgba(113, 112, 255, 0.18);
}
.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--brand);
    border-color: transparent;
    color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
}
.btn-primary:active:not(:disabled) {
    background: var(--accent);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    border-color: #24282c;
    color: #e2e4e7;
}
.btn-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
}

.btn-subtle {
    background: rgba(255, 255, 255, 0.04);
    border-color: transparent;
    color: var(--text-secondary);
    height: 30px;
    padding: 0 10px;
    font-size: 13px;
}
.btn-subtle:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(255, 99, 105, 0.08);
    border-color: rgba(255, 99, 105, 0.18);
    color: var(--red);
}
.btn-danger:hover:not(:disabled) {
    background: rgba(255, 99, 105, 0.14);
    border-color: rgba(255, 99, 105, 0.3);
}

.btn-lg {
    height: 40px;
    padding: 0 18px;
    font-size: 15px;
}
.btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: var(--radius);
}
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    color: var(--text-primary);
}
.btn-icon:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-strong);
}

/* ---------- Pills / badges ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 24px;
    padding: 0 10px 0 8px;
    border-radius: 9999px;
    border: 1px solid var(--line-solid);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 510;
    line-height: 1;
    white-space: nowrap;
}
.pill svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.pill-accent {
    border-color: rgba(113, 112, 255, 0.28);
    background: rgba(113, 112, 255, 0.08);
    color: #b9b8ff;
}
.pill-green {
    border-color: rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    flex-shrink: 0;
}
.dot-muted {
    background: var(--text-quaternary);
    box-shadow: none;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 18px;
    padding: 0 7px;
    border-radius: var(--radius-micro);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 510;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 10px;
}

/* ---------- Cards ---------- */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--border-strong);
}
.card-flat:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border);
}
.card-panel {
    border-radius: var(--radius-panel);
    padding: 32px;
}
.card-featured {
    border-radius: var(--radius-panel);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--border);
}
.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.card-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}
.card-title {
    font-size: 16px;
    font-weight: 590;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    margin-bottom: 6px;
}
.card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-tertiary);
    letter-spacing: -0.13px;
}

/* ---------- Forms ---------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.field label,
.form-label {
    font-size: 12px;
    font-weight: 510;
    color: var(--text-secondary);
    letter-spacing: 0;
}
.field .hint {
    font-size: 11px;
    color: var(--text-quaternary);
    line-height: 1.5;
}
.input,
.textarea,
.select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease,
        box-shadow 0.15s ease;
}
.input::placeholder,
.textarea::placeholder {
    color: var(--text-quaternary);
}
.input:hover,
.textarea:hover {
    border-color: var(--border-strong);
}
.input:focus,
.textarea:focus,
.select:focus {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(113, 112, 255, 0.55),
        0 0 0 4px rgba(113, 112, 255, 0.12);
}
.textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
}
.input-mono {
    font-family: var(--font-mono);
    font-size: 12px;
}
.input-wrap {
    position: relative;
}
.input-wrap .input {
    padding-right: 40px;
}
.input-action {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
}
.input-action:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.form-row {
    display: flex;
    gap: 12px;
}
.form-row > * {
    flex: 1;
}
input[type="checkbox"] {
    accent-color: var(--accent);
}

/* ---------- Progress / status ---------- */
.progress {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.progress-bar {
    height: 3px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    background: var(--accent);
    transition: width 0.4s ease;
    animation: progressFill 4.5s ease-out forwards;
}
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.step-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--text-quaternary);
    line-height: 1.4;
}
.step-row.done {
    color: var(--text-tertiary);
}
.step-row.active {
    color: var(--text-secondary);
}
.spinner {
    width: 13px;
    height: 13px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
.step-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}
.step-check {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #08090a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    flex-shrink: 0;
}
.status-message {
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
}
.status-message.success {
    border-color: rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.07);
    color: #6ee7b7;
}
.status-message.error {
    border-color: rgba(255, 99, 105, 0.22);
    background: var(--red-soft);
    color: #ff9ea2;
}
.alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
}
.alert-error {
    border-color: rgba(255, 99, 105, 0.22);
    background: var(--red-soft);
    color: #ff9ea2;
}
.alert-success {
    border-color: rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.07);
    color: #6ee7b7;
}
.hidden {
    display: none !important;
}

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 10, 0.8);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 590;
    letter-spacing: -0.2px;
}
.brand img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.brand img.brand-logo {
    width: auto;
    height: 22px;
    max-width: 160px;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}
.admin-brand img {
    width: auto;
    height: 22px;
    max-width: 160px;
    object-fit: contain;
}
.brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 590;
}
.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 2px;
}
.nav-link {
    padding: 6px 10px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 510;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 8px 0 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-quaternary);
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-search:hover {
    border-color: var(--border-strong);
    color: var(--text-tertiary);
}
.nav-search svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.nav-search .kbd {
    margin-left: 4px;
}
.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.mobile-menu {
    display: none;
    border-top: 1px solid var(--border-subtle);
    padding: 8px 16px 16px;
}
.mobile-menu.open {
    display: block;
}
.mobile-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 510;
}
.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 104px 0 72px;
    text-align: center;
}
.hero .eyebrow-pill {
    margin-bottom: 24px;
}
.hero h1 {
    max-width: 900px;
    margin: 0 auto 20px;
}
.hero h1 .dim {
    color: var(--text-quaternary);
}
.hero-sub {
    max-width: 580px;
    margin: 0 auto 32px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.165px;
    color: var(--text-tertiary);
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--text-quaternary);
    font-size: 12px;
}
.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.hero-meta svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.hero-glow {
    position: absolute;
    left: 50%;
    top: -140px;
    width: 900px;
    height: 620px;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse at center,
        rgba(94, 106, 210, 0.13) 0%,
        rgba(94, 106, 210, 0.04) 45%,
        transparent 72%
    );
    pointer-events: none;
    z-index: -1;
}

/* ---------- Stats ---------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.018);
    overflow: hidden;
}
.stat-cell {
    padding: 24px 20px;
    border-right: 1px solid var(--border-subtle);
    text-align: left;
}
.stat-cell:last-child {
    border-right: 0;
}
.stat-value {
    font-size: 28px;
    font-weight: 510;
    line-height: 1.1;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.stat-name {
    font-size: 11px;
    font-weight: 510;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}

/* ---------- Tool directory ---------- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.tool-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
}
.tool-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.tool-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.tool-card-icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}
.tool-card:hover .tool-card-icon {
    color: var(--accent);
    border-color: rgba(113, 112, 255, 0.3);
    background: rgba(113, 112, 255, 0.08);
}
.tool-card h3 {
    font-size: 15px;
    font-weight: 590;
    letter-spacing: -0.2px;
    color: var(--text-primary);
}
.tool-card p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-tertiary);
    letter-spacing: -0.1px;
}
.tool-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 11px;
    color: var(--text-quaternary);
}
.tool-card-footer svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform 0.15s ease;
}
.tool-card:hover .tool-card-footer {
    color: var(--text-secondary);
}
.tool-card:hover .tool-card-footer svg {
    transform: translateX(2px);
}

.tool-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(113, 112, 255, 0.08), transparent 70%),
        rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.tool-feature:hover {
    border-color: var(--border-strong);
    background:
        radial-gradient(600px 200px at 0% 0%, rgba(113, 112, 255, 0.12), transparent 70%),
        rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}
.tool-feature-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}
.tool-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-primary);
    background: rgba(113, 112, 255, 0.1);
    border: 1px solid rgba(113, 112, 255, 0.22);
}
.tool-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}
.tool-feature-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.tool-feature-title h3 {
    font-size: 20px;
    font-weight: 590;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}
.tool-feature p {
    max-width: 560px;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: -0.1px;
    color: var(--text-tertiary);
}
.tool-feature-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-quaternary);
}
.tool-feature-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tool-feature-meta span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green);
}
.tool-feature > .btn {
    flex-shrink: 0;
}

@media (max-width: 760px) {
    .tool-feature {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }
    .tool-feature > .btn {
        width: 100%;
    }
}

/* ---------- Feature list ---------- */
.feature-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
}
.feature-card h3 {
    font-size: 15px;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.feature-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-tertiary);
}
.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
}
.feature-row svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 1.7;
    flex-shrink: 0;
    margin-top: 1px;
}
.feature-row strong {
    display: block;
    font-size: 13px;
    font-weight: 510;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.feature-row span {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-tertiary);
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    background:
        radial-gradient(70% 120% at 50% 0%, rgba(113, 112, 255, 0.10), transparent 70%),
        rgba(255, 255, 255, 0.018);
    overflow: hidden;
}
.cta-band h2 {
    margin-bottom: 14px;
}
.cta-band p {
    max-width: 480px;
    margin: 0 auto 28px;
    color: var(--text-tertiary);
    font-size: 15px;
    line-height: 1.6;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0 48px;
    margin-top: 24px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-tertiary);
    font-size: 12px;
}
.footer-brand img {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    opacity: 0.7;
}
.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-quaternary);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-links a:hover {
    color: var(--text-secondary);
}

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 20px 40px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal.open {
    display: flex;
}
.modal-panel {
    width: 100%;
    max-width: 560px;
    max-height: 74vh;
    display: flex;
    flex-direction: column;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-dialog);
    overflow: hidden;
    animation: modalIn 0.18s ease-out;
}
.modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
}
.modal-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
}
.modal-search svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}
.modal-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
}
.modal-search input::placeholder {
    color: var(--text-quaternary);
}
.modal-body {
    overflow-y: auto;
    padding: 6px;
}
.modal-group-label {
    padding: 10px 10px 6px;
    font-size: 10px;
    font-weight: 590;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}
.modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 510;
    transition: background 0.12s ease, color 0.12s ease;
}
.modal-item:hover,
.modal-item:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    outline: none;
}
.modal-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 1.7;
    flex-shrink: 0;
}
.modal-item .badge {
    margin-left: auto;
}
.modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-quaternary);
    font-size: 11px;
}

/* ---------- Flash animation ---------- */
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.1s; }
.reveal-3 { animation-delay: 0.15s; }
.reveal-4 { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
    }
}

/* ============================================================
   Landing pages
   ============================================================ */
.landing-nav .nav-inner {
    max-width: none;
}
.landing-main {
    position: relative;
    z-index: 1;
    padding: 64px 0 80px;
}
.landing-hero {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px;
}
.landing-hero .pill {
    margin-bottom: 20px;
}
.landing-hero h1 {
    font-size: 44px;
    font-weight: 510;
    line-height: 1.06;
    letter-spacing: -1.06px;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.landing-hero h1 .dim {
    color: var(--text-quaternary);
}
.landing-hero p {
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.165px;
    color: var(--text-tertiary);
    max-width: 520px;
    margin: 0 auto;
}
.landing-card {
    max-width: 660px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: 28px;
}
.landing-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.landing-card-head .card-icon {
    margin: 0;
    flex-shrink: 0;
}
.landing-card-head h2 {
    font-size: 15px;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.landing-card-head p {
    font-size: 12px;
    color: var(--text-tertiary);
}
.instruction {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.015);
    padding: 14px;
    margin-bottom: 20px;
}
.instruction-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 510;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.instruction-head svg {
    width: 13px;
    height: 13px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}
.instruction ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.instruction li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-quaternary);
}
.instruction li a {
    color: var(--text-tertiary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.instruction li a:hover {
    color: var(--text-secondary);
}
.instruction li code,
.instruction li .code {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    padding: 1px 4px;
}
.step-num {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: 9px;
    font-weight: 590;
    font-family: var(--font-mono);
}
.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: var(--text-quaternary);
    font-size: 11px;
}
.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.trust-strip svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.landing-grid {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: start;
}
.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.mini-stat {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.018);
    padding: 14px;
}
.mini-stat strong {
    display: block;
    font-size: 18px;
    font-weight: 510;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.mini-stat span {
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}
.side-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    margin-bottom: 14px;
}
.side-card h3 {
    font-size: 13px;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.side-list .feature-row {
    padding: 12px;
    border-color: var(--border-subtle);
    background: rgba(255, 255, 255, 0.015);
}
.how-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.how-list .row {
    gap: 10px;
    font-size: 12px;
    color: var(--text-tertiary);
}
.how-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 510;
    font-family: var(--font-mono);
}
.activity-card {
    max-width: 660px;
    margin: 20px auto 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.015);
    padding: 16px 18px;
}
.activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.activity-head strong {
    font-size: 11px;
    font-weight: 590;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.activity-head span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--text-quaternary);
}
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.activity-feed > div {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--text-quaternary);
}
.activity-feed .act-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.activity-feed .act-user {
    color: var(--text-tertiary);
}
.activity-feed .act-time {
    margin-left: auto;
    color: var(--text-quaternary);
}
.region-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.region-btn {
    height: 28px;
    padding: 0 12px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 510;
    cursor: pointer;
    transition: all 0.15s ease;
}
.region-btn:hover {
    border-color: var(--border-strong);
    color: var(--text-secondary);
}
.region-btn.selected {
    border-color: rgba(113, 112, 255, 0.45);
    background: rgba(113, 112, 255, 0.12);
    color: #c7c6ff;
}
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 18px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-tertiary);
    font-size: 11px;
    font-weight: 500;
}
.chip svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.info-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-tertiary);
    font-size: 11.5px;
    margin-bottom: 18px;
}
.info-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
    animation: pulseDot 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.landing-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 22px 0;
    text-align: center;
    font-size: 11px;
    color: var(--text-quaternary);
}

/* ============================================================
   Admin
   ============================================================ */
.admin-body {
    background: var(--bg-marketing);
}
.admin-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 9, 10, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}
.admin-nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 590;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    text-decoration: none;
}
.admin-brand svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 1.7;
}
.admin-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}
.admin-menu a,
.admin-menu button {
    padding: 6px 10px;
    border-radius: var(--radius);
    border: 0;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 510;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.admin-menu a:hover,
.admin-menu button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}
.admin-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.admin-menu .logout-btn {
    color: var(--text-quaternary);
    border-left: 1px solid var(--border-subtle);
    border-radius: 0;
    margin-left: 8px;
    padding-left: 16px;
}
.admin-menu .logout-btn:hover {
    color: var(--text-secondary);
    background: transparent;
}
.admin-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 24px 64px;
    position: relative;
    z-index: 1;
}
.admin-container-narrow {
    max-width: 840px;
}
.page-header {
    margin-bottom: 28px;
}
.page-header h1 {
    font-size: 24px;
    font-weight: 510;
    letter-spacing: -0.42px;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.page-header p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Admin login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}
.login-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    padding: 40px 32px 32px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-dialog);
}
.login-logo {
    text-align: center;
    margin-bottom: 28px;
}
.login-mark {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border-radius: var(--radius-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(113, 112, 255, 0.1);
    border: 1px solid rgba(113, 112, 255, 0.25);
    color: var(--accent);
}
.login-mark svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}
.login-logo h1 {
    font-size: 18px;
    font-weight: 590;
    letter-spacing: -0.24px;
    margin-bottom: 4px;
}
.login-logo p {
    font-size: 12px;
    color: var(--text-tertiary);
}
.login-card .alert {
    margin-bottom: 16px;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.login-form .btn {
    width: 100%;
    margin-top: 4px;
}
.login-foot {
    margin-top: 20px;
    text-align: center;
    font-size: 11px;
    color: var(--text-quaternary);
}

/* Admin cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    transition: border-color 0.18s ease, background 0.18s ease;
}
.stat-card:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
}
.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.stat-card-title {
    font-size: 11px;
    font-weight: 510;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-quaternary);
}
.stat-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
}
.stat-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 1.8;
}
.stat-card .stat-value {
    font-size: 26px;
    margin-bottom: 2px;
}
.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
}
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 16px;
}
.chart-container {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    margin-bottom: 16px;
}
.chart-header {
    margin-bottom: 18px;
}
.chart-header h2 {
    font-size: 14px;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.chart-header p {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Admin tables */
.table-container {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}
.table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.table-header-left h2 {
    font-size: 14px;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.table-header-left p {
    font-size: 12px;
    color: var(--text-quaternary);
}
.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.selected-count {
    display: none;
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
}
.selected-count.active {
    display: block;
    color: var(--text-secondary);
}
.download-btn {
    display: none;
    height: 30px;
    padding: 0 11px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 510;
    cursor: pointer;
    transition: all 0.15s ease;
}
.download-btn:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.download-btn[style*="display:block"],
.download-btn[style*="display: block"],
.download-btn.active {
    display: inline-flex !important;
    align-items: center;
}
.download-btn.danger {
    background: rgba(255, 99, 105, 0.07);
    border-color: rgba(255, 99, 105, 0.18);
    color: #ff9ea2;
}
.download-btn.danger:hover {
    background: rgba(255, 99, 105, 0.13);
    border-color: rgba(255, 99, 105, 0.3);
    color: var(--red);
}
.badge-billing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(245, 166, 35, 0.28);
    background: rgba(245, 166, 35, 0.09);
    color: #e8b25f;
    font-size: 11px;
    font-weight: 590;
    line-height: 1;
}
.badge-billing svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.table-empty {
    color: var(--text-quaternary);
    font-size: 12px;
}
table {
    width: 100%;
    border-collapse: collapse;
}
thead {
    background: rgba(255, 255, 255, 0.018);
}
th {
    padding: 10px 12px;
    text-align: left;
    font-size: 10px;
    font-weight: 590;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-quaternary);
    white-space: nowrap;
}
td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    color: var(--text-tertiary);
    vertical-align: middle;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tr {
    transition: background 0.12s ease;
}
tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.selectable-row {
    cursor: pointer;
}
.selectable-row.selected {
    background: rgba(113, 112, 255, 0.06);
}
.selectable-row.has-billing {
    background: rgba(113, 112, 255, 0.03);
}
.selectable-row.has-billing:hover {
    background: rgba(113, 112, 255, 0.06) !important;
}
.checkbox-cell {
    width: 36px;
    padding-left: 16px;
}
.checkbox-cell input {
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.badge-premium,
.badge-headless,
.badge-korblox {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 9px;
    font-weight: 590;
    letter-spacing: 0.04em;
    margin: 1px 2px 1px 0;
    border: 1px solid transparent;
}
.badge-premium {
    background: rgba(245, 166, 35, 0.08);
    border-color: rgba(245, 166, 35, 0.2);
    color: #e8b25f;
}
.badge-headless {
    background: rgba(113, 112, 255, 0.1);
    border-color: rgba(113, 112, 255, 0.24);
    color: #a5a4ff;
}
.badge-korblox {
    background: rgba(122, 127, 173, 0.12);
    border-color: rgba(122, 127, 173, 0.26);
    color: #a6abda;
}
.pagination {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}
.pagination-info {
    font-size: 12px;
    color: var(--text-quaternary);
}
.pagination-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.pagination-buttons a {
    padding: 5px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-tertiary);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.pagination-buttons a:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}
.pagination-buttons a.active {
    background: rgba(113, 112, 255, 0.12);
    border-color: rgba(113, 112, 255, 0.35);
    color: #c7c6ff;
}
.pagination-buttons a.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.cookie-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-quaternary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.cookie-cell:hover {
    color: var(--text-secondary);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.05);
}
.stat-badge {
    display: block;
    font-size: 11px;
    color: var(--text-quaternary);
    line-height: 1.5;
}
.no-data {
    padding: 56px 24px;
    text-align: center;
    color: var(--text-quaternary);
    font-size: 13px;
}
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 510;
    box-shadow: var(--shadow-elevated);
    opacity: 0;
    transform: translateX(120px);
    pointer-events: none;
}
.copy-notification.show {
    animation: slideInRight 0.3s ease forwards;
}
.copy-notification.hide {
    animation: slideOutRight 0.25s ease forwards;
}
@keyframes slideInRight {
    from { transform: translateX(120px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120px); opacity: 0; }
}

/* Admin settings */
.settings-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    margin-bottom: 16px;
}
.settings-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}
.settings-header h2 {
    font-size: 14px;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.settings-header p {
    font-size: 12px;
    color: var(--text-tertiary);
}
.settings-body {
    padding: 20px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 510;
    color: var(--text-secondary);
}
.form-group input {
    width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.15s ease;
}
.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(113, 112, 255, 0.55),
        0 0 0 4px rgba(113, 112, 255, 0.12);
}
.submit-btn {
    height: 34px;
    padding: 0 14px;
    background: var(--brand);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #fff;
    font-size: 13px;
    font-weight: 510;
    cursor: pointer;
    transition: background 0.15s ease;
}
.submit-btn:hover {
    background: var(--accent-hover);
}
.info-box {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.015);
    padding: 12px 14px;
    margin-bottom: 18px;
}
.info-box p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-tertiary);
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.info-row:last-child {
    border-bottom: 0;
}
.info-row span {
    font-size: 12px;
    color: var(--text-tertiary);
}
.info-row strong {
    font-size: 12px;
    font-weight: 510;
    color: var(--text-primary);
}
.danger-zone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 99, 105, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 99, 105, 0.04);
}
.danger-zone strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 510;
    color: var(--text-primary);
}
.danger-zone span {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-tertiary);
}

/* Admin landings */
.landing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
    transition: border-color 0.15s ease;
}
.landing-item:hover {
    border-color: var(--border-strong);
}
.landing-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.landing-name {
    font-size: 13px;
    font-weight: 510;
    color: var(--text-primary);
}
.landing-url {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-quaternary);
}
.landing-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 590;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 9999px;
}
.status-on {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-on::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--emerald);
}
.status-off {
    color: var(--text-quaternary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
}
.toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}
.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: 9999px;
    transition: all 0.18s ease;
}
.toggle-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: all 0.18s ease;
}
.toggle input:checked + .toggle-slider {
    background: rgba(94, 106, 210, 0.35);
    border-color: rgba(113, 112, 255, 0.5);
}
.toggle input:checked + .toggle-slider::before {
    transform: translateX(18px);
    background: #fff;
}
.save-btn {
    height: 34px;
    padding: 0 16px;
    margin-top: 16px;
    background: var(--brand);
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #fff;
    font-size: 13px;
    font-weight: 510;
    cursor: pointer;
    transition: background 0.15s ease;
}
.save-btn:hover {
    background: var(--accent-hover);
}

/* ============================================================
   Tool page
   ============================================================ */
.tool-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.tool-wrap {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 24px 64px;
    flex: 1;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 510;
    text-decoration: none;
    transition: color 0.15s ease;
}
.back-link:hover {
    color: var(--text-primary);
}
.back-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.tool-header {
    margin-bottom: 28px;
}
.tool-header .pill {
    margin-bottom: 14px;
}
.tool-header h1 {
    font-size: 32px;
    font-weight: 510;
    letter-spacing: -0.704px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.tool-header p {
    max-width: 560px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-tertiary);
}
.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 16px;
    align-items: start;
}
.tool-form-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.02);
    padding: 24px;
}
.tool-form-card h2 {
    font-size: 13px;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tool-form .btn {
    width: 100%;
    height: 38px;
}
.tool-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tool-side .card {
    padding: 20px;
}
.tool-side h2 {
    font-size: 13px;
    font-weight: 590;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.tool-side p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}
.video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background:
        radial-gradient(70% 100% at 50% 0%, rgba(113, 112, 255, 0.16), transparent 70%),
        rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.video-thumb:hover {
    border-color: rgba(113, 112, 255, 0.4);
}
.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    backdrop-filter: blur(8px);
}
.play-btn:hover {
    background: var(--brand);
    border-color: transparent;
    transform: scale(1.04);
}
.play-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-left: 2px;
}
.game-detected {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(113, 112, 255, 0.24);
    background: rgba(113, 112, 255, 0.07);
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.5;
    color: #b9b8ff;
    margin-bottom: 14px;
}
.game-detected svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 1px;
}
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -80px);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
}
.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-dialog);
    font-size: 13px;
    font-weight: 510;
    color: var(--text-secondary);
}
.notification.success .notification-content {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(11, 26, 20, 0.96);
    color: #6ee7b7;
}
.notification.error .notification-content {
    border-color: rgba(255, 99, 105, 0.25);
    background: rgba(28, 12, 13, 0.96);
    color: #ff9ea2;
}
.notification-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Video modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.video-modal.open {
    display: flex;
}
.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}
.video-modal-content {
    position: relative;
    width: min(100%, 960px);
    z-index: 1;
}
.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
}
#tutorialVideo {
    width: 100%;
    border-radius: var(--radius-panel);
    border: 1px solid var(--border);
    background: #000;
}

/* 404 */
.error-page {
    min-height: calc(100vh - 57px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}
.error-card {
    text-align: center;
    max-width: 420px;
    position: relative;
    z-index: 1;
}
.error-code {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 14px;
}
.error-card h1 {
    font-size: 32px;
    font-weight: 510;
    letter-spacing: -0.704px;
    margin-bottom: 10px;
}
.error-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .display-xl { font-size: 56px; letter-spacing: -1.2px; }
    .display-lg { font-size: 48px; letter-spacing: -1.05px; }
    .display { font-size: 40px; letter-spacing: -0.85px; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-grid { grid-template-columns: 1fr; gap: 20px; }
    .tool-layout { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-search { display: none; }
    .nav-toggle { display: inline-flex; }
    .section { padding: 72px 0; }
    .hero { padding: 72px 0 48px; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-right: 0; }
    .stat-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--border-subtle); }
    .admin-menu { display: none; }
    .admin-menu.open {
        display: flex;
        position: absolute;
        top: 56px;
        right: 12px;
        left: 12px;
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        background: var(--surface-1);
        border: 1px solid var(--border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-dialog);
    }
    .admin-menu.open .logout-btn {
        border-left: 0;
        margin-left: 0;
        padding-left: 10px;
        border-top: 1px solid var(--border-subtle);
        border-radius: 0;
    }
    .admin-nav-inner { position: relative; }
    .admin-mobile-toggle { display: inline-flex !important; }
}

@media (max-width: 640px) {
    .shell { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }
    .brand-name,
    .admin-brand span { display: none; }
    .brand img.brand-logo,
    .admin-brand img { height: 20px; }
    .display-xl { font-size: 40px; letter-spacing: -0.9px; }
    .display-lg { font-size: 36px; letter-spacing: -0.8px; }
    .display { font-size: 32px; letter-spacing: -0.704px; }
    .h1 { font-size: 26px; letter-spacing: -0.5px; }
    .hero { padding: 56px 0 40px; }
    .hero-sub { font-size: 16px; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }
    .tool-grid { grid-template-columns: 1fr; }
    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr; }
    .stat-cell { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
    .stat-cell:last-child { border-bottom: 0; }
    .cta-band { padding: 40px 24px; }
    .landing-main { padding: 40px 0 56px; }
    .landing-hero h1 { font-size: 32px; letter-spacing: -0.7px; }
    .landing-card { padding: 20px; }
    .landing-hero { margin-bottom: 28px; }
    .mini-stats { grid-template-columns: 1fr; }
    .tool-wrap { padding: 24px 16px 48px; }
    .tool-header h1 { font-size: 26px; letter-spacing: -0.5px; }
    .tool-form-card { padding: 18px; }
    .admin-container { padding: 24px 16px 48px; }
    .admin-nav-inner { padding: 0 16px; }
    .login-card { padding: 32px 22px 24px; }
    .form-row { flex-direction: column; }
    .modal { padding: 8vh 12px 24px; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .table-header { align-items: flex-start; }
    .table-container { overflow-x: auto; }
    table { min-width: 900px; }
}

/* Admin mobile toggle (hidden by default) */
.admin-mobile-toggle {
    display: none;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
}
.admin-mobile-toggle svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
