@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

/* ===== LIGHT THEME (default) ===== */
:root,
[data-theme="light"] {
    --bg-primary: #f4f0f8;
    --bg-secondary: #ebe5f2;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(147, 51, 234, 0.04);
    --purple-light: #7c3aed;
    --purple-main: #9333ea;
    --purple-dark: #7c3aed;
    --pink-light: #db2777;
    --pink-main: #ec4899;
    --pink-dark: #be185d;
    --rose: #e11d48;
    --peach: #ea580c;
    --mint: #059669;
    --sky: #0284c7;
    --text-primary: #1e1033;
    --text-secondary: rgba(30, 16, 51, 0.7);
    --text-muted: rgba(30, 16, 51, 0.45);
    --border: rgba(147, 51, 234, 0.15);
    --shadow-glow: 0 4px 24px rgba(147, 51, 234, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --chart-dot-center: #fff;
    --orb-opacity: 0.15;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
    --bg-primary: #0f0a1a;
    --bg-secondary: #1a1128;
    --bg-card: rgba(30, 20, 50, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --purple-light: #e9d5ff;
    --purple-main: #c084fc;
    --purple-dark: #9333ea;
    --pink-light: #fce7f3;
    --pink-main: #f472b6;
    --pink-dark: #db2777;
    --rose: #fb7185;
    --peach: #fdba74;
    --mint: #6ee7b7;
    --sky: #7dd3fc;
    --text-primary: #f5f0ff;
    --text-secondary: rgba(245, 240, 255, 0.7);
    --text-muted: rgba(245, 240, 255, 0.45);
    --border: rgba(192, 132, 252, 0.15);
    --shadow-glow: 0 0 30px rgba(192, 132, 252, 0.15);
    --chart-dot-center: #0f0a1a;
    --orb-opacity: 0.3;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background animation */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: var(--orb-opacity);
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orbs .orb:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--purple-dark);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.bg-orbs .orb:nth-child(2) {
    width: 250px;
    height: 250px;
    background: var(--pink-dark);
    bottom: 10%;
    left: -80px;
    animation-delay: -7s;
}

.bg-orbs .orb:nth-child(3) {
    width: 200px;
    height: 200px;
    background: #7c3aed;
    top: 40%;
    right: -60px;
    animation-delay: -14s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 30px) scale(1.05);
    }
}

/* App Container */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 100px;
}

/* Header */
.app-header {
    padding: 20px 0 10px;
    text-align: center;
}

.app-header .logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, var(--pink-main), var(--purple-main));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 32px rgba(244, 114, 182, 0.25);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(244, 114, 182, 0.25);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(244, 114, 182, 0.35);
    }
}

.app-header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink-light), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.app-header .subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin: 16px 0;
    backdrop-filter: blur(12px);
}

.tab-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--purple-dark), var(--pink-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3);
}

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

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-glow);
}

.card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title .icon {
    font-size: 1.2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--purple-main);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.15);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c084fc' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

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

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--purple-dark), var(--pink-dark));
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(147, 51, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-glass);
    color: var(--purple-light);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-secondary:hover {
    background: rgba(192, 132, 252, 0.1);
    border-color: var(--purple-main);
}

/* Result Section */
.result-section {
    display: none;
    animation: fadeUp 0.5s ease;
}

.result-section.show {
    display: block;
}

/* Hero Result */
.hero-result {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(219, 39, 119, 0.15));
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.hero-result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.06) 0%, transparent 70%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-result .week-display {
    position: relative;
    z-index: 1;
}

.hero-result .week-number {
    font-family: 'Nunito', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero-result .week-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--purple-light);
    margin-top: 4px;
}

.hero-result .week-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.hero-result .due-date-banner {
    margin-top: 20px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.hero-result .due-date-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.hero-result .due-date-value {
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pink-light);
}

.hero-result .countdown {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Progress Bar */
.progress-section {
    margin-bottom: 16px;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    height: 14px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-dark), var(--pink-main), var(--rose));
    border-radius: 12px;
    transition: width 1s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-percentage {
    text-align: center;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple-light);
}

/* Trimester Badges */
.trimester-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.trimester-badge {
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.trimester-badge.active {
    opacity: 1;
    box-shadow: var(--shadow-glow);
}

.trimester-badge.t1 {
    background: rgba(192, 132, 252, 0.1);
}

.trimester-badge.t1.active {
    border-color: var(--purple-main);
    background: rgba(192, 132, 252, 0.15);
}

.trimester-badge.t2 {
    background: rgba(244, 114, 182, 0.1);
}

.trimester-badge.t2.active {
    border-color: var(--pink-main);
    background: rgba(244, 114, 182, 0.15);
}

.trimester-badge.t3 {
    background: rgba(251, 113, 133, 0.1);
}

.trimester-badge.t3.active {
    border-color: var(--rose);
    background: rgba(251, 113, 133, 0.15);
}

.trimester-badge .t-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trimester-badge .t-name {
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 2px;
}

.trimester-badge.t1 .t-name {
    color: var(--purple-light);
}

.trimester-badge.t2 .t-name {
    color: var(--pink-light);
}

.trimester-badge.t3 .t-name {
    color: var(--rose);
}

.trimester-badge .t-weeks {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.stat-item {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.02);
}

.stat-item .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.stat-item .stat-value {
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-item .stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Baby Development */
.baby-dev {
    padding: 20px;
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.08), rgba(125, 211, 252, 0.08));
    border: 1px solid rgba(110, 231, 183, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.baby-dev-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.baby-dev-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(110, 231, 183, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.baby-dev-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mint);
}

.baby-dev-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.baby-dev-content {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.baby-size-comparison {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
}

.baby-size-emoji {
    font-size: 2rem;
}

.baby-size-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.baby-size-text strong {
    color: var(--mint);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--purple-main), var(--pink-main), var(--rose));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--purple-main);
}

.timeline-item.active::before {
    background: var(--purple-main);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
}

.timeline-item.completed::before {
    background: var(--mint);
    border-color: var(--mint);
}

.timeline-item .tl-week {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--purple-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-item .tl-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

.timeline-item .tl-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Tips Card */
.tip-card {
    padding: 18px;
    background: linear-gradient(135deg, rgba(253, 186, 116, 0.08), rgba(251, 113, 133, 0.08));
    border: 1px solid rgba(253, 186, 116, 0.15);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.tip-card .tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tip-card .tip-icon {
    font-size: 1.2rem;
}

.tip-card .tip-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--peach);
}

.tip-card .tip-content {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Health Checklist */
.checklist {
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.checklist li .check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checklist li .check-icon.checked {
    background: var(--mint);
    border-color: var(--mint);
    color: #0f0a1a;
    font-size: 0.7rem;
}

/* Weight Tracker */
.weight-chart-container {
    position: relative;
    height: 200px;
    margin: 16px 0;
}

.weight-chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.weight-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.weight-input-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.weight-input-row .btn-add-weight {
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--mint), #34d399);
    color: #0f0a1a;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.weight-input-row .btn-add-weight:hover {
    transform: scale(1.05);
}

/* Notes */
.note-entry {
    padding: 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.note-entry .note-date {
    font-size: 0.72rem;
    color: var(--purple-main);
    font-weight: 600;
}

.note-entry .note-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.note-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: border-color 0.3s ease;
}

.note-textarea:focus {
    border-color: var(--purple-main);
}

/* Method Info */
.method-info {
    padding: 16px;
    background: rgba(125, 211, 252, 0.06);
    border: 1px solid rgba(125, 211, 252, 0.12);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.method-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.method-info strong {
    color: var(--sky);
}

/* Baby Name Section */
.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.name-chip {
    padding: 10px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.name-chip:hover {
    border-color: var(--pink-main);
    background: rgba(244, 114, 182, 0.1);
}

.name-chip.liked {
    border-color: var(--pink-main);
    background: rgba(244, 114, 182, 0.15);
}

.name-chip .name-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.name-chip .name-meaning {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Emergency Info */
.emergency-card {
    padding: 18px;
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.1), rgba(244, 114, 182, 0.1));
    border: 1px solid rgba(251, 113, 133, 0.2);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.emergency-card .emergency-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rose);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.emergency-card .emergency-list {
    list-style: none;
}

.emergency-card .emergency-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.emergency-card .emergency-list li::before {
    content: '•';
    color: var(--rose);
    font-weight: 700;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    max-width: 400px;
    width: 100%;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    padding: 4px 4px;
    padding-bottom: env(safe-area-inset-bottom, 4px);
    z-index: 50;
    gap: 2px;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    min-height: 60px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 14px;
    color: var(--text-muted);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-item:active {
    transform: scale(0.90);
    background: rgba(147, 51, 234, 0.12);
}

.nav-item.active {
    color: var(--purple-main);
    background: rgba(147, 51, 234, 0.1);
}

.nav-item .nav-icon {
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

.nav-item .nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    pointer-events: none;
    white-space: nowrap;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    border: 1px solid var(--purple-main);
    border-radius: var(--radius);
    padding: 12px 24px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--purple-dark);
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 360px) {
    .app-container {
        padding: 0 12px 100px;
    }

    .card {
        padding: 18px;
    }

    .hero-result .week-number {
        font-size: 3rem;
    }
}

/* Install Prompt */
.install-prompt {
    padding: 16px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.1), rgba(244, 114, 182, 0.1));
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: none;
    text-align: center;
}

.install-prompt .install-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.install-prompt .btn-install {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--purple-main), var(--pink-main));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.install-prompt .btn-install:hover {
    transform: scale(1.05);
}

/* Kick counter */
.kick-counter-display {
    text-align: center;
    padding: 24px;
}

.kick-count {
    font-family: 'Nunito', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--pink-light);
    line-height: 1;
}

.kick-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-kick {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--pink-main), var(--rose));
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(244, 114, 182, 0.3);
    transition: all 0.2s ease;
}

.btn-kick:active {
    transform: scale(0.9);
    box-shadow: 0 4px 16px rgba(244, 114, 182, 0.4);
}

.kick-history {
    margin-top: 16px;
}

.kick-history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Contraction Timer */
.contraction-display {
    text-align: center;
    padding: 20px;
}

.contraction-timer {
    font-family: 'Nunito', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--peach);
}

.btn-contraction {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.btn-contraction.start {
    background: linear-gradient(135deg, var(--peach), var(--rose));
    color: #fff;
}

.btn-contraction.stop {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.contraction-log {
    margin-top: 16px;
}

.contraction-entry {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
}

.contraction-entry .ce-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Appointments */
.appointment-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    align-items: center;
}

.appointment-date-badge {
    width: 50px;
    height: 55px;
    background: linear-gradient(135deg, var(--purple-dark), var(--pink-dark));
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.appointment-date-badge .adb-day {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.appointment-date-badge .adb-month {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
}

.appointment-info .ai-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.appointment-info .ai-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.appointment-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.3s;
}

.appointment-delete:hover {
    color: var(--rose);
}

/* ============================
   CYCLE TRACKING CALENDAR
   ============================ */

/* Calendar Container */
.cycle-calendar {
    margin-bottom: 16px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-glass);
    color: var(--purple-light);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cal-nav-btn:hover {
    background: rgba(192, 132, 252, 0.15);
    border-color: var(--purple-main);
}

.cal-month-year {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.cal-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 4px 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    gap: 2px;
}

.cal-day:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cal-day.empty {
    cursor: default;
}

.cal-day.today {
    border: 2px solid var(--purple-main);
    color: var(--purple-light);
    font-weight: 700;
}

.cal-day.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

/* Period day */
.cal-day.period {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.cal-day.period-start {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(239, 68, 68, 0.2));
    color: #fca5a5;
    font-weight: 700;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Ovulation day */
.cal-day.ovulation {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(139, 92, 246, 0.2));
    color: #ddd6fe;
    font-weight: 700;
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

/* Fertile window */
.cal-day.fertile {
    background: rgba(244, 114, 182, 0.12);
    color: #f9a8d4;
}

/* Predicted period */
.cal-day.predicted-period {
    background: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    color: rgba(252, 165, 165, 0.7);
}

/* Predicted ovulation */
.cal-day.predicted-ovulation {
    background: rgba(168, 85, 247, 0.08);
    border: 1px dashed rgba(168, 85, 247, 0.3);
    color: rgba(221, 214, 254, 0.7);
}

/* Predicted fertile */
.cal-day.predicted-fertile {
    background: rgba(244, 114, 182, 0.06);
    border: 1px dashed rgba(244, 114, 182, 0.2);
}

/* Day dots indicator */
.cal-day-dots {
    display: flex;
    gap: 2px;
    height: 4px;
}

.cal-day-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.cal-day-dot.period-dot {
    background: #ef4444;
}

.cal-day-dot.ovulation-dot {
    background: #a855f7;
}

.cal-day-dot.fertile-dot {
    background: #f472b6;
}

/* Calendar Legend */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cal-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.cal-legend-dot.period {
    background: rgba(239, 68, 68, 0.5);
}

.cal-legend-dot.ovulation {
    background: rgba(168, 85, 247, 0.6);
}

.cal-legend-dot.fertile {
    background: rgba(244, 114, 182, 0.4);
}

.cal-legend-dot.predicted {
    background: rgba(239, 68, 68, 0.15);
    border: 1px dashed rgba(239, 68, 68, 0.4);
}

/* Symptom Chips */
.symptom-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.symptom-chip {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.symptom-chip:hover {
    border-color: var(--pink-main);
}

.symptom-chip.selected {
    background: rgba(244, 114, 182, 0.2);
    border-color: var(--pink-main);
    color: var(--pink-light);
}

/* Prediction Grid */
.prediction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.prediction-item {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.prediction-item:hover {
    transform: scale(1.02);
}

.pred-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.pred-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pred-value {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

.pred-countdown {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Cycle History Entry */
.cycle-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.cycle-entry:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.cycle-entry-badge {
    width: 44px;
    height: 50px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.15));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cycle-entry-badge .ceb-day {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fca5a5;
    line-height: 1;
}

.cycle-entry-badge .ceb-month {
    font-size: 0.6rem;
    color: rgba(252, 165, 165, 0.7);
}

.cycle-entry-info {
    flex: 1;
    min-width: 0;
}

.cycle-entry-info .cei-dates {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cycle-entry-info .cei-details {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cycle-entry-info .cei-symptoms {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.cycle-entry-delete {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color 0.3s;
    flex-shrink: 0;
}

.cycle-entry-delete:hover {
    color: var(--rose);
}

/* Flow indicator */
.flow-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

/* ============================
   SETTINGS PAGE
   ============================ */

.settings-section {
    margin-bottom: 8px;
}

.settings-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-left: 4px;
}

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

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

.setting-info {
    flex: 1;
    min-width: 0;
}

.setting-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    font-size: 0.7rem;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--purple-dark), var(--pink-dark));
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.theme-toggle input:checked+.toggle-slider::before {
    transform: translateX(26px);
}

.toggle-slider .sun-icon,
.toggle-slider .moon-icon {
    z-index: 1;
    font-size: 0.85rem;
    line-height: 1;
}

/* Data Management Buttons */
.settings-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.settings-btn:hover {
    background: rgba(192, 132, 252, 0.1);
    border-color: var(--purple-main);
}

.settings-btn.danger {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--rose);
}

.settings-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
}

.settings-btn .btn-icon {
    font-size: 1.1rem;
}

/* About Section */
.about-section {
    text-align: center;
    padding: 16px 0;
}

.about-version {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* ============================
   MOOD CHIPS (Diary)
   ============================ */
.mood-chips-container {
    margin-bottom: 12px;
}

.mood-chips-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.mood-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mood-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Quicksand', sans-serif;
    min-width: 52px;
}

.mood-chip .mood-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.mood-chip .mood-text {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
}

.mood-chip:active {
    transform: scale(0.92);
}

.mood-chip.selected {
    border-color: var(--purple-main);
    background: rgba(147, 51, 234, 0.12);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.2);
}

.mood-chip.selected .mood-text {
    color: var(--purple-main);
}

/* Note entry mood display */
.note-mood {
    margin-top: 4px;
    font-size: 1.1rem;
}

/* ============================
   NOTIFICATION SETTINGS
   ============================ */
.notif-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.notif-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}

.notif-input-row input[type="number"] {
    width: 60px;
    padding: 8px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    outline: none;
}

.notif-input-row .notif-unit {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================
   APPOINTMENT REMINDER BADGE
   ============================ */
.appointment-reminder-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(147, 51, 234, 0.1);
    color: var(--purple-main);
    font-weight: 600;
    margin-top: 4px;
}

/* Generic toggle (notification toggles reuse) */
.mini-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.mini-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.mini-toggle .toggle-track {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-toggle .toggle-track::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-toggle input:checked+.toggle-track {
    background: rgba(147, 51, 234, 0.2);
    border-color: var(--purple-main);
}

.mini-toggle input:checked+.toggle-track::before {
    transform: translateX(20px);
    background: var(--purple-main);
}

/* ============================
   MODE SELECTOR OVERLAY
   ============================ */
.mode-selector-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 10, 26, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.mode-selector-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.mode-selector-container {
    width: 90%;
    max-width: 380px;
    text-align: center;
    animation: modeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mode-selector-icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 16px rgba(192, 132, 252, 0.3));
}

.mode-selector-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: 'Nunito', sans-serif;
}

.mode-selector-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 6px 0 28px;
    font-family: 'Quicksand', sans-serif;
}

.mode-selector-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mode-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 24px;
    border: 1.5px solid rgba(192, 132, 252, 0.25);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Quicksand', sans-serif;
    touch-action: manipulation;
    min-height: 120px;
}

.mode-option:active {
    transform: scale(0.96);
}

.mode-option:hover {
    border-color: var(--purple-main);
    background: rgba(192, 132, 252, 0.1);
    box-shadow: 0 8px 32px rgba(192, 132, 252, 0.15);
}

.mode-option-icon {
    font-size: 2.6rem;
    line-height: 1;
}

.mode-option-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.mode-option-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* ============================
   MODE SWITCH BUTTONS (Settings)
   ============================ */
.mode-switch-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.mode-switch-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-switch-btn:active {
    transform: scale(0.96);
}

.mode-switch-btn.active {
    border-color: var(--purple-main);
    background: rgba(147, 51, 234, 0.12);
    color: var(--purple-main);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.15);
}

/* Hide nav items not matching current mode */
.nav-item.mode-hidden {
    display: none !important;
}