/* --- IOS DESIGN SYSTEM (v1.1 Final Fix) --- */
:root {
    /* Colors */
    --bg-base: #000000;
    --bg-card: #1c1c1e;
    --bg-glass: rgba(28, 28, 30, 0.75);

    --text-white: #ffffff;
    --text-gray: #8e8e93;
    --text-dark: #48484a;

    --col-blue: #0a84ff;
    --col-green: #30d158;
    --col-orange: #ff9f0a;
    --col-red: #ff453a;
    --col-indigo: #5e5ce6;

    /* Layout */
    --rad-lg: 28px;
    --rad-md: 16px;
    --rad-sm: 10px;
    --safe-top: env(safe-area-inset-top, 20px);
    --safe-bot: env(safe-area-inset-bottom, 20px);
    --nav-h: 80px;

    /* Transitions */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

    /* Native UI */
    color-scheme: dark;
}

/* RESET */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Outfit", sans-serif;
}

body {
    margin: 0;
    background: var(--bg-base);
    color: var(--text-white);
    height: 100vh;
    overflow: hidden;
    user-select: none;
    transition: background 0.5s ease;
}

/* THEME: MONOCHROME (NoFap) */
.monochrome-bg {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

body.mode-nofap .monochrome-bg {
    opacity: 1;
    z-index: 0;
}

body.mode-nofap .app-bg {
    opacity: 0;
}

body.mode-nofap {
    --col-blue: #ffffff;
    --col-green: #666;
    --col-orange: #888;
    --col-red: #fff;
    --text-gray: #555;
}

/* THEME: DAY (Light) */
html.light-mode,
body.light-mode {
    --bg-base: #f2f2f7;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text-white: #000000;
    --text-gray: #8e8e93;
    --text-dark: #1c1c1e;

    /* Slightly darken colors for visibility on white */
    --col-blue: #007aff;
    --col-green: #34c759;
    --col-orange: #ff9500;
    --col-red: #ff3b30;
}

body.light-mode .app-bg {
    opacity: 0.3;
    background: #e5e5ea;
}

body.light-mode .app-bg .blob {
    opacity: 0.2;
}

body.light-mode .ios-tab-bar {
    background: rgba(249, 249, 249, 0.94);
    border-top: 0.5px solid rgba(0, 0, 0, 0.15);
}

body.light-mode .glass-card,
body.light-mode .sheet-modal,
body.light-mode .ios-list-group,
body.light-mode .info-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #000;
}

body.light-mode .profile-name-input {
    border-bottom: 2px solid #ddd;
    color: #000;
}

body.light-mode .stat-info .val,
body.light-mode .cons-data {
    color: #000;
}

body.light-mode .ios-list-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .sheet-handle {
    background: rgba(0, 0, 0, 0.15);
}

/* Light Mode: Side Menu */
body.light-mode .side-menu-drawer {
    background: #f2f2f7;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.15);
}

body.light-mode .menu-btn {
    background: rgba(0, 0, 0, 0.04);
    color: #000;
}

body.light-mode .menu-btn:active {
    background: rgba(0, 0, 0, 0.08);
}

body.light-mode .menu-btn.warning {
    background: rgba(255, 59, 48, 0.08);
    color: var(--col-red);
}

body.light-mode .menu-footer-ver {
    color: #8e8e93;
}

/* Light Mode: Header */
body.light-mode .app-header {
    background: rgba(242, 242, 247, 0.85);
    backdrop-filter: blur(20px);
}

body.light-mode .icon-btn {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}

body.light-mode .profile-btn-header {
    border-color: rgba(0, 0, 0, 0.12);
}

/* Light Mode: Action Cards & Drink Rows */
body.light-mode .action-card {
    background: rgba(0, 0, 0, 0.04);
    color: #000;
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .dashed {
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .drink-row {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

body.light-mode .drink-info strong {
    color: #000;
}

body.light-mode .drink-action i {
    color: #8e8e93;
}

/* Light Mode: Settings Modal */
body.light-mode .ios-settings-modal {
    background: #f2f2f7;
}

/* Light Mode: Badge Items */
body.light-mode .badge-item {
    background: #e5e5ea;
}

/* Light Mode: Status Pill */
body.light-mode .status-pill {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light Mode: Various Text Fixes */
body.light-mode .h-amount,
body.light-mode .ios-list-row span[style*="color: white"],
body.light-mode .ios-list-row span[style*="color:white"] {
    color: #000 !important;
}

/* Light Mode: Undo Button */
body.light-mode .undo-action {
    border-color: rgba(255, 59, 48, 0.3);
}

/* Light Mode: Calendar */
body.light-mode .cal-day.selected {
    background: #000;
    color: #fff;
}

/* Light Mode: Full Page Modals */
body.light-mode .full-page-modal {
    background: #f2f2f7;
}

body.light-mode .page-header {
    background: rgba(242, 242, 247, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Light Mode: Bars in chart */
body.light-mode .bar {
    background: #d1d1d6;
}

body.light-mode .bar::after {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

/* Light Mode: Section Title */
body.light-mode .section-title {
    color: #6e6e73;
}

/* Light Mode: Goal Pill */
body.light-mode .goal-pill {
    background: rgba(0, 0, 0, 0.05);
}

/* Light Mode: Smart Insight Card */
body.light-mode .smart-insight-card {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(94, 92, 230, 0.08));
    border-color: rgba(10, 132, 255, 0.15);
}

/* Light Mode: Toast */
body.light-mode .toast-notification {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

body.mode-nofap .app-header {
    border-bottom: 1px solid #222;
    background: #050505;
}

body.mode-nofap .glass-panel,
body.mode-nofap .ios-tab-bar,
body.mode-nofap .sheet-modal {
    background: #0a0a0a !important;
    border-color: #333 !important;
}

/* DYNAMIC BG */
.app-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.6s ease;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.6;
    animation: drift 20s infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--col-blue);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: var(--col-indigo);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 140px;
    height: 140px;
    background: var(--col-green);
    top: 40%;
    left: 40%;
    opacity: 0.3;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, 50px);
    }
}

/* CONTAINER & SCROLLER */
.app-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.content-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 120px;
    scroll-behavior: smooth;
}

.tab-content {
    display: none;
    animation: slideUp 0.4s var(--ease-spring);
}

.tab-content.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HEADER */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    transition: 0.3s;
    flex-shrink: 0;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

#clock {
    font-size: 1.1rem;
    font-weight: 600;
}

#date {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.profile-btn-header {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    background: none;
    cursor: pointer;
}

.profile-btn-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* STATUS ALERTS */
.status-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: var(--col-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 10px 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-pill.warning {
    background: rgba(255, 69, 58, 0.25);
    color: var(--col-red);
    justify-content: space-between;
}

.pill-action {
    background: var(--col-red);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.7rem;
}

/* HERO COMPONENT */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.circular-progress {
    width: 240px;
    height: 240px;
    position: relative;
}

svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 15px rgba(10, 132, 255, 0.3));
}

circle {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
}

.bg {
    stroke: rgba(255, 255, 255, 0.08);
}

.fg {
    /* stroke is set dynamically by JS now */
    transition: stroke-dashoffset 1.2s var(--ease-spring), stroke 0.5s ease;
}

.inner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#percentage {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    transition: color 0.5s ease;
}

.label {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.goal-pill {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.penalty-tag {
    color: var(--col-orange);
    font-weight: 700;
    font-size: 0.8rem;
}

/* CARDS & GRIDS */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 25px;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--rad-md);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-water i {
    color: var(--col-blue);
    font-size: 1.5rem;
}

.stat-wc i {
    color: var(--col-orange);
    font-size: 1.5rem;
}

.stat-info .val {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.stat-info .unit {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-card {
    background: rgba(44, 44, 46, 0.8);
    border-radius: var(--rad-lg);
    padding: 20px;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 110px;
}

.water-card .card-icon {
    font-size: 1.8rem;
    color: var(--col-blue);
}

.glass-card .card-icon {
    font-size: 1.6rem;
    color: #fff;
    opacity: 0.9;
}

.dashed {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 30px 0 15px 5px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* NOFAP STYLES */
.nf-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
}

.nf-hero {
    width: 190px;
    height: 190px;
    border: 4px solid #333;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
    background: #000;
}

.nf-days {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    color: #fff;
}

.nf-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #555;
    margin-top: 5px;
    font-weight: 600;
}

.nf-message-box {
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 0 30px;
    margin-bottom: 30px;
    min-height: 50px;
}

.nf-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #222;
    cursor: pointer;
    background: #080808;
    color: #fff;
    width: 100%;
}

.nf-btn:active {
    transform: scale(0.96);
    background: #222;
}

.full-width-grid {
    width: 100%;
}

.nf-calendar-panel {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #222;
    background: #050505;
}

.nf-day-marker {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #333;
}

.nf-day-relapse {
    background: #fff;
    color: #000;
    font-weight: 800;
}

.nf-day-clean {
    background: #111;
    color: #444;
}

/* LISTS & UI */
.drink-row {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--rad-md);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 12px;
}

.drink-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.coffee {
    background: rgba(255, 159, 10, 0.2);
    color: var(--col-orange);
}

.tea {
    background: rgba(255, 214, 10, 0.2);
    color: #ffd60a;
}

.mango {
    background: rgba(255, 69, 58, 0.2);
    color: var(--col-red);
}

.soda {
    background: rgba(48, 209, 88, 0.2);
    color: var(--col-green);
}

.ayran {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.cola {
    background: rgba(139, 0, 0, 0.3);
    color: #ff3b30;
}

.energy {
    background: rgba(175, 82, 222, 0.2);
    color: #af52de;
}

.juice {
    background: rgba(255, 149, 0, 0.2);
    color: #ff9500;
}

.milk {
    background: rgba(242, 242, 247, 0.2);
    color: #f2f2f7;
}

.protein {
    background: rgba(90, 200, 250, 0.2);
    color: #5ac8fa;
}

/* VIBRANT CONSUMPTION GRID */
.consumption-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.cons-card {
    padding: 15px;
    border-radius: var(--rad-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.cons-card.water {
    background: rgba(10, 132, 255, 0.15);
    border-color: rgba(10, 132, 255, 0.3);
}

.cons-card.coffee {
    background: rgba(255, 159, 10, 0.15);
    border-color: rgba(255, 159, 10, 0.3);
}

.cons-card.tea {
    background: rgba(255, 214, 10, 0.15);
    border-color: rgba(255, 214, 10, 0.3);
}

.cons-card.mango {
    background: rgba(255, 69, 58, 0.15);
    border-color: rgba(255, 69, 58, 0.3);
}

.cons-card.soda {
    background: rgba(48, 209, 88, 0.15);
    border-color: rgba(48, 209, 88, 0.3);
}

.cons-card.ayran {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cons-card.cola {
    background: rgba(139, 0, 0, 0.2);
    border-color: rgba(139, 0, 0, 0.4);
    color: #ff3b30;
}

.cons-card.energy {
    background: rgba(175, 82, 222, 0.15);
    border-color: rgba(175, 82, 222, 0.3);
}

.cons-card.juice {
    background: rgba(255, 149, 0, 0.15);
    border-color: rgba(255, 149, 0, 0.3);
}

.cons-card.milk {
    background: rgba(242, 242, 247, 0.1);
    border-color: rgba(242, 242, 247, 0.3);
    color: #f2f2f7;
}

.cons-card.protein {
    background: rgba(90, 200, 250, 0.15);
    border-color: rgba(90, 200, 250, 0.3);
}

.cons-header {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cons-data {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-top: auto;
}

.badges-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.badge-item {
    min-width: 90px;
    padding: 12px;
    background: #2c2c2e;
    border-radius: var(--rad-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.3;
}

.badge-item.active {
    opacity: 1;
    border: 1px solid gold;
    background: rgba(255, 215, 0, 0.1);
}

.badge-item i {
    font-size: 1.4rem;
    color: gold;
}

/* CHARTS & CALENDAR */
.bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    gap: 6px;
}

.bar {
    flex: 1;
    background: #3a3a3c;
    border-radius: 6px;
    min-height: 4px;
    transition: height 0.6s var(--ease-spring);
    position: relative;
    cursor: pointer;
}

.bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s var(--ease-spring);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.bar:hover::after,
.bar:active::after {
    opacity: 1;
    transform: translate(-50%, -8px);
}

.bar.today {
    background: var(--col-blue);
}

.days {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-gray);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 50%;
    color: var(--text-white);
}

.cal-day.today {
    background: var(--col-blue);
    color: #fff;
    font-weight: 700;
}

.cal-day.goal-met {
    border: 2px solid var(--col-green);
    color: var(--col-green);
}

.cal-day.selected {
    background: #fff;
    color: #000;
}

/* NAV & MODALS */
.ios-tab-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(22, 22, 24, 0.9);
    backdrop-filter: blur(25px);
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    padding-bottom: var(--safe-bot);
    z-index: 90;
    transition: background 0.5s;
}

.tab-item {
    background: none;
    border: none;
    color: var(--text-gray);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
}

.tab-item.active {
    color: var(--col-blue);
}

.tab-icon {
    font-size: 1.4rem;
}

.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.sheet-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.sheet-modal {
    background: var(--bg-card);
    border-radius: var(--rad-lg) var(--rad-lg) 0 0;
    padding: 25px;
    padding-bottom: calc(var(--safe-bot) + 20px);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-spring);
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.sheet-overlay:not(.hidden) .sheet-modal {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto 25px;
}

.center-modal {
    border-radius: var(--rad-lg);
    margin: auto;
    transform: scale(0.9);
}

.sheet-overlay:not(.hidden) .center-modal {
    transform: scale(1);
}

.settings-group {
    background: #2c2c2e;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    height: 52px;
    font-size: 1rem;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row input,
.setting-row select {
    background: transparent;
    border: none;
    color: var(--col-blue);
    text-align: right;
    font-size: 1rem;
    outline: none;
}

.ios-btn-primary {
    width: 100%;
    background: var(--col-blue);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.ripple:active {
    opacity: 0.7;
    transform: scale(0.98);
    transition: 0.1s;
}

.hidden {
    display: none !important;
}

/* Modal Profile */
.profile-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--col-blue);
    margin-right: 15px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.pro-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

.toggle-row {
    cursor: pointer;
}

.ios-switch {
    width: 50px;
    height: 30px;
    background: #3a3a3c;
    border-radius: 15px;
    position: relative;
    transition: 0.3s;
}

.ios-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: 0.3s var(--ease-spring);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-row.active .ios-switch {
    background: var(--col-green);
}

.toggle-row.active .ios-switch::after {
    transform: translateX(20px);
}

/* --- SIDE MENU & PAGES --- */
.side-menu-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #1c1c1e;
    /* matches bg-card */
    z-index: 150;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: var(--safe-top) 20px 40px;
    display: flex;
    flex-direction: column;
}

.side-menu-drawer.open {
    left: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 15px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--rad-md);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.menu-btn:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.menu-btn.warning {
    color: var(--col-red);
    background: rgba(255, 69, 58, 0.1);
    margin-top: auto;
}

/* THEME TOGGLE IN MENU */
.theme-toggle-btn {
    display: flex !important;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
}

.theme-toggle-track {
    width: 52px;
    height: 28px;
    background: linear-gradient(135deg, #1c1c3a, #2c2c4e);
    border-radius: 14px;
    position: relative;
    transition: background 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.theme-toggle-track.light {
    background: linear-gradient(135deg, #87CEEB, #60A5FA);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.theme-toggle-thumb.light {
    left: 26px;
    background: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.theme-toggle-thumb i {
    font-size: 0.7rem;
    color: #5e5ce6;
    transition: all 0.4s ease;
}

.theme-toggle-thumb.light i {
    color: #ff9500;
}

#themeLabel {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-footer-ver {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.75rem;
    margin-top: 20px;
}

/* FULL PAGE MODALS (About/Privacy) */
.full-page-modal {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top);
}

.full-page-modal.hidden {
    display: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 60px;
}

.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.info-card {
    background: #1c1c1e;
    padding: 20px;
    border-radius: var(--rad-md);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h4 {
    margin: 0 0 10px;
    color: var(--col-blue);
}

.info-card p,
.info-card li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.icon-box.green {
    background: rgba(48, 209, 88, 0.2);
    color: var(--col-green);
}

.undo-action {
    width: 100%;
    margin-top: 15px;
    background: transparent;
    border: 1px dashed rgba(255, 69, 58, 0.5);
    color: var(--col-red);
    padding: 12px;
    border-radius: var(--rad-md);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}

.undo-action:active {
    background: rgba(255, 69, 58, 0.1);
}

.undo-action.hidden {
    display: none;
}

#undoSnackbar {
    position: fixed;
    bottom: 90px;
    left: 20px;
    right: 20px;
    background: #2c2c2e;
    color: white;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#undoSnackbar.show {
    transform: translateY(0);
}

#undoSnackbar .undo-btn {
    background: var(--col-red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ANIMATIONS & TOASTS */
/* ANIMATIONS & TOASTS */
.flying-icon {
    position: fixed;
    font-size: 2.5rem;
    color: var(--col-blue);
    pointer-events: none;
    z-index: 1000;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    filter: drop-shadow(0 0 10px rgba(10, 132, 255, 0.5));
}

.toast-notification {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%) translateY(30px) scale(0.9);
    background: rgba(22, 22, 24, 0.85);
    /* More transparent */
    backdrop-filter: blur(20px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy spring */
    z-index: 2000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}


/* --- NEW IOS SETTINGS --- */
.ios-settings-modal {
    background: #000;
    /* pure black for contrast */
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.settings-scroll-container {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 30px;
    overscroll-behavior: contain;
}

/* PROFILE BANNER */
.ios-profile-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1c1c1e;
}

.edit-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--col-blue);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    border: 3px solid #000;
}

.profile-inputs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.profile-name-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    width: 100%;
    padding-bottom: 4px;
    outline: none;
    border-radius: 0;
}

.profile-name-input:focus {
    border-color: var(--col-blue);
}

/* SECTIONS & LISTS */
.ios-section-header {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    margin: 25px 0 8px 15px;
    font-weight: 600;
}

.ios-list-group {
    background: #1c1c1e;
    border-radius: 12px;
    overflow: hidden;
}

.ios-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 52px;
}

.ios-list-item:last-child {
    border-bottom: none;
}

.item-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

/* Icon Colors */
.color-orange {
    background: var(--col-orange);
}

.color-red {
    background: var(--col-red);
}

.color-blue {
    background: var(--col-blue);
}

.color-green {
    background: var(--col-green);
}

.color-yellow {
    background: #ffd60a;
}

.color-indigo {
    background: var(--col-indigo);
}

.color-pink {
    background: #ff2d55;
}

.item-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.item-label {
    font-size: 1rem;
    font-weight: 400;
}

.item-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-control input,
.item-control select {
    background: transparent;
    border: none;
    color: var(--col-blue);
    font-size: 1rem;
    text-align: right;
    outline: none;
    font-weight: 500;
    width: 100px;
}

.item-value-static {
    color: var(--text-gray);
    font-size: 1rem;
}

.unit {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Adjust dark mode inputs */
input[type="time"] {
    background: transparent;
    color: var(--col-blue);
    border: none;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
}

/* IOS SWITCH ACTIVE STATE FIX */
.toggle-row.active .ios-switch {
    background: var(--col-green);
}

.toggle-row.active .ios-switch::after {
    transform: translateX(20px);
}

.toast-notification i {
    color: var(--col-green);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(48, 209, 88, 0.4));
}

/* Water Splash Particles */
.particle {
    position: absolute;
    background: var(--col-blue);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: splash 0.6s ease-out forwards;
}

@keyframes splash {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* SMART INSIGHT CARD */
.smart-insight-card {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(94, 92, 230, 0.1));
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: var(--rad-md);
    padding: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.smart-insight-card.hidden {
    display: none;
}

.insight-icon {
    background: var(--col-blue);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(10, 132, 255, 0.4);
}

.insight-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-white);
    opacity: 0.9;
    padding-top: 2px;
}

/* IOS GROUPED SECTIONS */
.ios-section {
    margin-bottom: 25px;
}

.ios-group-container {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

.ios-row {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.ios-row:last-child {
    border-bottom: none;
}

.ios-row-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.ios-row-value {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.ios-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

/* REFINED DISCIPLINE STYLES */
.nf-hero {
    width: 200px;
    height: 200px;
    border: 8px solid #1c1c1e;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    background: transparent;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
}

.nf-hero::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.nf-days {
    font-size: 4.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: -5px;
}

.nf-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #8e8e93;
}

.nf-btn {
    height: 100px;
    border-radius: 16px;
    background: #1c1c1e;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    transition: 0.2s;
}

.nf-btn.alert {
    color: var(--col-red);
}

.nf-btn.safe {
    color: var(--col-green);
}

.nf-btn:active {
    background: #2c2c2e;
    transform: scale(0.96);
}

.nf-btn i {
    font-size: 1.5rem;
}

.achievement-card.locked {
    filter: grayscale(1);
    opacity: 0.4;
    cursor: default;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-top: 10px;
}

.achievements-full-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.start-icon {
    font-size: 2.2rem;
    margin-bottom: 4px;
    filter: grayscale(1);
    transition: 0.5s;
}

.achievement-card.unlocked .start-icon {
    filter: grayscale(0) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: bounce 1s var(--ease-spring);
}

.ach-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-white);
}

.ach-desc {
    font-size: 0.7rem;
    color: var(--text-gray);
    line-height: 1.2;
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* CHART & WEIGHT STYLES */
.chart-container {
    padding: 20px;
}

.ios-section-header {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-gray);
    margin: 25px 5px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ios-list-group {
    background: #1c1c1e;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

.ios-list-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #1c1c1e;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    gap: 15px;
    min-height: 60px;
    transition: background 0.2s;
}

.ios-list-row:active {
    background: #2c2c2e;
}

.ios-list-row:last-child {
    border-bottom: none;
}

.ch-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.ch-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ch-name {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

.ch-desc {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.3;
}

.ios-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--col-blue);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.ios-action-btn:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
}

/* COSMIC ORBITAL WEIGHT - Ultra Modern */
.weight-cosmic-card {
    background: linear-gradient(165deg, #1c1c1e 0%, #000 100%);
    border-radius: 40px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.cosmic-ring-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cosmic-ring-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 159, 10, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 159, 10, 0.05);
}

.cosmic-ring-ring::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 159, 10, 0.2);
    animation: rotate 10s linear infinite;
}

.cosmic-ring-content {
    text-align: center;
    z-index: 5;
}

.cosmic-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cosmic-value {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    margin: 5px 0;
    letter-spacing: -2px;
}

.cosmic-trend {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 159, 10, 0.1);
    color: var(--col-orange);
    display: inline-block;
}

.cosmic-trend.down {
    color: #30d158;
    background: rgba(48, 209, 88, 0.1);
}

.cosmic-trend.up {
    color: #ff453a;
    background: rgba(255, 69, 58, 0.1);
}

.cosmic-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cosmic-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.cosmic-prev-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.cosmic-mini-graph {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
}

.cosmic-stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
}

.cosmic-insight {
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    text-align: center;
    line-height: 1.4;
}

.cosmic-footer-text {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Active Mission Card (Health App Summary Style) */
.ios-card.active-mission {
    background: #1c1c1e;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.ch-active-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ch-mini-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.ch-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.ch-badge {
    background: rgba(10, 132, 255, 0.2);
    color: var(--col-blue);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ios-progress-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0 5px;
}

.ios-progress-fill {
    height: 100%;
    background: var(--col-green);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-progress-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    text-align: right;
    margin-top: 5px;
    font-weight: 500;
}

.ch-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.ch-meta span {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.quit-btn {
    background: none;
    border: none;
    color: var(--col-red);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.quit-btn:active {
    opacity: 0.6;
}

.comp-badge {
    color: var(--col-green);
    font-size: 1.2rem;
}

/* ACHIEVEMENTS GRID RESTORED */
.achievement-card {
    min-width: 140px;
    background: #1c1c1e;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    opacity: 0.6;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked {
    opacity: 1;
    background: linear-gradient(180deg, rgba(28, 28, 30, 1), rgba(10, 132, 255, 0.1));
    border-color: rgba(10, 132, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.consumption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
}

.cons-item {
    background: #1c1c1e;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

.cons-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cons-val {
    font-weight: 700;
    font-size: 0.9rem;
}

.cons-label {
    font-size: 0.7rem;
    color: var(--text-gray);
}

/* CALENDAR REFINEMENTS */
.calendar-container {
    background: #1c1c1e;
    border-radius: 12px;
    padding: 15px;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
}

.cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cal-nav button {
    background: #2c2c2e;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-date-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 8px;
}

.cal-date-cell.active {
    background: var(--col-blue);
    color: white;
    font-weight: 600;
}

.cal-date-cell.has-data {
    border: 1px solid rgba(10, 132, 255, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}