/* ====================================
   WaitToUnlock - Modern Light Theme
   Clean, Professional Web App Design
   ==================================== */

:root {
    /* Light Theme Colors */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --bg-navbar: rgba(255, 255, 255, 0.9);

    /* Primary - Indigo */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    
    /* Status Colors */
    --success: #059669;
    --success-light: #ecfdf5;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;

    /* Text */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    /* Borders */
    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    /* Spacing & Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Layout */
    --navbar-height: 64px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ====================================
   Navigation Bar
   ==================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-main);
}

.brand-icon {
    font-size: 1.5rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.nav-link:hover {
    background: var(--bg-input);
    color: var(--text-main);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-icon {
    font-size: 1rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-main);
    transition: all 0.15s ease;
}

.user-dropdown-btn:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 50;
}

.dropdown-header {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.dropdown-email {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.dropdown-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
}

.dropdown-badge.free {
    background: var(--bg-input);
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-main);
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: var(--bg-input);
}

.dropdown-item.upgrade {
    color: var(--primary);
}

.dropdown-item.logout {
    color: var(--text-muted);
}

.dropdown-item.danger {
    color: var(--danger);
}

/* Nav Button */
.btn-nav-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-nav-login:hover {
    background: var(--primary-hover);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .user-name {
        display: none;
    }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
    padding-top: var(--navbar-height);
}

.mobile-nav-content {
    background: var(--bg-card);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-main);
    border-radius: var(--radius-md);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--bg-input);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 0;
}

.mobile-nav-user {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mobile-badge {
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
}

.mobile-nav-link.upgrade {
    color: var(--primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.mobile-nav-link.logout {
    color: var(--text-muted);
}

.mobile-nav-link.danger {
    color: var(--danger);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

/* ====================================
   Main Layout
   ==================================== */
.app-layout {
    padding-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
}

.main-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.main-content.full-width {
    max-width: 800px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-faint);
}

.status-dot.empty { background: var(--text-faint); }
.status-dot.revealed { background: var(--success); }
.status-dot.locked { background: var(--danger); }
.status-dot.countdown { background: var(--warning); }

.status-text {
    color: var(--text-muted);
}

/* State containers */
.state-container {
    animation: fadeIn 0.2s ease;
}

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

/* ====================================
   Hero Section (Landing)
   ==================================== */
.hero-section {
    text-align: center;
    padding: 0.5rem 1rem 1.5rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.features-grid.six-cards {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
}

.feature-item {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.2s;
}

.feature-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.feature-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section Blocks (Problem/Result) */
.section-block {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 1.5rem;
}

.section-block .section-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.section-block h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-main);
}

.section-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.problem-block {
    background: var(--danger-light);
    border: 1px solid var(--danger);
}

.result-block {
    background: var(--success-light);
    border: 1px solid var(--success);
}

/* Section Label */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* Four cards grid */
.features-grid.four-cards {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid.six-cards,
    .features-grid.four-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .features-grid.six-cards,
    .features-grid.four-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-icon {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }
    
    .feature-item h3 {
        font-size: 0.8rem;
    }
    
    .feature-item p {
        font-size: 0.7rem;
    }
    
    .section-block {
        padding: 0.875rem 1rem;
    }
}

/* Problem/Solution Cards */
.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ps-card {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
}

.ps-card.problem {
    border-left: 3px solid var(--danger);
}

.ps-card.solution {
    border-left: 3px solid var(--success);
}

.ps-icon {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.5rem;
}

.ps-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-main);
}

.ps-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Steps Row */
.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.step-num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
}

.step-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
}

.step-arrow {
    color: var(--text-faint);
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .problem-solution {
        grid-template-columns: 1fr;
    }
    
    .steps-row {
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    
    .step-arrow {
        display: none;
    }
}

/* ====================================
   Cards
   ==================================== */
.card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-body {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-input);
    border-top: 1px solid var(--border);
}

.card-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.locked-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* Passcode Display */
.passcode-display {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.passcode-digit {
    width: 52px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
}

/* Length Selector */
.length-selector {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.length-btn {
    padding: 0.5rem 1.25rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.length-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
}

.length-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon {
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #b45309;
}

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

.btn-danger:hover {
    background: #b91c1c;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #047857;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover {
    background: var(--bg-input);
    color: var(--text-main);
}

/* ====================================
   Countdown
   ==================================== */
.countdown-display {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    margin: 1rem 0;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ====================================
   Countdown Timer (Full)
   ==================================== */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.time-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.time-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-faint);
    margin-bottom: 1rem;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ====================================
   Modal
   ==================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 200;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.modal-icon.danger {
    color: var(--danger);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.modal-content > p {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Modal Extras */
.modal-large {
    max-width: 500px;
}

.modal-upgrade .modal-price {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-upgrade .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.modal-upgrade .feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

.modal-upgrade .feature-list li span {
    color: var(--success);
    font-weight: 600;
}

/* How It Works Modal */
.how-it-works-steps {
    text-align: left;
    margin-bottom: 1.5rem;
}

.how-it-works-steps .step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.how-it-works-steps .step:last-child {
    border-bottom: none;
}

.how-it-works-steps .step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.how-it-works-steps .step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.how-it-works-steps .step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ====================================
   Toast Notifications
   ==================================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    animation: slideIn 0.2s ease;
}

.toast.success {
    border-color: var(--success);
    background: var(--success-light);
    color: var(--success);
}

.toast.error {
    border-color: var(--danger);
    background: var(--danger-light);
    color: var(--danger);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================================
   Utilities
   ==================================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Error Messages */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--danger-light);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Success Messages */
.success-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--success-light);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* ====================================
   Reveal Timer Wrapper
   ==================================== */
.reveal-timer-wrapper {
    padding: 1rem;
    background: var(--warning-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 480px) {
    .passcode-digit {
        width: 44px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .time-value {
        font-size: 1.75rem;
    }
    
    .time-unit {
        min-width: 50px;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
    }
}

/* ====================================
   Legal Pages (Privacy, Terms)
   ==================================== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-page section {
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
}

.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-page p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-page ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page li {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: var(--primary);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-page .back-link {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 640px) {
    .legal-page {
        padding: 1.5rem 1rem;
    }
    
    .legal-page h1 {
        font-size: 1.5rem;
    }
}