/* 
 * SatrancTakip Premium Responsive PWA Style Sheet
 * Brand Colors: Forest Green (#1b3d2e) & Chess Gold (#d4af37)
 * Warm Light/Cream Theme with high-end Chess aesthetics.
 */

:root {
    --bg-page: #f5f7f1;         /* Soft sage paper */
    --surface: #ffffff;         /* Pure white for cards */
    --surface-soft: #eef3e8;    /* Pale sage highlight */
    --text: #1f1f1f;            /* Dark text */
    --muted: #647067;           /* Muted green grey */
    --line: #dfe6db;            /* Fine line borders */
    
    --accent: #1b3d2e;          /* Forest Green primary (chess board dark square) */
    --accent-strong: #122a20;   /* Deep Forest Green */
    --accent-light: rgba(27, 61, 46, 0.08);
    
    --accent-2: #d4af37;        /* Chess Gold */
    --accent-2-light: rgba(212, 175, 55, 0.12);
    
    --danger: #a33b2e;          /* Warm crimson danger */
    --danger-light: rgba(163, 59, 46, 0.08);
    
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    
    --shadow: 0 12px 36px rgba(31, 61, 46, 0.08);
    --shadow-glow: 0 0 16px rgba(27, 61, 46, 0.15);
    
    --transition: all 0.2s ease-in-out;
}

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

html, body {
    min-height: 100vh;
    background: var(--bg-page);
    color: var(--text);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    background: 
        radial-gradient(circle at 12% 12%, rgba(212, 175, 55, 0.08), transparent 35%),
        linear-gradient(180deg, #f7f9f2, #eef3e8);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* App Shell (Responsive: 100% on Mobile, 1200px max on Desktop) */
.app-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (max-width: 860px) {
    .app-shell {
        width: 100%;
        padding: 16px 16px 90px; /* space for bottom nav on mobile */
    }

    .topbar {
        padding: 12px 14px;
        gap: 10px;
    }

    .topbar .brand {
        gap: 10px;
    }

    .topbar .brand-icon {
        width: 40px;
        height: 40px;
    }

    .topbar .brand-word strong {
        font-size: 17px;
    }

    .topbar .brand-word small {
        font-size: 10px;
    }

    .domain-pill {
        display: none;
    }

    .topbar .logout-form {
        gap: 8px;
    }

    .user-email {
        display: none;
    }

    .topbar .btn-ghost {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .topbar .brand-word small {
        display: none;
    }

    .topbar .brand-word strong {
        font-size: 16px;
    }
}

/* Topbar Header */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: 0 12px 32px rgba(27, 61, 46, 0.15);
    flex-wrap: nowrap;
}

.topbar .brand {
    min-width: 0;
    flex: 0 1 auto;
}

.topbar .brand-word {
    min-width: 0;
    overflow: hidden;
}

.topbar .brand-word strong,
.topbar .brand-word small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.domain-pill {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(247, 245, 238, 0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.brand-word strong {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brand-word strong span {
    color: var(--accent-2);
}

.brand-word small {
    display: block;
    font-size: 11px;
    color: rgba(247, 245, 238, 0.75);
    font-weight: 500;
}

.logout-form {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 0 1 auto;
}

.user-email {
    font-size: 13px;
    color: rgba(247, 245, 238, 0.85);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar .btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
}

.topbar .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Grid helper */
.grid {
    display: grid;
    gap: 20px;
}

.grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 860px) {
    .grid.two-col {
        grid-template-columns: 1fr;
    }
}

/* Onboarding & Auth Layout */
.auth-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 860px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
}

.auth-copy {
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-stamp {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 140px;
    height: 140px;
    opacity: 0.04;
    pointer-events: none;
}

.hero-wordmark strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}

.hero-wordmark strong span {
    color: var(--accent-2);
}

.hero-wordmark small {
    font-size: 13px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
    font-weight: 600;
}

.auth-copy h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 24px 0 12px;
    color: var(--accent);
}

.auth-copy p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.feature-list li {
    padding-left: 32px;
    position: relative;
    font-size: 14px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--accent-2);
    border-radius: 50%;
}

.feature-list li strong {
    display: block;
    color: var(--accent);
    font-weight: 700;
}

.feature-list li span {
    color: var(--muted);
}

/* Auth Panel */
.auth-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.auth-panel-head h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.auth-panel-head p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    margin-bottom: 24px;
}

.tab-row {
    display: flex;
    background: var(--surface-soft);
    padding: 5px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.tab-button {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button.active {
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Forms & Inputs */
.auth-form, .stack-form, .inline-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.form-alert.error {
    background: #fff1ed;
    border: 1px solid #f2b8a8;
    color: #8f2d21;
}

.form-alert.success {
    background: #edf8f0;
    border: 1px solid #b8dfc2;
    color: #1b5f38;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

input, select, textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(27, 61, 46, 0.1);
    background: #fff;
}

input::placeholder {
    color: rgba(31, 31, 31, 0.35);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-strong);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--accent-2);
    color: #fff;
}

.btn-secondary:hover {
    background: #c39e2e;
}

.btn-ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--accent);
}

.btn-ghost:hover {
    background: var(--surface-soft);
}

.btn.full {
    width: 100%;
}

/* Dashboard Views */
.dashboard {
    display: flex;
    flex-direction: column;
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.dashboard-head h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
}

.dashboard-head p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 2px;
}

.section-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.status-chip {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 99px;
    background: #fff;
    color: var(--muted);
    border: 1px solid var(--line);
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.status-chip.status-on {
    background: var(--accent-light);
    color: var(--accent);
    border-color: rgba(27, 61, 46, 0.18);
}

/* Summary Grid */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 860px) {
    .metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.metrics article {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.metrics article::after {
    content: '';
    position: absolute;
    right: -15px;
    bottom: -15px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.metrics span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.metrics strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    margin-top: 4px;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.welcome-icon {
    font-size: 28px;
    background: rgba(27, 61, 46, 0.05);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--accent);
}

.welcome-body h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.welcome-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

/* Panels */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-head h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}

.panel-head .muted {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.list-row strong {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
}

.list-row small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 500;
}

.icon-btn {
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--danger);
    color: #fff;
}

.inline-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: end;
    gap: 14px;
}

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

/* Switches & Radios */
.switch-row, .radio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: var(--transition);
}

.switch-row:hover, .radio-row:hover {
    background: #e9e6dc;
}

.switch-row span strong, .radio-row span strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
}

.switch-row span small, .radio-row span small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.switch-row input[type="checkbox"], .radio-row input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Province Selector */
.province-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 16px;
}

@media (max-width: 860px) {
    .province-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.province-grid::-webkit-scrollbar {
    width: 5px;
}
.province-grid::-webkit-scrollbar-track {
    background: transparent;
}
.province-grid::-webkit-scrollbar-thumb {
    background: #dcd7ca;
    border-radius: 3px;
}

.province-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.province-option:hover {
    background: #e9e6dc;
}

.province-option input {
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
}

.province-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-light);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

.form-actions .muted {
    font-size: 12px;
    color: var(--muted);
}

/* Premium Settings Locks */
.locked {
    opacity: 0.55;
}

.lock-label {
    background: var(--accent-2-light);
    color: #b28c1b;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
}

.locked-textarea {
    min-height: 90px;
    font-size: 13px;
    color: var(--muted);
    background: var(--surface-soft);
    cursor: not-allowed;
    resize: none;
    border: 1px dashed var(--line);
}

/* Event / Tournament Card Ticket Layout */
.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-card {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tournament-card:hover {
    border-color: var(--accent-2);
    transform: translateY(-2px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    min-width: 72px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    border-right: 1px dashed var(--line);
    text-align: center;
    padding: 12px 6px;
    position: relative;
}

.event-date::before, .event-date::after {
    content: '';
    position: absolute;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--bg-page);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}
.event-date::before { top: -6px; }
.event-date::after { bottom: -6px; }

.event-date strong {
    font-size: 20px;
    font-weight: 850;
    color: var(--accent-2);
    line-height: 1;
}

.event-date span {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.event-date small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.event-details {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-details h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.35;
    margin-bottom: 4px;
}

.event-location {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.event-matched-child {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-2);
}

.card-btn {
    align-self: center;
    margin-right: 16px;
    padding: 8px 16px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.empty {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    padding: 30px 0;
    font-weight: 500;
}

/* Modals */
.modal {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(31, 61, 46, 0.25);
    padding: 24px;
    width: calc(100% - 32px);
    max-width: 380px;
    color: var(--text);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    outline: none;
    z-index: 200;
}

.modal::backdrop {
    background: rgba(27, 61, 46, 0.4);
    backdrop-filter: blur(3px);
}

.modal h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--accent);
}

.modal p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 20px;
}

/* Toast System */
.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    min-width: 280px;
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.2s, transform 0.2s;
    text-align: center;
}

@media (max-width: 860px) {
    .toast {
        bottom: 22px;
    }
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.dashboard-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--muted);
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dashboard-tab:hover {
    border-color: rgba(27, 61, 46, 0.24);
    transform: translateY(-1px);
}

.dashboard-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.dashboard-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
    flex: 0 0 auto;
}

.dashboard-tab.active .dashboard-tab-icon {
    background: rgba(255, 255, 255, 0.16);
    color: var(--accent-2);
}

.dashboard-tab strong {
    display: block;
    color: inherit;
    font-size: 14px;
    font-weight: 800;
}

.dashboard-tab small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: currentColor;
    opacity: 0.78;
}

.dashboard-pane {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}

.dashboard-pane.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
    .dashboard-tabs {
        grid-template-columns: 1fr;
    }

    .dashboard-tab {
        min-height: 64px;
    }

    .dashboard-tab-icon {
        width: 34px;
        height: 34px;
    }
}

.soft-panel {
    background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.coming-soon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coming-soon-list span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.account-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.account-copy {
    line-height: 1.55;
    margin-bottom: 20px;
}

/* Admin Panel Specific Styles */
.admin-shell h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.admin-kv, .admin-health, .admin-table-counts, .admin-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-kv div, .admin-health div, .admin-table-counts div, .admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.admin-health div {
    justify-content: flex-start;
    gap: 10px;
}

.admin-kv.compact {
    margin-top: 10px;
}

.admin-kv span, .admin-table-counts span, .admin-row span {
    color: var(--muted);
}

.admin-kv strong, .admin-table-counts strong {
    color: var(--text);
    word-break: break-all;
}

.admin-badge {
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
}

.admin-badge.ok {
    background: var(--accent-light);
    color: var(--accent);
}

.admin-badge.bad {
    background: var(--danger-light);
    color: var(--danger);
}

.admin-table-counts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.command-box {
    background: #1f2022;
    border: 1px solid var(--line);
    color: var(--accent-2);
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
    margin-bottom: 12px;
}

.admin-logout {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.admin-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

@media (max-width: 1180px) {
    .admin-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    padding: 14px;
    text-align: left;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.admin-tab:hover {
    border-color: rgba(27, 61, 46, 0.24);
    transform: translateY(-1px);
}

.admin-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.admin-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    flex: 0 0 auto;
}

.admin-tab.active .admin-tab-icon {
    background: rgba(255, 255, 255, 0.16);
    color: var(--accent-2);
}

.admin-tab strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: inherit;
}

.admin-tab small {
    display: block;
    margin-top: 3px;
    color: currentColor;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0.78;
}

.admin-shell .metrics article {
    background: linear-gradient(135deg, #fff, var(--surface-soft));
    border-top: 3px solid var(--accent-2);
}

.admin-login {
    max-width: 520px;
    margin: 28px auto 0;
}

.admin-locked {
    max-width: 640px;
    margin: 28px auto 0;
}

.admin-pane {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-search {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
}

.admin-wide-table .admin-row,
.province-row {
    align-items: flex-start;
    gap: 12px;
}

.admin-wide-table .admin-row > div:first-child,
.province-row > div:first-child {
    min-width: 0;
}

.admin-actions,
.admin-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-actions form,
.admin-button-row form,
.province-row form {
    margin: 0;
}

.admin-settings-form {
    display: grid;
    gap: 12px;
}

.admin-console {
    min-height: 180px;
    white-space: pre-wrap;
}

.danger-text {
    color: var(--danger) !important;
}

.small-text {
    font-size: 12.5px;
    line-height: 1.55;
}

/* E-posta doğrulama banner'ı (dashboard) */
.email-verify-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(217, 119, 6, 0.25);
    color: #7c2d12;
}

.email-verify-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

.email-verify-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.email-verify-text strong {
    font-size: 14px;
    font-weight: 800;
    color: #7c2d12;
    line-height: 1.3;
}

.email-verify-text span {
    font-size: 13px;
    color: #9a3412;
    line-height: 1.4;
    word-break: break-word;
}

.email-verify-banner .btn {
    flex: 0 0 auto;
    background: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #7c2d12;
    font-weight: 700;
}

.email-verify-banner .btn:hover {
    background: #fff7ed;
}

@media (max-width: 640px) {
    .email-verify-banner {
        flex-wrap: wrap;
        padding: 12px 14px;
    }
    .email-verify-text {
        flex-basis: 100%;
    }
    .email-verify-banner .btn {
        flex-basis: 100%;
        text-align: center;
    }
}

/* Auth modal yardımcı linkleri */
.auth-helper-row {
    margin: 8px 0 0;
    text-align: center;
    font-size: 13px;
}

.auth-helper-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.auth-link {
    background: none;
    border: 0;
    padding: 4px 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-link:hover {
    color: var(--accent-2, #d4af37);
}

.auth-intro {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
}

.auth-remember {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
}

.auth-remember input {
    accent-color: var(--accent);
    margin: 0;
    width: 16px;
    height: 16px;
}

/* Admin duyuru gönderim formu */
.broadcast-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.broadcast-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.broadcast-form label.admin-filter-check {
    flex-direction: row;
    align-items: center;
}

.broadcast-form input[type="text"],
.broadcast-form textarea {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: var(--accent);
    resize: vertical;
}

.broadcast-form input:focus,
.broadcast-form textarea:focus {
    outline: 2px solid rgba(212, 175, 55, 0.4);
    outline-offset: 1px;
}

.broadcast-channels {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(238, 243, 232, 0.5);
    border: 1px solid rgba(27, 61, 46, 0.08);
}

.broadcast-channels-title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--accent);
    text-transform: uppercase;
}

.broadcast-channels .admin-filter-check {
    background: #ffffff;
    padding: 10px 12px;
}

.broadcast-channels .admin-filter-check strong {
    color: var(--accent);
    margin-right: 4px;
}

/* SSS altındaki yasal disclaimer kutusu */
.legal-disclaimer {
    max-width: 860px;
    margin: 28px auto 0;
    padding: 18px 22px;
    border-left: 3px solid var(--accent-2, #d4af37);
    background: rgba(212, 175, 55, 0.08);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}

.legal-disclaimer strong {
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.legal-disclaimer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Yasal sayfalar (legal.php) */
.legal-page {
    background: var(--bg-page, #f5f7f1);
    min-height: calc(100vh - 200px);
    padding: 48px 20px 64px;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 36px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(27, 61, 46, 0.08);
}

.legal-breadcrumb {
    margin: 0 0 16px;
    font-size: 12.5px;
    color: var(--muted);
}

.legal-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.legal-breadcrumb a:hover {
    color: var(--accent);
}

.legal-content h1 {
    font-size: clamp(28px, 4.4vw, 38px);
    font-weight: 900;
    color: var(--accent);
    line-height: 1.15;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.legal-updated {
    margin: 0 0 32px;
    font-size: 12.5px;
    color: var(--muted);
    font-style: italic;
}

.legal-content h2 {
    margin: 36px 0 14px;
    font-size: 19px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.3;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    font-size: 14.5px;
    line-height: 1.72;
    color: #2f3a35;
    margin: 0 0 10px;
}

.legal-content ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.legal-content ul li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content strong {
    color: #0f1f17;
    font-weight: 700;
}

.legal-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(27, 61, 46, 0.1);
    font-size: 13.5px;
    text-align: center;
}

.legal-footer {
    margin-top: 0;
}

@media (max-width: 640px) {
    .legal-page {
        padding: 24px 12px 40px;
    }
    .legal-content {
        padding: 28px 22px;
        border-radius: 12px;
    }
    .legal-content h2 {
        font-size: 17px;
    }
    .legal-disclaimer {
        margin: 24px 16px 0;
        padding: 14px 16px;
        font-size: 12.5px;
    }
}

/* PWA install banner */
.pwa-install-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(140%);
    z-index: 1000;
    width: min(440px, calc(100% - 24px));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(19, 38, 29, 0.98);
    color: #f7f9f2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    transition: transform 0.32s cubic-bezier(.22,.61,.36,1), opacity 0.22s ease;
    opacity: 0;
}

.pwa-install-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pwa-install-banner[hidden] {
    display: none !important;
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f7f9f2;
    object-fit: contain;
    padding: 4px;
    flex: 0 0 auto;
}

.pwa-install-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pwa-install-text strong {
    font-size: 14px;
    font-weight: 800;
    color: #f7f9f2;
    line-height: 1.2;
}

.pwa-install-desc {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(247, 249, 242, 0.78);
}

.pwa-install-desc strong {
    color: var(--accent-2, #d4af37);
    font-weight: 700;
    font-size: 12px;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.pwa-install-btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 999px;
    min-height: 36px;
}

.pwa-install-dismiss {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    color: rgba(247, 249, 242, 0.7);
    background: transparent;
    border: 0;
}

.pwa-install-dismiss:hover {
    color: #f7f9f2;
    background: rgba(247, 249, 242, 0.08);
}

@media (max-width: 420px) {
    .pwa-install-banner {
        bottom: 12px;
        padding: 10px 12px;
        gap: 10px;
    }

    .pwa-install-icon {
        width: 42px;
        height: 42px;
    }

    .pwa-install-btn {
        padding: 7px 12px;
        font-size: 12.5px;
        min-height: 32px;
    }
}

/* Buton loading state */
.btn.is-loading {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: wait !important;
    opacity: 0.85;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    animation: btn-spin 0.7s linear infinite;
}

.btn-busy-label {
    font-size: inherit;
    font-weight: inherit;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Turnuva listesi (admin) */
.admin-tournaments-filter {
    grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) auto auto auto;
    align-items: end;
}

.admin-tournaments-filter select,
.admin-tournaments-filter input[type="search"] {
    width: 100%;
}

.admin-filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.admin-filter-check input {
    margin: 0;
    accent-color: var(--accent);
}

.tournament-row {
    align-items: flex-start;
}

.tournament-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.tournament-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tournament-title-row strong {
    font-size: 15px;
    color: var(--accent);
    line-height: 1.3;
}

.tournament-meta {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.tournament-meta strong {
    color: var(--accent);
    font-weight: 800;
}

.tournament-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.tournament-chip {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid rgba(27, 61, 46, 0.12);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.tournament-chip.warn {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.32);
    color: #92400e;
}

.tournament-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    overflow: hidden;
}

.tournament-item + .tournament-item {
    margin-top: 10px;
}

.tournament-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    margin: 0;
    border: 0;
    background: transparent;
}

.tournament-item > summary::-webkit-details-marker {
    display: none;
}

.tournament-item[open] > summary {
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.tournament-toggle {
    pointer-events: none;
    user-select: none;
}

.tournament-item[open] .tournament-toggle {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.tournament-edit-panel {
    padding: 18px;
    background: #fbfcf8;
}

.tournament-edit-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    margin-bottom: 14px;
}

.tournament-edit-form .form-grid .full {
    grid-column: 1 / -1;
}

.tournament-edit-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}

.tournament-edit-form label.admin-filter-check {
    flex-direction: row;
    align-items: center;
}

.tournament-edit-form input[type="text"],
.tournament-edit-form input[type="url"],
.tournament-edit-form input[type="date"],
.tournament-edit-form select {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: var(--accent);
}

.tournament-edit-form input:focus,
.tournament-edit-form select:focus {
    outline: 2px solid rgba(212, 175, 55, 0.4);
    outline-offset: 1px;
}

@media (max-width: 760px) {
    .tournament-edit-form .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .admin-tournaments-filter {
        grid-template-columns: 1fr;
    }

    .admin-filter-check {
        justify-content: flex-start;
    }
}

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

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

    .admin-wide-table .admin-row,
    .province-row {
        flex-direction: column;
    }

    .admin-actions,
    .admin-button-row {
        justify-content: stretch;
    }

    .admin-actions .btn,
    .admin-button-row .btn,
    .province-row .btn {
        width: 100%;
    }
}

.hidden {
    display: none !important;
}

/* Landing Page Styles */
.app-shell.auth-shell {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.landing-content {
    display: flex;
    flex-direction: column;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 80px 24px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

@media (max-width: 860px) {
    .landing-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 16px;
        gap: 30px;
    }
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 850;
    line-height: 1.2;
    color: var(--accent);
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 32px;
    }
}

.hero-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

@media (max-width: 860px) {
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

/* Landing Sections */
.landing-section {
    padding: 80px 24px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.landing-section.bg-alt {
    width: 100%;
    max-width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 80px 0;
}

.landing-section.bg-alt > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 860px) {
    .landing-section {
        padding: 50px 16px;
    }
    .landing-section.bg-alt {
        padding: 50px 0;
    }
    .landing-section.bg-alt > div {
        padding: 0 16px;
    }
}

.section-title {
    font-size: 32px;
    font-weight: 850;
    color: var(--accent);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--accent-2);
    margin-top: 12px;
    border-radius: 2px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 860px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-2);
}

.step-num {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.feature-card {
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent-2);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
    background: #fff;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 840px;
    margin: 0 auto;
}

@media (max-width: 860px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.premium-card {
    border: 2px solid var(--accent-2);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-2);
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.price {
    font-size: 38px;
    font-weight: 850;
    color: var(--accent);
    margin-bottom: 15px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-list li {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 840px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    box-shadow: var(--shadow);
}

.faq-item summary {
    font-size: 15px;
    font-weight: 750;
    color: var(--accent);
    cursor: pointer;
    outline: none;
}

.faq-item p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.6;
}

/* Landing Footer — base overridden by landing-specific block below */

/* Landing visual refresh */
.app-shell.auth-shell {
    min-height: 100vh;
    background: #f7f9f2;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(27, 61, 46, 0.1);
    background: rgba(247, 249, 242, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: none;
}

.landing-header .brand-icon {
    width: 44px;
    height: 44px;
}

.landing-header .brand-word strong {
    font-size: 20px;
    color: #13261d;
}

.landing-header .brand-word strong span {
    color: var(--accent-2);
}

.landing-header .brand-word small {
    color: var(--muted);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.landing-nav a {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.landing-nav a:hover {
    color: var(--accent-2);
}

.landing-content {
    background: #f7f9f2;
}

.landing-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 680px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 88px max(24px, calc((100vw - 1180px) / 2)) 78px;
    overflow: hidden;
}

.landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(247, 249, 242, 0.98) 0%, rgba(247, 249, 242, 0.92) 35%, rgba(247, 249, 242, 0.36) 64%, rgba(247, 249, 242, 0.04) 100%),
        linear-gradient(180deg, rgba(247, 249, 242, 0.2), rgba(247, 249, 242, 0.74));
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.hero-text {
    width: min(650px, 100%);
    position: relative;
}

.hero-text h1 {
    max-width: 630px;
    font-size: 56px;
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: 0;
    color: #13261d;
    margin-bottom: 22px;
}

.hero-desc {
    max-width: 590px;
    font-size: 18px;
    line-height: 1.72;
    color: #4e5c53;
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-lg {
    min-height: 50px;
    padding: 14px 22px;
    font-size: 15px;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 560px;
}

.hero-proof div {
    padding: 14px 16px;
    border: 1px solid rgba(27, 61, 46, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 30px rgba(27, 61, 46, 0.08);
}

.hero-proof dt {
    font-size: 20px;
    line-height: 1;
    font-weight: 850;
    color: var(--accent);
}

.hero-proof dd {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.landing-section {
    width: min(1180px, calc(100% - 48px));
    padding: 74px 0;
}

.landing-section.bg-alt {
    background: #ffffff;
    border-color: rgba(27, 61, 46, 0.09);
}

.landing-section.bg-alt > div {
    width: min(1180px, calc(100% - 48px));
    padding: 0;
}

.compact-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.section-copy {
    max-width: 690px;
    margin-bottom: 30px;
}

.section-copy.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-copy p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.68;
}

.section-title {
    margin-bottom: 14px;
    color: #13261d;
    font-size: 34px;
    line-height: 1.16;
    letter-spacing: 0;
}

.section-title::after {
    display: none;
}

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

.step-card,
.feature-card,
.scope-panel,
.faq-item {
    border-radius: 8px;
    border-color: rgba(27, 61, 46, 0.12);
    box-shadow: 0 18px 42px rgba(27, 61, 46, 0.07);
}

.step-card {
    padding: 28px;
    background: #ffffff;
}

.step-card:hover,
.pricing-card:hover {
    transform: none;
}

.step-num {
    width: auto;
    height: auto;
    display: inline-block;
    padding: 0;
    margin-bottom: 34px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--accent-2);
    font-size: 13px;
    letter-spacing: 0;
}

.step-card h3,
.feature-card h3,
.scope-panel h3 {
    color: #13261d;
    letter-spacing: 0;
}

.feature-split {
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(46px, 5vw, 88px);
    align-items: center;
}

.feature-intro {
    display: grid;
    gap: 20px;
}

.feature-intro .section-copy {
    margin-bottom: 0;
}

.trust-visual {
    position: relative;
    min-height: 460px;
    margin: 18px 0 0;
    overflow: visible;
    background:
        radial-gradient(circle at 42% 62%, rgba(27, 61, 46, 0.08), transparent 52%);
}

.trust-visual img {
    display: block;
    height: auto;
}

.trust-phone {
    position: absolute;
    right: 0;
    top: 18px;
    width: min(42%, 220px);
    opacity: 0.24;
    transform: rotate(3deg);
}

.trust-logo {
    position: absolute;
    left: 4%;
    top: 72px;
    width: min(84%, 410px);
    filter: drop-shadow(0 24px 42px rgba(27, 61, 46, 0.15));
}

.feature-carousel {
    position: relative;
    --showcase-height: clamp(390px, 34vw, 520px);
    min-width: 0;
    padding: 18px 0 76px;
    overflow: visible;
}

.feature-carousel::after {
    content: '';
    position: absolute;
    z-index: 3;
    left: 50%;
    top: calc(18px + var(--showcase-height) - 1px);
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid #173d2b;
}

.feature-track {
    position: relative;
    z-index: 2;
    display: flex;
    height: var(--showcase-height);
    overflow: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0;
    border-radius: 6px;
    background: #173d2b;
    box-shadow: 0 34px 74px rgba(27, 61, 46, 0.16);
    scrollbar-width: none;
}

.feature-track::-webkit-scrollbar {
    display: none;
}

.feature-slide {
    flex: 0 0 100%;
    width: 100%;
    min-height: 100%;
    scroll-snap-align: start;
    opacity: 1;
    transform: none;
}

.feature-slide.active {
    opacity: 1;
    transform: none;
}

.feature-card {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.72fr);
    align-content: stretch;
    align-items: center;
    gap: clamp(22px, 3.2vw, 52px);
    padding: clamp(30px, 4vw, 58px);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(212, 175, 55, 0.24), transparent 30%),
        linear-gradient(135deg, #173d2b 0%, #0f2a1e 100%);
    box-shadow: none;
    color: #ffffff;
}

.feature-slide.active.feature-card {
    background:
        radial-gradient(circle at 88% 18%, rgba(212, 175, 55, 0.24), transparent 30%),
        linear-gradient(135deg, #173d2b 0%, #0f2a1e 100%);
}

.feature-index {
    position: absolute;
    right: clamp(28px, 4vw, 58px);
    top: clamp(26px, 3vw, 42px);
    color: rgba(255, 255, 255, 0.16);
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.feature-copy {
    position: relative;
    z-index: 2;
    max-width: 470px;
    padding-top: 40px;
}

.feature-copy h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.05;
}

.feature-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.62;
}

.carousel-controls {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 42px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 18px;
}

.carousel-dots button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(19, 38, 29, 0.42);
    font: inherit;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots button:hover,
.carousel-dots button.active {
    border-color: rgba(212, 175, 55, 0.42);
    background: #ffffff;
    color: #173d2b;
    box-shadow: 0 12px 30px rgba(27, 61, 46, 0.08);
}

.feature-symbol {
    position: absolute;
    z-index: 2;
    left: clamp(30px, 4vw, 58px);
    top: clamp(30px, 3.4vw, 52px);
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--accent-2);
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.14);
}

.feature-preview {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    align-content: center;
    min-height: 260px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preview-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.preview-row.strong {
    background: #ffffff;
    color: #173d2b;
}

.preview-row b {
    color: var(--accent-2);
    font-size: 12px;
}

.preview-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preview-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.18);
    color: #f7e7ae;
    font-size: 12px;
    font-weight: 900;
}

.preview-source,
.preview-pulse {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2) 0 34%, rgba(255, 255, 255, 0.18) 34% 100%);
}

.preview-pulse {
    width: 72px;
    height: 72px;
    justify-self: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.16);
    box-shadow: 0 0 0 16px rgba(212, 175, 55, 0.08), 0 0 0 32px rgba(212, 175, 55, 0.04);
}

.landing-section.bg-alt.showcase-section,
.showcase-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 0;
    margin: 0;
    border-top: 0;
    border-bottom: 0;
    overflow: hidden;
    background: #f7f9f2;
}

.landing-section.bg-alt.showcase-section > div,
.showcase-section.bg-alt > div {
    width: 100%;
    margin: 0;
    padding: 0;
}

.showcase-wrap {
    width: 100%;
}

.feature-carousel-full {
    --showcase-height: clamp(620px, 58vw, 760px);
    position: relative;
    padding: 0;
}

.feature-carousel-full::after {
    display: none;
}

.feature-carousel-full .feature-track {
    position: relative;
    isolation: isolate;
    height: var(--showcase-height);
    border-radius: 0;
    background: #173d2b;
    box-shadow: none;
}

.feature-carousel-full .feature-track::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background:
        linear-gradient(270deg, rgba(247, 249, 242, 0.98) 0%, rgba(247, 249, 242, 0.78) 14%, rgba(247, 249, 242, 0.3) 36%, rgba(247, 249, 242, 0.08) 60%, rgba(247, 249, 242, 0) 100%);
}

.feature-carousel-full .feature-card {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 112px max(24px, calc((100vw - 1180px) / 2)) 126px;
    background:
        linear-gradient(270deg, rgba(247, 249, 242, 0.98) 0%, rgba(247, 249, 242, 0.92) 30%, rgba(247, 249, 242, 0.58) 52%, rgba(247, 249, 242, 0.22) 74%, rgba(247, 249, 242, 0.04) 100%);
}

.feature-carousel-full .feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 78% 50%, rgba(247, 249, 242, 0.55), rgba(247, 249, 242, 0) 42%),
        linear-gradient(270deg, rgba(247, 249, 242, 0.96) 0%, rgba(247, 249, 242, 0.86) 32%, rgba(247, 249, 242, 0.46) 56%, rgba(247, 249, 242, 0.16) 78%, rgba(247, 249, 242, 0.02) 100%);
}

.feature-carousel-full .feature-copy {
    position: relative;
    z-index: 7;
    align-self: center;
    max-width: 590px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    text-align: left;
}

.feature-carousel-full .feature-copy::after {
    display: none;
}

.feature-carousel-full .feature-copy h3 {
    max-width: 580px;
    color: #0f1f17;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.02;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feature-carousel-full .feature-copy p {
    max-width: 520px;
    color: #3a4942;
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 1.62;
}

.feature-carousel-full .feature-art {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-width: auto;
    height: auto;
    overflow: hidden;
}

.feature-carousel-full .feature-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    opacity: 0.98;
    filter: saturate(0.98) contrast(1.04);
    mask-image: none;
}

.feature-carousel-full .feature-index {
    z-index: 7;
    left: max(28px, calc((100vw - 1180px) / 2));
    right: auto;
    top: 104px;
    color: rgba(19, 38, 29, 0.16);
    font-size: clamp(70px, 10vw, 142px);
}

.feature-carousel-full .feature-symbol {
    display: none;
}

.feature-carousel-full .carousel-controls {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 46px;
    transform: translateX(-50%);
    margin: 0;
}

.scope-panel li,
.faq-item p {
    color: var(--muted);
}

.scope-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    margin-top: 16px;
    padding: 92px max(24px, calc((100vw - 1180px) / 2));
    overflow: hidden;
    background: #f7f9f2;
}

.scope-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('../images/scope/free-usage-bg.png');
    background-position: right center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
}

.scope-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(247, 249, 242, 0.98) 0%, rgba(247, 249, 242, 0.92) 32%, rgba(247, 249, 242, 0.56) 56%, rgba(247, 249, 242, 0.18) 78%, rgba(247, 249, 242, 0.02) 100%);
}

.scope-section .section-copy,
.scope-section .scope-grid {
    position: relative;
    z-index: 1;
}

.scope-section .section-copy.centered {
    max-width: 780px;
    margin: 0 auto 30px 0;
    text-align: left;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 780px;
    margin: 0 auto 0 0;
}

.scope-panel {
    padding: 30px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
}

.scope-panel.muted-panel {
    background: rgba(238, 243, 232, 0.88);
}

.scope-panel ul {
    display: grid;
    gap: 12px;
    margin: 20px 0 26px;
    padding: 0;
    list-style: none;
}

.scope-panel li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    font-weight: 650;
}

.scope-panel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
}

.testimonials-section {
    padding-top: 82px;
}

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

.testimonial-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 100%;
    padding: 24px;
    border: 1px solid rgba(27, 61, 46, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(27, 61, 46, 0.06);
}

.testimonial-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f7f9f2;
}

.testimonial-card p {
    margin: 0;
    color: #405149;
    font-size: 15px;
    line-height: 1.64;
}

.testimonial-card strong {
    color: #13261d;
    font-size: 15px;
    line-height: 1;
}

.testimonial-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.faq-list {
    max-width: 860px;
}

.faq-item {
    background: #f7f9f2;
    box-shadow: none;
}

.faq-item summary {
    color: #13261d;
}

.landing-footer {
    background: #13261d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px max(24px, calc((100vw - 1180px) / 2)) 30px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--accent-2);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    margin-bottom: 18px;
}

.footer-brand-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
    flex-shrink: 0;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand-text strong {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.footer-brand-text strong span {
    color: var(--accent-2);
}

.footer-brand-text small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.65;
    max-width: 300px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-credit {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.footer-credit:hover {
    color: #ffffff;
    text-decoration: underline;
}

.support-hours {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Footer */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .landing-footer {
        padding: 40px 16px 20px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-desc {
        max-width: 100%;
    }
}

#auth-dialog.modal {
    width: min(520px, calc(100% - 32px));
    max-width: 520px;
    padding: 0;
    overflow: hidden;
}

#auth-dialog .auth-panel {
    width: 100%;
    border-radius: 8px;
    border: 0;
    box-shadow: none;
}

.auth-submit {
    margin-top: 8px;
}

.auth-close {
    margin-top: 12px;
}

@media (max-width: 960px) {
    .landing-hero {
        min-height: 620px;
        padding-top: 68px;
        padding-bottom: 62px;
    }

    .landing-hero::after {
        background:
            linear-gradient(90deg, rgba(247, 249, 242, 0.98) 0%, rgba(247, 249, 242, 0.9) 48%, rgba(247, 249, 242, 0.3) 100%),
            linear-gradient(180deg, rgba(247, 249, 242, 0.1), rgba(247, 249, 242, 0.82));
    }

    .landing-hero-bg {
        object-position: 66% center;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .feature-split,
    .steps-grid,
    .scope-grid,
    .features-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .trust-visual {
        min-height: 310px;
        max-width: 560px;
    }

    .trust-phone {
        right: 16%;
        width: min(34%, 150px);
    }

    .trust-logo {
        left: 50%;
        top: 26px;
        width: min(76%, 300px);
        transform: translateX(-50%);
    }

    .feature-carousel {
        --showcase-height: 420px;
        padding-top: 8px;
    }

    .feature-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-copy {
        max-width: 560px;
    }

    .feature-preview {
        min-height: 170px;
    }

    .showcase-section {
        width: 100%;
    }

    .showcase-section.bg-alt > div {
        width: 100%;
    }

    .feature-carousel-full {
        --showcase-height: 620px;
        padding: 0;
    }

    .feature-carousel-full .feature-card {
        display: flex;
        padding: 98px 24px 116px;
    }

    .feature-carousel-full .feature-copy {
        max-width: 540px;
        margin: 56px 0 0 auto;
    }

    .feature-carousel-full .feature-art img {
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: left center;
        opacity: 0.74;
    }

    .feature-carousel-full .feature-index {
        left: 24px;
        right: auto;
        top: 90px;
    }
}

@media (max-width: 640px) {
    .landing-header {
        padding: 12px 16px;
    }

    .landing-nav {
        gap: 10px;
    }

    .landing-nav a {
        display: none;
    }

    .landing-header .brand-word small {
        display: none;
    }

    .landing-hero {
        min-height: 520px;
        padding: 42px 18px 30px;
        align-items: flex-end;
    }

    .landing-hero::after {
        background:
            linear-gradient(180deg, rgba(247, 249, 242, 0.18) 0%, rgba(247, 249, 242, 0.86) 46%, rgba(247, 249, 242, 0.98) 100%);
    }

    .landing-hero-bg {
        object-position: 70% top;
    }

    .hero-text h1 {
        font-size: clamp(26px, 7.4vw, 34px);
        line-height: 1.12;
        margin-bottom: 14px;
    }

    .hero-desc {
        font-size: 14.5px;
        line-height: 1.58;
        margin-bottom: 20px;
    }

    .hero-proof {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 22px;
    }

    .hero-cta .btn-lg {
        min-height: 46px;
        padding: 12px 18px;
        font-size: 14.5px;
    }

    .hero-proof div {
        padding: 9px 6px;
        text-align: center;
    }

    .hero-proof dt {
        font-size: 15px;
    }

    .hero-proof dd {
        margin-top: 4px;
        font-size: 10px;
        line-height: 1.25;
    }

    .landing-section,
    .landing-section.bg-alt > div {
        width: calc(100% - 32px);
    }

    .scope-section {
        width: 100%;
        padding: 56px 16px;
        margin-top: 0;
    }

    .scope-section::before {
        background-position: right center;
        background-size: cover;
        opacity: 0.5;
    }

    .scope-section::after {
        background:
            linear-gradient(180deg, rgba(247, 249, 242, 0.96) 0%, rgba(247, 249, 242, 0.82) 60%, rgba(247, 249, 242, 0.92) 100%);
    }

    .scope-section .section-copy.centered {
        max-width: 100%;
        margin: 0 0 22px 0;
        text-align: left;
    }

    .scope-grid {
        max-width: 100%;
        margin: 0;
    }

    .trust-visual {
        min-height: 250px;
        margin-top: 0;
    }

    .trust-phone {
        right: 4%;
        width: 34%;
        opacity: 0.2;
    }

    .trust-logo {
        top: 22px;
        width: 72%;
    }

    .feature-carousel {
        --showcase-height: 520px;
        padding-bottom: 70px;
    }

    .feature-card {
        padding: 28px 22px;
    }

    .feature-copy {
        padding-top: 36px;
    }

    .feature-copy h3 {
        font-size: 28px;
    }

    .feature-copy p {
        font-size: 15px;
    }

    .feature-preview {
        padding: 18px;
    }

    .carousel-controls {
        margin-top: 34px;
    }

    .carousel-dots button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .showcase-section {
        width: 100%;
    }

    .showcase-section.bg-alt > div {
        width: 100%;
    }

    .feature-carousel-full {
        --showcase-height: 640px;
        padding: 0;
    }

    .showcase-section .feature-carousel-full .feature-track {
        background: #f7f9f2 !important;
        box-shadow: none;
        border-radius: 0;
    }

    .showcase-section .feature-carousel-full .feature-track::before {
        background: none !important;
        display: none;
    }

    .showcase-section .feature-carousel-full .feature-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px 80px;
        background: none !important;
    }

    .showcase-section .feature-carousel-full .feature-card::before {
        background: none !important;
        display: none;
    }

    .feature-carousel-full .feature-index {
        position: absolute;
        left: 20px;
        right: auto;
        top: 14px;
        font-size: 56px;
        color: rgba(19, 38, 29, 0.22);
    }

    .feature-carousel-full .feature-symbol {
        display: none;
    }

    .feature-carousel-full .feature-art {
        position: relative;
        order: 2;
        inset: auto;
        z-index: 1;
        width: 100%;
        height: 280px;
        margin-top: 18px;
        border-radius: 12px;
        overflow: hidden;
        background: #173d2b;
    }

    .feature-carousel-full .feature-art img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 0.95;
        mask-image: none;
    }

    .feature-carousel-full .feature-copy {
        z-index: 3;
        order: 1;
        align-self: stretch;
        max-width: 100%;
        margin: 70px 0 0;
        padding: 0;
        text-align: left;
    }

    .feature-carousel-full .feature-copy h3 {
        font-size: clamp(28px, 7.8vw, 36px);
        line-height: 1.06;
        color: #13261d;
    }

    .feature-carousel-full .feature-copy p {
        font-size: 15px;
        line-height: 1.6;
        color: #4e5c53;
    }

    .feature-carousel-full .carousel-controls {
        bottom: 18px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card img {
        width: 60px;
        height: 60px;
    }

    .testimonial-card p {
        font-size: 14.5px;
    }

    .testimonials-section {
        padding-top: 0;
    }

    .testimonial-grid {
        gap: 14px;
    }

    .section-title {
        font-size: clamp(24px, 6.4vw, 30px);
    }

    .section-copy p {
        font-size: 14.5px;
    }

    .landing-footer {
        padding: 40px 18px 24px;
        margin-top: 50px;
    }

    .footer-brand-icon {
        width: 56px;
        height: 56px;
    }

    .footer-brand-text strong {
        font-size: 19px;
    }

    .step-card {
        padding: 22px;
    }

    .step-card h3 {
        font-size: 17px;
    }

    .scope-panel {
        padding: 22px;
    }

    .faq-item {
        padding: 16px 18px;
    }
}

@media (max-width: 400px) {
    .landing-hero {
        min-height: 480px;
        padding: 36px 16px 24px;
    }

    .landing-header .brand-icon {
        width: 38px;
        height: 38px;
    }

    .landing-header .brand-word strong {
        font-size: 17px;
    }

    .hero-proof div {
        padding: 8px 4px;
    }

    .hero-proof dt {
        font-size: 13px;
    }

    .hero-proof dd {
        font-size: 9px;
    }

    .feature-carousel-full {
        --showcase-height: 600px;
    }

    .feature-carousel-full .feature-copy h3 {
        font-size: 26px;
    }

    .feature-carousel-full .feature-art {
        height: 240px;
    }

    .feature-carousel-full .feature-copy {
        margin-top: 60px;
    }

    .scope-panel ul {
        gap: 10px;
    }
}
