/* FoundPhones — clean, modern design */

:root {
    --blue-950: #0f172a;
    --blue-900: #1e3a8a;
    --blue-800: #1e40af;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.15);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
    font-family: var(--font);
    color: var(--slate-900);
    background: var(--slate-50);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.nav-open,
body.admin-nav-open {
    overflow: hidden;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--blue-950);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 16px;
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
}

:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
.admin-menu-toggle:focus-visible,
.checkbox-label input:focus-visible,
.cookie-toggle input:focus-visible + .cookie-toggle-ui {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
}

#main-content:focus,
#admin-main:focus {
    outline: none;
}

#main-content:focus-visible,
#admin-main:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 4px;
}

.field-error {
    margin-top: 6px;
    font-size: .8rem;
    color: #991b1b;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .btn:active {
        transform: none;
    }
}

img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.container-narrow { max-width: 480px; }

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    position: relative;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--white);
    color: var(--slate-700);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

.nav-toggle .icon-close { display: none; }

.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-900);
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-image {
    display: block;
    width: auto;
    height: 40px;
    max-width: min(220px, 58vw);
}

.logo-image--compact {
    max-width: 160px;
}

.logo-image--on-dark {
    border-radius: 8px;
}

.logo-image--admin {
    max-width: 180px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--blue-600);
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-text span { color: var(--blue-600); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: .925rem;
    font-weight: 500;
}

.site-nav a:not(.btn) { color: var(--slate-600); }
.site-nav a:not(.btn):hover { color: var(--slate-900); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: 44px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .1s;
    text-decoration: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-700);
    color: var(--white);
}

.btn-secondary {
    background: var(--slate-100);
    color: var(--slate-900);
}

.btn-secondary:hover { background: var(--slate-200); color: var(--slate-900); }

.btn-ghost {
    background: transparent;
    color: var(--slate-600);
}

.btn-ghost:hover { background: var(--slate-100); color: var(--slate-900); }

.btn-sm { padding: 8px 16px; font-size: .875rem; }

.btn-block { width: 100%; }

.btn-icon svg { width: 18px; height: 18px; }

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin: 16px 0;
    font-size: .9rem;
}

.alert-success { background: var(--green-100); color: var(--green-700); }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: var(--blue-100); color: var(--blue-800); }

/* Forms */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--slate-600);
    margin-bottom: 6px;
}

.form-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.form-label-row label {
    margin-bottom: 0;
}

.form-label-link {
    flex-shrink: 0;
    font-size: .8rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    font-size: max(16px, .95rem);
    font-family: inherit;
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
    min-height: 44px;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.form-group input[aria-invalid="true"]:focus,
.form-group select[aria-invalid="true"]:focus,
.form-group textarea[aria-invalid="true"]:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}

.form-hint {
    font-size: .8rem;
    color: var(--slate-600);
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    cursor: pointer;
}

.checkbox-label input { width: auto; margin-top: 3px; }

.subscription-renewal-ack,
.legal-agreement-ack {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
}

.plan-action-form .subscription-renewal-ack {
    margin-bottom: 12px;
}

.legal-agreement-ack a {
    color: var(--blue-700);
    text-decoration: underline;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    border: 1px solid var(--slate-200);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-subtitle {
    color: var(--slate-500);
    font-size: .9rem;
    margin-bottom: 20px;
}

/* Hero / Landing */
.hero {
    background: linear-gradient(160deg, var(--blue-950) 0%, var(--blue-900) 45%, var(--blue-600) 100%);
    color: var(--white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .85rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero p.lead {
    font-size: 1.125rem;
    opacity: .9;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-actions .btn-secondary {
    background: rgba(255,255,255,.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,.25);
}

.hero-actions .btn-secondary:hover { background: rgba(255,255,255,.25); color: var(--white); }

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.store-badges--center {
    justify-content: center;
    margin: 0 auto 28px;
}

.store-badges--hero .store-badge--pending {
    opacity: .88;
}

.store-badge {
    display: inline-flex;
    line-height: 0;
    border-radius: 8px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
    transform: translateY(-1px);
}

.store-badge img {
    display: block;
    width: auto;
    height: 44px;
}

.store-badge--pending {
    cursor: default;
}

.store-badge--pending:hover {
    transform: none;
}

@media (min-width: 768px) {
    .store-badge img {
        height: 48px;
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
}

.hero-shot {
    margin: 0;
    flex: 0 1 auto;
}

.hero-shot img {
    display: block;
    width: min(220px, 42vw);
    height: auto;
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08);
}

.hero-shot-finder {
    align-self: flex-end;
    transform: translateY(12px);
}

.phone-mockup {
    width: 220px;
    background: #111;
    border-radius: 32px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 3px solid #333;
}

.phone-screen {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 24px 16px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--white);
    font-size: .75rem;
}

.phone-screen .mini-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: .8rem;
}

.phone-screen .mini-logo span { color: var(--blue-500); }

.qr-placeholder {
    background: var(--white);
    padding: 12px;
    border-radius: 12px;
    margin: 12px 0;
}

.qr-placeholder svg { width: 120px; height: 120px; display: block; }

.finder-preview {
    width: 220px;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    align-self: flex-end;
}

.finder-preview-header {
    background: linear-gradient(160deg, var(--blue-900), var(--blue-600));
    padding: 20px 16px;
    text-align: center;
    color: var(--white);
}

.finder-preview-header h3 { font-size: .85rem; margin-top: 8px; }

.finder-preview-body { padding: 16px; font-size: .7rem; }

.finder-preview-body .avatar {
    width: 36px;
    height: 36px;
    background: var(--blue-600);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Features */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--slate-500);
    max-width: 560px;
    margin: 0 auto 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-50);
    color: var(--blue-600);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--slate-500);
    font-size: .9rem;
}

/* Pricing */
.pricing {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid var(--slate-200);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-grid .pricing-card {
    max-width: none;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-grid .pricing-features {
    flex: 1;
}

.pricing-card-featured {
    border-color: #14b8a6;
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.18), 0 0 0 1px rgba(20, 184, 166, 0.15);
}

.pricing-card-selected {
    border-color: var(--blue-600);
    background: var(--blue-50);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: var(--white);
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-desc {
    color: var(--slate-500);
    font-size: .9rem;
    margin-bottom: 12px;
}

.pricing-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 14px;
    border: 2px solid var(--slate-200);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: .925rem;
}

.pricing-select:has(input:checked) {
    border-color: var(--blue-600);
    background: var(--white);
}

.pricing-select input {
    width: auto;
    min-height: auto;
}

.auth-page-wide {
    align-items: flex-start;
    padding-top: 32px;
}

.auth-card-wide {
    max-width: 960px;
    width: 100%;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-600);
    margin: 16px 0;
}

.pricing-amount small {
    font-size: 1rem;
    color: var(--slate-500);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 24px 0;
}

.pricing-features li {
    padding: 8px 0;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--green-600);
    font-weight: 700;
}

/* Auth pages */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-page-register {
    min-height: auto;
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 56px;
}

.auth-card { width: 100%; max-width: 440px; }

.auth-card-register {
    max-width: 520px;
}

.package-feature-flags {
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 16px 18px 8px;
}

.package-feature-group-title {
    margin: 16px 0 8px;
    font-size: .9rem;
    color: var(--slate-600);
}

.package-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

@media (min-width: 720px) {
    .package-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.package-feature-item {
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--white);
}

.package-feature-item--wide {
    grid-column: 1 / -1;
}

.package-feature-item .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.package-feature-limit {
    margin: 10px 0 0 28px;
    max-width: 280px;
}

.package-feature-limit label {
    display: block;
    font-size: .9rem;
    margin-bottom: 4px;
}

.package-feature-limit input[type="number"] {
    width: 100%;
    max-width: 120px;
}

.package-marketing-preview {
    margin: 16px 0 8px;
    padding-top: 8px;
    border-top: 1px solid var(--slate-200);
}

.package-marketing-preview-list {
    margin: 8px 0 0;
    padding-left: 1.2rem;
}

.package-marketing-preview-list li {
    margin: 4px 0;
}

.plan-upgrade-feature-card {
    border-color: var(--teal-500, #14b8a6);
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.15);
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    color: var(--slate-500);
    margin-bottom: 24px;
    font-size: .95rem;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: .9rem;
    color: var(--slate-500);
}

.register-verify-btn {
    margin-bottom: 8px;
}

.register-resend-btn,
.register-back-btn {
    margin-top: 10px;
}

.register-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--slate-200);
    overflow: hidden;
    margin-bottom: 12px;
}

.register-progress-bar {
    height: 100%;
    width: 16.666%;
    border-radius: inherit;
    background: var(--teal-600);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.register-step-status {
    margin: 0 0 20px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--slate-500);
}

.register-onboarding-viewport {
    overflow: visible;
    width: 100%;
    position: relative;
}

.register-onboarding-track {
    display: block;
    width: 100%;
    transform: none;
}

.register-slide {
    box-sizing: border-box;
    width: 100%;
    display: none;
}

.register-slide.is-active {
    display: block;
}

.register-slide[hidden] {
    display: none !important;
}

.register-slide.is-entering {
    animation: register-slide-in 0.28s ease;
}

@keyframes register-slide-in {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.register-slide h1,
.register-slide h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.register-slide .subtitle {
    color: var(--slate-500);
    margin-bottom: 24px;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.register-welcome-points {
    margin: 0 0 8px;
    padding-left: 1.15rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.register-welcome-points li + li {
    margin-top: 8px;
}

.register-plan-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register-plan-option {
    display: block;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 2px solid var(--slate-200);
    border-radius: 14px;
    background: var(--white);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.register-plan-option:hover {
    border-color: var(--teal-500, #14b8a6);
}

.register-plan-option:focus-within {
    border-color: var(--teal-600, #0d9488);
}

.register-plan-option.is-standard:not(.is-selected) {
    border-color: rgba(20, 184, 166, 0.55);
}

.register-plan-option.is-selected {
    border-color: var(--teal-600, #0d9488);
    background: rgba(20, 184, 166, 0.06);
}

.register-plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.register-plan-option-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
}

.register-plan-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.register-plan-option-name {
    font-weight: 700;
    color: var(--navy-900, #0f172a);
    font-size: 1rem;
}

.register-plan-option-badge {
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    padding: 3px 8px;
    border-radius: 999px;
}

.register-plan-option-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900, #0f172a);
}

.register-plan-option-price small {
    font-size: .85rem;
    font-weight: 500;
    color: var(--slate-500);
}

.register-plan-option-desc,
.register-plan-option-features {
    font-size: .8125rem;
    color: var(--slate-500);
    line-height: 1.45;
}

.register-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 28px;
}

.register-nav .btn {
    flex: 1 1 0;
}

.register-nav #register-back[hidden],
.register-nav #register-next[hidden] {
    display: none !important;
}

.register-step-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.register-step-extras[hidden] {
    display: none !important;
}

.register-step-extras .btn {
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    .register-slide.is-entering {
        animation: none;
    }

    .register-progress-bar {
        transition: none;
    }
}

.register-spam-hint {
    margin-bottom: 24px;
    font-size: .85rem;
}

.alert-followup {
    margin: 8px 0 0;
    font-size: .95rem;
}

.alert-followup {
    margin: 8px 0 0;
    font-size: .95rem;
}

.btn-sm {
    padding: 8px 14px;
    font-size: .85rem;
}

.register-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.register-fieldset:disabled {
    opacity: .55;
}

.register-fieldset:disabled .form-hint {
    opacity: .85;
}

.email-verified-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

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

/* Dashboard */
.dashboard-page {
    padding: 32px 0 64px;
    flex: 1;
    width: 100%;
}

.dashboard-shell {
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    min-height: 72px;
}

.dashboard-header-text {
    flex: 1;
    min-width: 0;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    line-height: 1.2;
}

.dashboard-subtitle {
    color: var(--slate-500);
    margin-top: 6px;
    font-size: .95rem;
    line-height: 1.45;
}

.dashboard-header-badge {
    flex-shrink: 0;
    align-self: flex-start;
}

.dashboard-content {
    width: 100%;
}

.dashboard-admin-back {
    margin: -8px 0 20px;
    font-size: .9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.dashboard-nav-scroll {
    width: 100%;
    margin-bottom: 24px;
}

.account-plan-section {
    scroll-margin-top: 1.5rem;
}

.dashboard-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 6px;
    width: 100%;
}

.dashboard-nav a {
    padding: 10px 8px;
    border-radius: 8px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--slate-600);
    background: var(--white);
    border: 1px solid var(--slate-200);
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    white-space: normal;
}

.dashboard-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-checklist-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--slate-200);
    flex-wrap: wrap;
}

.dashboard-checklist-item:last-child {
    border-bottom: none;
}

.dashboard-checklist-item > span {
    flex: 1 1 180px;
    min-width: 0;
}

.dashboard-checklist-item > a,
.dashboard-checklist-item > .badge {
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dashboard-nav a.active,
.dashboard-nav a:hover {
    background: var(--blue-50);
    color: var(--blue-700);
    border-color: var(--blue-200);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-card .label {
    font-size: .8rem;
    color: var(--slate-500);
    font-weight: 500;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 4px;
}

.qr-display {
    text-align: center;
    padding: 20px;
}

.qr-display img,
.qr-display canvas {
    max-width: 200px;
    border-radius: 12px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.qr-url {
    font-size: .8rem;
    color: var(--slate-500);
    word-break: break-all;
    margin-top: 12px;
}

.qr-regenerate-panel {
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--slate-50, #f8fafc);
}

/* Manage plan */
.plan-current {
    margin-bottom: 28px;
}

.plan-current-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.plan-label {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--slate-500);
    margin-bottom: 4px;
}

.plan-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 16px;
}

.plan-meta-item .label {
    display: block;
    font-size: .75rem;
    color: var(--slate-500);
    margin-bottom: 4px;
}

.plan-meta-item .value {
    font-weight: 600;
    font-size: .95rem;
}

.plan-feature-list {
    margin-bottom: 16px;
}

.plan-action-form {
    margin-top: auto;
    padding-top: 8px;
}

.plan-upgrade-section {
    margin-bottom: 24px;
}

.section-heading {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.section-lead {
    color: var(--slate-500);
    font-size: .925rem;
    margin-bottom: 20px;
}

.plan-upgrade-grid .plan-upgrade-card {
    display: flex;
    flex-direction: column;
}

.plan-upgrade-diff {
    font-size: .85rem;
    color: var(--green-700);
    font-weight: 600;
    margin: 8px 0 12px;
    min-height: 1.25rem;
}

.plan-payment-note {
    margin-top: 8px;
}

/* Lock screen wallpaper editor */
.wallpaper-editor {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.wallpaper-controls .wallpaper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.wallpaper-controls .wallpaper-actions .btn-primary {
    flex: 1;
    min-width: 140px;
}

.wallpaper-hint {
    margin-top: 16px;
    word-break: break-all;
}

.wallpaper-presets {
    margin-bottom: 8px;
}

.wallpaper-open-picker {
    width: 100%;
}

.wallpaper-selected-label {
    margin-top: 10px;
    font-size: .875rem;
    color: var(--teal-700);
    font-weight: 500;
}

body.wallpaper-picker-open {
    overflow: hidden;
}

.wallpaper-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wallpaper-picker-modal.is-open {
    display: flex;
}

.wallpaper-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 68, 0.62);
}

.wallpaper-picker-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.wallpaper-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--slate-200);
}

.wallpaper-picker-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.wallpaper-picker-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.wallpaper-picker-close:hover {
    background: var(--slate-200);
}

.wallpaper-picker-categories {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--slate-200);
    scrollbar-width: thin;
}

.wallpaper-picker-category {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--slate-600);
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.wallpaper-picker-category:hover {
    border-color: var(--teal-500);
    color: var(--teal-600);
}

.wallpaper-picker-category.is-active {
    background: rgba(20, 184, 166, 0.12);
    border-color: var(--teal-500);
    color: var(--teal-700);
}

.wallpaper-picker-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 20px;
}

.wallpaper-picker-slide {
    min-width: 0;
    text-align: center;
}

.wallpaper-picker-frame {
    width: min(100%, 260px);
    margin: 0 auto;
    aspect-ratio: 9 / 19.5;
    border-radius: 24px;
    overflow: hidden;
    background: var(--slate-100);
    box-shadow: inset 0 0 0 1px rgba(15, 39, 68, 0.08);
}

.wallpaper-picker-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.wallpaper-picker-name {
    margin: 14px 0 4px;
    font-weight: 600;
    color: var(--slate-800);
}

.wallpaper-picker-counter {
    margin: 0;
    font-size: .8125rem;
    color: var(--slate-500);
}

.wallpaper-picker-nav {
    width: 44px;
    height: 44px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--slate-700);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, background .15s ease;
}

.wallpaper-picker-nav:hover:not(:disabled) {
    border-color: var(--teal-500);
    color: var(--teal-600);
}

.wallpaper-picker-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.wallpaper-picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--slate-200);
}

.wallpaper-picker-actions .btn-primary {
    flex: 1;
}

@media (max-width: 520px) {
    .wallpaper-picker-panel {
        border-radius: 16px;
    }

    .wallpaper-picker-carousel {
        padding: 16px 12px;
        gap: 6px;
    }

    .wallpaper-picker-nav {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .wallpaper-picker-frame {
        width: min(100%, 220px);
    }
}

.wallpaper-preview-wrap {
    text-align: center;
}

.wallpaper-preview-actions {
    display: none;
    margin-top: 16px;
    text-align: center;
}

.wallpaper-preview-actions .btn {
    width: 100%;
}

.wallpaper-preview-actions .form-hint {
    margin-top: 10px;
}

body.wallpaper-save-open {
    overflow: hidden;
}

.wallpaper-save-modal {
    position: fixed;
    inset: 0;
    z-index: 800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wallpaper-save-modal.is-open {
    display: flex;
}

.wallpaper-save-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 68, 0.72);
}

.wallpaper-save-panel {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.wallpaper-save-panel h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.wallpaper-save-hint {
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: .875rem;
    line-height: 1.5;
}

.wallpaper-save-preview {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(15, 39, 68, 0.08);
    margin-bottom: 16px;
    -webkit-touch-callout: default;
    user-select: auto;
    -webkit-user-select: auto;
}

.wallpaper-save-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallpaper-save-actions .btn,
.wallpaper-save-actions a.btn {
    width: 100%;
    text-align: center;
}

.wallpaper-preview-label {
    font-size: .875rem;
    color: var(--slate-500);
    margin-bottom: 16px;
}

.phone-emulator {
    display: inline-block;
    width: min(100%, 300px);
    background: #111;
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    border: 3px solid #333;
    position: relative;
}

.phone-emulator-screen {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
    background: #1a1a2e;
}

.phone-emulator-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 26px;
    background: #000;
    border-radius: 0 0 18px 18px;
    z-index: 5;
    pointer-events: none;
}

.phone-emulator-wallpaper {
    position: absolute;
    inset: 0;
    background-color: #1a1a2e;
    overflow: hidden;
}

.phone-emulator-wallpaper-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.wallpaper-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: rgba(255, 255, 255, .5);
    font-size: .85rem;
    text-align: center;
}

.phone-emulator-clock {
    position: absolute;
    top: 14%;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
    pointer-events: none;
    z-index: 2;
}

.phone-emulator-clock span {
    display: block;
    font-size: clamp(1.75rem, 10vw, 3rem);
    font-weight: 300;
    line-height: 1;
}

.phone-emulator-clock small {
    display: block;
    font-size: .85rem;
    margin-top: 6px;
    opacity: .9;
}

.phone-qr-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.phone-qr-handle {
    position: absolute;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
    transition: box-shadow .15s;
    overflow: hidden;
    background: #fff;
}

.phone-qr-handle.is-dragging {
    cursor: grabbing;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
}

.phone-qr-handle canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.phone-emulator-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 36px;
    pointer-events: none;
    z-index: 2;
}

.phone-flash,
.phone-camera {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
}

.contact-list { list-style: none; }

.contact-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--slate-200);
    gap: 12px;
    flex-wrap: wrap;
}

.contact-item:last-child { border-bottom: none; }

.contact-info h4 { font-size: .95rem; }

.contact-info p {
    font-size: .85rem;
    color: var(--slate-500);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-emergency { background: #fef3c7; color: #92400e; }
.badge-active { background: var(--green-100); color: var(--green-700); }
.badge-pending { background: #fef3c7; color: #92400e; }

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--slate-200);
}

.toggle-row:last-child { border-bottom: none; }

.toggle {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--slate-200);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.toggle input:checked + .toggle-slider { background: var(--blue-600); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.toggle input:focus-visible + .toggle-slider {
    outline: 2px solid var(--blue-600);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .toggle-slider,
    .toggle-slider::before {
        transition: none;
    }
}

/* Finder page (QR scan destination) */
.finder-page {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--blue-950) 0%, var(--blue-900) 40%, #1e293b 100%);
    display: flex;
    flex-direction: column;
}

.finder-page .site-footer {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.82);
    margin-top: auto;
}

.finder-page .site-footer a { color: rgba(255, 255, 255, 0.95); }

.finder-hero {
    text-align: center;
    padding: 40px 20px 24px;
    color: var(--white);
}

.finder-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.finder-logo .logo-image {
    height: 44px;
    max-width: min(240px, 80vw);
}

.finder-logo .logo-icon { color: var(--blue-500); }

.finder-logo span { color: var(--blue-400); }

.finder-check {
    width: 56px;
    height: 56px;
    background: rgba(59, 130, 246, .25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--blue-400);
}

.finder-check svg { width: 28px; height: 28px; }

.finder-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.finder-hero p {
    opacity: .85;
    font-size: .95rem;
    max-width: 320px;
    margin: 0 auto;
}

.finder-card-wrap {
    padding: 0 20px 40px;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}

.finder-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.finder-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--slate-600);
    margin-bottom: 16px;
}

.finder-section-label svg { width: 18px; height: 18px; }

.finder-owner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.finder-avatar {
    width: 52px;
    height: 52px;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.finder-owner h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.finder-owner p {
    color: var(--slate-600);
    font-size: .875rem;
}

.finder-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.finder-actions .btn-call {
    background: var(--blue-600);
    color: white;
}

.finder-actions .btn-call:hover { background: var(--blue-700); color: white; }

.finder-actions .btn-message {
    background: var(--slate-100);
    color: var(--slate-900);
}

.finder-actions .btn-message:hover { background: var(--slate-200); color: var(--slate-900); }

.finder-contact-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--slate-200);
    font-size: .9rem;
    word-break: break-word;
}

.finder-contact-line svg {
    width: 20px;
    height: 20px;
    color: var(--slate-400);
    flex-shrink: 0;
}

.finder-contact-line.emergency svg { color: #f59e0b; }

.finder-contact-line .label {
    font-size: .75rem;
    color: var(--slate-500);
    font-weight: 600;
}

.finder-box {
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.finder-box-reward {
    background: var(--green-50);
    border: 1px solid #bbf7d0;
}

.finder-box-reward .box-icon {
    width: 40px;
    height: 40px;
    background: var(--green-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.finder-box-reward .box-icon svg { width: 20px; height: 20px; }

.finder-box-reward .box-label {
    color: var(--green-700);
    font-size: .8rem;
    font-weight: 600;
}

.finder-box-reward .box-text {
    font-weight: 700;
    font-size: .95rem;
    margin: 2px 0;
}

.finder-box-reward .box-sub {
    font-size: .8rem;
    color: var(--slate-600);
}

.finder-box-info {
    background: var(--blue-50);
    border: 1px solid #bfdbfe;
}

.finder-box-info .box-icon {
    width: 40px;
    height: 40px;
    color: var(--blue-600);
    flex-shrink: 0;
}

.finder-box-info .box-icon svg { width: 24px; height: 24px; }

.finder-box-info p {
    font-size: .875rem;
    color: var(--blue-900);
    line-height: 1.5;
}

.finder-trusted {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}

.finder-trusted h3 {
    font-size: .85rem;
    font-weight: 600;
    color: var(--slate-600);
    margin-bottom: 8px;
}

.finder-trusted-lead {
    color: var(--slate-600);
    font-size: .8rem;
    margin-bottom: 14px;
    line-height: 1.45;
}

.finder-trusted-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: .875rem;
    flex-wrap: wrap;
}

.finder-trusted-item span { color: var(--slate-600); }

.finder-contact-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    background: var(--blue-600);
    color: white;
}

.finder-contact-call:hover {
    background: var(--blue-700);
    color: white;
}

.finder-contact-call svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.finder-contact-call span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.finder-contact-call small {
    font-size: .72rem;
    font-weight: 600;
    opacity: .9;
}

.finder-message-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}

.finder-message-box h3 {
    font-size: .95rem;
    margin-bottom: 6px;
}

.finder-message-lead {
    color: var(--slate-600);
    font-size: .85rem;
    line-height: 1.45;
    margin-bottom: 14px;
}

.finder-message-form textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
}

.finder-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.finder-reveal {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--slate-50, #f8fafc);
}

.finder-reveal h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.finder-reveal-lead {
    margin: 0 0 14px;
    font-size: .9rem;
    color: var(--slate-600);
    line-height: 1.5;
}

.finder-reveal-form .checkbox-label {
    margin-bottom: 0;
}

.finder-reveal--trusted {
    margin-top: 24px;
}

.finder-message-list {
    display: grid;
    gap: 16px;
}

.finder-message-list--compact {
    gap: 12px;
}

.finder-message-item {
    margin-bottom: 0;
}

.finder-message-item--unread {
    border-left: 4px solid var(--teal-500, #14b8a6);
}

.finder-message-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.finder-message-quote {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--slate-50);
    color: var(--slate-800);
    font-size: .95rem;
    line-height: 1.5;
}

.finder-message-item--compact .finder-message-quote {
    margin-bottom: 6px;
    padding: 10px 12px;
    font-size: .9rem;
}

.finder-inactive {
    text-align: center;
    padding: 60px 20px;
    color: var(--white);
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 24px 0;
    border-top: 1px solid var(--slate-200);
    background: var(--white);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: .85rem;
    color: var(--slate-500);
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.footer-brand .logo {
    flex-shrink: 0;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.5;
    margin: 0;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--slate-600);
    background: var(--slate-100);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.footer-social-link .bi {
    font-size: 1.125rem;
    line-height: 1;
}

.footer-social-link:hover {
    color: var(--white);
    background: var(--teal-600);
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.footer-inner nav a { color: var(--slate-600); }

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--slate-200);
    font-size: 0.8rem;
    color: var(--slate-600);
    text-align: center;
}

/* Legal */
.legal-page {
    padding: 48px 0 64px;
    flex: 1;
}

.content-page .legal-page {
    background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 120px);
}

.content-page .legal-doc {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 48px);
    box-shadow: var(--shadow);
}

.content-page .legal-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.125rem);
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.content-page .faq-page {
    background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 120px);
}

.content-page .faq-page .faq-doc {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 48px);
    box-shadow: var(--shadow);
}

.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { margin: 28px 0 12px; font-size: 1.15rem; }
.legal-page h3 { margin: 20px 0 10px; font-size: 1rem; color: var(--slate-700); }
.legal-page p, .legal-page li { color: var(--slate-600); margin-bottom: 12px; }
.legal-page ul { margin: 0 0 16px 1.25rem; }
.legal-page .legal-updated { color: var(--slate-500); margin-bottom: 24px; }
.legal-page .legal-doc { max-width: 720px; }

/* FAQ accordion */
.faq-page {
    padding-bottom: 64px;
}

.faq-page .faq-doc {
    max-width: 760px;
}

.faq-title {
    margin-bottom: 12px;
}

.faq-intro {
    margin-bottom: 28px;
}

.faq-intro p {
    color: var(--slate-600);
    font-size: 1.05rem;
    line-height: 1.65;
}

.faq-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.faq-section + .faq-section {
    margin-top: 36px;
}

.faq-section-title {
    margin: 0 0 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.faq-section-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: var(--blue-100);
}

.faq-item[open] {
    border-color: var(--blue-200, #bfdbfe);
    box-shadow: var(--shadow);
}

.faq-item-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--slate-900);
    line-height: 1.45;
    user-select: none;
}

.faq-item-trigger::-webkit-details-marker {
    display: none;
}

.faq-item-trigger::marker {
    content: '';
}

.faq-item-question {
    flex: 1;
    text-align: left;
}

.faq-item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--slate-50);
    color: var(--blue-700);
    transition: background-color 0.2s ease, transform 0.25s ease;
}

.faq-item-icon svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-item-icon {
    background: var(--blue-50);
}

.faq-item[open] .faq-item-icon svg {
    transform: rotate(180deg);
}

.faq-item-trigger:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: -2px;
}

.faq-item-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.faq-item[open] .faq-item-panel {
    grid-template-rows: 1fr;
}

.faq-item-answer {
    min-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--slate-600);
    border-top: 1px solid transparent;
    transition: padding 0.28s ease, border-color 0.28s ease;
}

.faq-item[open] .faq-item-answer {
    padding: 4px 20px 20px;
    border-top-color: var(--slate-100);
}

.faq-item-answer p,
.faq-item-answer li {
    margin-bottom: 12px;
}

.faq-item-answer p:last-child,
.faq-item-answer ul:last-child,
.faq-item-answer ol:last-child {
    margin-bottom: 0;
}

.faq-item-answer ul {
    margin-left: 1.25rem;
}

.faq-item-answer .legal-table-wrap {
    margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .faq-item-panel,
    .faq-item-icon svg,
    .faq-item-answer,
    .faq-item {
        transition: none;
    }
}

@media (max-width: 640px) {
    .faq-item-trigger {
        padding: 16px;
    }

    .faq-item-answer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .faq-item[open] .faq-item-answer {
        padding: 4px 16px 16px;
    }
}

.legal-doc strong { color: var(--slate-900); }

.legal-editor-textarea {
    width: 100%;
    min-height: 28rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.55;
    tab-size: 2;
}

.legal-token-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-token-list li {
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--slate-600);
}

.legal-token-list code {
    font-size: 0.8125rem;
    background: var(--slate-100);
    padding: 2px 6px;
    border-radius: 4px;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
    border: 1px solid var(--slate-200);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: var(--slate-50);
    color: var(--slate-700);
}

.cookie-settings-section {
    padding: 0 0 64px;
}

.cookie-settings-card {
    margin-top: -16px;
}

.cookie-settings-actions,
.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.96);
    color: var(--white);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.25);
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
}

.cookie-banner-copy h2 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.cookie-banner-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    margin: 0;
    max-width: 720px;
}

.cookie-banner-copy a {
    color: var(--white);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-modal.is-open {
    display: flex;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.cookie-modal-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.cookie-modal-intro {
    color: var(--slate-600);
    margin-bottom: 16px;
}

.cookie-pref-item {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid var(--slate-200);
}

.cookie-pref-item h3,
.cookie-pref-item label {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.cookie-pref-item p {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.875rem;
}

.cookie-pref-badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-600);
    background: var(--slate-100);
    padding: 6px 10px;
    border-radius: 999px;
}

.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.cookie-toggle input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cookie-toggle-ui {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--slate-300);
    position: relative;
    transition: background 0.2s ease;
}

.cookie-toggle-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle-ui {
    background: var(--blue-600);
}

.cookie-toggle input:checked + .cookie-toggle-ui::after {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-ui {
    opacity: 0.45;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding: 48px 0 64px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero p.lead {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
        min-width: 140px;
    }

    .hero-visual {
        order: -1;
    }

    .features {
        padding: 56px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .section-subtitle {
        margin-bottom: 32px;
        padding: 0 4px;
    }

    .pricing {
        padding: 56px 0;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stat-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .admin-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--white);
        border-bottom: 1px solid var(--slate-200);
        box-shadow: var(--shadow-lg);
        padding: 12px max(20px, env(safe-area-inset-left)) 16px;
        padding-right: max(20px, env(safe-area-inset-right));
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a:not(.btn) {
        padding: 12px 14px;
        border-radius: 8px;
    }

    .site-nav a:not(.btn):hover {
        background: var(--slate-50);
    }

    .site-nav .btn {
        width: 100%;
        margin-top: 4px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .card {
        padding: 20px;
    }

    .auth-page {
        align-items: flex-start;
        padding: 24px 16px 40px;
    }

    .dashboard-page {
        padding: 20px 0 40px;
    }

    .dashboard-nav-scroll {
        margin-left: calc(-1 * max(20px, env(safe-area-inset-left)));
        margin-right: calc(-1 * max(20px, env(safe-area-inset-right)));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        margin-bottom: 20px;
        overflow: hidden;
    }

    .dashboard-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .dashboard-nav::-webkit-scrollbar {
        display: none;
    }

    .dashboard-nav a {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
        padding: 10px 16px;
        font-size: .8125rem;
    }

    .wallpaper-editor {
        grid-template-columns: 1fr;
    }

    .wallpaper-preview-wrap {
        order: -1;
        margin-bottom: 8px;
    }

    .wallpaper-preview-actions {
        display: block;
    }

    .wallpaper-controls .wallpaper-actions .btn-primary {
        display: none;
    }

    .phone-emulator {
        width: min(100%, 280px);
    }

    .dashboard-header {
        min-height: auto;
    }

    .dashboard-header-badge {
        width: 100%;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .invite-redeem-card .form-group {
        margin-bottom: 12px;
    }

    .invite-redeem-card .btn {
        width: 100%;
    }

    .footer-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-inner nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-inner nav a {
        display: block;
        padding: 4px 0;
    }

    .toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        justify-content: flex-start;
    }

    .cookie-banner-actions .btn {
        flex: 1 1 auto;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        display: flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 85vw);
        z-index: 200;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .45);
        z-index: 150;
    }

    .admin-backdrop.is-open {
        display: block;
    }

    .admin-main {
        padding: 20px 16px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .admin-header h1 {
        font-size: 1.45rem;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-filters .form-group {
        width: 100% !important;
    }

    .admin-filters .btn {
        width: 100%;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding: 0 20px;
    }

    .admin-table {
        min-width: 560px;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .hero-shot img {
        width: min(220px, 78vw);
    }

    .hero-shot-finder {
        transform: none;
    }

    .phone-mockup,
    .finder-preview {
        width: min(220px, 78vw);
    }

    .phone-screen {
        min-height: 320px;
    }

    .finder-preview {
        align-self: center;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .finder-hero {
        padding: 32px 16px 20px;
    }

    .finder-hero h1 {
        font-size: 1.5rem;
    }

    .finder-card {
        padding: 20px 16px;
    }

    .finder-card-wrap {
        padding: 0 16px max(32px, env(safe-area-inset-bottom));
    }

    .finder-actions {
        grid-template-columns: 1fr;
    }

    .finder-actions .btn {
        min-height: 48px;
    }

    .pricing-amount {
        font-size: 2rem;
    }

    .legal-page {
        padding: 32px 0 48px;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-stat .value {
        font-size: 1.5rem;
    }

    .contact-item > div:last-child {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .plan-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-checklist-item {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .dashboard-checklist-item > a,
    .dashboard-checklist-item > .badge {
        align-self: flex-start;
    }

    .contact-actions {
        width: 100%;
    }

    .contact-actions .btn,
    .form-actions .btn {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .invite-code-item,
    .member-list-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .wallpaper-actions {
        flex-direction: column;
    }

    .wallpaper-actions .btn {
        width: 100%;
    }

    .wallpaper-controls .wallpaper-open-picker {
        width: 100%;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: calc(-1 * max(20px, env(safe-area-inset-left)));
        margin-right: calc(-1 * max(20px, env(safe-area-inset-right)));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .dashboard-content .admin-table,
    .dashboard-content table {
        min-width: 520px;
    }
}

@media (max-width: 480px) {
    .auth-card h1 {
        font-size: 1.35rem;
    }

    .dashboard-header h1 {
        font-size: 1.35rem;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

@media (max-width: 380px) {
    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}

/* Admin area */
.admin-body {
    background: var(--slate-100);
    min-height: 100vh;
    min-height: 100dvh;
}

.admin-topbar {
    display: none;
    align-items: center;
    gap: 12px;
    background: var(--blue-950);
    color: var(--white);
    padding: 10px 16px;
    padding-top: max(10px, env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 120;
}

.admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    min-height: 44px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-menu-toggle svg {
    width: 20px;
    height: 20px;
}

.admin-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: .95rem;
}

.admin-topbar-brand-label {
    color: var(--blue-300);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.admin-backdrop {
    display: none;
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

.admin-sidebar {
    background: var(--blue-950);
    color: var(--white);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    padding: 0 12px 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    margin-bottom: 16px;
}

.admin-brand a {
    display: block;
}

.admin-brand span {
    color: var(--blue-400);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.admin-nav a {
    color: rgba(255,255,255,.75);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .925rem;
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,.1);
    color: var(--white);
}

.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.admin-sidebar-footer a {
    color: rgba(255,255,255,.6);
    font-size: .875rem;
    padding: 6px 12px;
}

.admin-main {
    padding: 32px;
    overflow-x: auto;
}

.admin-header {
    margin-bottom: 28px;
}

.admin-header h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.admin-header p {
    color: var(--slate-500);
    font-size: .95rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 20px;
}

.admin-stat .label {
    display: block;
    font-size: .8rem;
    color: var(--slate-500);
    margin-bottom: 6px;
}

.admin-stat .value {
    font-size: 1.75rem;
    font-weight: 700;
}

.admin-header-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.admin-range-form select {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: var(--white);
    font: inherit;
}

.admin-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.admin-chart-card {
    min-width: 0;
    max-width: 100%;
}

.admin-chart-card .card-title {
    margin-bottom: 4px;
}

.admin-chart-wrap {
    position: relative;
    height: 220px;
    margin-top: 12px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.admin-chart-wrap canvas {
    display: block;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
}

.admin-chart-wrap--donut {
    height: 240px;
}

.admin-attention-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.admin-attention-panel {
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 16px;
    background: var(--slate-50, #f8fafc);
}

.admin-attention-panel h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin: 0 0 10px;
}

.admin-attention-panel .badge {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--slate-200);
    color: var(--slate-700);
    border-radius: 999px;
    padding: 2px 8px;
}

.admin-attention-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-attention-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-200);
    font-size: 0.9rem;
}

.admin-attention-list li:last-child {
    border-bottom: 0;
}

.admin-attention-list span {
    color: var(--slate-500);
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .admin-chart-grid {
        grid-template-columns: 1fr;
    }

    .admin-attention-grid {
        grid-template-columns: 1fr;
    }
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--slate-200);
}

.admin-table th {
    font-weight: 600;
    color: var(--slate-600);
    font-size: .8rem;
}

.admin-table small {
    color: var(--slate-500);
}

.admin-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: var(--green-100); color: var(--green-700); }
.badge-expired { background: #fee2e2; color: #991b1b; }
.badge-source-web { background: var(--blue-50); color: var(--blue-800); }
.badge-source-play { background: #ecfdf5; color: #166534; }
.badge-source-apple { background: #f5f5f5; color: #171717; }
.badge-source-admin { background: #fef3c7; color: #92400e; }
.badge-source-shared { background: #ecfeff; color: #0f766e; }

.badge-source-paypal { background: #eff6ff; color: #1d4ed8; }

.btn-paypal {
    background: #0070ba;
    color: #fff;
    border: none;
}

.btn-paypal:hover {
    background: #003087;
    color: #fff;
}

.btn-paypal:focus-visible {
    outline: 2px solid #ffc439;
    outline-offset: 2px;
}

.trial-code-created {
    margin-bottom: 24px;
    border-color: rgba(20, 184, 166, 0.35);
}

.trial-code-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0;
}

.invite-code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: 220px;
}

.invite-code-list,
.member-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.invite-code-item,
.member-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--slate-200);
}

.invite-code-value {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.member-list-email {
    display: block;
    color: var(--slate-500);
    font-size: 0.875rem;
}

.plan-members-summary-header,
.plan-members-section .section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.plan-members-section {
    margin-top: 20px;
}

.plan-shared-actions {
    margin-top: 16px;
}

.invite-redeem-form {
    max-width: 420px;
}
.plan-current .alert-info { margin-top: 16px; }

.admin-meta-list {
    list-style: none;
    font-size: .9rem;
}

.admin-meta-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--slate-200);
}

.admin-meta-list li:last-child { border-bottom: none; }

.admin-meta-list strong {
    display: block;
    font-size: .75rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 2px;
}

.admin-danger-zone {
    border-color: #fecaca;
}

.btn-danger {
    background: #dc2626;
    color: var(--white);
}

.btn-danger:hover {
    background: #b91c1c;
    color: var(--white);
}

.table-wrap {
    width: 100%;
}

/* SEO Command Centre */
.admin-main-seo {
    max-width: 1440px;
}

.admin-header .seo-quick-actions,
.admin-header > div:first-child + .seo-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-filters .admin-filter {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--slate-200);
    color: var(--slate-600);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--white);
}

.admin-filters .admin-filter:hover {
    border-color: var(--teal-500);
    color: var(--teal-600);
}

.admin-filters .admin-filter.is-active {
    background: rgba(20, 184, 166, 0.12);
    border-color: var(--teal-500);
    color: var(--teal-700);
}

.seo-subnav {
    margin-bottom: 20px;
}

.seo-score-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(15, 39, 68, 0.06));
}

.seo-score-ring {
    --seo-score: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--teal-500) calc(var(--seo-score) * 1%), rgba(15, 39, 68, 0.08) 0);
    position: relative;
    flex-shrink: 0;
}

.seo-score-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--white);
}

.seo-score-value,
.seo-score-label {
    position: relative;
    z-index: 1;
}

.seo-score-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal-600);
    line-height: 1;
}

.seo-score-label {
    font-size: .7rem;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.seo-score-ring.seo-score-good .seo-score-value { color: var(--green-700); }
.seo-score-ring.seo-score-warn .seo-score-value { color: #d97706; }
.seo-score-ring.seo-score-bad .seo-score-value { color: #dc2626; }

.seo-score-meta h2 {
    font-size: 1.35rem;
    margin-bottom: .35rem;
}

.seo-integration-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.seo-badge {
    font-size: .75rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    border: 1px solid var(--slate-200);
}

.seo-badge-off { color: var(--slate-500); }
.seo-badge-on { color: var(--teal-700); border-color: var(--teal-500); }

.seo-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.seo-metric-card {
    padding: 1rem;
    text-align: center;
}

.seo-metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.seo-metric-label {
    font-size: .72rem;
    color: var(--slate-500);
    line-height: 1.3;
}

.seo-card-good { border-color: rgba(22, 163, 74, 0.25); }
.seo-card-good .seo-metric-value { color: var(--green-700); }
.seo-card-warning { border-color: rgba(217, 119, 6, 0.35); }
.seo-card-warning .seo-metric-value { color: #d97706; }
.seo-card-critical { border-color: rgba(220, 38, 38, 0.35); }
.seo-card-critical .seo-metric-value { color: #dc2626; }
.seo-card-info { border-color: rgba(20, 184, 166, 0.25); }
.seo-card-info .seo-metric-value { color: var(--teal-600); }

.seo-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seo-chart-grid canvas { max-height: 220px; }

.seo-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.seo-inline-form { display: inline; }

.seo-search {
    width: 100%;
    max-width: 360px;
    padding: .65rem .85rem;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    margin-bottom: .75rem;
}

.seo-issue-list { list-style: none; padding: 0; margin: 0; }

.seo-issue {
    padding: .65rem 0;
    border-bottom: 1px solid var(--slate-200);
    font-size: .875rem;
}

.seo-issue strong { display: block; margin-bottom: .2rem; }
.seo-issue code { font-size: .75rem; color: var(--slate-500); }
.seo-issue-critical strong { color: #dc2626; }
.seo-issue-warning strong { color: #d97706; }

.seo-score-pill {
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    padding: .15rem .45rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .8rem;
}

.seo-score-pill.seo-score-good { background: rgba(22, 163, 74, 0.12); color: var(--green-700); }
.seo-score-pill.seo-score-warning { background: rgba(217, 119, 6, 0.12); color: #d97706; }
.seo-score-pill.seo-score-critical { background: rgba(220, 38, 38, 0.12); color: #dc2626; }

.seo-severity { font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.seo-severity-critical { color: #dc2626; }
.seo-severity-warning { color: #d97706; }
.seo-severity-info { color: var(--teal-600); }

.seo-row-broken { background: rgba(220, 38, 38, 0.04); }
.seo-pagination { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1rem; }

.seo-serp-preview {
    background: var(--slate-50);
    padding: 1rem;
    border-radius: 12px;
}

.seo-serp-title { color: #1a0dab; font-size: 1.1rem; margin-bottom: .25rem; }
.seo-serp-url { color: #006621; font-size: .8rem; margin-bottom: .35rem; }
.seo-serp-desc { color: #545454; font-size: .875rem; line-height: 1.5; }

.seo-toolbar {
    margin-bottom: 1rem;
}

.seo-fail { color: #dc2626; font-weight: 600; }
.seo-warn { color: #d97706; font-weight: 600; }
.seo-pass { color: var(--green-700); font-weight: 600; }

.seo-note {
    margin-bottom: 1rem;
}

.seo-subheading {
    font-size: .85rem;
    margin: 1rem 0 .5rem;
    color: var(--slate-600);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.admin-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.admin-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--slate-200);
    font-size: .875rem;
}

.seo-inline-edit summary {
    cursor: pointer;
    color: var(--teal-600);
    font-size: .875rem;
}

.seo-edit-form {
    margin-top: .5rem;
    padding: .75rem;
    background: var(--slate-50);
    border-radius: 8px;
}

.seo-dashboard-widget {
    display: block;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.seo-dashboard-widget:hover {
    border-color: var(--teal-500);
    box-shadow: 0 4px 16px rgba(15, 39, 68, 0.08);
}

.seo-dashboard-widget-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.seo-score-ring--sm {
    width: 72px;
    height: 72px;
}

.seo-score-ring--sm .seo-score-value {
    font-size: 1.35rem;
}

.seo-score-ring--sm .seo-score-label {
    display: none;
}

.seo-dashboard-widget .btn {
    margin-left: auto;
}

.admin-stat-card {
    padding: 1rem 1.25rem;
    text-align: center;
}

.admin-stat-card .admin-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--teal-600);
}

.admin-stat-card .admin-stat-label {
    display: block;
    font-size: .75rem;
    color: var(--slate-500);
    margin-top: .25rem;
}

@media (max-width: 700px) {
    .seo-score-hero { flex-direction: column; text-align: center; }
    .seo-metric-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-chart-grid { grid-template-columns: 1fr; }
}

/* Shop */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.shop-toolbar-note {
    margin: 0;
    color: var(--slate-600);
    max-width: 40rem;
}

.shop-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.shop-product-card .card-title {
    margin-top: 12px;
}

.shop-product-media {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-media--placeholder span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--slate-400);
}

.shop-product-price {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 8px 0 12px;
}

.shop-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.shop-qty-group {
    margin: 0;
    flex: 0 0 88px;
}

.shop-qty-group input,
.shop-cart-qty {
    width: 88px;
}

.shop-cart-summary {
    margin-top: 16px;
    display: grid;
    gap: 6px;
}

.shop-cart-summary p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
}

.shop-cart-total {
    font-size: 1.1rem;
    padding-top: 8px;
    border-top: 1px solid var(--slate-200);
}

.shop-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.shop-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.shop-summary-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.shop-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-200);
}

.form-hint-inline {
    font-weight: 400;
    color: var(--slate-600);
    font-size: 0.9em;
}

.shop-order-qr {
    max-width: 220px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.shop-order-address {
    white-space: pre-line;
}

@media (max-width: 800px) {
    .shop-checkout-layout {
        grid-template-columns: 1fr;
    }
}

.shop-public-page {
    padding: 40px 0 64px;
}

.shop-public-header {
    margin-bottom: 24px;
    max-width: 40rem;
}

.shop-public-header h1 {
    margin: 0 0 8px;
}

.shop-admin-image-preview {
    margin: 0 0 10px;
    max-width: 240px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    overflow: hidden;
    background: var(--slate-100);
}

.shop-admin-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.shop-product-media-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.shop-product-media-link:focus-visible {
    outline: 2px solid var(--focus-ring, #2563eb);
    outline-offset: 3px;
    border-radius: 10px;
}

.shop-product-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.shop-product-card .card-title a:hover,
.shop-product-card .card-title a:focus-visible {
    text-decoration: underline;
}

.shop-product-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-card-actions {
    margin: 0 0 12px;
}

.shop-breadcrumb {
    margin: 0 0 20px;
}

.shop-breadcrumb a {
    text-decoration: none;
}

.shop-breadcrumb a:hover,
.shop-breadcrumb a:focus-visible {
    text-decoration: underline;
}

.shop-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.shop-product-hero {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-product-zoom-trigger {
    position: relative;
    width: 100%;
    padding: 0;
    border: none;
    cursor: zoom-in;
    color: inherit;
    font: inherit;
    text-align: left;
}

.shop-product-zoom-trigger:focus-visible {
    outline: 2px solid var(--focus-ring, #2563eb);
    outline-offset: 3px;
}

.shop-product-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.18s ease-out;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.shop-product-zoom-trigger--hoverable.is-hover-zooming .shop-zoom-hint {
    opacity: 0;
    transform: translateY(4px);
}

.shop-zoom-hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
    opacity: 0.92;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.shop-zoom-hint-icon {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    position: relative;
    flex: 0 0 auto;
}

.shop-zoom-hint-icon::after {
    content: '';
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    border-radius: 1px;
}

body.shop-zoom-open {
    overflow: hidden;
}

.shop-zoom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.shop-zoom-lightbox.is-open,
.shop-zoom-lightbox:not([hidden]) {
    display: block;
}

.shop-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    border: 0;
    padding: 0;
    cursor: zoom-out;
}

.shop-zoom-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 56px 64px 40px;
    box-sizing: border-box;
}

.shop-zoom-instructions {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    white-space: nowrap;
    pointer-events: none;
}

.shop-zoom-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.shop-zoom-close:hover,
.shop-zoom-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.shop-zoom-close:focus-visible,
.shop-zoom-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.shop-zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.shop-zoom-nav--prev {
    left: 12px;
}

.shop-zoom-nav--next {
    right: 12px;
}

.shop-zoom-stage {
    width: min(1100px, 100%);
    height: min(80vh, 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: zoom-in;
    touch-action: none;
    border-radius: 8px;
}

.shop-zoom-stage.is-zoomed {
    cursor: grab;
}

.shop-zoom-stage.is-dragging {
    cursor: grabbing;
}

.shop-zoom-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.12s ease-out;
    user-select: none;
    -webkit-user-drag: none;
}

.shop-zoom-stage.is-dragging img {
    transition: none;
}

@media (max-width: 800px) {
    .shop-zoom-panel {
        padding: 64px 12px 24px;
    }

    .shop-zoom-instructions {
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
        max-width: calc(100% - 96px);
    }

    .shop-zoom-nav--prev {
        left: 4px;
    }

    .shop-zoom-nav--next {
        right: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-product-hero img,
    .shop-zoom-hint,
    .shop-zoom-stage img {
        transition: none;
    }
}

.shop-gallery-thumbs {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-gallery-thumb {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--slate-100);
    cursor: pointer;
    width: 88px;
    aspect-ratio: 4 / 3;
}

.shop-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-gallery-thumb.is-active,
.shop-gallery-thumb:focus-visible {
    border-color: var(--brand, #0f766e);
    outline: none;
}

.shop-product-excerpt {
    color: var(--slate-600);
    margin: 0 0 12px;
}

.shop-product-details {
    margin-top: 8px;
}

.shop-product-details-body {
    color: var(--slate-700);
    line-height: 1.6;
}

.shop-admin-gallery {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.shop-admin-gallery-item {
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    overflow: hidden;
    background: var(--slate-50);
}

.shop-admin-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.shop-admin-gallery-item form {
    padding: 8px;
}

.shop-admin-gallery-add {
    margin-top: 8px;
}

.shop-product-buy-form {
    display: grid;
    gap: 12px;
    align-items: end;
}

.shop-product-buy-form .shop-add-form,
.shop-product-buy-form.shop-add-form {
    display: grid;
}

.shop-product-buy-form .form-group {
    margin: 0;
}

.shop-product-buy-form select {
    width: 100%;
}

@media (max-width: 800px) {
    .shop-product-layout {
        grid-template-columns: 1fr;
    }
}

.news-page {
    padding: 40px 0 64px;
}

.news-header {
    margin-bottom: 24px;
    max-width: 40rem;
}

.news-header h1 {
    margin: 0 0 8px;
}

.news-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.news-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    text-decoration: none;
    font-size: 0.9rem;
    background: #fff;
}

.news-chip:hover,
.news-chip:focus-visible {
    border-color: var(--brand, #0f766e);
    outline: none;
}

.news-chip.is-active {
    background: var(--brand, #0f766e);
    border-color: var(--brand, #0f766e);
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.news-card {
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.news-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.news-card-link:focus-visible {
    outline: 2px solid var(--focus-ring, #2563eb);
    outline-offset: 2px;
}

.news-card-media {
    aspect-ratio: 16 / 9;
    background: var(--slate-100);
    overflow: hidden;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 14px 16px 16px;
}

.news-card-meta {
    margin: 0 0 6px;
    color: var(--slate-500);
    font-size: 0.85rem;
}

.news-card-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    line-height: 1.35;
}

.news-card-excerpt {
    margin: 0 0 10px;
    color: var(--slate-600);
    font-size: 0.95rem;
}

.news-card-date {
    margin: 0;
    color: var(--slate-500);
    font-size: 0.85rem;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.news-page-link {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    text-decoration: none;
    color: var(--slate-700);
    padding: 0 10px;
}

.news-page-link.is-active,
.news-page-link:focus-visible {
    border-color: var(--brand, #0f766e);
    outline: none;
}

.news-page-link.is-active {
    background: var(--brand, #0f766e);
    color: #fff;
}

.news-article-inner {
    max-width: 760px;
}

.news-hero {
    margin: 0 0 20px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--slate-100);
}

.news-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-article-header h1 {
    margin: 0 0 8px;
}

.news-article-byline {
    color: var(--slate-500);
    margin: 0 0 24px;
}

.news-prose {
    line-height: 1.7;
    color: var(--slate-800);
}

.news-prose h2,
.news-prose h3 {
    margin-top: 1.6em;
}

.news-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-prose ul,
.news-prose ol {
    padding-left: 1.25rem;
}

.news-category-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.news-category-picks .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    background: var(--white);
    line-height: 1.3;
}

.news-category-picks .checkbox-label:hover {
    border-color: var(--slate-300);
}

.news-category-picks .checkbox-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--blue-700, #063B8F);
}

.news-category-add {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--slate-200);
}

.news-category-add .form-group {
    flex: 1 1 200px;
    margin: 0;
}

.news-category-add .form-group input {
    margin: 0;
}

.news-admin-form fieldset.form-group {
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 14px 16px 16px;
    margin: 0 0 20px;
    min-width: 0;
}

.news-admin-form fieldset.form-group > legend {
    padding: 0 6px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--slate-700);
}

/* Support tickets */
.badge-open { background: #eff6ff; color: #1d4ed8; }
.badge-answered { background: var(--green-100); color: var(--green-700); }
.badge-closed { background: var(--slate-100); color: var(--slate-600); }

.admin-support-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 24px;
    max-width: 720px;
}

.admin-support-tab {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #fff;
    color: var(--slate-700);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.admin-support-tab:hover {
    border-color: #94a3b8;
    color: var(--navy-800, #0f2744);
}

.admin-support-tab.is-active {
    border-color: #063B8F;
    background: #eff6ff;
    color: #063B8F;
    box-shadow: 0 0 0 1px #063B8F;
}

.admin-support-tab:focus-visible {
    outline: 2px solid var(--teal-600, #0d9488);
    outline-offset: 2px;
}

.admin-support-tab-icon {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 1px;
    color: inherit;
    opacity: .85;
}

.admin-support-tab-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-support-tab-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
}

.admin-support-tab-desc {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--slate-500);
}

.admin-support-tab.is-active .admin-support-tab-desc {
    color: #1e40af;
}

@media (max-width: 640px) {
    .admin-support-tabs {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

.nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .35rem;
    margin-left: .35rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    background: #dc2626;
    color: #fff;
    vertical-align: middle;
}

.dashboard-nav .nav-alert-dot {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    margin-left: .35rem;
    border-radius: 999px;
    background: #dc2626;
    vertical-align: middle;
}

.admin-nav .nav-count {
    background: #fbbf24;
    color: #78350f;
}

.support-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-bottom: 20px;
    font-size: .9rem;
    color: var(--slate-600);
}

.support-ticket-table td {
    vertical-align: top;
}

.support-ticket-row--unread td:first-child strong {
    color: var(--blue-800);
}

.support-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-message {
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--slate-50);
}

.support-message--staff {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.support-message header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: .85rem;
}

.support-message header time {
    color: var(--slate-500);
}

.support-message-body {
    color: var(--slate-800);
    line-height: 1.55;
    word-break: break-word;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

@media (prefers-reduced-motion: reduce) {
    .support-message {
        transition: none;
    }
}

.admin-stat--alert {
    border-color: #fca5a5;
    background: #fef2f2;
}

.admin-stat--alert .value {
    color: #991b1b;
}

.admin-support-alert .alert {
    margin-bottom: 0;
}

.admin-attention-panel--alert {
    border-color: #fca5a5;
    background: #fff7f7;
}

/* AI support chat widget */
.fp-ai-chat {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 450;
    font-family: Inter, system-ui, sans-serif;
}

.fp-ai-chat-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #063B8F;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(6, 59, 143, 0.28);
}

.fp-ai-chat-fab:hover {
    background: #0a4db8;
}

.fp-ai-chat-fab:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 3px;
}

.fp-ai-chat-fab-label {
    /* Icon-only launcher; label kept for screen readers via aria-label on the button */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fp-ai-chat.is-open .fp-ai-chat-fab {
    display: none;
}

.fp-ai-chat-panel {
    width: min(380px, calc(100vw - 24px));
    max-height: min(640px, calc(100vh - 32px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 39, 68, 0.18);
    overflow: hidden;
}

/* display:flex above would otherwise override the HTML hidden attribute */
.fp-ai-chat-panel[hidden] {
    display: none !important;
}

.fp-ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #063B8F;
    color: #fff;
}

.fp-ai-chat-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.fp-ai-chat-subtitle {
    margin: 2px 0 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.fp-ai-chat-close {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 4px;
    border-radius: 8px;
    cursor: pointer;
}

.fp-ai-chat-close:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

.fp-ai-chat-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--slate-200, #e2e8f0);
    background: #f8fafc;
}

.fp-ai-topic {
    border: 1px solid var(--slate-200, #e2e8f0);
    background: #fff;
    color: var(--slate-700, #334155);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.fp-ai-topic.is-active {
    border-color: #063B8F;
    background: #eff6ff;
    color: #063B8F;
}

.fp-ai-topic:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

.fp-ai-chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    max-height: 340px;
    background: #fff;
}

.fp-ai-msg {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.fp-ai-msg--assistant {
    align-self: flex-start;
    background: #f1f5f9;
    color: #0f2744;
}

.fp-ai-msg--user {
    align-self: flex-end;
    background: #063B8F;
    color: #fff;
}

.fp-ai-msg-meta {
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.75;
}

.fp-ai-escalate {
    padding: 10px 12px;
    border-top: 1px solid var(--slate-200, #e2e8f0);
    background: #f8fafc;
    font-size: 0.88rem;
}

.fp-ai-escalate p {
    margin: 0 0 8px;
}

.fp-ai-guest-form {
    margin-top: 10px;
}

.fp-ai-guest-form .form-group {
    margin-bottom: 8px;
}

.fp-ai-chat-compose {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--slate-200, #e2e8f0);
    background: #fff;
}

.fp-ai-chat-compose textarea {
    width: 100%;
    resize: none;
    min-height: 44px;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
}

.fp-ai-chat-compose textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 1px;
}

@media (max-width: 480px) {
    .fp-ai-chat-fab {
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-ai-chat-fab,
    .fp-ai-chat-panel {
        transition: none;
    }
}

/* Admin — How it connects */
.admin-flow-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 0 0 24px;
    max-width: 1100px;
}

.admin-flow-tab {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #fff;
    color: var(--slate-700);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.admin-flow-tab:hover {
    border-color: #94a3b8;
    color: var(--navy-800, #0f2744);
}

.admin-flow-tab:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

.admin-flow-tab.is-active {
    border-color: #063B8F;
    background: #eff6ff;
    color: #063B8F;
    box-shadow: 0 0 0 1px #063B8F;
}

.admin-flow-tab-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-flow-tab-desc {
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--slate-500);
}

.admin-flow-tab.is-active .admin-flow-tab-desc {
    color: #1e4a8a;
}

.admin-flow-panel {
    max-width: 1100px;
}

.admin-flow-chart {
    margin: 8px 0 20px;
    padding: 12px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #fff;
}

.admin-flow-chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-flow-chart-preview {
    overflow-x: auto;
    max-height: 320px;
    border: 1px solid var(--slate-100);
    border-radius: 8px;
    background: #f8fafc;
    cursor: zoom-in;
}

.admin-flow-chart-preview:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

.admin-flow-chart-svg {
    display: block;
    min-width: 480px;
    max-width: 100%;
    height: auto;
}

.admin-flow-chart-caption {
    margin: 0;
    font-size: 0.8rem;
    color: var(--slate-500);
    flex: 1 1 200px;
}

.admin-flow-chart-dialog {
    position: fixed;
    inset: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(15, 39, 68, 0.55);
}

.admin-flow-chart-dialog[hidden] {
    display: none !important;
}

.admin-flow-chart-dialog-panel {
    display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    max-height: min(90vh, 900px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.admin-flow-chart-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--slate-200);
    background: #f8fafc;
    flex-wrap: wrap;
}

.admin-flow-chart-dialog-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-900);
}

.admin-flow-chart-zoom {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-flow-chart-zoom-label {
    min-width: 3.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
}

.admin-flow-chart-dialog-body {
    padding: 16px;
    overflow: auto;
    flex: 1 1 auto;
    background: #f8fafc;
}

.admin-flow-chart-zoom-stage {
    transform: scale(var(--flow-zoom, 1.5));
    transform-origin: top left;
    width: max-content;
    transition: transform 0.15s ease;
}

.admin-flow-chart-zoom-stage .admin-flow-chart-svg {
    display: block;
    max-width: none;
    min-width: 0;
    height: auto;
}

.admin-flow-chart-zoom-sizer {
    width: calc(var(--flow-base-w, 900px) * var(--flow-zoom, 1.5));
    height: calc(var(--flow-base-h, 600px) * var(--flow-zoom, 1.5));
    overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
    .admin-flow-chart-zoom-stage {
        transition: none;
    }
}

body.admin-flow-chart-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .admin-flow-chart-dialog {
        transition: none;
    }
}

.admin-flow-steps {
    list-style: none;
    margin: 20px 0 24px;
    padding: 0;
    display: flex;
    gap: 12px;
}

.admin-flow-steps--stack {
    flex-direction: column;
}

.admin-flow-steps--row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

.admin-flow-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #f8fafc;
    flex: 1 1 160px;
    min-width: 0;
}

.admin-flow-steps--stack .admin-flow-step {
    flex: none;
    width: 100%;
}

.admin-flow-step--accent {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.admin-flow-step--success {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.admin-flow-step--warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.admin-flow-step-num {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #063B8F;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-flow-step-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-flow-step-title {
    font-size: 0.95rem;
    color: var(--slate-900);
}

.admin-flow-step-detail {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--slate-600);
}

.admin-flow-subheading {
    margin: 20px 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
}

.admin-flow-bullets {
    margin: 0 0 8px;
    padding-left: 1.25rem;
    color: var(--slate-700);
}

.admin-flow-bullets li {
    margin-bottom: 6px;
    line-height: 1.45;
}

.admin-flow-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.admin-flow-stories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.admin-flow-story {
    padding: 14px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #f8fafc;
}

.admin-flow-story h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #063B8F;
}

.admin-flow-story p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--slate-700);
}

.admin-todo-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-todo-item {
    padding: 14px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #f8fafc;
}

.admin-todo-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.admin-todo-priority {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-todo-priority--critical {
    background: #fef2f2;
    color: #b91c1c;
}

.admin-todo-priority--high {
    background: #fff7ed;
    color: #c2410c;
}

.admin-todo-priority--medium {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-todo-priority--low {
    background: var(--slate-100);
    color: var(--slate-600);
}

.admin-todo-title {
    font-size: 0.95rem;
    color: var(--slate-900);
}

.admin-todo-detail {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--slate-700);
}

.admin-todo-owner {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.admin-todo-form-card {
    margin: 0 0 28px;
    padding: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: #fff;
}

.admin-todo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.admin-todo-item--done {
    opacity: 0.72;
}

.admin-todo-item--done .admin-todo-title {
    text-decoration: line-through;
}

@media (max-width: 640px) {
    .admin-flow-steps--row {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-flow-tab {
        transition: none;
    }
}

