/* ==================== RESET & VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff6b9d;
    --primary-dark: #e5557d;
    --secondary: #ffc3d0;
    --accent: #ff8fab;
    --background: #fff5f7;
    --card-bg: #ffffff;
    --text: #333;
    --text-light: #666;
    --success: #2ed573;
    --error: #ff4757;
    --shadow: rgba(255, 107, 157, 0.15);
    --shadow-lg: rgba(255, 107, 157, 0.25);
}

html {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe6f0 100%);
    overscroll-behavior: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe6f0 100%);
    color: var(--text);
    min-height: 100vh;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* ==================== AUTH STYLES ==================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.auth-tagline {
    color: var(--text-light);
    margin-bottom: 30px;
    font-style: italic;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--secondary);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form input {
    padding: 14px 18px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Password eye toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    flex: 1;
    padding-right: 48px;
}
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
    z-index: 2;
}
.password-toggle:hover {
    opacity: 1;
}

/* Social / expanded login options */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: var(--text-light);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--secondary);
}
.social-login-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid var(--secondary);
    background: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow);
}
.social-btn .social-icon {
    font-size: 1.3rem;
}
.social-btn.google {
    color: #4285f4;
    border-color: #4285f4;
}
.social-btn.google:hover {
    background: #4285f410;
}
.social-btn.apple {
    color: #333;
    border-color: #333;
}
.social-btn.apple:hover {
    background: #33333310;
}
.social-btn.guest {
    color: var(--primary);
    border-color: var(--primary);
}
.social-btn.guest:hover {
    background: #ff6b9d10;
}

/* ==================== APP LAYOUT ==================== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header h1 {
    font-size: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ==================== NAVIGATION ==================== */
/* Old top nav - hidden, replaced by bottom nav */
.app-nav {
    display: none;
}

.nav-btn {
    padding: 10px 15px;
    border: none;
    background: var(--background);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--secondary);
}

.nav-btn.active {
    background: var(--primary);
    color: white;
}

/* ==================== MAIN CONTENT ==================== */
.app-content {
    flex: 1;
    padding: 20px;
    padding-bottom: 160px; /* Space for bottom nav + breathing room */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.pwa-mode .app-content {
    padding-bottom: calc(160px + env(safe-area-inset-bottom));
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-lg);
}

.btn-small {
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-delete {
    background: var(--error);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

/* ==================== NOTIFICATIONS ==================== */
.notification-container {
    position: relative;
}

.notification-bell {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error);
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.notification-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.notification-dropdown h3 {
    background: var(--primary);
    color: white;
    padding: 15px;
    margin: 0;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.notification-item:last-child {
    border-bottom: none;
}

/* Activity-style notifications */
.notif-activity {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.notif-activity:hover {
    background: #fff0f5;
}

.notif-new {
    background: #fff8fa;
    border-left: 3px solid var(--primary);
}

.notif-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notif-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.notif-who {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.notif-what {
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Action notifications (delete requests etc.) */
.notif-action {
    background: #fffbe6;
    border-left: 3px solid #ffc107;
}

.notification-message {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #333;
}

.notification-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-approve {
    background: var(--success);
    color: white;
}

.btn-deny {
    background: var(--error);
    color: white;
}

.no-notifications {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

/* ==================== DASHBOARD V2 ==================== */
/* ==================== DASHBOARD V2 ==================== */
.dashboard-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
}

/* Hero: Anniversary left + Streak right */
.dash-hero {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.dash-hero-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 22px 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.25);
}

.dash-hero-left.dash-setup {
    background: white;
    color: var(--text);
    border: 2px dashed var(--secondary);
    box-shadow: 0 4px 12px var(--shadow);
}

.dash-hero-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.dash-hero-text h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.2;
}

.dash-hero-text p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

.hero-date-input {
    padding: 8px 12px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 0.9rem;
    margin: 8px 0;
    width: 100%;
    max-width: 180px;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-lg);
}

/* Streak circle */
.dash-streak {
    background: white;
    padding: 16px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--shadow);
    min-width: 90px;
    cursor: pointer;
    transition: transform 0.2s;
}

.dash-streak:hover {
    transform: translateY(-2px);
}

.dash-streak-ring {
    width: 58px;
    height: 58px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), rgba(255, 64, 129, 0.08));
    position: relative;
}

.dash-streak-ring.streak-ring-paused {
    border-color: #9e9e9e;
    background: linear-gradient(135deg, rgba(0,0,0,0.03), rgba(0,0,0,0.05));
    opacity: 0.75;
}

.dash-streak-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.streak-ring-paused .dash-streak-num {
    color: #9e9e9e;
}

.dash-streak-fire {
    font-size: 0.9rem;
    line-height: 1;
}

.dash-streak-label {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

.dash-streak-status {
    font-size: 0.6rem;
    margin-top: 4px;
    text-align: center;
}

.streak-safe { color: #4caf50; font-weight: 600; }
.streak-warning { color: #ff9800; font-weight: 600; }
.streak-waiting { color: #2196f3; font-weight: 600; }
.streak-paused { color: #9e9e9e; font-weight: 600; }

/* Alert banner */
.dash-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff0f5, #ffe4ec);
    border: 2px solid var(--primary);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dash-alert:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 14px var(--shadow);
}

.dash-alert-arrow {
    margin-left: auto;
    color: var(--primary);
    font-weight: bold;
}

/* Card container */
.dash-card {
    background: white;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 3px 12px var(--shadow);
}

.dash-card-title {
    font-size: 0.95rem;
    color: var(--primary);
    margin: 0 0 12px;
    font-weight: 600;
}

/* Daily Question inside card */
.daily-question-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-question-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.daily-question-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daily-question-input textarea {
    padding: 10px 12px;
    border: 2px solid var(--bg);
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

.daily-question-input textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    align-self: flex-start;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.daily-question-answers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dq-answer {
    padding: 10px 12px;
    border-radius: 12px;
}

.dq-answer.my-answer {
    background: linear-gradient(135deg, #fff0f5, #ffe4ec);
}

.dq-answer.partner-answer {
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
}

.dq-answer-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dq-answer-text {
    margin: 4px 0 0;
    font-style: italic;
    font-size: 0.9rem;
}

.dq-waiting {
    padding: 10px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 6px 0;
    font-weight: 500;
}

.btn-text:hover {
    text-decoration: underline;
}

.dq-history-btn {
    align-self: flex-start;
}

/* Love Note */
.dash-love-note {
    background: linear-gradient(135deg, #fff0f5, #ffe4ec);
    padding: 16px 18px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(233, 30, 99, 0.15);
}

.dash-love-note-icon {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 6px;
}

.dash-love-note p {
    font-style: italic;
    color: var(--text);
    font-size: 0.95rem;
    margin: 0 0 4px;
}

.dash-love-note small {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Activity Feed */
.dash-activity-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-activity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.dash-activity-row:hover {
    background: #fff0f5;
}

.dash-activity-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.dash-activity-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dash-activity-who {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dash-activity-what {
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-activity-time {
    font-size: 0.7rem;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Countdowns */
.dash-countdowns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-countdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg);
    border-radius: 10px;
}

.dash-countdown-emoji {
    font-size: 1.3rem;
}

.dash-countdown-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dash-countdown-title {
    font-weight: 500;
    font-size: 0.85rem;
}

.dash-countdown-date {
    font-size: 0.7rem;
    color: var(--text-light);
}

.dash-countdown-badge {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 6px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 40px;
}

.dash-countdown-badge small {
    font-size: 0.6rem;
    font-weight: 400;
}

/* On This Day */
.dash-otd {
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border: 1px solid rgba(255, 193, 7, 0.25);
}

.dash-otd-row {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: white;
    border-radius: 10px;
    margin-bottom: 6px;
}

.dash-otd-row:last-child {
    margin-bottom: 0;
}

.dash-otd-year {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    height: fit-content;
}

.dash-otd-row strong {
    font-size: 0.85rem;
    display: block;
}

.dash-otd-row p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 2px 0 0;
}

/* Quote */
.dash-quote {
    background: white;
    padding: 16px 18px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 3px 12px var(--shadow);
    padding-left: 36px;
}

.dash-quote-mark {
    font-size: 2.5rem;
    color: var(--secondary);
    position: absolute;
    top: 2px;
    left: 12px;
    opacity: 0.4;
    line-height: 1;
}

.dash-quote p {
    font-style: italic;
    color: var(--text);
    font-size: 0.9rem;
    margin: 0 0 4px;
    line-height: 1.4;
}

.dash-quote small {
    color: var(--text-light);
    font-size: 0.75rem;
    display: block;
    text-align: right;
}

/* Mini Stats Row */
.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.dash-stat {
    background: var(--bg);
    padding: 10px 6px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
}

.dash-stat:hover {
    background: #fff0f5;
    transform: translateY(-2px);
}

.dash-stat span {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

/* Mobile for dashboard */
@media (max-width: 480px) {
    .dash-hero {
        flex-direction: column;
    }
    
    .dash-streak {
        flex-direction: row;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .dash-streak-ring {
        width: 44px;
        height: 44px;
    }
    
    .dash-streak-num {
        font-size: 1.1rem;
    }
    
    .dash-streak-fire {
        font-size: 0.7rem;
    }
    
    .dash-streak-label {
        margin-top: 0;
        font-size: 0.8rem;
    }
    
    .dash-stats-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

/* ==================== OLD DASHBOARD (keeping for compatibility) ==================== */
.dashboard {
    display: grid;
    gap: 20px;
}

.anniversary-widget {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.anniversary-widget h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.anniversary-countdown {
    font-size: 1.1rem;
    opacity: 0.9;
}

.anniversary-setup {
    background: white;
    color: var(--text);
}

.anniversary-setup input {
    padding: 10px 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin: 10px 0;
}

.streak-widget {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
}

.streak-flame {
    font-size: 3rem;
    line-height: 1;
    -webkit-text-stroke: 0;
    text-shadow: none;
    filter: none;
}

.streak-count {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
}

.streak-label {
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
}

.stat-card.clickable:active {
    transform: translateY(-2px);
}

.stat-card.stat-alert {
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
}

.quick-actions {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.quick-actions h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-btn {
    padding: 12px 20px;
    border: 2px solid var(--secondary);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--secondary);
    border-color: var(--primary);
}

/* ==================== MEMORIES PAGE ==================== */
.memories-page {
    display: grid;
    gap: 20px;
}

.memories-add, .memories-view {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.memories-add h2, .memories-view h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--secondary);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--secondary);
    border-radius: 25px;
    font-size: 1rem;
    margin-bottom: 20px;
}

.memories-grid {
    display: grid;
    gap: 20px;
}

.memory-card {
    background: var(--background);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
}

.memory-card:hover {
    transform: translateY(-5px);
}

.memory-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* Loading state for images */
.memory-photo[loading] {
    opacity: 0.6;
}

.memory-photo:hover {
    opacity: 0.9;
}

/* Photo Lightbox */
.photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-lightbox.show {
    opacity: 1;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-image {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Reactions */
.memory-reactions, .content-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-top: 1px solid var(--border);
}

.partner-reaction {
    font-size: 1.3rem;
    animation: bounceIn 0.3s ease;
}

.react-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.react-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.react-btn.has-reaction {
    background: rgba(255, 107, 139, 0.2);
    border-color: var(--primary);
}

.reaction-picker {
    background: white;
    border-radius: 25px;
    padding: 8px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex;
    gap: 5px;
    z-index: 10001;
    animation: slideUp 0.2s ease;
}

.reaction-picker.emoji-full-picker {
    border-radius: 16px;
    padding: 0;
    flex-direction: column;
    width: min(300px, calc(100vw - 20px));
    max-height: 320px;
    overflow: hidden;
    left: 50% !important;
    transform: translateX(-50%);
}

.emoji-picker-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 4px 6px;
    background: var(--bg-light);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.emoji-tab-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.emoji-tab-btn:hover {
    background: var(--secondary);
}

.emoji-tab-btn.active {
    background: var(--primary);
}

.emoji-picker-panels {
    overflow-y: auto;
    max-height: 260px;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

.emoji-panel {
    display: none;
    flex-wrap: wrap;
    gap: 2px;
}

.emoji-panel.active {
    display: flex;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.reaction-emoji {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.15s;
}

.reaction-emoji:hover {
    background: var(--bg-light);
    transform: scale(1.3);
}

/* Emoji input picker (for inserting into text fields) */
.emoji-input-picker {
    border-radius: 16px !important;
    padding: 10px !important;
    flex-wrap: wrap;
    width: min(300px, calc(100vw - 20px));
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    left: 50% !important;
    transform: translateX(-50%);
}

.input-with-emoji {
    display: flex;
    gap: 6px;
    align-items: center;
}

.input-with-emoji input {
    flex: 1;
    min-width: 0;
}

.emoji-insert-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.emoji-insert-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.memory-content {
    padding: 15px;
}

.memory-category {
    font-size: 1.5rem;
}

.memory-content h3 {
    margin: 5px 0;
    color: var(--primary);
}

.memory-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.memory-desc {
    color: var(--text);
    line-height: 1.5;
}

.memory-location {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 10px;
}

.memory-card .btn-delete {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ==================== DAILY PAGE ==================== */
.daily-page {
    display: grid;
    gap: 20px;
}

.daily-section, .daily-feed {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.daily-section h2, .daily-feed h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.daily-photo-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-source-buttons {
    display: flex;
    gap: 10px;
}

.btn-photo-source {
    flex: 1;
    padding: 14px 16px;
    border: 2px dashed var(--secondary);
    border-radius: 12px;
    background: var(--background);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    color: var(--text);
}

.btn-photo-source:hover {
    border-color: var(--primary);
    background: var(--secondary);
    transform: translateY(-1px);
}

.btn-photo-source:active {
    transform: scale(0.97);
}

.daily-photo-upload input[type="text"],
.daily-section textarea {
    padding: 12px 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
}

#dailyPhotoPreview img {
    max-width: 200px;
    border-radius: 10px;
    margin-top: 10px;
}

.feed-items {
    display: grid;
    gap: 15px;
}

.feed-item {
    background: var(--background);
    padding: 15px;
    border-radius: 15px;
}

.feed-photo img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.feed-caption {
    margin-bottom: 5px;
}

.feed-item small {
    color: var(--text-light);
}

.feed-photo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.feed-photo-loc {
    font-size: 0.8em;
    color: var(--primary);
    cursor: pointer;
    padding: 2px 8px;
    background: rgba(255,107,129,0.08);
    border-radius: 12px;
}

.btn-tiny {
    font-size: 0.75em;
    padding: 2px 10px;
    border: 1px dashed var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 12px;
    cursor: pointer;
}

.feed-item .content-reactions {
    margin-top: 8px;
    padding: 8px 0 0;
    border-top: 1px solid var(--border);
}

/* ==================== DRAWING PAGE ==================== */
.drawing-page {
    display: grid;
    gap: 20px;
}

.drawing-canvas-container, .drawings-gallery {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.drawing-canvas-container h2, .drawings-gallery h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.canvas-tools {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.canvas-tools input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.canvas-tools input[type="range"] {
    width: 100px;
}

.canvas-tools button {
    padding: 8px 15px;
    border: 2px solid var(--secondary);
    background: white;
    border-radius: 10px;
    cursor: pointer;
}

#drawingCanvas {
    border: 3px solid var(--secondary);
    border-radius: 15px;
    display: block;
    margin: 0 auto 15px;
    width: 100%;
    max-width: 400px;
    touch-action: none;
}

.drawing-canvas-container {
    overflow: hidden;
}

.drawing-canvas-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.drawings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.drawing-card {
    background: var(--background);
    padding: 10px;
    border-radius: 15px;
    text-align: center;
}

.drawing-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.drawing-card p {
    margin-bottom: 5px;
}

.drawing-card small {
    color: var(--text-light);
}

.drawing-card .content-reactions {
    margin-top: 8px;
    padding: 8px 0 0;
    border-top: 1px solid var(--border);
}

/* ==================== JOURNAL PAGE ==================== */
.journal-page {
    display: grid;
    gap: 20px;
    max-width: 100%;
    overflow: hidden;
}

.journal-add, .journal-entries {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.journal-add h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.mood-selector {
    margin-bottom: 15px;
}

.mood-selector span {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
}

.mood-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mood-btn {
    font-size: 1.5rem;
    padding: 10px;
    border: 2px solid var(--secondary);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.mood-btn:hover, .mood-btn.selected {
    background: var(--secondary);
    transform: scale(1.1);
}

.journal-add textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    resize: vertical;
    box-sizing: border-box;
}

/* Template selector */
.journal-template-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.template-btn {
    padding: 6px 14px;
    border: 2px solid var(--secondary);
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
}

.template-btn:hover, .template-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.gratitude-template {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.gratitude-template.visible {
    display: flex;
}

.gratitude-template label {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.gratitude-template textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
}

.gratitude-template textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.journal-entry {
    background: var(--background);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.entry-mood {
    font-size: 1.5rem;
}

.entry-author {
    font-weight: 500;
    color: var(--primary);
}

.entry-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: auto;
}

/* ==================== QUESTIONS PAGE ==================== */
.questions-page {
    display: grid;
    gap: 20px;
}

.question-ask, .questions-list {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.question-ask h2, .questions-list h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.question-ask input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.question-card {
    background: var(--background);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.question-card.unanswered {
    border-left: 4px solid var(--primary);
}

.question-card.answered {
    border-left: 4px solid var(--success);
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.question-card small {
    color: var(--text-light);
}

.answer {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.answer p {
    margin-bottom: 5px;
}

.answer-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.answer-form input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
}

.waiting {
    color: var(--text-light);
    font-style: italic;
    margin-top: 10px;
}

/* ==================== GALLERY PAGE ==================== */
.gallery-page {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.gallery-page h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 15px 10px 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    display: block;
    font-size: 0.9rem;
}

.gallery-overlay small {
    opacity: 0.8;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    cursor: pointer;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

/* ==================== SETTINGS PAGE ==================== */
.settings-page {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.settings-page h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.settings-section {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    margin-bottom: 15px;
    color: var(--text);
}

.settings-section input {
    padding: 12px 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin-right: 10px;
    margin-bottom: 10px;
}

.settings-section p {
    margin-bottom: 10px;
}

.settings-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.settings-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
}

.settings-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.settings-link-item {
    display: block;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.settings-link-item:hover {
    background: var(--border);
}

/* ===== BIRTHDAY SURPRISE ===== */
.bday-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    animation: bdayFadeIn 0.5s ease;
    overflow: hidden;
}
@keyframes bdayFadeIn { from { opacity: 0; } to { opacity: 1; } }
.bday-modal {
    background: linear-gradient(135deg, #fff0f3, #ffffff, #fff0f5);
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: bdayBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 20px 60px rgba(255, 107, 129, 0.4);
}
@keyframes bdayBounceIn {
    0% { transform: scale(0.3) rotate(-5deg); opacity: 0; }
    60% { transform: scale(1.05) rotate(2deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}
.bday-emoji-top {
    font-size: 4rem;
    margin-bottom: 8px;
    animation: bdayFloat 2s ease-in-out infinite;
}
@keyframes bdayFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.bday-title {
    font-size: 1.6rem;
    color: #e91e63;
    margin-bottom: 10px;
    line-height: 1.3;
}
.bday-hearts {
    font-size: 1.4rem;
    margin: 10px 0;
    letter-spacing: 6px;
}
.bday-msg {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
}
.bday-msg-love {
    color: #e91e63;
    font-weight: 600;
    font-size: 1rem;
}
.bday-msg-small {
    font-size: 0.88rem;
    color: #888;
    font-style: italic;
}
.bday-btn {
    margin-top: 18px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6b81, #ee5a6f);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 107, 129, 0.4);
}
.bday-btn:hover { transform: scale(1.05); }
.bday-btn:active { transform: scale(0.97); }
.bday-confetti {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 1; overflow: hidden;
}
.bday-confetti-piece {
    position: absolute;
    top: -40px;
    animation: bdayFall linear infinite;
    opacity: 0.9;
}
@keyframes bdayFall {
    0% { transform: translateY(-40px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ===== MILESTONE CELEBRATIONS ===== */
.milestone-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99998;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow: hidden;
}
.milestone-overlay.show { opacity: 1; }

.milestone-modal {
    background: linear-gradient(135deg, #fff0f3, #ffffff, #fff5f8);
    border-radius: 28px;
    padding: 36px 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 2;
    transform: scale(0.3) rotate(-5deg);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease;
    box-shadow: 0 20px 60px rgba(233, 30, 99, 0.35);
}
.milestone-overlay.show .milestone-modal {
    transform: scale(1) rotate(0);
    opacity: 1;
}
.milestone-big {
    box-shadow: 0 20px 80px rgba(233, 30, 99, 0.5);
    border: 2px solid rgba(233, 30, 99, 0.15);
}

.milestone-emoji-top {
    font-size: 4rem;
    margin-bottom: 8px;
    animation: msFloat 2s ease-in-out infinite;
}
@keyframes msFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.08); }
}
.milestone-big .milestone-emoji-top {
    font-size: 5rem;
}

.milestone-title {
    font-size: 1.6rem;
    color: #e91e63;
    margin-bottom: 6px;
    font-weight: 800;
    line-height: 1.3;
}
.milestone-big .milestone-title {
    font-size: 1.9rem;
    background: linear-gradient(135deg, #e91e63, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.milestone-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 10px;
}

.milestone-hearts {
    font-size: 1.4rem;
    margin: 10px 0;
    letter-spacing: 8px;
    animation: msPulse 1.5s ease-in-out infinite;
}
@keyframes msPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.milestone-love-msg {
    font-size: 1.05rem;
    color: #e91e63;
    font-weight: 600;
    line-height: 1.6;
    margin: 12px 0 6px;
    font-style: italic;
}

.milestone-dismiss {
    margin: 16px 0 8px;
}
.milestone-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #999;
    cursor: pointer;
}
.milestone-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e91e63;
}

.milestone-btn {
    margin-top: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6b81, #ee5a6f);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255, 107, 129, 0.4);
    width: 100%;
}
.milestone-btn:hover { transform: scale(1.03); }
.milestone-btn:active { transform: scale(0.97); }

.milestone-confetti {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 1; overflow: hidden;
}
.milestone-confetti-piece {
    position: absolute;
    top: -40px;
    animation: msFall linear infinite;
    opacity: 0.9;
}
@keyframes msFall {
    0% { transform: translateY(-40px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Milestone Settings */
.ms-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ms-sub-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 3px solid #fce4ec;
    transition: opacity 0.3s;
}
.ms-custom-msg {
    margin-top: 10px;
}
.ms-custom-msg label, .ms-special-days label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}
.ms-special-days {
    margin-top: 12px;
}
.ms-special-day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--background);
    border-radius: 10px;
    margin-top: 4px;
    font-size: 0.88rem;
}
.ms-special-day-row .btn-tiny {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 6px;
    opacity: 0.6;
}
.ms-special-day-row .btn-tiny:hover { opacity: 1; }

.streak-mode-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-option:hover {
    background: rgba(255, 107, 129, 0.06);
}

.toggle-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.toggle-option span {
    font-size: 0.95rem;
    font-weight: 500;
}

.streak-mode-toggle .settings-hint {
    margin: 0 0 4px 38px;
    font-size: 0.78rem;
}

/* Install App Section */
.install-section {
    background: linear-gradient(135deg, #fff5f8, #ffe0eb);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 2px dashed var(--primary);
}

.install-app-btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    width: 100%;
    margin-bottom: 10px;
}

.install-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.install-instructions {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.install-instructions ol {
    margin: 10px 0 0 20px;
    line-height: 1.8;
}

.install-instructions li {
    margin-bottom: 8px;
}

/* ==================== UTILITIES ==================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-style: italic;
}

.error-message {
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 10px;
}

.success-message {
    color: #4caf50;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

.forgot-password-link {
    display: block;
    text-align: center;
    color: var(--primary);
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 8px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 5px 20px var(--shadow-lg);
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification.toast-error {
    background: var(--error);
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .app-header h1 {
        font-size: 1.2rem;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .anniversary-widget h2 {
        font-size: 1.4rem;
    }

    #drawingCanvas {
        max-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .app-content {
        padding: 10px;
    }

    .memories-add, .memories-view,
    .daily-section, .daily-feed,
    .drawing-canvas-container, .drawings-gallery,
    .journal-add, .journal-entries,
    .question-ask, .questions-list,
    .gallery-page, .settings-page {
        padding: 15px;
        border-radius: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ==================== PHOTO PREVIEW ==================== */
#memoryPhotoPreview img,
#dailyPhotoPreview img {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
}

/* ==================== PWA INSTALL BUTTON ==================== */
.install-btn {
    background: linear-gradient(135deg, #ff6b9d, #e91e63);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    animation: pulse 2s infinite;
    margin-left: 15px;
}

.install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(233, 30, 99, 0.5); }
}

/* PWA Mode - running as installed app */
.pwa-mode {
    /* Safe area insets for notched phones */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    overscroll-behavior: none;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.pwa-mode .app-container {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pwa-mode .app-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.pwa-mode .app-header {
    padding-top: calc(15px + env(safe-area-inset-top));
}

.pwa-mode .bottom-nav {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

/* Prevent text selection on touch for app feel */
.pwa-mode * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.pwa-mode input,
.pwa-mode textarea {
    -webkit-touch-callout: default;
    -webkit-user-select: text;
    user-select: text;
}

/* iOS specific styles */
@supports (-webkit-touch-callout: none) {
    .pwa-mode .bottom-nav {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ==================== INSTALL BANNER ==================== */
.install-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #e91e63, #ff6b9d);
    color: white;
    padding: 15px 20px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s ease;
}

.install-banner.show {
    bottom: 0;
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.install-icon {
    font-size: 2rem;
}

.install-text {
    flex: 1;
}

.install-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.install-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.install-btn-banner {
    background: white;
    color: #e91e63;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.install-btn-banner:hover {
    transform: scale(1.05);
}

.install-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Safe area for install banner on notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .install-banner {
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
}

/* ==================== GENERIC MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    padding: 20px;
}

.modal-overlay .modal-content {
    background: var(--card-bg, #fff);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-overlay .modal-content h3 {
    margin: 0 0 16px;
    text-align: center;
}

.modal-overlay .place-search-wrap {
    position: relative;
}

.modal-overlay .place-search-wrap input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 20px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
}

.btn-danger {
    background: var(--error);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* ==================== INSTALL MODAL ==================== */
.install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.install-modal.show {
    opacity: 1;
}

.install-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.install-modal.show .install-modal-content {
    transform: translateY(0);
}

.install-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-modal-close:hover {
    background: #e0e0e0;
}

.install-modal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.install-steps {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 15px;
}

.install-steps ol {
    margin: 15px 0 0 20px;
    line-height: 2;
}

.install-steps li {
    margin-bottom: 10px;
}

/* ==================== NAV SCROLLABLE (legacy - hidden) ==================== */
/* Bottom nav is now used instead */

/* ==================== BUCKET LIST ==================== */
.bucket-page, .songs-page, .quotes-page, .dates-page, .wishes-page, .stats-page {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.add-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.add-section input, .add-section select, .add-section textarea {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
}

.add-section input:focus, .add-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.bucket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bucket-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.3s;
}

.bucket-item.completed {
    opacity: 0.7;
    background: #f0fff0;
}

.bucket-item.completed .bucket-text {
    text-decoration: line-through;
    color: var(--text-light);
}

.bucket-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.bucket-checkbox input {
    opacity: 0;
    position: absolute;
}

.bucket-checkbox .checkmark {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s;
}

.bucket-checkbox input:checked ~ .checkmark {
    background: var(--success);
    border-color: var(--success);
}

.bucket-checkbox input:checked ~ .checkmark::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

.bucket-text {
    flex: 1;
    font-size: 1rem;
}

.completed-by {
    color: var(--success);
    font-size: 0.85rem;
}

.btn-delete-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.btn-delete-small:hover {
    opacity: 1;
}

/* ==================== COUNTDOWNS ==================== */
.countdowns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.countdown-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 15px var(--shadow);
    position: relative;
}

.countdown-card.past {
    opacity: 0.5;
}

.countdown-emoji {
    font-size: 2rem;
}

.countdown-card .countdown-days {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.countdown-label {
    color: var(--text-light);
    font-size: 0.85rem;
}

.countdown-title {
    margin-top: 10px;
    font-weight: 600;
}

.countdown-card small {
    color: var(--text-light);
}

.countdown-card .btn-delete-small {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* ==================== SONGS ==================== */
.song-form {
    flex-direction: column;
}

.songs-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.song-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
}

.song-date {
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    white-space: nowrap;
}

.song-info {
    flex: 1;
}

.song-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.song-artist {
    color: var(--text-light);
}

.song-note {
    font-style: italic;
    color: var(--primary);
    margin-top: 5px;
}

.song-link {
    color: var(--primary);
    text-decoration: none;
}

/* ==================== QUOTES ==================== */
.quote-form {
    flex-direction: column;
}

.quotes-grid {
    display: grid;
    gap: 15px;
}

.quote-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
    position: relative;
    border-left: 4px solid var(--primary);
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
}

.quote-author {
    color: var(--primary);
    font-weight: 600;
}

.quote-context {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

.quote-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 10px;
}

.quote-card .btn-delete-small {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ==================== DATE IDEAS ==================== */
.spin-section {
    text-align: center;
    margin-bottom: 30px;
}

.spin-wheel {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 25px var(--shadow);
    margin-bottom: 20px;
}

.spin-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
}

.spin-icon.spinning {
    animation: spin 1s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(720deg); }
}

.spin-idea {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin: 15px 0;
}

.btn-spin {
    font-size: 1.2rem;
    padding: 15px 40px;
}

.date-ideas-list {
    margin-top: 30px;
}

.date-ideas-list h3 {
    margin-bottom: 15px;
}

/* Date Idea Suggestions */
.suggestions-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #fff5f7 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.suggestions-section h3 {
    margin: 0 0 5px 0;
    color: var(--primary);
}

.suggestions-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.suggestions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-chip {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.date-idea-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.date-idea-item.used {
    opacity: 0.6;
}

.date-idea-item.used .date-idea-text {
    text-decoration: line-through;
}

.date-idea-text {
    flex: 1;
}

/* ==================== WISH LIST ==================== */
.wish-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wish-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--secondary);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.wish-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.wish-hint {
    background: #fffbe6;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.wish-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wish-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
}

.wish-item.purchased {
    background: #f0fff0;
}

.wish-info {
    flex: 1;
}

.wish-name {
    font-weight: 600;
}

.wish-notes {
    display: block;
    color: var(--text-light);
    margin-top: 5px;
}

.wish-bought {
    color: var(--success);
    font-weight: 600;
}

/* ==================== STATS PAGE ==================== */
.stats-hero {
    text-align: center;
    background: linear-gradient(135deg, #fff0f3, #ffffff, #fff5f8);
    border-radius: 20px;
    padding: 28px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.1);
    border: 1px solid rgba(233, 30, 99, 0.08);
}
.stats-hero-main { margin-bottom: 12px; }
.stats-hero-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e91e63, #ff6b81);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.stats-hero-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}
.stats-hero-breakdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 12px 0;
}
.stats-hero-sub {
    font-size: 0.82rem;
    color: var(--text-light);
}
.stats-hero-sub span {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
    display: block;
}
.stats-hero-next {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 8px;
    padding: 6px 16px;
    background: rgba(233, 30, 99, 0.08);
    border-radius: 20px;
    display: inline-block;
}

.stats-total-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff6b81, #ee5a6f);
    color: white;
    border-radius: 14px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.25);
}
.stats-total-banner:active { transform: scale(0.98); }
.stats-total-num {
    font-size: 1.6rem;
    font-weight: 800;
}
.stats-total-label {
    font-size: 0.92rem;
    font-weight: 500;
}

.big-stat {
    text-align: center;
    margin-bottom: 30px;
}

.big-stat-value {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary);
}

.big-stat-label {
    font-size: 1.2rem;
    color: var(--text-light);
}

.stats-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.stat-card-full {
    background: var(--card-bg);
    padding: 18px 12px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 3px 15px var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.stat-clickable {
    cursor: pointer;
}
.stat-clickable:hover {
    border-color: rgba(233, 30, 99, 0.2);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.12);
    transform: translateY(-2px);
}
.stat-clickable:active {
    transform: scale(0.97);
}

/* Small arrow hint on clickable cards */
.stat-clickable::after {
    content: '›';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.3;
    transition: opacity 0.2s;
}
.stat-clickable:hover::after { opacity: 0.7; }

.stat-card-full .stat-icon {
    font-size: 1.5rem;
    display: block;
}

.stat-card-full .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.stat-card-full .stat-label {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* Progress bar inside stat cards */
.stat-progress {
    height: 4px;
    background: var(--secondary, #f5f5f5);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}
.stat-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b81, #e91e63);
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 2px;
}

.flashback-item {
    cursor: pointer;
    transition: transform 0.2s;
}
.flashback-item:active { transform: scale(0.98); }

.qotd-section {
    margin-bottom: 30px;
}

.qotd-section h3 {
    margin-bottom: 15px;
}

.qotd-card {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
}

.flashback-section h3 {
    margin-bottom: 15px;
}

.flashback-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flashback-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow);
}

.flashback-year {
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-weight: bold;
}

.flashback-photo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.flashback-item p {
    flex: 1;
}

/* ==================== SMALL BUTTONS ==================== */
.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    background: var(--secondary);
    transition: all 0.3s;
}

.btn-small:hover {
    background: var(--primary);
    color: white;
}

.btn-small.btn-approve {
    background: var(--success);
    color: white;
}

.btn-small.btn-danger {
    background: var(--error);
    color: white;
}

/* ==================== SETTING ROW ==================== */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.setting-text {
    font-size: 1rem;
    color: var(--text);
    flex: 1;
}

.btn-toggle {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #ccc;
    background: #f0f0f0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ==================== TOGGLE SWITCH ==================== */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 0;
    flex-wrap: nowrap;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    width: 50px;
    min-width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 26px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 1rem;
}

/* ==================== MEMORY LOCK & ACTIONS ==================== */
.memory-card {
    position: relative;
}

.memory-card.locked {
    border: 2px solid var(--primary);
}

.lock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 1;
}

.memory-actions {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    border-top: 1px solid var(--secondary);
    flex-wrap: wrap;
}

.memory-actions .btn-small {
    font-size: 0.85rem;
}

.current-photo {
    margin: 15px 0;
    text-align: center;
}

.current-photo img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

.current-photo p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ==================== RECIPES ==================== */
.recipes-page {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.recipe-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 15px;
    border: 2px solid var(--secondary);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.recipe-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recipe-photo-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.recipe-card-content {
    padding: 15px;
}

.recipe-card-content h3 {
    margin-bottom: 5px;
}

.recipe-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.recipe-author {
    color: var(--primary);
    font-size: 0.85rem;
    margin: 8px 0;
}

.recipe-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.recipe-actions .btn-small.favorited {
    background: #fff0f3;
}

.recipe-form input,
.recipe-form select,
.recipe-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 12px;
}

.recipe-form input:focus,
.recipe-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.photo-upload {
    margin-bottom: 15px;
}

.photo-upload label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.recipe-view {
    max-width: 600px;
}

.recipe-view-photo {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.recipe-section {
    margin-top: 20px;
}

.recipe-section h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.ingredients-list {
    padding-left: 20px;
}

.ingredients-list li {
    margin-bottom: 5px;
}

.instructions-text {
    line-height: 1.8;
    color: var(--text);
}

/* ==================== LOVE NOTES ==================== */
.love-page {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.love-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.love-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--secondary);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.love-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.empty-love {
    text-align: center;
    padding: 50px 20px;
}

.love-waiting {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.love-hint {
    color: var(--text-light);
    margin-top: 10px;
}

.love-display {
    text-align: center;
}

.love-card-container {
    position: relative;
    min-height: 200px;
}

.love-note-card {
    display: none;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe6f0 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    animation: fadeIn 0.5s ease-out;
}

.love-note-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.love-note-content {
    position: relative;
}

.love-quote {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

.love-note-content p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text);
    padding: 10px 20px;
}

.love-category {
    display: inline-block;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 15px;
    color: var(--primary);
}

.love-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.love-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.love-nav-btn:hover {
    background: var(--primary);
    color: white;
}

.love-counter {
    font-size: 1.1rem;
    color: var(--text-light);
}

.add-love-note {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    margin-bottom: 25px;
}

.love-prompt {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
}

.love-category-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 12px;
}

.add-love-note textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    resize: vertical;
}

.add-love-note textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.add-love-note .btn-primary {
    width: 100%;
}

.my-love-notes {
    margin-top: 20px;
}

.my-love-notes h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.my-note-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px var(--shadow);
}

.my-note-item p {
    flex: 1;
    font-size: 0.95rem;
}

.btn-danger {
    background: var(--error);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
}

/* ==================== DAILY QUESTION ==================== */
.daily-question-section {
    margin-bottom: 20px;
}

.daily-question-card {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 20px;
}

.daily-question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.4;
}

.daily-question-input textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    resize: none;
    margin-bottom: 12px;
    font-family: inherit;
}

.daily-question-input textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.daily-question-input .btn-primary {
    width: 100%;
}

.daily-question-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dq-answer {
    background: white;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dq-answer-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.dq-answer-text {
    font-size: 1rem;
    color: var(--text);
    font-style: italic;
    margin: 0;
}

.my-answer {
    border-left: 4px solid var(--primary);
}

.partner-answer {
    border-left: 4px solid #ff6b9d;
}

.dq-waiting {
    text-align: center;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
    color: #888;
    font-style: italic;
}

.dq-history-btn {
    margin-top: 16px;
    width: 100%;
    font-size: 0.9rem;
}

.dq-history-modal {
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding-top: 40px;
}

.modal-close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    font-size: 1.6rem;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.modal-close-x:hover {
    background: #f0f0f0;
    color: #333;
}

.dq-history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.dq-history-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid var(--primary);
}

.dq-history-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.dq-history-question {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.dq-history-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dq-history-answer {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.dq-history-answer.my-answer {
    border-left-color: var(--primary);
}

.dq-history-answer.partner-answer {
    border-left-color: #ff6b9d;
}

.dq-history-answer .dq-answer-label {
    font-weight: 600;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 4px;
}

.dq-history-answer p {
    margin: 0;
    font-style: italic;
    color: #555;
}

/* ==================== BOTTOM NAV BAR ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 12px;
    min-width: 60px;
    position: relative;
}

.bottom-nav-icon {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s;
}

.bottom-nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
    letter-spacing: 0.3px;
}

.bottom-nav-btn.active .bottom-nav-icon {
    transform: scale(1.15);
}

.bottom-nav-btn.active .bottom-nav-label {
    color: var(--primary);
    font-weight: 700;
}

.bottom-nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.bottom-nav-btn:active {
    transform: scale(0.92);
}

/* ==================== MORE MENU PAGE ==================== */
.more-menu-page {
    padding: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.more-menu-page h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text);
}

.more-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.more-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.more-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.more-menu-item:active {
    transform: scale(0.95);
}

.more-icon {
    font-size: 2rem;
    line-height: 1;
}

.more-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    line-height: 1.2;
}

.more-menu-premium {
    background: linear-gradient(135deg, #fff5f7, #ffe0ec);
    border: 2px solid var(--primary);
}

/* ==================== AI PAGE ==================== */
.ai-page {
    display: grid;
    gap: 20px;
}

.ai-page > h2 {
    color: var(--primary);
}

.ai-section {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.ai-section h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.ai-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ai-prefs {
    margin-bottom: 15px;
}

.ai-pref-input {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ai-pref-input input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 0.95rem;
}

.ai-pref-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ai-tag {
    background: var(--secondary);
    color: var(--text);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-tag button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary-dark);
    padding: 0 2px;
    line-height: 1;
}

.ai-action-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-action-row select {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
}

.ai-inputs {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.ai-inputs input {
    padding: 10px 14px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 0.95rem;
}

.ai-section textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    resize: vertical;
}

.ai-results {
    margin-top: 15px;
}

.ai-response {
    background: var(--background);
    padding: 20px;
    border-radius: 15px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.ai-response strong {
    color: var(--primary-dark);
}

.ai-response .ai-item {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--secondary);
}

.ai-loading {
    text-align: center;
    color: var(--primary);
    font-weight: 500;
    padding: 20px;
    animation: pulse 1.5s infinite;
}

.ai-error {
    text-align: center;
    color: var(--error);
    padding: 15px;
    background: #fff5f5;
    border-radius: 10px;
}

/* AI Locked / Premium wall */
.ai-locked {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.ai-locked h2 {
    color: var(--primary);
    margin-bottom: 15px;
}

.ai-locked-icon {
    font-size: 4rem;
    margin: 20px 0;
}

.ai-locked-desc {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

.ai-feature-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 350px;
    margin: 0 auto;
}

.ai-preview-item {
    background: var(--background);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .ai-section {
        padding: 15px;
    }

    .ai-action-row {
        flex-direction: column;
    }

    .ai-feature-preview {
        grid-template-columns: 1fr;
    }
}

/* ==================== DAILY CHECKLIST ==================== */
.dash-checklist .checklist-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--background);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.checklist-item:active {
    transform: scale(0.97);
}

.checklist-item.done {
    background: #e8f5e9;
    border-color: #4caf50;
}

.checklist-item.done span:last-child {
    text-decoration: line-through;
    opacity: 0.7;
}

.checklist-check {
    font-size: 1.2rem;
}

/* ==================== AI SUGGEST BANNER ==================== */
.ai-suggest-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
    transition: transform 0.2s;
}

.ai-suggest-banner:active {
    transform: scale(0.98);
}

.ai-suggest-badge {
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ai-suggest-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 10px;
}

.ai-suggest-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.ai-suggest-info strong {
    font-size: 0.95rem;
}

.ai-suggest-detail {
    font-size: 0.8rem;
    color: var(--text-light);
}

.ai-suggest-reason {
    font-size: 0.8rem;
    color: var(--primary);
    font-style: italic;
}

.ai-suggest-vibe {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 8px;
    color: var(--text-light);
    width: fit-content;
}

/* ==================== GAMES HUB ==================== */
.games-page {
    padding: 10px;
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: white;
    border: none;
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 3px 12px var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.game-card:active {
    transform: scale(0.97);
}

.game-card-icon {
    font-size: 2.5rem;
}

.game-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.game-card-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==================== WORDLE ==================== */
.wordle-page {
    padding: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.wordle-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 3px 12px var(--shadow);
}

.wordle-section h3 {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.wordle-create-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wordle-create-form input {
    padding: 12px;
    border: 2px solid var(--secondary);
    border-radius: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wordle-status-card {
    background: var(--background);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 12px;
}

.wordle-waiting { color: var(--text-light); font-style: italic; margin-top: 6px; }
.wordle-guesses-made { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.wordle-won { background: #e8f5e9; }
.wordle-lost { background: #fbe9e7; }

.wordle-hint {
    background: #fff8e1;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.wordle-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.wordle-row {
    display: flex;
    gap: 6px;
}

.wordle-tile {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 8px;
    background: #ddd;
    color: white;
    text-transform: uppercase;
}

.wordle-tile.correct {
    background: #6aaa64;
}

.wordle-tile.present {
    background: #c9b458;
}

.wordle-tile.absent {
    background: #787c7e;
}

.wordle-tile-input {
    width: 44px;
    height: 44px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    text-transform: uppercase;
    outline: none;
    caret-color: transparent;
}

.wordle-tile-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

.wordle-result {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.wordle-result.won { background: #e8f5e9; color: #2e7d32; }
.wordle-result.lost { background: #fbe9e7; color: #c62828; }

.wordle-keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
    user-select: none;
}

.wordle-kb-row {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.wordle-kb-key {
    min-width: 30px;
    height: 42px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    background: #d3d6da;
    color: #1a1a1b;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.wordle-kb-key:active {
    transform: scale(0.93);
}

.wordle-kb-key.correct {
    background: #6aaa64;
    color: white;
}

.wordle-kb-key.present {
    background: #c9b458;
    color: white;
}

.wordle-kb-key.absent {
    background: #787c7e;
    color: white;
    opacity: 0.7;
}

.wordle-kb-wide {
    min-width: 50px;
    font-size: 1.1rem;
}

/* ==================== WOULD YOU RATHER ==================== */
.wyr-page {
    padding: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.wyr-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.wyr-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    background: white;
    color: var(--text-light);
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.2s;
}

.wyr-tab.active {
    background: var(--primary);
    color: white;
}

.wyr-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wyr-option {
    background: white;
    padding: 24px 20px;
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 3px 12px var(--shadow);
    transition: all 0.3s;
    border: 3px solid transparent;
    position: relative;
}

.wyr-option:active {
    transform: scale(0.97);
}

.wyr-option.picked {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    transform: scale(1.03);
}

.wyr-option.partner-picked {
    border-color: #7c4dff;
}

.wyr-option.picked.partner-picked {
    border-color: var(--primary);
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.wyr-option p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.wyr-who {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.wyr-waiting {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
}

.wyr-label {
    display: inline-block;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.wyr-vs {
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-light);
    padding: 10px 0;
}

.wyr-result {
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 12px;
    font-size: 0.95rem;
}

.wyr-match {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.wyr-diff {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.wyr-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    gap: 10px;
}

.wyr-counter {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* WYR History */
.wyr-history-item {
    background: white;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

.wyr-history-item:active {
    transform: scale(0.98);
}

.wyr-history-q {
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
}

.wyr-history-picks {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.wyr-history-me {
    color: var(--primary);
}

.wyr-history-partner {
    color: #7c4dff;
}

.wyr-history-match {
    color: #2e7d32;
    font-weight: 700;
}

.wyr-history-diff {
    color: #e65100;
    font-weight: 700;
}

/* ==================== PLACE SEARCH ==================== */
.place-search-wrap {
    position: relative;
    width: 100%;
}

.place-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.place-suggestion-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.place-suggestion-item:last-child {
    border-bottom: none;
}

.place-suggestion-item:hover,
.place-suggestion-item:active {
    background: #f8f0f8;
}

.place-suggestion-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.place-suggestion-type {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: capitalize;
    margin-top: 2px;
}

.place-no-results {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.85rem;
    cursor: default;
}

.place-no-results:hover {
    background: transparent;
}

/* ==================== OUR MAP ==================== */
.ourmap-page {
    padding: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.ourmap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ourmap-header h2 {
    margin: 0;
}

.ourmap-add-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; font-size: 1.2rem; border: none; cursor: pointer;
    box-shadow: 0 3px 12px rgba(255,107,157,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ourmap-add-btn:hover { transform: scale(1.1); box-shadow: 0 5px 18px rgba(255,107,157,0.4); }

.ourmap-map-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px var(--shadow);
}

.ourmap-container {
    width: 100%;
    height: 55vh;
    min-height: 300px;
    z-index: 1;
}

/* ---- Map Style Switcher ---- */
.map-style-switcher {
    position: absolute;
    bottom: 12px; left: 12px;
    z-index: 1000;
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.map-style-btn {
    width: 34px; height: 34px; border-radius: 8px;
    border: 2px solid transparent; background: none;
    font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.map-style-btn:hover { background: #f0f0f0; }
.map-style-btn.active { border-color: var(--primary); background: #fff0f3; }

/* ---- Map Filters ---- */
.ourmap-filters {
    display: flex;
    gap: 6px;
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.map-filter-btn {
    padding: 6px 14px;
    border: 2px solid var(--secondary);
    border-radius: 20px;
    background: white;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.map-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ---- Styled Map Pins ---- */
.map-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}
.map-pin-head {
    width: 36px; height: 36px;
    background: var(--pin-color, #4285f4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 3px solid white;
    position: relative;
    z-index: 2;
    transition: transform 0.2s;
}
.map-pin:hover .map-pin-head {
    transform: scale(1.2);
}
.map-pin-point {
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid var(--pin-color, #4285f4);
    margin-top: -3px;
    position: relative;
    z-index: 1;
}

/* Map pin drop animation */
@keyframes mapPinDrop {
    0% { transform: translateY(-40px); opacity: 0; }
    50% { opacity: 1; }
    70% { transform: translateY(4px); }
    85% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}
.map-pin-drop {
    animation: mapPinDrop 0.5s ease-out forwards;
}

/* Pulse animation for active trip pins */
@keyframes mapPinPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,152,0,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(255,152,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,152,0,0); }
}
.map-pin-trip .map-pin-head {
    animation: mapPinPulse 2s ease-in-out infinite;
}

/* ---- Pin list improvements ---- */
.ourmap-pin-list {
    margin-top: 8px;
}

.ourmap-list-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

@keyframes listSlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.ourmap-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: listSlideIn 0.35s ease-out both;
}

.ourmap-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.ourmap-list-item:active {
    transform: scale(0.98);
}

.ourmap-list-emoji-bubble {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    flex-shrink: 0;
}

.ourmap-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ourmap-list-name {
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ourmap-list-date {
    font-size: 0.78rem;
    color: var(--text-light);
}

.ourmap-list-type-badge {
    font-size: 0.9rem;
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.map-type-memory { background: #fff0f3; }
.map-type-photo { background: #f3e5f5; }
.map-type-trip { background: #fff3e0; }
.map-type-pin { background: #e3f2fd; }

.ourmap-empty {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-size: 0.9rem;
}

/* ---- Pin Color Picker ---- */
.pin-color-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 4px;
}
.pin-color-opt {
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.pin-color-opt:hover { transform: scale(1.15); }
.pin-color-opt.selected { border-color: var(--text); transform: scale(1.15); }

/* ---- Emoji Picker Tabs ---- */
.pin-emoji-picker-tabs {
    display: flex;
    gap: 4px;
    margin: 6px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.pin-emoji-tab {
    padding: 6px 10px; border: none;
    background: #f5f5f5; border-radius: 8px;
    font-size: 1.1rem; cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pin-emoji-tab:hover { background: #eee; }
.pin-emoji-tab.active { background: var(--primary); filter: none; }
.pin-emoji-cat {
    display: flex; flex-wrap: wrap; gap: 6px;
    justify-content: center;
}

/* ---- Pin Preview ---- */
.map-pin-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    margin-top: 8px;
    background: #f9f9f9;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Emoji picker (existing, keep) */
.ourmap-emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
}

.ourmap-emoji-opt {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.ourmap-emoji-opt:hover,
.ourmap-emoji-opt:active {
    background: #f5f5f5;
}

.ourmap-emoji-opt.selected {
    border-color: var(--primary);
    background: #fce4ec;
}

/* Popup styling */
.ourmap-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.ourmap-popup {
    text-align: center;
    min-width: 160px;
}

.ourmap-popup strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.ourmap-popup-img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
}

.ourmap-popup-date {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}

.ourmap-popup-loc {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
}

.ourmap-popup-desc {
    font-size: 0.82rem;
    color: #666;
    margin: 4px 0;
}

.ourmap-popup-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    justify-content: center;
}

.ourmap-popup-edit {
    background: #fff0f3;
    border: none;
    color: var(--primary, #ff6b81);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.ourmap-popup-delete {
    background: #fff0f0;
    border: none;
    color: #e53935;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}
.ourmap-popup-customize {
    background: #f0f0ff;
    border: none;
    color: #7c4dff;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
}
.customize-icon-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 10001;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.customize-icon-modal {
    background: var(--card-bg, white); border-radius: 20px;
    padding: 24px; max-width: 360px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}
.customize-icon-modal h3 { margin: 0 0 16px; text-align: center; font-size: 1.1rem; }
.customize-icon-actions {
    display: flex; gap: 10px; margin-top: 16px;
}
.customize-icon-actions button {
    flex: 1; padding: 12px; border-radius: 12px; border: none;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.customize-icon-actions .btn-cancel { background: #f0f0f0; color: #666; }
.customize-icon-actions .btn-save {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.customize-icon-actions .btn-reset { background: #fff0f0; color: #e53935; }
body.dark-mode .customize-icon-overlay { background: rgba(0,0,0,0.7); }
body.dark-mode .customize-icon-modal { background: var(--card-bg); }
body.dark-mode .customize-icon-actions .btn-cancel { background: #2a2a4a; color: #aaa; }
body.dark-mode .customize-icon-actions .btn-reset { background: #3d1a2a; color: #f44336; }
body.dark-mode .ourmap-popup-customize { background: #2a2a4a; color: #b39ddb; }
.thumbkiss-page {
    padding: 10px;
    text-align: center;
}

.thumbkiss-desc {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.thumbkiss-arena {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 350px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
    border-radius: 24px;
    touch-action: none;
    user-select: none;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: background 0.5s;
}

.thumbkiss-arena.thumbkiss-match {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
}

.thumbkiss-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.15;
    pointer-events: none;
}

.thumbkiss-partner-dot, .thumbkiss-my-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: left 0.15s, top 0.15s;
}

.thumbkiss-my-dot {
    background: radial-gradient(circle, #e91e63 0%, #c2185b 100%);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
}

.thumbkiss-partner-dot {
    background: radial-gradient(circle, #7c4dff 0%, #651fff 100%);
    box-shadow: 0 0 15px rgba(124, 77, 255, 0.5);
}

.thumbkiss-proximity {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: 12px;
    pointer-events: none;
}

.thumbkiss-percent {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.thumbkiss-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.thumbkiss-status {
    color: var(--text-light);
    font-weight: 500;
}

/* ==================== MEAL PLANNER ==================== */
.mealplan-page {
    padding: 10px;
}

.mealplan-add {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 3px 12px var(--shadow);
    margin-bottom: 16px;
}

.mealplan-add select, .mealplan-add input {
    padding: 10px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 0.9rem;
}

.mealplan-add-row {
    display: flex;
    gap: 8px;
}

.mealplan-add-row > * {
    flex: 1;
}

.mealplan-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

@media (max-width: 600px) {
    .mealplan-week {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.mealplan-day {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.mealplan-day.today {
    border: 2px solid var(--primary);
}

.mealplan-day-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--background);
    font-weight: 700;
    font-size: 0.85rem;
}

.mealplan-day.today .mealplan-day-header {
    background: var(--primary);
    color: white;
}

.mealplan-day-meals {
    padding: 6px 8px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mealplan-empty {
    color: var(--text-light);
    font-size: 0.8rem;
    text-align: center;
    padding: 4px;
}

.mealplan-meal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 4px 6px;
    background: var(--background);
    border-radius: 8px;
}

.mealplan-meal .btn-tiny {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.5;
    padding: 0 4px;
}

.mealplan-meal .btn-tiny:hover {
    opacity: 1;
    color: var(--error);
}

/* ==================== DAILY PHOTO LOCATION ==================== */
.daily-photo-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    flex-wrap: wrap;
}

.daily-photo-location .place-search-wrap {
    flex: 1;
    min-width: 150px;
}

.daily-photo-location .place-search-wrap input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Map photo dot for legend */
.ourmap-dot-photo {
    background: #ff9800;
}

.ourmap-marker-photo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override MarkerCluster default styles to match app theme */
.marker-cluster-small {
    background-color: rgba(233, 30, 99, 0.3);
}
.marker-cluster-small div {
    background-color: rgba(233, 30, 99, 0.6);
    color: white;
    font-weight: 700;
}
.marker-cluster-medium {
    background-color: rgba(233, 30, 99, 0.4);
}
.marker-cluster-medium div {
    background-color: rgba(233, 30, 99, 0.7);
    color: white;
    font-weight: 700;
}
.marker-cluster-large {
    background-color: rgba(233, 30, 99, 0.5);
}
.marker-cluster-large div {
    background-color: rgba(233, 30, 99, 0.8);
    color: white;
    font-weight: 700;
}

/* ==================== TIMELINE ==================== */
.timeline-page { padding: 0; background: var(--background); }

/* Header */
.road-header { background:linear-gradient(135deg,#ff6b81 0%,#ee5a6f 50%,#e91e63 100%); padding:48px 20px 32px; text-align:center; color:white; position:relative; overflow:hidden; }
.road-header::before { content:''; position:absolute; width:200px; height:200px; top:-60px; right:-40px; background:rgba(255,255,255,0.06); border-radius:50%; }
.road-header h1 { font-size:2rem; position:relative; z-index:1; }
.road-header .subtitle { opacity:0.85; margin-top:4px; position:relative; z-index:1; }
.road-header .couple { font-size:1.1rem; opacity:0.9; margin-bottom:6px; position:relative; z-index:1; }

/* Toolbar */
.road-toolbar { display:flex; gap:8px; align-items:center; justify-content:center; flex-wrap:wrap; padding:14px 16px; background:white; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:100; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
.road-filter { padding:7px 14px; border:2px solid var(--border); border-radius:50px; background:white; font-size:0.8rem; cursor:pointer; color:var(--text-light); font-weight:500; transition:all 0.2s; }
.road-filter:hover { border-color:var(--pink, #e91e63); color:var(--pink, #e91e63); }
.road-filter.active { background:var(--pink, #e91e63); color:white; border-color:var(--pink, #e91e63); }
.road-expand-btn { padding:7px 14px; border:2px solid #fce4ec; border-radius:50px; background:#fff0f5; font-size:0.8rem; cursor:pointer; color:var(--pink, #e91e63); font-weight:600; margin-left:auto; }
.road-expand-btn:hover { background:var(--pink, #e91e63); color:white; }

/* Stats */
.road-stats { display:flex; background:white; border-bottom:1px solid var(--border); }
.road-stat { flex:1; text-align:center; padding:12px 4px; border-right:1px solid var(--border); }
.road-stat:last-child { border-right:none; }
.road-stat .n { font-size:1.2rem; font-weight:700; color:var(--pink, #e91e63); display:block; }
.road-stat .l { font-size:0.68rem; color:var(--text-light); text-transform:uppercase; letter-spacing:0.5px; }

/* Roadmap container */
.roadmap { max-width:660px; margin:0 auto; padding:30px 20px 80px; position:relative; }

/* Road line */
.road-line-bg { position:absolute; left:36px; top:20px; bottom:20px; width:4px; background:#e8dfe3; border-radius:4px; z-index:0; }
.road-line-fill { position:absolute; left:36px; top:20px; width:4px; background:linear-gradient(to bottom,#e91e63,#ff6b81,#c2185b); border-radius:4px; z-index:0; height:0; transition:height 1.2s cubic-bezier(0.4,0,0.2,1); }

/* Start / end markers */
.road-marker { position:relative; z-index:2; display:flex; align-items:center; margin:12px 0 20px; }
.road-marker-dot { width:76px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.road-marker-dot span { width:44px; height:44px; background:linear-gradient(135deg,#ff6b81,#e91e63); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.4rem; box-shadow:0 4px 20px rgba(233,30,99,0.3); }
.road-marker-text { font-size:1rem; font-weight:600; color:var(--pink, #e91e63); }
.road-marker-text small { display:block; font-size:0.82rem; font-weight:400; color:var(--text-light); }

/* Year marker */
.road-year { position:relative; z-index:2; display:flex; align-items:center; gap:14px; margin:28px 0 16px; }
.road-year-dot { width:38px; height:38px; flex-shrink:0; background:linear-gradient(135deg,#e91e63,#c2185b); border-radius:50%; display:flex; align-items:center; justify-content:center; color:white; font-weight:800; font-size:0.7rem; box-shadow:0 3px 12px rgba(233,30,99,0.3); position:relative; left:19px; }
.road-year-label { font-size:1.4rem; font-weight:700; color:var(--pink, #e91e63); padding-left:12px; }

/* Month label */
.road-month { position:relative; z-index:2; margin:16px 0 8px; padding-left:62px; }
.road-month-label { display:inline-block; padding:4px 14px; background:#fce4ec; color:#c2185b; border-radius:50px; font-size:0.78rem; font-weight:600; }

/* Milestone (each entry) */
.road-milestone { position:relative; z-index:2; display:flex; align-items:flex-start; margin-bottom:6px; cursor:pointer; }

/* Dot */
.road-dot-wrap { width:76px; flex-shrink:0; display:flex; align-items:center; justify-content:center; padding-top:12px; }
.road-dot { width:28px; height:28px; background:white; border:3px solid #e8dfe3; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.85rem; transition:all 0.3s; box-shadow:0 2px 8px rgba(0,0,0,0.06); z-index:2; }
.road-milestone:hover .road-dot, .road-milestone.open .road-dot { border-color:#e91e63; transform:scale(1.2); box-shadow:0 3px 16px rgba(233,30,99,0.25); }
.road-milestone.open .road-dot { background:#e91e63; }

/* Collapsed preview */
.road-preview { flex:1; min-width:0; padding:10px 14px; background:white; border-radius:14px; border:1px solid var(--border); transition:all 0.2s; box-shadow:0 1px 6px rgba(0,0,0,0.03); }
.road-milestone:hover .road-preview { border-color:#f0c0cc; box-shadow:0 3px 16px rgba(233,30,99,0.08); }
.road-preview-top { display:flex; align-items:center; gap:8px; }
.road-preview-type { font-size:0.68rem; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; padding:2px 8px; border-radius:20px; }
.rpt-memory { background:#fce4ec; color:#c2185b; }
.rpt-photo { background:#e3f2fd; color:#1565c0; }
.rpt-journal { background:#fff3e0; color:#e65100; }
.rpt-note { background:#f3e5f5; color:#7b1fa2; }
.road-preview-date { font-size:0.75rem; color:var(--text-light); margin-left:auto; white-space:nowrap; }
.road-preview-title { font-size:0.9rem; font-weight:600; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.road-preview-snippet { font-size:0.82rem; color:#777; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.road-preview-thumb { width:48px; height:48px; border-radius:10px; object-fit:cover; flex-shrink:0; margin-left:8px; }

/* Expanded card */
.road-expanded { display:none; flex:1; min-width:0; padding:18px; background:white; border-radius:16px; border:2px solid #fce4ec; box-shadow:0 4px 24px rgba(233,30,99,0.1); animation:roadExpand 0.3s ease; }
@keyframes roadExpand { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.road-milestone.open .road-preview { display:none; }
.road-milestone.open .road-expanded { display:block; }

.road-exp-close { float:right; background:none; border:none; font-size:1.2rem; cursor:pointer; color:var(--text-light); padding:0 4px; }
.road-exp-close:hover { color:#e91e63; }
.road-exp-type { display:inline-block; padding:3px 12px; border-radius:50px; font-size:0.72rem; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:8px; }
.road-exp-date { font-size:0.82rem; color:var(--text-light); margin-bottom:6px; }
.road-exp-title { font-size:1.1rem; font-weight:700; margin-bottom:6px; }
.road-exp-body { font-size:0.92rem; color:#555; line-height:1.7; margin-bottom:8px; white-space:pre-wrap; }
.road-exp-photo { width:100%; border-radius:12px; margin:10px 0; max-height:400px; object-fit:cover; cursor:pointer; }
.road-exp-photo:hover { opacity:0.92; }
.road-exp-meta { display:flex; gap:12px; flex-wrap:wrap; font-size:0.8rem; color:var(--text-light); margin-top:6px; }
.road-exp-loc { color:#e91e63; }

/* Loading */
.road-loading { text-align:center; padding:60px 20px; color:var(--text-light); }
.road-loading .spinner { width:40px; height:40px; border:4px solid var(--border); border-top-color:#e91e63; border-radius:50%; animation:spin 0.8s linear infinite; margin:0 auto 16px; }

/* Lightbox */
.road-lightbox { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.92); z-index:9999; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.road-lightbox img { max-width:95%; max-height:95%; object-fit:contain; border-radius:8px; }

/* Timeline responsive */
@media (max-width:500px) {
    .roadmap { padding:20px 10px 60px; }
    .road-line-bg, .road-line-fill { left:28px; }
    .road-dot-wrap { width:60px; }
    .road-year-dot { left:11px; width:34px; height:34px; font-size:0.65rem; }
    .road-month { padding-left:52px; }
    .road-marker-dot { width:60px; }
    .road-header h1 { font-size:1.6rem; }
    .road-preview-thumb { width:40px; height:40px; }
}

/* ==================== WALKTHROUGH ==================== */
.walkthrough-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.walkthrough-overlay.show { opacity: 1; }

.walkthrough-card {
    background: white;
    border-radius: 24px;
    padding: 40px 32px 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: walkthroughBounce 0.5s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@keyframes walkthroughBounce {
    0% { transform: scale(0.8) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.walkthrough-skip {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 8px;
}
.walkthrough-skip:hover { color: var(--primary); }

.walkthrough-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: walkthroughPulse 2s ease infinite;
}
@keyframes walkthroughPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.walkthrough-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.walkthrough-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.walkthrough-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.walkthrough-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    transition: all 0.3s;
}
.walkthrough-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.walkthrough-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.walkthrough-btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}
.walkthrough-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--shadow);
}
.walkthrough-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-lg);
}
.walkthrough-btn.secondary {
    background: var(--background);
    color: var(--text);
}
.walkthrough-btn.secondary:hover {
    background: var(--secondary);
}

/* ==================== DARK MODE ==================== */
body.dark-mode {
    --primary: #ff7eb3;
    --primary-dark: #e5557d;
    --secondary: #3d2a35;
    --accent: #ff8fab;
    --background: #1a1a2e;
    --card-bg: #252540;
    --text: #e8e8f0;
    --text-light: #a0a0b8;
    --success: #2ed573;
    --error: #ff4757;
    --shadow: rgba(255, 126, 179, 0.1);
    --shadow-lg: rgba(255, 126, 179, 0.2);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text);
}

html:has(body.dark-mode) {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* ---- Auth screens ---- */
body.dark-mode .auth-card {
    background: var(--card-bg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
body.dark-mode .auth-form input {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .auth-tab {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .auth-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
body.dark-mode .social-btn {
    background: #2a2a4a;
    border-color: #3d2a35;
}
body.dark-mode .social-btn.google { color: #8ab4f8; border-color: #8ab4f8; }
body.dark-mode .social-btn.apple { color: #e8e8f0; border-color: #555; }
body.dark-mode .social-btn.guest { color: var(--primary); border-color: var(--primary); }

/* ---- Global: inputs, textareas, selects ---- */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #2a2a4a !important;
    color: var(--text) !important;
    border-color: #3d2a35 !important;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #777 !important;
}

/* ---- Header & navigation ---- */
body.dark-mode .app-header {
    background: linear-gradient(135deg, #2a1a3e, #1a1a2e);
}
body.dark-mode .bottom-nav {
    background: #1e1e36;
    border-top-color: #2a2a4a;
}
body.dark-mode .bottom-nav-btn {
    color: var(--text-light);
}
body.dark-mode .bottom-nav-btn.active {
    color: var(--primary);
}

/* ---- Notifications ---- */
body.dark-mode .notification-dropdown {
    background: var(--card-bg);
    border-color: #3d2a35;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
body.dark-mode .notif-activity:hover,
body.dark-mode .notif-new,
body.dark-mode .notif-action {
    background: #2a2a4a;
}

/* ---- Dashboard ---- */
body.dark-mode .dashboard-hero,
body.dark-mode .dash-hero {
    background: linear-gradient(135deg, #2a1a3e, #1a1a2e) !important;
}
body.dark-mode .dash-hero-left.dash-setup,
body.dark-mode .dash-streak,
body.dark-mode .dash-card,
body.dark-mode .dash-otd-row,
body.dark-mode .dash-quote,
body.dark-mode .anniversary-setup,
body.dark-mode .streak-widget,
body.dark-mode .quick-actions {
    background: var(--card-bg);
    border-color: #3d2a35;
    color: var(--text);
}
body.dark-mode .dash-alert {
    background: #2a2a4a;
    border-color: #3d2a35;
}
body.dark-mode .dash-love-note {
    background: #2a1a3e;
    border-color: #3d2a35;
}
body.dark-mode .dash-otd {
    background: #2a2a4a;
    border-color: #3d2a35;
}
body.dark-mode .dash-activity-row:hover,
body.dark-mode .dash-stat:hover {
    background: #2a2a4a;
}
body.dark-mode .action-btn {
    background: var(--card-bg);
    color: var(--text);
    border-color: #3d2a35;
}

/* ---- Stats ---- */
body.dark-mode .stat-card {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .stats-hero {
    background: linear-gradient(135deg, #2a1a3e, #1a1a2e) !important;
}

/* ---- Memories ---- */
body.dark-mode .memories-add,
body.dark-mode .memories-view,
body.dark-mode .memory-card,
body.dark-mode .feature-card {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .filter-btn {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover {
    background: var(--primary);
    color: white;
}
body.dark-mode .reaction-picker {
    background: var(--card-bg);
    border-color: #3d2a35;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ---- Daily ---- */
body.dark-mode .daily-section,
body.dark-mode .daily-feed {
    background: var(--card-bg);
    border-color: #3d2a35;
}

/* ---- Drawings ---- */
body.dark-mode .drawing-canvas-container,
body.dark-mode .drawings-gallery {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .canvas-tools button {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}

/* ---- Journal ---- */
body.dark-mode .journal-add,
body.dark-mode .journal-entries {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .mood-btn {
    background: #2a2a4a;
    border-color: #3d2a35;
}
body.dark-mode .template-btn {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}

/* ---- Questions ---- */
body.dark-mode .question-ask,
body.dark-mode .questions-list {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .answer {
    background: #2a2a4a;
    border-color: #3d2a35;
}

/* ---- Gallery ---- */
body.dark-mode .gallery-page {
    background: var(--card-bg);
    border-color: #3d2a35;
}

/* ---- Settings ---- */
body.dark-mode .settings-page {
    background: var(--card-bg);
    color: var(--text);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
body.dark-mode .settings-section {
    border-bottom-color: #3d2a35;
}
body.dark-mode .settings-section h3 {
    color: var(--text);
}
body.dark-mode .settings-link-item {
    background: #2a2a4a;
    color: var(--text);
}
body.dark-mode .settings-link-item:hover {
    background: #3d2a35;
}
body.dark-mode .install-section {
    background: #2a1a3e;
}
body.dark-mode .install-instructions,
body.dark-mode .install-btn-banner {
    background: var(--card-bg);
    border-color: #3d2a35;
    color: var(--text);
}
body.dark-mode .install-steps {
    background: #2a2a4a;
}

/* ---- Modals ---- */
body.dark-mode .modal-content,
body.dark-mode .install-modal-content {
    background: var(--card-bg) !important;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .modal-close-x {
    background: #2a2a4a;
    color: var(--text);
}
body.dark-mode .modal-close-x:hover {
    background: #3d2a35;
}
body.dark-mode .bday-modal,
body.dark-mode .milestone-modal {
    background: var(--card-bg) !important;
    color: var(--text);
}

/* ---- Bucket list ---- */
body.dark-mode .bucket-checkbox .checkmark {
    background: #2a2a4a;
    border-color: #3d2a35;
}
body.dark-mode .bucket-item.completed {
    background: #1a2e1a;
}
body.dark-mode .suggestion-chip {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .suggestions-section {
    background: #2a1a3e;
}

/* ---- Wishes ---- */
body.dark-mode .wish-tab {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .wish-tab.active {
    background: var(--primary);
    color: white;
}
body.dark-mode .wish-hint {
    background: #2a2a4a;
}
body.dark-mode .wish-item.purchased {
    background: #1a2e1a;
}

/* ---- Recipes ---- */
body.dark-mode .btn-toggle {
    background: #2a2a4a;
    color: var(--text);
}

/* ---- Love Notes ---- */
body.dark-mode .love-tab {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .love-tab.active {
    background: var(--primary);
    color: white;
}
body.dark-mode .love-category {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .love-nav-btn {
    background: #2a2a4a;
    color: var(--text);
}
body.dark-mode .love-note-card {
    background: #2a1a3e;
    border-color: #3d2a35;
}

/* ---- Daily Questions page ---- */
body.dark-mode .dq-answer {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .dq-answer.my-answer {
    background: #2a1a3e;
}
body.dark-mode .dq-answer.partner-answer {
    background: #1a2e3e;
}
body.dark-mode .dq-waiting {
    background: #2a2a4a;
}
body.dark-mode .dq-history-item {
    background: #2a2a4a;
    border-color: #3d2a35;
}
body.dark-mode .dq-history-answer {
    background: var(--card-bg);
    border-color: #3d2a35;
}

/* ---- More menu ---- */
body.dark-mode .more-page {
    background: transparent;
}
body.dark-mode .more-menu-item {
    background: var(--card-bg);
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .more-grid-btn {
    background: var(--card-bg);
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .more-menu-premium {
    background: #2a1a3e;
}

/* ---- AI section ---- */
body.dark-mode .ai-section {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .ai-action-row select {
    background: #2a2a4a;
    color: var(--text);
}
body.dark-mode .ai-locked {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .ai-suggest-card {
    background: #2a2a4a;
    border-color: #3d2a35;
}
body.dark-mode .ai-error {
    background: #3a1a1a;
}

/* ---- Games ---- */
body.dark-mode .game-card {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .wordle-section {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .wordle-hint {
    background: #2a2a4a;
}
body.dark-mode .wordle-lost { background: #3a1a1a; }
body.dark-mode .wordle-result.lost { background: #3a1a1a; color: #ff6b6b; }
body.dark-mode .wyr-tab {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .wyr-tab.active {
    background: var(--primary);
    color: white;
}
body.dark-mode .wyr-option {
    background: var(--card-bg);
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .wyr-history-item {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .wyr-diff {
    background: #2a1a3e;
}

/* ---- Map ---- */
body.dark-mode .place-suggestions {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .place-suggestion-item:hover {
    background: #2a2a4a;
}
body.dark-mode .ourmap-list-item {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .ourmap-emoji-opt:hover,
body.dark-mode .ourmap-emoji-opt.selected {
    background: #2a2a4a;
}
body.dark-mode .map-style-switcher {
    background: rgba(30,20,30,0.92);
}
body.dark-mode .map-style-btn:hover { background: #2a2a4a; }
body.dark-mode .map-style-btn.active { background: #3d2a35; }
body.dark-mode .map-filter-btn {
    background: var(--card-bg); border-color: #3d2a35; color: var(--text-light);
}
body.dark-mode .map-filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
body.dark-mode .map-type-memory { background: #3d1a2a; }
body.dark-mode .map-type-photo { background: #2a1a3e; }
body.dark-mode .map-type-trip { background: #3e2a1a; }
body.dark-mode .map-type-pin { background: #1a2a3e; }
body.dark-mode .pin-color-opt { box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
body.dark-mode .pin-emoji-tab { background: #2a2a4a; color: var(--text); }
body.dark-mode .pin-emoji-tab.active { background: var(--primary); }
body.dark-mode .map-pin-preview { background: #2a2a4a; }
body.dark-mode .tp-minimap-wrap { box-shadow: 0 3px 14px rgba(0,0,0,0.4); }
body.dark-mode .trip-countdown-badge { background: #3d1a2a; }

/* ---- Meal planner ---- */
body.dark-mode .mealplan-add {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .mealplan-day {
    background: var(--card-bg);
    border-color: #3d2a35;
}

/* ---- Timeline / Roadmap ---- */
body.dark-mode .road-toolbar {
    background: var(--card-bg) !important;
    border-color: #3d2a35;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode .road-filter {
    background: #2a2a4a !important;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .road-filter.active {
    background: var(--primary) !important;
    color: white;
}
body.dark-mode .road-expand-btn {
    background: #2a2a4a !important;
    color: var(--primary);
    border-color: #3d2a35;
}
body.dark-mode .road-stats {
    background: var(--card-bg) !important;
    border-color: #3d2a35;
}
body.dark-mode .road-dot {
    background: #2a2a4a !important;
    border-color: #3d2a35;
}
body.dark-mode .road-preview {
    background: var(--card-bg) !important;
    border-color: #3d2a35;
}
body.dark-mode .road-expanded {
    background: var(--card-bg) !important;
    border-color: #3d2a35;
}
body.dark-mode .road-line-bg {
    background: #3d2a35;
}
body.dark-mode .road-month-label {
    background: #3d2a35;
    color: var(--primary);
}
body.dark-mode .road-header {
    background: linear-gradient(135deg, #2a1a3e, #1a1a2e) !important;
}
body.dark-mode .rpt-memory { background: #3d1a2e; color: #ff7eb3; }
body.dark-mode .rpt-journal { background: #3d2a1a; color: #ffb74d; }
body.dark-mode .rpt-note { background: #2e1a3d; color: #ce93d8; }

/* ---- Walkthrough ---- */
body.dark-mode .walkthrough-card {
    background: var(--card-bg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ---- Buttons ---- */
body.dark-mode .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
body.dark-mode .btn-secondary {
    background: #2a2a4a;
    color: var(--text);
    border-color: #3d2a35;
}
body.dark-mode .btn-delete {
    background: #3a1a1a;
    color: #ff6b6b;
}

/* ---- Page headers ---- */
body.dark-mode .page-header {
    background: var(--card-bg);
    border-color: #3d2a35;
}

/* ---- Catch-all: any remaining white cards/sections ---- */
body.dark-mode .card,
body.dark-mode [class*="section"],
body.dark-mode [class*="container"]:not(.app-container):not(.auth-container) {
    color: var(--text);
}

/* ---- Scrollbar ---- */
body.dark-mode ::-webkit-scrollbar { width: 8px; }
body.dark-mode ::-webkit-scrollbar-track { background: #1a1a2e; }
body.dark-mode ::-webkit-scrollbar-thumb { background: #3d2a35; border-radius: 4px; }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: #4d3a45; }

/* ==================== VERSION & CHANGELOG ==================== */
.app-version-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.changelog-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.changelog-overlay.show { opacity: 1; }

.changelog-modal {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: changelogSlideUp 0.4s ease;
}
@keyframes changelogSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.changelog-header h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0;
}
.changelog-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.changelog-close:hover {
    background: #f0f0f0;
    color: var(--text);
}

.changelog-body {
    overflow-y: auto;
    padding: 16px 24px 24px;
    -webkit-overflow-scrolling: touch;
}

.changelog-version {
    margin-bottom: 24px;
}
.changelog-version:last-child {
    margin-bottom: 0;
}

.changelog-ver-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.changelog-ver-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}
.changelog-ver-date {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.changelog-list li {
    padding: 6px 0 6px 8px;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    border-left: 3px solid var(--secondary);
    margin-bottom: 4px;
    padding-left: 12px;
}

/* Dark mode overrides for changelog */
body.dark-mode .changelog-modal {
    background: var(--card-bg);
}
body.dark-mode .changelog-header {
    border-bottom-color: #3d2a35;
}
body.dark-mode .changelog-close:hover {
    background: #2a2a4a;
}
body.dark-mode .changelog-list li {
    border-left-color: #3d2a35;
}

/* Dark mode toggle switch */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}
.dark-mode-toggle span {
    font-size: 1rem;
}
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--secondary);
    border-radius: 28px;
    transition: 0.3s;
}
.toggle-slider:before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* ==================== TRIP PLANNER ==================== */
.trip-planner-page { max-width: 600px; margin: 0 auto; padding: 0; }

/* Trip Home / Selector */
.trips-home { padding: 20px; }
.trips-home-header { text-align: center; padding: 30px 0 20px; }
.trips-home-header h1 { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.trips-home-header p { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }
.trip-card-grid { display: flex; flex-direction: column; gap: 12px; }

/* Trip card animated entrance */
@keyframes tripCardSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.trip-card-animated {
    animation: tripCardSlideIn 0.4s ease-out both;
}

.trip-select-card {
    background: white; border-radius: 16px; padding: 18px;
    box-shadow: 0 2px 12px var(--shadow); cursor: pointer;
    transition: all 0.2s; display: flex; align-items: center;
    gap: 16px; position: relative; overflow: hidden;
}
.trip-select-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--shadow-lg); }
.trip-select-card-flag { font-size: 2.5rem; }
.trip-select-card-info { flex: 1; }
.trip-select-card-info h3 { font-size: 1.05rem; margin-bottom: 2px; }
.trip-select-card-info p { font-size: 0.82rem; color: var(--text-light); }
.trip-select-card-arrow { font-size: 1.2rem; color: var(--text-light); }
.trip-select-card-status {
    position: absolute; top: 10px; right: 14px;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 2px 8px; border-radius: 8px;
}
.trip-status-upcoming { background: #e8f5e9; color: #2e7d32; }
.trip-status-active { background: #fff3e0; color: #e65100; }
.trip-status-past { background: #f5f5f5; color: #999; }
.trip-countdown-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    color: var(--primary); background: #fff0f3;
    padding: 2px 8px; border-radius: 10px; margin-top: 2px;
}
.trip-select-card .trip-delete-btn {
    position: absolute; bottom: 10px; right: 14px;
    background: none; border: none; font-size: 0.75rem; color: #ccc; cursor: pointer;
}
.trip-select-card .trip-delete-btn:hover { color: #e53935; }
.trip-new-card {
    background: white; border: 2px dashed var(--secondary);
    border-radius: 16px; padding: 24px; text-align: center;
    cursor: pointer; color: var(--text-light); font-weight: 600;
    font-size: 0.95rem; transition: all 0.2s;
}
.trip-new-card:hover { border-color: var(--primary); color: var(--primary); }

/* Trip Modal */
.tp-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.tp-modal-box {
    background: white; border-radius: 20px; padding: 28px; max-width: 400px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto;
}
.tp-modal-box h3 { text-align: center; margin-bottom: 18px; color: var(--primary); font-size: 1.15rem; }
.tp-modal-box label { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 5px; color: var(--text-light); }
.tp-modal-box input, .tp-modal-box select, .tp-modal-box textarea {
    width: 100%; padding: 10px 14px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.95rem; margin-bottom: 14px; font-family: inherit;
    color: var(--text); background: white;
}
.tp-modal-box textarea { resize: vertical; min-height: 60px; }
.tp-modal-btns { display: flex; gap: 10px; margin-top: 4px; }
.tp-modal-btns button { flex: 1; }

/* Trip Hero */
.trip-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    color: white; padding: 30px 20px 44px; text-align: center;
    position: relative; overflow: hidden;
}
.trip-hero-back {
    position: absolute; top: 14px; left: 14px;
    background: rgba(255,255,255,0.2); border: none; color: white;
    width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.trip-hero-back:hover { background: rgba(255,255,255,0.35); }
.trip-hero-flag { font-size: 2.5rem; margin-bottom: 6px; }
.trip-hero h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 2px; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.trip-hero-sub { font-size: 0.9rem; opacity: 0.9; margin-bottom: 16px; font-style: italic; }
.trip-hero-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.trip-stat {
    background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    border-radius: 14px; padding: 10px 16px; min-width: 85px; text-align: center;
}
.trip-stat-val { font-size: 1.4rem; font-weight: 800; }
.trip-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.9; }
.trip-edit-dates {
    background: rgba(255,255,255,0.25);
    border: none; color: white; padding: 7px 18px; border-radius: 20px;
    cursor: pointer; font-size: 0.82rem; font-weight: 600;
}
.trip-edit-dates:hover { background: rgba(255,255,255,0.35); }
.trip-hero-actions {
    display: flex; gap: 8px; margin-top: 14px; justify-content: center; flex-wrap: wrap;
}
.trip-export-btn {
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
    color: white; padding: 7px 18px; border-radius: 20px;
    cursor: pointer; font-size: 0.82rem; font-weight: 600; position: relative;
}
.trip-export-btn:hover { background: rgba(255,255,255,0.35); }
.tp-export-dropdown {
    position: absolute; z-index: 10001;
    background: white; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow: hidden; min-width: 220px;
    animation: slideUp 0.2s ease;
}
.tp-export-dropdown button {
    display: block; width: 100%; padding: 14px 18px; border: none; background: none;
    font-size: 0.9rem; font-weight: 600; cursor: pointer; text-align: left;
    color: var(--text); transition: background 0.15s;
}
.tp-export-dropdown button:hover { background: #f5f5f5; }
.tp-export-dropdown button + button { border-top: 1px solid #eee; }

/* Passes & Tickets */
.passes-add-area {
    background: var(--card-bg, white); border-radius: 16px; padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06); margin-bottom: 16px;
}
.passes-add-area h3 { margin: 0 0 12px; font-size: 1rem; }
.passes-add-area input, .passes-add-area select {
    width: 100%; padding: 10px 14px; border: 1.5px solid #e0d0e8;
    border-radius: 12px; font-size: 0.9rem; margin-bottom: 8px;
    background: var(--card-bg, white); color: var(--text);
}
.passes-upload-area {
    border: 2px dashed #d0c0e0; border-radius: 14px; padding: 16px;
    text-align: center; cursor: pointer; margin: 8px 0 12px;
    transition: all 0.2s; position: relative; min-height: 100px;
    display: flex; align-items: center; justify-content: center;
}
.passes-upload-area.drag-over { border-color: var(--primary); background: rgba(255,107,155,0.05); }
.passes-upload-placeholder { color: var(--text-light); cursor: pointer; }
.passes-upload-placeholder span { font-size: 2rem; display: block; margin-bottom: 4px; }
.passes-upload-placeholder p { margin: 0; font-size: 0.85rem; line-height: 1.4; }
.passes-upload-placeholder small { opacity: 0.7; }
.passes-preview-img {
    max-width: 100%; max-height: 200px; border-radius: 10px; object-fit: contain;
}
.passes-grid { display: flex; flex-direction: column; gap: 10px; }
.pass-card {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    background: var(--card-bg, white); border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06); cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s; position: relative;
}
.pass-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.pass-card-type { font-size: 1.6rem; min-width: 36px; text-align: center; }
.pass-card-thumb {
    width: 60px; height: 60px; border-radius: 10px; object-fit: cover;
    border: 1px solid #eee;
}
.pass-card-no-img {
    width: 60px; height: 60px; border-radius: 10px; background: #f5f0fa;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.pass-card-info { flex: 1; min-width: 0; }
.pass-card-info h4 { margin: 0 0 3px; font-size: 0.9rem; }
.pass-card-cat { font-size: 0.72rem; color: var(--text-light); }
.pass-card-info p { font-size: 0.78rem; color: var(--text-light); margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-card-delete {
    position: absolute; top: 6px; right: 8px; background: none; border: none;
    font-size: 0.8rem; cursor: pointer; opacity: 0.5; padding: 4px;
}
.pass-card-delete:hover { opacity: 1; }

/* Pass full viewer */
.pass-viewer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 10002;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.pass-viewer-modal {
    max-width: 420px; width: 92%; max-height: 90vh; overflow-y: auto;
    animation: slideUp 0.3s ease; position: relative;
}
.pass-viewer-close {
    position: fixed; top: 16px; right: 16px;
    background: rgba(255,255,255,0.2); border: none; color: white;
    font-size: 1.4rem; width: 42px; height: 42px; border-radius: 50%;
    cursor: pointer; z-index: 10003;
}
.pass-viewer-header {
    text-align: center; color: white; padding: 10px 0 16px;
}
.pass-viewer-header span { font-size: 2.2rem; }
.pass-viewer-header h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.pass-viewer-header p { font-size: 0.85rem; opacity: 0.8; margin: 0; }
.pass-viewer-img {
    width: 100%; border-radius: 14px; object-fit: contain;
    background: white; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.pass-viewer-no-img {
    text-align: center; color: rgba(255,255,255,0.5); padding: 60px 0;
    font-size: 1rem;
}

/* Google Calendar import steps */
.gcal-steps { margin: 14px 0 0; }
.gcal-step {
    display: flex; align-items: flex-start; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid #f0e8f0;
}
.gcal-step:last-child { border-bottom: none; }
.gcal-step-num {
    min-width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; font-weight: 700; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.gcal-step p { margin: 0; font-size: 0.88rem; line-height: 1.4; color: var(--text); }
body.dark-mode .gcal-step { border-bottom-color: #3d2a35; }

/* Dark mode passes */
body.dark-mode .passes-upload-area { border-color: #3d2a35; }
body.dark-mode .passes-upload-area.drag-over { border-color: var(--primary); background: rgba(255,107,155,0.08); }
body.dark-mode .pass-card-no-img { background: #2a2a4a; }
body.dark-mode .pass-card-thumb { border-color: #3d2a35; }
body.dark-mode .tp-export-dropdown { background: var(--card-bg); }
body.dark-mode .tp-export-dropdown button { color: var(--text); }
body.dark-mode .tp-export-dropdown button:hover { background: #2a2a4a; }
body.dark-mode .tp-export-dropdown button + button { border-top-color: #3d2a35; }
body.dark-mode .gcal-event-row { border-bottom-color: #3d2a35; }

/* Trip Nav Tabs */
.trip-tabs {
    display: flex; gap: 0; background: white;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.trip-tab {
    flex: 1; min-width: max-content;
    padding: 12px 14px; text-align: center;
    font-size: 0.78rem; font-weight: 600;
    color: var(--text-light); border: none; background: none;
    cursor: pointer; border-bottom: 3px solid transparent;
    transition: all 0.2s; white-space: nowrap;
}
.trip-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.trip-tab-icon { display: block; font-size: 1.15rem; margin-bottom: 2px; }

/* Trip Content */
.trip-content { max-width: 600px; margin: 0 auto; padding: 16px; }
.trip-section { display: none; }
.trip-section.active { display: block; }

/* Tab transition animations */
@keyframes tripSectionEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes tripSectionExit {
    from { opacity: 1; }
    to { opacity: 0; }
}
.trip-section-enter { animation: tripSectionEnter 0.3s ease-out; }
.trip-section-exit { animation: tripSectionExit 0.15s ease-in; }

/* Trip Places Mini-Map */
.tp-minimap-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px var(--shadow);
    margin-bottom: 16px;
}
.tp-minimap {
    width: 100%;
    height: 180px;
    z-index: 1;
}

/* Calendar / Itinerary */
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-header h3 { font-size: 1.1rem; font-weight: 700; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
    width: 34px; height: 34px; border-radius: 50%;
    border: 2px solid var(--secondary); background: white;
    cursor: pointer; font-size: 0.9rem; display: flex;
    align-items: center; justify-content: center;
}
.cal-nav button:hover { border-color: var(--primary); color: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 16px; }
.cal-dow {
    text-align: center; font-size: 0.7rem; font-weight: 700;
    color: var(--text-light); padding: 4px 0; text-transform: uppercase;
}
.cal-day {
    aspect-ratio: 1; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 0.82rem; cursor: pointer; position: relative;
    background: white; border: 2px solid transparent; transition: all 0.15s;
}
.cal-day:hover { border-color: var(--primary); }
.cal-day.empty { background: none; cursor: default; border: none; }
.cal-day.empty:hover { border-color: transparent; }
.cal-day.today { border-color: var(--primary); }
.cal-day.trip-range { background: #fff0f3; }
.cal-day.trip-start, .cal-day.trip-end { background: var(--primary); color: white; font-weight: 700; }
.cal-day.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255,107,157,0.2); }
.cal-day-num { font-weight: 600; }
.cal-day-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); margin-top: 2px; }
.cal-day.trip-start .cal-day-dot, .cal-day.trip-end .cal-day-dot { background: white; }

.cal-selected-date {
    background: white; border-radius: 14px;
    box-shadow: 0 2px 12px var(--shadow); margin-bottom: 14px; overflow: hidden;
}
.cal-selected-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white; padding: 12px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.cal-selected-header h4 { font-size: 0.95rem; }
.cal-selected-header span { font-size: 0.8rem; opacity: 0.85; }
.cal-selected-body { padding: 14px; }
.cal-event { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f0f2; align-items: flex-start; }
.cal-event:last-child { border-bottom: none; }
.cal-event-time { min-width: 52px; font-size: 0.78rem; font-weight: 700; color: var(--primary); padding-top: 2px; }
.cal-event-detail { flex: 1; }
.cal-event-detail h4 { font-size: 0.92rem; margin-bottom: 2px; }
.cal-event-detail p { font-size: 0.8rem; color: var(--text-light); }
.cal-event-del { background: none; border: none; cursor: pointer; opacity: 0.3; font-size: 0.82rem; }
.cal-event-del:hover { opacity: 1; }
.itin-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.68rem; font-weight: 600; margin-top: 3px; }
.itin-tag.food { background: #fff3e0; color: #e65100; }
.itin-tag.sight { background: #e8f5e9; color: #2e7d32; }
.itin-tag.travel { background: #e3f2fd; color: #1565c0; }
.itin-tag.hotel { background: #f3e5f5; color: #7b1fa2; }
.itin-tag.shop { background: #fce4ec; color: #c62828; }
.itin-tag.fun { background: #fff8e1; color: #f57f17; }
.cal-add-event { display: flex; gap: 8px; padding-top: 10px; flex-wrap: wrap; }
.cal-add-event input, .cal-add-event select {
    padding: 8px 12px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.85rem; color: var(--text);
}
.cal-add-event input[type="time"] { width: 100px; }
.cal-add-event input[type="text"] { flex: 1; min-width: 120px; }
.cal-add-event button {
    background: var(--primary); color: white; border: none;
    border-radius: 10px; padding: 8px 14px; cursor: pointer;
    font-weight: 600; font-size: 0.85rem;
}
.cal-no-trip-msg { text-align: center; padding: 30px 20px; color: var(--text-light); }
.cal-no-trip-msg p { font-size: 0.9rem; margin-top: 8px; }

/* Places */
.place-card {
    background: white; border-radius: 14px; padding: 16px;
    margin-bottom: 12px; box-shadow: 0 2px 10px var(--shadow);
    display: flex; gap: 14px; align-items: flex-start;
}
.place-emoji { font-size: 2rem; }
.place-info { flex: 1; }
.place-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.place-info p { font-size: 0.82rem; color: var(--text-light); line-height: 1.4; }
.place-cat { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; margin-top: 4px; }
.place-actions button { background: none; border: none; font-size: 1.1rem; cursor: pointer; padding: 4px; border-radius: 8px; }
.place-actions button:hover { background: #f5f0f2; }
.place-add-form {
    background: white; border-radius: 14px; padding: 18px;
    margin-bottom: 16px; box-shadow: 0 2px 10px var(--shadow);
}
.place-add-form h3 { font-size: 1rem; margin-bottom: 12px; color: var(--primary); }
.place-add-form input, .place-add-form select, .place-add-form textarea {
    width: 100%; padding: 10px 14px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.9rem; margin-bottom: 10px; font-family: inherit;
    color: var(--text);
}
.place-add-form textarea { resize: vertical; min-height: 60px; }
.place-datetime-row { display: flex; gap: 10px; margin-bottom: 10px; }
.place-dt-field { flex: 1; }
.place-dt-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-light); margin-bottom: 4px; }
.place-dt-field input { width: 100%; }
.cal-day-dot.has-place { background: #1565c0; }
.cal-place-event { background: #e3f2fd; border-radius: 10px; margin-bottom: 4px; }
.place-filter-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.place-filter {
    padding: 6px 14px; border: 2px solid var(--secondary); border-radius: 20px;
    background: white; font-size: 0.8rem; cursor: pointer;
    font-weight: 600; color: var(--text-light); transition: all 0.2s;
}
.place-filter.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Packing */
.pack-section {
    background: white; border-radius: 14px; margin-bottom: 14px;
    box-shadow: 0 2px 10px var(--shadow); overflow: hidden;
}
.pack-section-header {
    padding: 14px 18px; font-weight: 700; font-size: 0.95rem;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; background: #fafafa; border-bottom: 1px solid #f0f0f0;
}
.pack-progress { font-size: 0.75rem; color: var(--text-light); font-weight: 600; }
.pack-items { padding: 8px 18px 14px; }
.pack-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid #f8f5f6;
}
.pack-item:last-child { border-bottom: none; }
.pack-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.pack-item label { flex: 1; font-size: 0.9rem; cursor: pointer; }
.pack-item.checked label { text-decoration: line-through; color: var(--text-light); }
.pack-item .pack-delete { background: none; border: none; cursor: pointer; font-size: 0.9rem; opacity: 0.4; }
.pack-item .pack-delete:hover { opacity: 1; }
.pack-add { display: flex; gap: 8px; padding: 10px 18px 14px; }
.pack-add input {
    flex: 1; padding: 8px 12px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.85rem; color: var(--text);
}
.pack-add button {
    background: var(--primary); color: white; border: none;
    border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 600;
}
.pack-section-delete {
    background: none; border: none; cursor: pointer; font-size: 0.75rem;
    color: #ccc; margin-left: 8px;
}
.pack-section-delete:hover { color: #e53935; }

/* Budget */
.budget-overview {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white; border-radius: 16px; padding: 22px;
    margin-bottom: 16px; text-align: center;
}
.budget-total { font-size: 2.2rem; font-weight: 800; }
.budget-label { font-size: 0.82rem; opacity: 0.85; margin-bottom: 4px; }
.budget-remaining { font-size: 0.9rem; margin-top: 6px; opacity: 0.9; }
.budget-bar-bg { height: 8px; background: rgba(255,255,255,0.25); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.budget-bar-fill { height: 100%; background: white; border-radius: 4px; transition: width 0.4s ease; }
.budget-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.budget-cat {
    background: white; border-radius: 12px; padding: 14px;
    box-shadow: 0 2px 8px var(--shadow); text-align: center;
}
.budget-cat-icon { font-size: 1.5rem; margin-bottom: 4px; }
.budget-cat-amount { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.budget-cat-label { font-size: 0.75rem; color: var(--text-light); }
.budget-add-form {
    background: white; border-radius: 14px; padding: 18px;
    box-shadow: 0 2px 10px var(--shadow); margin-bottom: 16px;
}
.budget-add-form h3 { font-size: 1rem; margin-bottom: 12px; color: var(--primary); }
.budget-add-form input, .budget-add-form select {
    width: 100%; padding: 11px 14px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.95rem; margin-bottom: 10px;
    color: var(--text); background: white;
}
.budget-add-form input::placeholder { color: #aaa; }
.budget-amount-preview {
    text-align: center; font-size: 2rem; font-weight: 800;
    color: var(--primary); padding: 12px 0 6px; min-height: 54px; letter-spacing: -0.5px;
}
.budget-row { display: flex; gap: 8px; }
.budget-row > * { flex: 1; }
.budget-row input[type="number"] {
    font-size: 1.15rem; text-align: center; font-weight: 700; letter-spacing: 0.5px;
    -moz-appearance: textfield;
}
.budget-row input[type="number"]::-webkit-outer-spin-button,
.budget-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.budget-log { background: white; border-radius: 14px; box-shadow: 0 2px 10px var(--shadow); overflow: hidden; }
.budget-log h3 { padding: 14px 18px; font-size: 1rem; border-bottom: 1px solid #f5f0f2; color: var(--primary); }
.budget-entry {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 18px; border-bottom: 1px solid #f8f5f6;
}
.budget-entry:last-child { border-bottom: none; }
.budget-entry-left { display: flex; align-items: center; gap: 10px; }
.budget-entry-icon { font-size: 1.2rem; }
.budget-entry-name { font-size: 0.9rem; font-weight: 600; }
.budget-entry-cat { font-size: 0.75rem; color: var(--text-light); }
.budget-entry-amount { font-size: 0.95rem; font-weight: 700; color: var(--primary); }
.budget-entry-delete { background: none; border: none; cursor: pointer; font-size: 0.85rem; opacity: 0.3; margin-left: 8px; }
.budget-entry-delete:hover { opacity: 1; }

/* Notes */
.tp-notes-card {
    background: white; border-radius: 14px; padding: 18px;
    margin-bottom: 12px; box-shadow: 0 2px 10px var(--shadow);
}
.tp-notes-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.tp-notes-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; white-space: pre-wrap; }
.tp-notes-card-meta {
    font-size: 0.75rem; color: var(--text-light); margin-top: 8px;
    display: flex; justify-content: space-between;
}
.tp-notes-card-delete { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 0.8rem; }
.tp-notes-card-delete:hover { color: var(--primary); }
.notes-add {
    background: white; border-radius: 14px; padding: 18px;
    margin-bottom: 16px; box-shadow: 0 2px 10px var(--shadow);
}
.notes-add input, .notes-add textarea {
    width: 100%; padding: 10px 14px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.9rem; margin-bottom: 10px; font-family: inherit;
    color: var(--text);
}
.notes-add textarea { resize: vertical; min-height: 80px; }

/* Food Log */
.food-add-form {
    background: white; border-radius: 14px; padding: 18px;
    margin-bottom: 16px; box-shadow: 0 2px 10px var(--shadow);
}
.food-add-form h3 { font-size: 1rem; margin-bottom: 4px; color: var(--primary); }
.food-add-sub { font-size: 0.82rem; color: var(--text-light); margin-bottom: 10px; }
.food-add-form input, .food-add-form select, .food-add-form textarea {
    width: 100%; padding: 10px 14px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.9rem; margin-bottom: 10px; font-family: inherit;
    color: var(--text);
}
.food-add-form textarea { resize: vertical; min-height: 60px; }
.food-rating-wrap label {
    display: block; font-size: 0.78rem; font-weight: 600;
    color: var(--text-light); margin-bottom: 4px;
}
.food-upload-area {
    border: 2px dashed var(--secondary); border-radius: 12px;
    min-height: 96px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; overflow: hidden; background: #fffafb;
    flex-direction: column; gap: 8px; padding: 10px;
}
.food-upload-placeholder { color: var(--text-light); font-size: 0.86rem; font-weight: 600; }
.food-preview-img { width: 100%; max-height: 180px; object-fit: cover; }
.food-upload-actions {
    width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.food-upload-actions .btn-outline-trip {
    width: 100%; padding: 8px 10px; border-radius: 12px; font-size: 0.8rem;
}
.food-tools-row {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px var(--shadow);
    padding: 10px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}
.food-tools-row select {
    width: 100%; padding: 8px 10px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.82rem; color: var(--text); background: white;
}
.food-tools-row .btn-outline-trip {
    width: 100%; padding: 8px 10px; border-radius: 10px; font-size: 0.8rem;
}
.food-grid { display: flex; flex-direction: column; gap: 10px; }
.food-card {
    background: white; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}
.food-card-img { width: 100%; height: 170px; object-fit: cover; display: block; }
.food-card-no-img {
    height: 90px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; background: #fff0f3;
}
.food-card-body { padding: 12px 14px 14px; }
.food-card-body h4 { font-size: 0.95rem; margin-bottom: 6px; }
.food-card-body p { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; line-height: 1.35; }
.food-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.food-chip {
    display: inline-block; border-radius: 999px; padding: 3px 9px;
    font-size: 0.72rem; font-weight: 700; background: #f3e5f5; color: #7b1fa2;
}
.food-chip.ice { background: #e3f2fd; color: #1565c0; }
.food-rating-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px;
}
.food-rating-row label {
    font-size: 0.76rem; color: var(--text-light); font-weight: 700;
    min-width: 58px;
}
.food-rating-row select,
.food-rating-row input {
    flex: 1;
    padding: 7px 10px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text);
    background: white;
}
.food-rating-edit-grid {
    background: #fff7fa;
    border-radius: 10px;
    padding: 8px;
    margin-top: 8px;
}
.food-save-rating-btn {
    margin-top: 8px;
    width: 100%;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}
.food-save-rating-btn:hover { background: var(--primary-dark); }
.food-slide-modal {
    max-width: 560px;
}
#tpFoodSlideCanvas {
    width: 100%;
    border-radius: 12px;
    background: #170f1e;
    margin-top: 6px;
}
.food-slide-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.food-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 8px; font-size: 0.75rem; color: var(--text-light);
}
.food-card-footer button {
    background: none; border: none; color: var(--text-light);
    font-size: 0.78rem; cursor: pointer;
}
.food-card-footer button:hover { color: #e53935; }

/* Smokes (Ciggy Counter) */
.smoke-counter-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-bottom: 16px;
}
.smoke-counter-card {
    border-radius: 16px; padding: 18px 16px; text-align: center;
    color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    display: flex; flex-direction: column; gap: 6px;
}
.smoke-counter-card.mine {
    background: linear-gradient(135deg, #4a4a6e 0%, #6b5b9b 100%);
}
.smoke-counter-card.theirs {
    background: linear-gradient(135deg, #8b4a6b 0%, #b06ba0 100%);
}
.smoke-counter-name { font-size: 0.95rem; font-weight: 600; opacity: 0.92; }
.smoke-counter-big { font-size: 3rem; font-weight: 800; line-height: 1; margin: 4px 0; }
.smoke-counter-sub { font-size: 0.78rem; opacity: 0.85; }
.smoke-quick-btn {
    margin-top: 8px; background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.4); color: #fff;
    border-radius: 10px; padding: 8px 10px; font-weight: 600;
    cursor: pointer; font-size: 0.82rem;
}
.smoke-quick-btn:hover { background: rgba(255,255,255,0.28); }

.smoke-shared-stat {
    text-align: center;
    background: linear-gradient(90deg, rgba(255,110,180,0.18), rgba(199,125,255,0.18));
    color: var(--text); padding: 8px 12px; border-radius: 12px;
    margin-bottom: 14px; font-weight: 600; font-size: 0.9rem;
}

.smoke-quick-form { margin-top: 4px; }

.smoke-who-toggle {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    margin: 4px 0 12px;
}
.smoke-who-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 6px; border-radius: 14px;
    border: 2px solid var(--secondary); background: white; color: var(--text);
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all 0.18s ease;
}
.smoke-who-btn .smoke-who-icon { font-size: 1.4rem; }
.smoke-who-btn:hover { border-color: var(--primary); }
.smoke-who-btn.active {
    background: linear-gradient(135deg, #6b5b9b 0%, #b06ba0 100%);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(107,91,155,0.4);
}
body.dark-mode .smoke-who-btn { background: var(--bg-card); color: var(--text); }

.smoke-tools-row {
    grid-template-columns: auto 1fr 1fr;
    margin-top: 16px; margin-bottom: 12px;
}
.smoke-total-pill {
    background: var(--bg-card-alt, #f0eef5);
    padding: 8px 14px; border-radius: 10px;
    font-weight: 700; font-size: 0.9rem; color: var(--text);
    display: flex; align-items: center;
}
body.dark-mode .smoke-total-pill { background: rgba(255,255,255,0.08); color: var(--text); }

/* Photo gallery grid */
.smoke-gallery {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    margin-top: 8px;
}
@media (min-width: 600px) {
    .smoke-gallery { grid-template-columns: repeat(3, 1fr); }
}
.smoke-tile {
    position: relative; border-radius: 14px; overflow: hidden;
    aspect-ratio: 3 / 4; background: #2a1f3a;
    box-shadow: 0 4px 12px var(--shadow);
}
.smoke-tile.mine    { border: 2px solid #6b5b9b; }
.smoke-tile.partner { border: 2px solid #b06ba0; }
.smoke-tile.both    { border: 2px solid #ff6eb4; }
.smoke-tile-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    cursor: zoom-in;
}
.smoke-tile-noimg {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #2a1f3a, #4a2f5a);
}
.smoke-tile-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 22px 10px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    color: #fff; display: flex; justify-content: space-between;
    align-items: flex-end; gap: 6px;
    font-size: 0.74rem;
}
.smoke-tile-who { font-weight: 700; }
.smoke-tile-time { opacity: 0.85; font-size: 0.68rem; }
.smoke-tile-note {
    position: absolute; top: 6px; left: 6px; right: 36px;
    background: rgba(0,0,0,0.65); color: #fff;
    padding: 4px 8px; border-radius: 8px;
    font-size: 0.72rem; line-height: 1.25;
    max-height: 50%; overflow: hidden;
    text-overflow: ellipsis;
}
.smoke-tile-del {
    position: absolute; top: 6px; right: 6px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(0,0,0,0.6); border: none;
    color: #fff; font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.85;
}
.smoke-tile-del:hover { background: #e53935; opacity: 1; }
.smoke-tile-actions {
    position: absolute; top: 6px; right: 6px;
    display: flex; gap: 6px;
}
.smoke-tile-actions .smoke-tile-del,
.smoke-tile-actions .smoke-tile-edit {
    position: static;
}
.smoke-tile-edit {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(0,0,0,0.6); border: none;
    color: #fff; font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.85;
}
.smoke-tile-edit:hover { background: #2196f3; opacity: 1; }

/* Legacy smoke-list styles (kept for any old DOM, can be removed later) */
.smoke-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.smoke-entry {
    display: grid; grid-template-columns: 60px 1fr auto; gap: 12px;
    align-items: center; background: white; border-radius: 12px;
    padding: 10px; box-shadow: 0 2px 8px var(--shadow);
    border-left: 4px solid var(--secondary);
}
.smoke-entry.mine { border-left-color: #6b5b9b; }
.smoke-entry.theirs { border-left-color: #b06ba0; }
.smoke-entry-img {
    width: 60px; height: 60px; object-fit: cover; border-radius: 8px;
    cursor: zoom-in;
}
.smoke-entry-noimg {
    width: 60px; height: 60px; border-radius: 8px;
    background: #f0eef5; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.smoke-entry-body { min-width: 0; }
.smoke-entry-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px; font-size: 0.88rem; color: var(--text);
}
.smoke-entry-head span { font-size: 0.74rem; color: var(--text-light); }
.smoke-entry-loc, .smoke-entry-note {
    font-size: 0.8rem; color: var(--text-light); margin-top: 2px;
    word-break: break-word;
}
.smoke-entry-del {
    background: none; border: none; font-size: 1.1rem;
    cursor: pointer; opacity: 0.55; padding: 6px;
}
.smoke-entry-del:hover { opacity: 1; }

body.dark-mode .smoke-entry { background: var(--bg-card); }
body.dark-mode .smoke-entry-noimg { background: rgba(255,255,255,0.08); }

/* Info (Dynamic) */
.info-card {
    background: white; border-radius: 14px; padding: 18px;
    margin-bottom: 12px; box-shadow: 0 2px 10px var(--shadow);
}
.info-card-structured {
    border-left: 4px solid var(--primary);
}
.info-cal-badge {
    font-size: 0.72rem; background: #e8f5e9; color: #2e7d32;
    padding: 3px 8px; border-radius: 8px; font-weight: 600;
    white-space: nowrap; margin-left: auto; margin-right: 8px;
}
.info-dt-group {
    padding: 10px 0; border-bottom: 1px solid #f8f5f6;
}
.info-dt-group-label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: var(--primary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.info-dt-fields {
    display: flex; gap: 8px;
}
.info-dt-field {
    flex: 1;
}
.info-dt-field input {
    width: 100%; padding: 8px 10px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.88rem; color: var(--text);
    background: #fafafa; font-family: inherit;
    transition: border-color 0.2s;
}
.info-dt-field input:focus {
    border-color: var(--primary); outline: none; background: white;
}
.info-dt-field input[type="date"]::-webkit-calendar-picker-indicator,
.info-dt-field input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer; opacity: 0.6;
}
.info-date-input, .info-time-input {
    padding: 6px 8px; border: 2px solid var(--secondary);
    border-radius: 8px; font-size: 0.88rem; color: var(--text);
    background: #fafafa; font-family: inherit; min-width: 0; flex: 1;
}
.info-date-input:focus, .info-time-input:focus {
    border-color: var(--primary); outline: none;
}
/* Calendar info event styling */
.cal-info-event {
    background: linear-gradient(135deg, #f3e8ff 0%, #ede7f6 100%);
    border-left: 3px solid #7c4dff;
    border-radius: 8px;
}
.cal-day-dot.has-info {
    background: #7c4dff;
}
.info-card-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.info-card-header h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.info-card-delete {
    background: none; border: none; cursor: pointer; font-size: 1rem; color: #ccc;
    padding: 6px 8px; border-radius: 6px; z-index: 2;
}
.info-card-delete:hover, .info-card-delete:active { color: #e53935; background: #fff0f0; }
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid #f8f5f6; font-size: 0.9rem; gap: 10px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-light); white-space: nowrap; min-width: 80px; }
.info-value { font-weight: 600; text-align: right; }
.info-editable {
    background: none; border: none; font-weight: 600; text-align: right;
    font-size: 0.9rem; color: var(--text); font-family: inherit;
    border-bottom: 1px dashed var(--secondary); padding: 2px 4px;
    cursor: text; flex: 1; min-width: 0;
}
.info-row-delete {
    background: none; border: none; cursor: pointer; font-size: 0.8rem;
    color: #ccc; padding: 2px 4px; border-radius: 4px; margin-left: 4px;
    transition: color 0.15s;
}
.info-row-delete:hover { color: #e53935; }
.info-add-row { display: flex; gap: 8px; padding-top: 8px; }
.info-add-row input {
    flex: 1; padding: 6px 10px; border: 2px solid var(--secondary);
    border-radius: 8px; font-size: 0.82rem; color: var(--text);
}
.info-add-row button {
    background: var(--primary); color: white; border: none;
    border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 600;
    font-size: 0.82rem; white-space: nowrap;
}
.info-template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.info-template-btn {
    background: white; border: 2px solid var(--secondary); border-radius: 12px;
    padding: 14px 10px; text-align: center; cursor: pointer;
    font-size: 0.82rem; font-weight: 600; color: var(--text); transition: all 0.2s;
}
.info-template-btn:hover { border-color: var(--primary); color: var(--primary); }
.info-template-btn .tpl-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.phrases-add { display: flex; gap: 8px; margin-bottom: 14px; }
.phrases-add input {
    flex: 1; padding: 8px 12px; border: 2px solid var(--secondary);
    border-radius: 10px; font-size: 0.85rem; color: var(--text);
}
.phrases-add button {
    background: var(--primary); color: white; border: none;
    border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 600;
}

/* Trip Buttons */
.btn-trip {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white; border: none; padding: 12px 24px; border-radius: 25px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow); transition: all 0.2s; width: 100%;
}
.btn-trip:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--shadow-lg); }
.btn-outline-trip {
    background: white; color: var(--primary); border: 2px solid var(--primary);
    padding: 10px 20px; border-radius: 25px; font-size: 0.9rem;
    font-weight: 600; cursor: pointer; width: 100%; transition: all 0.2s;
}
.btn-outline-trip:hover { background: var(--primary); color: white; }
.btn-cancel-trip {
    background: #f5f5f5; color: var(--text-light); border: none;
    padding: 10px 20px; border-radius: 25px; font-size: 0.9rem;
    font-weight: 600; cursor: pointer; width: 100%;
}

/* Trip empty state */
.tp-empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.tp-empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.tp-empty-state p { font-size: 0.9rem; }

/* Map trip marker legend additions */
.ourmap-dot-trip { background: #ff6b9d; }

/* ---- Dark Mode: Trip Planner ---- */
body.dark-mode .trip-select-card,
body.dark-mode .trip-new-card {
    background: var(--card-bg);
    border-color: #3d2a35;
}
body.dark-mode .trip-select-card-status.trip-status-upcoming { background: #1a3e1a; color: #6dd56d; }
body.dark-mode .trip-select-card-status.trip-status-active { background: #3e2a1a; color: #ffb74d; }
body.dark-mode .trip-select-card-status.trip-status-past { background: #2a2a3a; color: #888; }
body.dark-mode .tp-modal-box {
    background: var(--card-bg);
    color: var(--text);
}
body.dark-mode .trip-tabs {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark-mode .trip-tab { color: var(--text-light); }
body.dark-mode .trip-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
body.dark-mode .cal-day {
    background: var(--card-bg);
    border-color: transparent;
    color: var(--text);
}
body.dark-mode .cal-day.trip-range { background: #2a1a2e; }
body.dark-mode .cal-day.trip-start,
body.dark-mode .cal-day.trip-end { background: var(--primary); color: white; }
body.dark-mode .cal-selected-date { background: var(--card-bg); box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
body.dark-mode .cal-event { border-bottom-color: #3d2a35; }
body.dark-mode .cal-nav button { background: var(--card-bg); border-color: #3d2a35; color: var(--text); }
body.dark-mode .place-card,
body.dark-mode .place-add-form,
body.dark-mode .food-add-form,
body.dark-mode .food-card,
body.dark-mode .pack-section,
body.dark-mode .budget-cat,
body.dark-mode .budget-add-form,
body.dark-mode .budget-log,
body.dark-mode .tp-notes-card,
body.dark-mode .notes-add,
body.dark-mode .info-card {
    background: var(--card-bg);
    border-color: #3d2a35;
    color: var(--text);
}
body.dark-mode .pack-section-header { background: #2a2a4a; border-bottom-color: #3d2a35; }
body.dark-mode .pack-item { border-bottom-color: #3d2a35; }
body.dark-mode .budget-entry { border-bottom-color: #3d2a35; }
body.dark-mode .info-row { border-bottom-color: #3d2a35; }
body.dark-mode .info-editable { color: var(--text); border-bottom-color: #3d2a35; }
body.dark-mode .info-template-btn { background: var(--card-bg); border-color: #3d2a35; color: var(--text); }
body.dark-mode .info-template-btn:hover { border-color: var(--primary); color: var(--primary); }
body.dark-mode .info-card-structured { border-left-color: var(--primary); }
body.dark-mode .info-cal-badge { background: #1a3e1a; color: #81c784; }
body.dark-mode .info-dt-group { border-bottom-color: #3d2a35; }
body.dark-mode .info-dt-field input { background: #2a2a4a; border-color: #3d2a35; color: var(--text); }
body.dark-mode .info-dt-field input:focus { border-color: var(--primary); background: #1e1e3e; }
body.dark-mode .info-date-input, body.dark-mode .info-time-input { background: #2a2a4a; border-color: #3d2a35; color: var(--text); }
body.dark-mode .cal-info-event { background: #2a1a3e; border-left-color: #9c7cff; }
body.dark-mode .place-filter { background: var(--card-bg); border-color: #3d2a35; color: var(--text-light); }
body.dark-mode .place-filter.active { background: var(--primary); color: white; border-color: var(--primary); }
body.dark-mode .cal-place-event { background: #1a2a3e; }
body.dark-mode .place-dt-field label { color: var(--text-light); }
body.dark-mode .food-upload-area { background: #2a2a4a; border-color: #3d2a35; }
body.dark-mode .food-tools-row { background: var(--card-bg); border: 1px solid #3d2a35; }
body.dark-mode .food-tools-row select { background: #2a2a4a; border-color: #3d2a35; color: var(--text); }
body.dark-mode .food-card-no-img { background: #2a1a2e; }
body.dark-mode .food-chip { background: #2a1a3e; color: #d1b3ff; }
body.dark-mode .food-chip.ice { background: #1a2a3e; color: #9dc7ff; }
body.dark-mode .food-rating-row select,
body.dark-mode .food-rating-row input { background: #2a2a4a; border-color: #3d2a35; color: var(--text); }
body.dark-mode .food-rating-edit-grid { background: #241a2f; }
body.dark-mode .itin-tag.food { background: #3e2a1a; }
body.dark-mode .itin-tag.sight { background: #1a3e1a; }
body.dark-mode .itin-tag.travel { background: #1a2a3e; }
body.dark-mode .itin-tag.hotel { background: #2a1a3e; }
body.dark-mode .itin-tag.shop { background: #3e1a1a; }
body.dark-mode .itin-tag.fun { background: #3e3a1a; }