/* ═══════════════════════════════════════════════════════════════════════════════
   NITNEM TRACKER — SCROLL FIX + POPPING PREMIUM CLAYMORPHISM
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── SECTION 0: CRITICAL SCROLL FIX ─── */
html,
body {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    position: static !important;
}

body {
    background: var(--clay-bg-primary, #F0F0F5) !important;
    background-attachment: scroll !important;
}

[data-theme="dark"] body,
[data-theme="dark"] body,
[data-theme="saffron"] body,
[data-theme="gradient"] body,
[data-theme="gold"] body {
    background: var(--clay-bg-primary, #1C1C1E) !important;
}

.app-container {
    position: relative !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    overflow-y: visible !important;
}

.main-content {
    flex: 1 !important;
    overflow: visible !important;
    overflow-y: visible !important;

}

/* Hide distracting gradient background effects */
.background-effects,
.gradient-orb,
.gradient-orb-1,
.gradient-orb-2,
.gradient-orb-3,
.mesh-gradient,
.noise-overlay {
    display: none !important;
}

/* ─── SECTION 1: CLAYMORPHISM DESIGN TOKENS ─── */
:root {
    --clay-bg-primary: #EDEDED;
    --clay-bg-secondary: #E0E0E4;
    --clay-page-bg: #E8E8EC;

    --clay-shadow-deep: 0.10;
    --clay-shadow-mid: 0.08;
    --clay-shadow-soft: 0.06;
    --clay-highlight: 0.95;
    --clay-border-glow: 0.70;
    --clay-inset-shadow: 0.07;

    --clay-gold-rgb: 212, 148, 58;
    --clay-orange-rgb: 255, 160, 50;
    --clay-blue-rgb: 0, 122, 255;
    --clay-green-rgb: 48, 209, 88;
    --clay-purple-rgb: 120, 86, 214;
    --clay-red-rgb: 255, 59, 48;
    --clay-teal-rgb: 48, 176, 199;

    --clay-radius-card: 32px;
    --clay-radius-btn: 9999px;
    --clay-radius-icon: 22px;
    --clay-radius-inner: 20px;

    --clay-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"],
[data-theme="dark"],
[data-theme="saffron"],
[data-theme="gradient"],
[data-theme="gold"] {
    --clay-bg-primary: #1C1C1E;
    --clay-bg-secondary: #2C2C2E;
    --clay-page-bg: #1A1A1C;
    --clay-shadow-deep: 0.25;
    --clay-shadow-mid: 0.18;
    --clay-shadow-soft: 0.15;
    --clay-highlight: 0.12;
    --clay-border-glow: 0.18;
    --clay-inset-shadow: 0.22;
}

/* ─── SECTION 2: PAGE BACKGROUND ─── */
body {
    background: var(--clay-page-bg) !important;
}

/* ─── SECTION 3: HEADER — CLAY PILL ─── */
.app-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.header-blur-bg {
    display: none !important;
}

.app-header.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
}

.header-content {
    background: transparent !important;
}

.status-pill {
    background: linear-gradient(145deg, #FFFFFF, #E8E8EC) !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.06),
        -4px -4px 10px rgba(255, 255, 255, 0.8),
        inset 2px 2px 5px rgba(255, 255, 255, 0.8),
        inset -2px -2px 5px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 9999px !important;
}

[data-theme="dark"] .status-pill,
[data-theme="dark"] .status-pill,
[data-theme="saffron"] .status-pill,
[data-theme="gold"] .status-pill {
    background: linear-gradient(145deg, #3A3A3C, #2C2C2E) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.25),
        -4px -4px 10px rgba(255, 255, 255, 0.05),
        inset 2px 2px 5px rgba(255, 255, 255, 0.05),
        inset -2px -2px 5px rgba(0, 0, 0, 0.15) !important;
}

.header-btn {
    background: linear-gradient(145deg, #FFFFFF, #E8E8EC) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.06),
        -4px -4px 10px rgba(255, 255, 255, 0.8),
        inset 2px 2px 5px rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

[data-theme="dark"] .header-btn,
[data-theme="dark"] .header-btn,
[data-theme="saffron"] .header-btn,
[data-theme="gold"] .header-btn {
    background: linear-gradient(145deg, #3A3A3C, #2C2C2E) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.25),
        -4px -4px 10px rgba(255, 255, 255, 0.05),
        inset 2px 2px 5px rgba(255, 255, 255, 0.05) !important;
}

.header-btn:active {
    transform: scale(0.92) !important;
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.15),
        inset -4px -4px 10px rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

/* ─── SECTION 4: CARDS — EXTREME CLAY 3D ─── */
.card {
    position: relative !important;
    background: linear-gradient(145deg, #FFFFFF 0%, #F0F0F5 100%) !important;
    border-radius: var(--clay-radius-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow:
        16px 16px 32px rgba(0, 0, 0, var(--clay-shadow-deep)),
        -16px -16px 32px rgba(255, 255, 255, var(--clay-highlight)),
        inset 8px 8px 16px rgba(255, 255, 255, 1),
        inset -8px -8px 16px rgba(0, 0, 0, var(--clay-inset-shadow)) !important;
    transition: background-color 0.4s var(--clay-spring) !important, color 0.4s var(--clay-spring) !important, transform 0.4s var(--clay-spring) !important;
    overflow: visible !important;
    padding: 24px !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .card,
[data-theme="saffron"] .card,
[data-theme="gradient"] .card,
[data-theme="gold"] .card {
    background: linear-gradient(145deg, #2C2C2E 0%, #1C1C1E 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        16px 16px 32px rgba(0, 0, 0, var(--clay-shadow-deep)),
        -16px -16px 32px rgba(255, 255, 255, var(--clay-highlight)),
        inset 8px 8px 16px rgba(255, 255, 255, 0.08),
        inset -8px -8px 16px rgba(0, 0, 0, var(--clay-inset-shadow)) !important;
}

.card::before {
    display: none !important;
}

.card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow:
        20px 20px 40px rgba(0, 0, 0, var(--clay-shadow-deep)),
        -20px -20px 40px rgba(255, 255, 255, var(--clay-highlight)),
        inset 10px 10px 20px rgba(255, 255, 255, 1),
        inset -10px -10px 20px rgba(0, 0, 0, var(--clay-inset-shadow)) !important;
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .card:hover,
[data-theme="saffron"] .card:hover,
[data-theme="gradient"] .card:hover,
[data-theme="gold"] .card:hover {
    box-shadow:
        20px 20px 40px rgba(0, 0, 0, var(--clay-shadow-deep)),
        -20px -20px 40px rgba(255, 255, 255, var(--clay-highlight)),
        inset 10px 10px 20px rgba(255, 255, 255, 0.08),
        inset -10px -10px 20px rgba(0, 0, 0, var(--clay-inset-shadow)) !important;
}

.card:active {
    transform: scale(0.97) translateY(4px) !important;
    box-shadow:
        inset 8px 8px 16px rgba(0, 0, 0, var(--clay-shadow-mid)),
        inset -8px -8px 16px rgba(255, 255, 255, var(--clay-highlight)) !important;
}

[data-theme="dark"] .card:active,
[data-theme="dark"] .card:active,
[data-theme="saffron"] .card:active,
[data-theme="gradient"] .card:active,
[data-theme="gold"] .card:active {
    box-shadow:
        inset 8px 8px 16px rgba(0, 0, 0, var(--clay-shadow-deep)),
        inset -8px -8px 16px rgba(255, 255, 255, 0.02) !important;
}

/* Hide old card glow effects */
.card-glow {
    display: none !important;
}

/* ─── SECTION 5: CARD ICONS — CLAY PILLOWS ─── */
.card-icon {
    border-radius: var(--clay-radius-icon) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.05),
        -6px -6px 12px rgba(255, 255, 255, 0.85),
        inset 2px 2px 6px rgba(255, 255, 255, 1) !important;
    transition: background-color 0.3s var(--clay-spring) !important, color 0.3s var(--clay-spring) !important, transform 0.3s var(--clay-spring) !important;
}

.sunrise-icon {
    background: linear-gradient(145deg, #FFF0D8, #FFE0B0) !important;
    box-shadow:
        6px 6px 12px rgba(var(--clay-orange-rgb), 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.85),
        inset 2px 2px 6px rgba(255, 255, 255, 1) !important;
}

.book-icon {
    background: linear-gradient(145deg, #E0F0FF, #C8E4FF) !important;
    box-shadow:
        6px 6px 12px rgba(var(--clay-blue-rgb), 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.85),
        inset 2px 2px 6px rgba(255, 255, 255, 1) !important;
}

.mala-icon {
    background: linear-gradient(145deg, #F0E0FF, #E0C8FF) !important;
    box-shadow:
        6px 6px 12px rgba(var(--clay-purple-rgb), 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.85),
        inset 2px 2px 6px rgba(255, 255, 255, 1) !important;
}

.alarm-icon {
    background: linear-gradient(145deg, #E0F8FF, #C0ECFF) !important;
    box-shadow:
        6px 6px 12px rgba(var(--clay-teal-rgb), 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.85),
        inset 2px 2px 6px rgba(255, 255, 255, 1) !important;
}

.streak-icon {
    background: linear-gradient(145deg, #FFE8E0, #FFD0C0) !important;
    box-shadow:
        6px 6px 12px rgba(var(--clay-red-rgb), 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.85),
        inset 2px 2px 6px rgba(255, 255, 255, 1) !important;
}

.reports-icon {
    background: linear-gradient(145deg, #E0FFE8, #C0F5D0) !important;
    box-shadow:
        6px 6px 12px rgba(var(--clay-green-rgb), 0.15),
        -6px -6px 12px rgba(255, 255, 255, 0.85),
        inset 2px 2px 6px rgba(255, 255, 255, 1) !important;
}

/* Dark mode card icons */
[data-theme="dark"] .card-icon,
[data-theme="dark"] .card-icon,
[data-theme="saffron"] .card-icon,
[data-theme="gold"] .card-icon {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.35),
        -6px -6px 12px rgba(255, 255, 255, 0.04),
        inset 2px 2px 6px rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .sunrise-icon,
[data-theme="dark"] .sunrise-icon,
[data-theme="saffron"] .sunrise-icon {
    background: linear-gradient(145deg, #3A2E18, #2A2010) !important;
}

[data-theme="dark"] .book-icon,
[data-theme="dark"] .book-icon {
    background: linear-gradient(145deg, #1A2840, #102030) !important;
}

[data-theme="dark"] .mala-icon,
[data-theme="dark"] .mala-icon {
    background: linear-gradient(145deg, #2A1838, #1A1028) !important;
}

[data-theme="dark"] .alarm-icon,
[data-theme="dark"] .alarm-icon {
    background: linear-gradient(145deg, #183038, #102028) !important;
}

[data-theme="dark"] .streak-icon,
[data-theme="dark"] .streak-icon {
    background: linear-gradient(145deg, #381818, #281010) !important;
}

[data-theme="dark"] .reports-icon,
[data-theme="dark"] .reports-icon {
    background: linear-gradient(145deg, #183820, #102818) !important;
}

/* ─── SECTION 6: BUTTONS — CLAY CAPSULES ─── */
.present-btn {
    background: linear-gradient(145deg, #FFD080, #FFAB40) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: var(--clay-radius-btn) !important;
    color: #3A2000 !important;
    box-shadow:
        8px 8px 16px rgba(var(--clay-orange-rgb), 0.20),
        -8px -8px 16px rgba(255, 255, 255, 0.80),
        inset 4px 4px 8px rgba(255, 255, 255, 0.8),
        inset -4px -4px 8px rgba(0, 0, 0, 0.04) !important;
    transition: background-color 0.3s var(--clay-spring) !important, color 0.3s var(--clay-spring) !important, transform 0.3s var(--clay-spring) !important;
}

.present-btn:hover {
    transform: translateY(-3px) scale(1.03) !important;
}

.present-btn:active {
    transform: scale(0.94) translateY(3px) !important;
    box-shadow:
        inset 8px 8px 16px rgba(0, 0, 0, 0.15),
        inset -8px -8px 16px rgba(255, 255, 255, 0.5) !important;
}

.present-btn.marked {
    background: linear-gradient(145deg, #60D880, #34C759) !important;
    box-shadow:
        8px 8px 16px rgba(var(--clay-green-rgb), 0.20),
        -8px -8px 16px rgba(255, 255, 255, 0.80),
        inset 4px 4px 8px rgba(255, 255, 255, 0.8),
        inset -4px -4px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .present-btn,
[data-theme="dark"] .present-btn {
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.40),
        -8px -8px 16px rgba(255, 255, 255, 0.05),
        inset 4px 4px 8px rgba(255, 255, 255, 0.08),
        inset -4px -4px 8px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .present-btn:active,
[data-theme="dark"] .present-btn:active {
    box-shadow:
        inset 8px 8px 16px rgba(0, 0, 0, 0.30),
        inset -8px -8px 16px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .present-btn.marked,
[data-theme="dark"] .present-btn.marked {
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.40),
        -8px -8px 16px rgba(255, 255, 255, 0.05),
        inset 4px 4px 8px rgba(255, 255, 255, 0.08),
        inset -4px -4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Complete All, Add Bani, Actions */
.complete-all-btn,
.add-bani-btn,
.mala-action-btn {
    background: linear-gradient(145deg, #FFFFFF, #E8E8EC) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: var(--clay-radius-btn) !important;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.06),
        -8px -8px 16px rgba(255, 255, 255, 0.80),
        inset 4px 4px 8px rgba(255, 255, 255, 1),
        inset -4px -4px 8px rgba(0, 0, 0, 0.03) !important;
    transition: background-color 0.3s var(--clay-spring) !important, color 0.3s var(--clay-spring) !important, transform 0.3s var(--clay-spring) !important;
}

.mala-action-btn.primary {
    background: linear-gradient(145deg, #FFD080, #FFAB40) !important;
    color: #3A2000 !important;
}

.complete-all-btn:active,
.add-bani-btn:active,
.mala-action-btn:active {
    transform: scale(0.94) !important;
    box-shadow:
        inset 6px 6px 12px rgba(0, 0, 0, 0.12),
        inset -6px -6px 12px rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .complete-all-btn:active,
[data-theme="dark"] .add-bani-btn:active,
[data-theme="dark"] .mala-action-btn:active,
[data-theme="dark"] .complete-all-btn:active,
[data-theme="dark"] .add-bani-btn:active,
[data-theme="dark"] .mala-action-btn:active {
    box-shadow:
        inset 6px 6px 12px rgba(0, 0, 0, 0.40),
        inset -6px -6px 12px rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .mala-action-btn.primary,
[data-theme="dark"] .mala-action-btn.primary {
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.40),
        -8px -8px 16px rgba(255, 255, 255, 0.05),
        inset 4px 4px 8px rgba(255, 255, 255, 0.05),
        inset -4px -4px 8px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .complete-all-btn,
[data-theme="dark"] .add-bani-btn,
[data-theme="dark"] .mala-action-btn:not(.primary),
[data-theme="dark"] .complete-all-btn,
[data-theme="dark"] .add-bani-btn,
[data-theme="dark"] .mala-action-btn:not(.primary) {
    background: linear-gradient(145deg, #3A3A3C, #2C2C2E) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.30),
        -8px -8px 16px rgba(255, 255, 255, 0.04),
        inset 4px 4px 8px rgba(255, 255, 255, 0.06),
        inset -4px -4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* ─── SECTION 7: BANI ITEMS — CLAY ROWS ─── */
.bani-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(240, 240, 245, 0.7)) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: var(--clay-radius-inner) !important;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.05),
        -6px -6px 12px rgba(255, 255, 255, 0.80),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02) !important;
    transition: background-color 0.3s var(--clay-spring) !important, color 0.3s var(--clay-spring) !important, transform 0.3s var(--clay-spring) !important;
}

.bani-item:hover {
    transform: translateX(4px) scale(1.01) !important;
}

.bani-item.completed {
    background: linear-gradient(145deg, #E8FFE8, #D0F5D0) !important;
    border-color: rgba(var(--clay-green-rgb), 0.25) !important;
}

[data-theme="dark"] .bani-item,
[data-theme="dark"] .bani-item {
    background: linear-gradient(145deg, rgba(50, 50, 52, 0.8), rgba(38, 38, 40, 0.8)) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        6px 6px 12px rgba(0, 0, 0, 0.25),
        -6px -6px 12px rgba(255, 255, 255, 0.03),
        inset 2px 2px 4px rgba(255, 255, 255, 0.05),
        inset -2px -2px 4px rgba(0, 0, 0, 0.10) !important;
}

/* ─── SECTION 8: MALA COUNTER — CLAY RING ─── */
.mala-center-btn {
    background: linear-gradient(145deg, #FFFFFF, #E8E8EC) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.08),
        -12px -12px 24px rgba(255, 255, 255, 0.90),
        inset 6px 6px 12px rgba(255, 255, 255, 1),
        inset -6px -6px 12px rgba(0, 0, 0, 0.04) !important;
    transition: background-color 0.15s var(--clay-spring) !important, color 0.15s var(--clay-spring) !important;
}

[data-theme="dark"] .mala-center-btn,
[data-theme="dark"] .mala-center-btn {
    background: linear-gradient(145deg, #3A3A3C, #2C2C2E) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.30),
        -12px -12px 24px rgba(255, 255, 255, 0.05),
        inset 6px 6px 12px rgba(255, 255, 255, 0.08),
        inset -6px -6px 12px rgba(0, 0, 0, 0.15) !important;
}

.mala-center-btn:active {
    transform: translate(-50%, -50%) scale(0.92) !important;
    box-shadow:
        inset 8px 8px 16px rgba(0, 0, 0, 0.15),
        inset -8px -8px 16px rgba(255, 255, 255, 0.5) !important;
}

.mala-progress-bar {
    background: linear-gradient(145deg, #E0E0E4, #F0F0F5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 9999px !important;
    box-shadow:
        inset 3px 3px 8px rgba(0, 0, 0, 0.10),
        inset -2px -2px 6px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(255, 255, 255, 0.7) !important;
}

.mala-progress-fill {
    box-shadow:
        inset 2px 2px 6px rgba(0, 0, 0, 0.15),
        inset -1px -1px 4px rgba(255, 255, 255, 0.4) !important;
}

/* ─── SECTION 9: TAB BAR — CLAY DOCK ─── */
.tab-bar {
    z-index: 200 !important;
}

.tab-bar-blur {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 240, 245, 0.92)) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border-top: none !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow:
        0 -12px 24px rgba(0, 0, 0, 0.05),
        0 12px 24px rgba(255, 255, 255, 1),
        inset 4px 4px 12px rgba(255, 255, 255, 1),
        inset -4px -4px 12px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-bottom: none !important;
}

[data-theme="dark"] .tab-bar-blur,
[data-theme="dark"] .tab-bar-blur,
[data-theme="saffron"] .tab-bar-blur,
[data-theme="gold"] .tab-bar-blur {
    background: linear-gradient(145deg, rgba(44, 44, 46, 0.92), rgba(28, 28, 30, 0.92)) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 -12px 24px rgba(0, 0, 0, 0.25),
        0 12px 24px rgba(255, 255, 255, 0.03),
        inset 4px 4px 12px rgba(255, 255, 255, 0.08),
        inset -4px -4px 12px rgba(0, 0, 0, 0.10) !important;
}

.tab-item.active {
    background: linear-gradient(145deg, #FFFFFF, #E8E8EC) !important;
    border-radius: 16px !important;
    box-shadow:
        4px 4px 12px rgba(0, 0, 0, 0.08),
        -4px -4px 12px rgba(255, 255, 255, 0.85),
        inset 2px 2px 4px rgba(255, 255, 255, 1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="dark"] .tab-item.active,
[data-theme="dark"] .tab-item.active {
    background: linear-gradient(145deg, #3A3A3C, #2C2C2E) !important;
    box-shadow:
        4px 4px 12px rgba(0, 0, 0, 0.30),
        -4px -4px 12px rgba(255, 255, 255, 0.04),
        inset 2px 2px 4px rgba(255, 255, 255, 0.06),
        inset -2px -2px 4px rgba(0, 0, 0, 0.12) !important;
}

/* ─── SECTION 10: PERIOD TABS — CLAY SEGMENTED CONTROL ─── */
.time-period-tabs {
    background: linear-gradient(145deg, #E0E0E4, #F0F0F5) !important;
    border-radius: 20px !important;
    padding: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        inset 4px 4px 12px rgba(0, 0, 0, 0.08),
        inset -3px -3px 8px rgba(255, 255, 255, 0.8),
        0 3px 8px rgba(255, 255, 255, 0.8) !important;
}

.period-tab.active {
    background: linear-gradient(145deg, #FFFFFF, #F0F0F5) !important;
    border-radius: 16px !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.08),
        -4px -4px 10px rgba(255, 255, 255, 0.85),
        inset 2px 2px 4px rgba(255, 255, 255, 1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .time-period-tabs,
[data-theme="dark"] .time-period-tabs {
    background: linear-gradient(145deg, #1A1A1C, #2C2C2E) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        inset 4px 4px 12px rgba(0, 0, 0, 0.25),
        inset -3px -3px 8px rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .period-tab.active,
[data-theme="dark"] .period-tab.active {
    background: linear-gradient(145deg, #3A3A3C, #2C2C2E) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.30),
        -4px -4px 10px rgba(255, 255, 255, 0.04),
        inset 2px 2px 4px rgba(255, 255, 255, 0.06),
        inset -2px -2px 4px rgba(0, 0, 0, 0.12) !important;
}

/* ─── SECTION 11: STAT ITEMS — CLAY INSET WELLS ─── */
.card-footer {
    background: linear-gradient(145deg, #E5E5EA, #F0F0F5) !important;
    border-radius: var(--clay-radius-inner) !important;
    margin: 16px -8px -8px !important;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        inset 4px 4px 12px rgba(0, 0, 0, 0.06),
        inset -3px -3px 8px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .card-footer,
[data-theme="dark"] .card-footer {
    background: linear-gradient(145deg, #1A1A1C, #222224) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow:
        inset 4px 4px 12px rgba(0, 0, 0, 0.20),
        inset -3px -3px 8px rgba(255, 255, 255, 0.02) !important;
}

/* ─── SECTION 12: MODALS — CLAY SHEETS ─── */
.modal-container {
    background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F7 100%) !important;
    border-radius: 32px 32px 0 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow:
        0 -16px 32px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(255, 255, 255, 1),
        inset 4px 4px 16px rgba(255, 255, 255, 1),
        inset -4px -4px 16px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="dark"] .modal-container,
[data-theme="dark"] .modal-container {
    background: linear-gradient(180deg, #2C2C2E 0%, #1C1C1E 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 -16px 32px rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(255, 255, 255, 0.03),
        inset 4px 4px 16px rgba(255, 255, 255, 0.08),
        inset -4px -4px 16px rgba(0, 0, 0, 0.15) !important;
}

/* ─── SECTION 13: ACHIEVEMENT CARDS — MINI CLAY ─── */
.achievement-card {
    background: linear-gradient(145deg, #FFFFFF, #F0F0F5) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: var(--clay-radius-inner) !important;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.06),
        -8px -8px 16px rgba(255, 255, 255, 0.85),
        inset 4px 4px 8px rgba(255, 255, 255, 1),
        inset -4px -4px 8px rgba(0, 0, 0, 0.03) !important;
    transition: background-color 0.3s var(--clay-spring) !important, color 0.3s var(--clay-spring) !important, transform 0.3s var(--clay-spring) !important;
}

.achievement-card.locked {
    opacity: 0.5 !important;
    filter: grayscale(0.8) !important;
}

.achievement-card:not(.locked) {
    box-shadow:
        8px 8px 16px rgba(var(--clay-gold-rgb), 0.20),
        -8px -8px 16px rgba(255, 255, 255, 0.85),
        inset 4px 4px 8px rgba(255, 255, 255, 1) !important;
}

[data-theme="dark"] .achievement-card,
[data-theme="dark"] .achievement-card {
    background: linear-gradient(145deg, #3A3A3C, #2A2A2C) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.30),
        -8px -8px 16px rgba(255, 255, 255, 0.04),
        inset 4px 4px 8px rgba(255, 255, 255, 0.05) !important;
}

/* ─── SECTION 14: STREAK DISPLAY ─── */
.streak-number {
    text-shadow: 0 4px 12px rgba(var(--clay-orange-rgb), 0.30) !important;
}

/* ─── SECTION 15: TOAST — CLAY PILL ─── */
.toast {
    background: linear-gradient(145deg, #FFFFFF, #F0F0F5) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 20px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.08),
        -12px -12px 24px rgba(255, 255, 255, 0.9),
        inset 6px 6px 12px rgba(255, 255, 255, 1),
        inset -6px -6px 12px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .toast,
[data-theme="dark"] .toast {
    background: linear-gradient(145deg, #3A3A3C, #2C2C2E) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.40),
        -12px -12px 24px rgba(255, 255, 255, 0.03),
        inset 6px 6px 12px rgba(255, 255, 255, 0.06),
        inset -6px -6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ─── SECTION 16: REPORT/ALARM INNER ELEMENTS ─── */
.report-summary-item,
.alarm-stat-card,
.mala-goal-container,
.mala-option,
.goal-preset,
.setting-item,
.settings-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(240, 240, 245, 0.6)) !important;
    border: 1px solid rgba(255, 255, 255, 0.50) !important;
    border-radius: 16px !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.05),
        -4px -4px 10px rgba(255, 255, 255, 0.8),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 10px !important;
    padding: 14px !important;
}

[data-theme="dark"] .report-summary-item,
[data-theme="dark"] .alarm-stat-card,
[data-theme="dark"] .mala-goal-container,
[data-theme="dark"] .mala-option,
[data-theme="dark"] .goal-preset,
[data-theme="dark"] .setting-item,
[data-theme="dark"] .settings-section,
[data-theme="dark"] .report-summary-item,
[data-theme="dark"] .alarm-stat-card,
[data-theme="dark"] .mala-goal-container,
[data-theme="dark"] .mala-option,
[data-theme="dark"] .goal-preset,
[data-theme="dark"] .setting-item,
[data-theme="dark"] .settings-section {
    background: linear-gradient(145deg, rgba(50, 50, 52, 0.6), rgba(38, 38, 40, 0.6)) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.25),
        -4px -4px 10px rgba(255, 255, 255, 0.03),
        inset 2px 2px 4px rgba(255, 255, 255, 0.04) !important;
}

.mala-option.active {
    background: linear-gradient(145deg, #FFE8C8, #FFD898) !important;
    border-color: rgba(var(--clay-gold-rgb), 0.30) !important;
    box-shadow:
        4px 4px 10px rgba(var(--clay-gold-rgb), 0.20),
        -4px -4px 10px rgba(255, 255, 255, 0.85),
        inset 2px 2px 4px rgba(255, 255, 255, 1) !important;
}

[data-theme="dark"] .mala-option.active,
[data-theme="dark"] .mala-option.active {
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.30),
        -4px -4px 10px rgba(255, 255, 255, 0.05),
        inset 2px 2px 4px rgba(255, 255, 255, 0.08) !important;
}

/* ─── SECTION 17: WEEK VIEW DAYS ─── */
.week-days .day-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(240, 240, 245, 0.5)) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 14px !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.05),
        -4px -4px 10px rgba(255, 255, 255, 0.8),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9) !important;
}

/* ─── SECTION 18: INPUTS — CLAY INSET ─── */
input[type="text"],
input[type="number"],
select,
.search-input,
.setting-select {
    background: linear-gradient(145deg, #E5E5EA, #F0F0F5) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.06),
        inset -4px -4px 10px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(255, 255, 255, 0.7) !important;
    transition: background-color 0.3s var(--clay-spring) !important, color 0.3s var(--clay-spring) !important, transform 0.3s var(--clay-spring) !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
.search-input:focus {
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.08),
        inset -4px -4px 10px rgba(255, 255, 255, 0.8),
        0 0 0 2px rgba(var(--clay-gold-rgb), 0.35) !important;
    border-color: rgba(var(--clay-gold-rgb), 0.5) !important;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] .search-input,
[data-theme="dark"] .setting-select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] select,
[data-theme="dark"] .setting-select {
    background: linear-gradient(145deg, #1A1A1C, #2C2C2E) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.20),
        inset -4px -4px 10px rgba(255, 255, 255, 0.03) !important;
}

/* ─── SECTION 19: ANIMATIONS ─── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── SECTION 20: VISIBILITY FIXES ─── */
/* Fix for light mode time display text visibility */
body:not([data-theme="dark"]) .amritvela-time-display .current-hour,
body:not([data-theme="dark"]) .amritvela-time-display .current-minute,
body:not([data-theme="dark"]) .amritvela-time-display .time-separator,
body:not([data-theme="dark"]) .amritvela-time-display .time-period,
body:not([data-theme="dark"]) .status-pill,
body:not([data-theme="dark"]) .status-pill .streak-count,
body:not([data-theme="dark"]) .status-pill .current-time,
body:not([data-theme="dark"]) .header-btn {
    color: #1d1d1f !important;
}

body:not([data-theme="dark"]) .status-pill .status-divider {
    background-color: rgba(29, 29, 31, 0.3) !important;
}

body:not([data-theme="dark"]) .complete-all-btn,
body:not([data-theme="dark"]) .add-bani-btn {
    color: #1d1d1f !important;
}

/* ─── SECTION 21: STREAK CARD COMPACT MODE ─── */
.streak-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FFFFFF, #E8E8EC) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.06),
        -4px -4px 10px rgba(255, 255, 255, 0.85),
        inset 2px 2px 4px rgba(255, 255, 255, 1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02) !important;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

[data-theme="dark"] .streak-action-btn,
[data-theme="dark"] .streak-action-btn {
    background: linear-gradient(145deg, #3A3A3C, #2C2C2E) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.30),
        -4px -4px 10px rgba(255, 255, 255, 0.04),
        inset 2px 2px 4px rgba(255, 255, 255, 0.06),
        inset -2px -2px 4px rgba(0, 0, 0, 0.12) !important;
}

.streak-action-btn svg {
    width: 20px;
    height: 20px;
}

.streak-action-btn.rotated {
    transform: rotate(180deg) !important;
}

.streak-body .streak-stats-row,
.streak-body .achievements-section {
    display: none !important;
}

.streak-body.expanded .streak-stats-row {
    display: flex !important;
    animation: fadeInUp 0.3s ease forwards;
}

.streak-body.expanded .achievements-section {
    display: block !important;
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ─── SECTION 22: ACCESSIBILITY ─── */
@media (prefers-reduced-motion: reduce) {

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

button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(var(--clay-gold-rgb), 0.6);
    outline-offset: 2px;
}

/* ─── SECTION 23: REPORT TABS— CLAY ─── */
.report-tabs {
    background: linear-gradient(145deg, #E0E0E4, #F0F0F5) !important;
    border-radius: 14px !important;
    padding: 3px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow:
        inset 4px 4px 10px rgba(0, 0, 0, 0.06),
        inset -4px -4px 10px rgba(255, 255, 255, 0.8) !important;
}

.report-tab.active {
    background: linear-gradient(145deg, #FFFFFF, #F0F0F5) !important;
    border-radius: 12px !important;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.08),
        -4px -4px 10px rgba(255, 255, 255, 0.85),
        inset 2px 2px 4px rgba(255, 255, 255, 1) !important;
}

/* ─── SECTION 24: CHART BARS — CLAY ─── */
.chart-bar {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ─── SECTION 25: REPORT INSIGHT — CLAY ─── */
.report-insight {
    background: linear-gradient(145deg, rgba(255, 248, 240, 0.8), rgba(255, 240, 230, 0.8)) !important;
    border: 1px solid rgba(var(--clay-gold-rgb), 0.3) !important;
    border-left: 4px solid rgba(var(--clay-gold-rgb), 0.6) !important;
    border-radius: 16px !important;
    box-shadow:
        6px 6px 16px rgba(var(--clay-gold-rgb), 0.15),
        -6px -6px 16px rgba(255, 255, 255, 0.85),
        inset 2px 2px 4px rgba(255, 255, 255, 1) !important;
}

[data-theme="dark"] .report-insight,
[data-theme="dark"] .report-insight {
    background: linear-gradient(145deg, rgba(60, 48, 30, 0.5), rgba(40, 32, 20, 0.5)) !important;
    border-color: rgba(var(--clay-gold-rgb), 0.20) !important;
    box-shadow:
        6px 6px 16px rgba(0, 0, 0, 0.25),
        -6px -6px 16px rgba(255, 255, 255, 0.03),
        inset 2px 2px 4px rgba(255, 255, 255, 0.05) !important;
}

/* ─── SECTION 26: ALARM COLLAPSIBLE ─── */
.alarm-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.alarm-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.alarm-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary, #666);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alarm-toggle-btn.rotated svg {
    transform: rotate(180deg);
}

[data-theme="dark"] .alarm-toggle-btn,
[data-theme="dark"] .alarm-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
}

.alarm-collapsed-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px 12px;
    font-size: 13px;
    transition: opacity 0.25s, max-height 0.3s;
}

.alarm-collapsed-summary .alarm-summary-stat {
    font-weight: 700;
    color: var(--system-blue, #007AFF);
    font-size: 14px;
}

.alarm-collapsed-summary .alarm-summary-label {
    color: var(--text-tertiary, #86868b);
    font-size: 12px;
}

.alarm-collapsed-summary .alarm-summary-divider {
    color: var(--text-tertiary, #86868b);
    margin: 0 2px;
}

.alarm-body {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.alarm-body.collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
}

.alarm-body.expanded {
    max-height: 2000px !important;
    opacity: 1;
}

.alarm-collapsed-summary.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0 16px;
    overflow: hidden;
}

/* ─── SECTION 27: MALA MENU PERFORMANCE ─── */
.mala-menu-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

.mala-menu-overlay.pre-rendered {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.mala-menu-overlay.pre-rendered.visible {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
}

.mala-menu-overlay.pre-rendered .mala-menu {
    transform: translateY(100%);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mala-menu-overlay.pre-rendered.visible .mala-menu {
    transform: translateY(0);
}

/* ─── SECTION 28: WEEK VIEW STICKY + SCROLL ─── */
.week-attendance-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;

    gap: 8px;
    padding-bottom: 8px;
}

.week-attendance-grid .week-day-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    min-width: 72px;
}

.week-summary {
    position: sticky !important;
    bottom: 0;
    background: var(--glass-bg, rgba(255, 255, 255, 0.9));
    padding-top: 12px;
    border-top: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
    z-index: 2;
}

[data-theme="dark"] .week-summary,
[data-theme="dark"] .week-summary {
    background: var(--glass-bg, rgba(44, 44, 46, 0.95));
}

/* ─── SECTION 29: YESTERDAY BUTTON ─── */
.yesterday-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
    color: var(--system-blue, #007AFF);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.yesterday-btn:active {
    transform: scale(0.95);
    background: rgba(0, 122, 255, 0.08);
}

[data-theme="dark"] .yesterday-btn,
[data-theme="dark"] .yesterday-btn {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

/* Date strip popup */
.date-strip-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.15s ease-out;
}

.date-strip-container {
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    background: var(--glass-bg, #fff);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .date-strip-container,
[data-theme="dark"] .date-strip-container {
    background: #1c1c1e;
}

.date-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .date-strip-header,
[data-theme="dark"] .date-strip-header {
    border-color: rgba(255, 255, 255, 0.08);
}

.date-strip-header h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.date-strip-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.date-strip-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 16px 20px;
    scroll-snap-type: x mandatory;

}

.date-chip {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
    cursor: pointer;
    scroll-snap-align: center;
    min-width: 56px;
    transition: background 0.15s, border-color 0.15s;
}

.date-chip:active,
.date-chip.selected {
    background: rgba(0, 122, 255, 0.1);
    border-color: var(--system-blue, #007AFF);
}

.date-chip .chip-day {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.date-chip .chip-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.date-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--system-green, #34C759);
}

.date-chip .chip-dot.incomplete {
    background: var(--system-red, #FF3B30);
}

.date-chip .chip-dot.none {
    background: transparent;
}

[data-theme="dark"] .date-chip,
[data-theme="dark"] .date-chip {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

/* Day detail modal */
.day-detail-body {
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
}

.day-detail-card {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .day-detail-card,
[data-theme="dark"] .day-detail-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.day-detail-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-secondary);
}

.day-detail-card .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.day-detail-card .detail-value {
    font-weight: 600;
}

.day-detail-card .detail-value.complete {
    color: var(--system-green, #34C759);
}

.day-detail-card .detail-value.incomplete {
    color: var(--system-red, #FF3B30);
}

/* ─── SECTION 30: JAPTAP STREAK PENALTY VISUAL ─── */
.streak-fire.penalty-active .fire-emoji {
    filter: hue-rotate(200deg) saturate(1.5);
}

.streak-fire.penalty-active .streak-count {
    color: #5AC8FA !important;
}

/* ─── SECTION 31: CARRY-FORWARD BADGE ─── */
.bani-carry-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 149, 0, 0.12);
    color: #FF9500;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
}

/* ═══ Yesterday Button ═══ */
.yesterday-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.6));
    color: var(--text-secondary, #666);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 8px;
}

.yesterday-btn:active {
    background: var(--accent, #007AFF);
    color: #fff;
}

/* ═══ Date Strip Overlay ═══ */
.date-strip-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

.date-strip-container {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg, #fff);
    border-radius: 20px 20px 0 0;
    padding: 16px 12px 24px;
    animation: slideUp 0.2s ease;
}

.date-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 12px;
}

.date-strip-header h3 {
    margin: 0;
    font-size: 16px;
}

.date-strip-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-tertiary);
    cursor: pointer;
}

.date-strip-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;

}

.date-strip-scroll::-webkit-scrollbar {
    display: none;
}

/* ═══ Date Chips ═══ */
.date-chip {
    flex-shrink: 0;
    min-width: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px 10px;
    border-radius: 14px;
    background: var(--card-bg, rgba(255, 255, 255, 0.7));
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
    cursor: pointer;
    scroll-snap-align: start;
    transition: background 0.15s, transform 0.1s;
}

.date-chip:active {
    transform: scale(0.95);
    background: var(--accent-bg, rgba(0, 122, 255, 0.1));
}

.chip-day {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.chip-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34C759;
}

.chip-dot.incomplete {
    background: #FF9500;
}

.chip-dot.none {
    background: var(--text-tertiary, #ccc);
    opacity: 0.3;
}

/* ═══ Stacked Day Detail Overlay (above date strip) ═══ */
.day-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.day-detail-modal {
    width: 90%;
    max-width: 400px;
    max-height: 70vh;
    background: var(--glass-bg, #fff);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.day-detail-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.day-detail-modal .modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.day-detail-modal .modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.day-detail-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ═══ Day Detail Card ═══ */
.day-detail-card {
    background: var(--card-bg, rgba(255, 255, 255, 0.7));
    border: 1px solid var(--glass-border, rgba(0, 0, 0, 0.06));
    border-radius: 14px;
    padding: 12px 14px;
}

[data-theme="dark"] .day-detail-modal,
[data-theme="dark"] .day-detail-modal {
    background: #1c1c1e;
}

.day-detail-card h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
}

.detail-value.complete {
    color: #34C759;
}

.detail-value.incomplete {
    color: #FF3B30;
}

/* ═══ Pre-rendered Mala Menu ═══ */
.mala-menu-overlay.pre-rendered {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mala-menu-overlay.pre-rendered.visible {
    opacity: 1;
}

/* ═══ 90 FPS Performance Optimizations ═══ */

/* GPU acceleration for animated elements */
.progress-ring-circle,
.bead,
.modal-container,
.date-strip-container,
.mala-menu,
.week-day-card,
.chart-bar .bar-fill,
.goal-fill,
.wake-bar-fill {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Containment for isolated components */
.card,
.modal-overlay,
.date-strip-overlay,
.mala-menu-overlay,
.week-attendance-grid {
    contain: layout style;
}

/* Content visibility for off-screen sections */
@media (prefers-reduced-motion: no-preference) {

    .report-content:not(.active),
    .collapsible-content.collapsed {
        content-visibility: auto;
        contain-intrinsic-size: 0 300px;
    }
}

/* Smooth scrolling with momentum */
.date-strip-scroll,
.week-attendance-grid {
    scroll-behavior: smooth;

    overscroll-behavior-x: contain;
}

/* Reduce paint areas */
.bani-item,
.week-day-card,
.date-chip {
    contain: layout;
}

/* Optimized transitions for 90 FPS */
.bar-fill,
.goal-fill,
.wake-bar-fill,
.progress-ring-circle {
    transition: height 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

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

    .progress-ring-circle,
    .bead,
    .modal-container {
        will-change: auto;
    }
}

/* ─── REMOVE PUSH ANIMATION DELAY AND SCALE ─── */
button,
.card,
.mala-center-btn,
.present-btn,
.header-btn,
.time-period-tabs,
.period-tab {
    transition: transform 0s, background 0.1s, box-shadow 0.1s !important;
}

button:active,
.card:active,
.header-btn:active,
.present-btn:active,
.complete-all-btn:active,
.add-bani-btn:active,
.mala-action-btn:active,
.mala-center-btn:active,
.tab-item:active {
    transform: none !important;
}

/* Maintain translateY for elements that explicitly translate on hover/active, but without the scale */
.card:active {
    transform: translateY(2px) !important;
}

/* ─── REMOVE CLAYMORPHISM FROM STAT BUTTON ─── */
#statsBtn {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] #statsBtn,
[data-theme="dark"] #statsBtn {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: var(--text-primary) !important;
}

/* ─── GURBANI GPT LINK BUTTON ─── */
.bani-vichar-btn {
    background: none !important;
    border: none !important;
    color: var(--text-tertiary, #86868b) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px !important;
    border-radius: 50% !important;
    margin-right: 8px;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.15s, background-color 0.15s, transform 0.1s !important;
    flex-shrink: 0;
}

.bani-vichar-btn:hover {
    opacity: 1;
    color: var(--system-blue, #007AFF) !important;
    background: rgba(0, 122, 255, 0.08) !important;
}

.bani-vichar-btn:active {
    transform: scale(0.9) !important;
}

[data-theme="dark"] .bani-vichar-btn:hover {
    background: rgba(10, 132, 255, 0.15) !important;
    color: #0A84FF !important;
}

/* ─── MY POTHI REDIRECT CARD POLISH ─── */
.pothi-redirect-card {
    position: relative !important;
    background: linear-gradient(135deg, rgba(212, 148, 58, 0.12) 0%, rgba(255, 160, 50, 0.05) 100%) !important;
    border: 1px solid rgba(212, 148, 58, 0.25) !important;
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, var(--clay-shadow-soft, 0.08)),
        -12px -12px 24px rgba(255, 255, 255, var(--clay-highlight, 0.9)),
        inset 4px 4px 8px rgba(255, 255, 255, 0.8),
        inset -4px -4px 8px rgba(212, 148, 58, 0.1) !important;
    border-radius: var(--clay-radius-card, 24px) !important;
    transition: transform 0.3s var(--clay-spring, cubic-bezier(0.34, 1.56, 0.64, 1)), box-shadow 0.3s ease, border-color 0.3s ease !important;
    cursor: pointer;
    text-decoration: none;
    display: block;
    margin-bottom: 24px;
}

[data-theme="dark"] .pothi-redirect-card {
    background: linear-gradient(135deg, rgba(212, 148, 58, 0.15) 0%, rgba(255, 160, 50, 0.08) 100%) !important;
    border-color: rgba(212, 148, 58, 0.3) !important;
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.35),
        -12px -12px 24px rgba(255, 255, 255, 0.03),
        inset 4px 4px 8px rgba(255, 255, 255, 0.05),
        inset -4px -4px 8px rgba(0, 0, 0, 0.2) !important;
}

.pothi-redirect-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    border-color: rgba(212, 148, 58, 0.45) !important;
    box-shadow: 
        16px 16px 28px rgba(0, 0, 0, var(--clay-shadow-mid, 0.12)),
        -16px -16px 28px rgba(255, 255, 255, var(--clay-highlight, 0.9)),
        inset 4px 4px 8px rgba(255, 255, 255, 0.9),
        inset -4px -4px 8px rgba(212, 148, 58, 0.15) !important;
}

.pothi-redirect-card:active {
    transform: scale(0.98) !important;
}

/* Arrow Slide Animation */
.pothi-redirect-card .card-arrow {
    transition: transform 0.3s var(--clay-spring, cubic-bezier(0.34, 1.56, 0.64, 1)), color 0.3s ease !important;
    color: var(--text-secondary, #86868b);
}

.pothi-redirect-card:hover .card-arrow {
    transform: translateX(6px) !important;
    color: var(--ac-gold, #D4943A) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   iOS-STYLE ADAPTIVE GLASSMORPHIC BACKUP POPUP (LIGHT & DARK THEMES)
   ═══════════════════════════════════════════════════════════════════════════ */
#exportModal.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100000 !important; /* Above header & bottom navigation bar */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

#exportModal.modal.active,
#exportModal.modal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

#exportModal .modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 1 !important;
}

/* Light Theme / Default Card Styling */
#exportModal .modal-content.export-modal-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 420px !important;
    max-height: calc(100vh - 40px) !important;
    display: flex !important;
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.96) !important;
    background-image: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(255, 255, 255, 0.95)) !important;
    border: 1px solid rgba(212, 148, 58, 0.3) !important;
    border-radius: 28px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #1d1d1f !important;
}

/* Dark Theme Card Overrides */
[data-theme="dark"] #exportModal .modal-content.export-modal-content {
    background: #1c1c1e !important;
    background-image: linear-gradient(145deg, rgba(255, 215, 0, 0.06), rgba(30, 30, 40, 0.98)) !important;
    border: 1px solid rgba(255, 215, 0, 0.35) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 215, 0, 0.18) !important;
    color: #ffffff !important;
}

#exportModal.modal.active .modal-content,
#exportModal.modal.show .modal-content {
    transform: scale(1) translateY(0) !important;
}

#exportModal .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 24px 16px 24px !important;
    border-bottom: 1px solid rgba(120, 120, 128, 0.12) !important;
}

#exportModal .modal-title {
    margin: 0 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

[data-theme="dark"] #exportModal .modal-title {
    color: #ffffff !important;
}

#exportModal .modal-close {
    background: rgba(120, 120, 128, 0.14) !important;
    border: none !important;
    color: #1d1d1f !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

[data-theme="dark"] #exportModal .modal-close {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

#exportModal .modal-close:hover {
    background: rgba(255, 59, 48, 0.2) !important;
    color: #FF3B30 !important;
    transform: scale(1.08) !important;
}

#exportModal .export-modal-body {
    padding: 20px 24px !important;
    overflow-y: auto !important;
}

#exportModal .export-info {
    text-align: center !important;
}

#exportModal .export-icon {
    font-size: 48px !important;
    margin-bottom: 8px !important;
    filter: drop-shadow(0 4px 12px rgba(229, 149, 0, 0.35)) !important;
}

#exportModal .export-message {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 16px 0 !important;
    color: #1d1d1f !important;
}

[data-theme="dark"] #exportModal .export-message {
    color: #ffffff !important;
}

#exportModal .export-details-box {
    background: rgba(242, 242, 247, 0.8) !important;
    border: 1px solid rgba(212, 148, 58, 0.2) !important;
    border-radius: 18px !important;
    padding: 16px 20px !important;
    text-align: left !important;
    margin-bottom: 16px !important;
}

[data-theme="dark"] #exportModal .export-details-box {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 215, 0, 0.25) !important;
}

#exportModal .export-details-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #D4943A !important;
    margin-bottom: 10px !important;
}

[data-theme="dark"] #exportModal .export-details-title {
    color: #ffd700 !important;
}

#exportModal .export-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    color: #3a3a3c !important;
    margin-bottom: 8px !important;
}

[data-theme="dark"] #exportModal .export-item {
    color: rgba(255, 255, 255, 0.9) !important;
}

#exportModal .export-item span {
    color: #34C759 !important;
    font-weight: 700 !important;
}

#exportModal .export-filename-pill {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px dashed rgba(212, 148, 58, 0.4) !important;
    padding: 9px 13px !important;
    border-radius: 12px !important;
    font-family: monospace !important;
    font-size: 12px !important;
    color: #D4943A !important;
    word-break: break-all !important;
    margin-top: 10px !important;
}

[data-theme="dark"] #exportModal .export-filename-pill {
    background: rgba(0, 0, 0, 0.35) !important;
    color: #ffd700 !important;
}

#exportModal .export-modal-footer {
    display: flex !important;
    gap: 10px !important;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)) 24px !important;
    border-top: 1px solid rgba(120, 120, 128, 0.12) !important;
    background: rgba(249, 249, 249, 0.6) !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
}

[data-theme="dark"] #exportModal .export-modal-footer {
    background: rgba(0, 0, 0, 0.25) !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

#exportModal .export-modal-footer .btn {
    padding: 12px 18px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

#exportModal .btn-close-modal {
    background: rgba(120, 120, 128, 0.12) !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] #exportModal .btn-close-modal {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

#exportModal .btn-copy-json {
    background: rgba(212, 148, 58, 0.12) !important;
    color: #D4943A !important;
    border: 1px solid rgba(212, 148, 58, 0.35) !important;
}

#exportModal .btn-copy-json:hover {
    background: rgba(212, 148, 58, 0.22) !important;
    transform: translateY(-1px) !important;
}

#exportModal .btn-save-backup {
    background: linear-gradient(135deg, #E59500, #FF7B00) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(229, 149, 0, 0.35) !important;
}

#exportModal .btn-save-backup:hover {
    box-shadow: 0 6px 18px rgba(229, 149, 0, 0.5) !important;
    transform: translateY(-1px) !important;
}

/* ═══ Pothi Card Navigation Pulse Glow ═══ */
@keyframes pothiGlowPulse {
    0% {
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 165, 0, 0.4);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
        transform: scale(1);
    }
}

.pothi-highlight-pulse {
    animation: pothiGlowPulse 1.4s ease-in-out !important;
    border-color: rgba(255, 215, 0, 0.7) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENHANCED WEEKLY REPORT CHART WITH AMRITVELA BADGES & GRADIENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.report-chart {
    position: relative !important;
    background: var(--card-bg, rgba(255, 255, 255, 0.85)) !important;
    border: 1px solid var(--border-color, rgba(212, 148, 58, 0.2)) !important;
    border-radius: 24px !important;
    padding: 20px !important;
    box-shadow: var(--shadow-sm, 0 8px 24px rgba(0, 0, 0, 0.06)) !important;
}

.chart-bars {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    height: 125px !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
}

.chart-bar {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: 100% !important;
    justify-content: flex-end !important;
    position: relative !important;
    cursor: pointer !important;
}

.chart-amritvela-badge {
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
    transition: transform 0.2s ease !important;
}

.chart-amritvela-badge.attended {
    filter: drop-shadow(0 2px 6px rgba(255, 149, 0, 0.6)) !important;
    transform: scale(1.1) !important;
    animation: amritvelaBadgeGlow 2s infinite ease-in-out !important;
}

@keyframes amritvelaBadgeGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 6px rgba(255, 149, 0, 0.5)); }
    50% { transform: scale(1.18); filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.8)); }
}

.chart-amritvela-badge.missed {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: rgba(120, 120, 128, 0.2) !important;
    margin-bottom: 8px !important;
}

.summary-bar {
    flex: 1;
    height: 10px !important;
    background: rgba(0, 0, 0, 0.07) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

[data-theme="dark"] .summary-bar {
    background: rgba(255, 255, 255, 0.1) !important;
}

.summary-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #D4A84B, #F4D03F) !important;
    border-radius: 6px !important;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.bar-fill-track {
    width: 100% !important;
    max-width: 24px !important;
    height: calc(100% - 28px) !important;
    background: rgba(0, 0, 0, 0.07) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .bar-fill-track {
    background: rgba(255, 255, 255, 0.08) !important;
}

.bar-fill {
    width: 100% !important;
    border-radius: 12px !important;
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.bar-fill.full {
    background: linear-gradient(to top, #34C759, #30D158) !important;
    box-shadow: 0 0 10px rgba(52, 199, 89, 0.4) !important;
}

.bar-fill.has-amritvela {
    background: linear-gradient(to top, #FF9500, #FFCC00, #34C759) !important;
    box-shadow: 0 0 12px rgba(255, 149, 0, 0.5) !important;
}

.bar-fill.partial {
    background: linear-gradient(to top, #E59500, #FFB340) !important;
    box-shadow: 0 0 8px rgba(229, 149, 0, 0.3) !important;
}

.bar-fill.empty {
    background: transparent !important;
    height: 0% !important;
    box-shadow: none !important;
}

/* Tooltip on hover / tap */
.chart-bar:hover .chart-amritvela-badge.attended {
    transform: scale(1.3) !important;
}

.chart-bar:hover .bar-fill {
    filter: brightness(1.15) !important;
}

/* Day Labels below chart */
.chart-labels {
    display: flex !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--border-color, rgba(120, 120, 128, 0.15)) !important;
    margin-top: 6px !important;
}

.chart-labels span {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--text-secondary, #86868b) !important;
    text-align: center !important;
    flex: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MY POTHI CARD BANNER & CHIPS (NATIVE CARD STYLE)
   ═══════════════════════════════════════════════════════════════════════════ */
.pothi-chips-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
}

.pothi-chip {
    background: var(--bg-secondary, rgba(245, 245, 247, 0.8)) !important;
    border: 1px solid var(--border-color, rgba(212, 148, 58, 0.2)) !important;
    color: var(--text-primary, #1d1d1f) !important;
    padding: 6px 12px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: var(--font-gurmukhi) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

[data-theme="dark"] .pothi-chip {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 215, 0, 0.25) !important;
    color: #ffffff !important;
}

.pothi-chip:hover {
    transform: translateY(-1px) !important;
    border-color: var(--ac-gold, #D4943A) !important;
}