:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --neon-blue: #4facfe;
    --neon-indigo: #00f2fe;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overscroll-behavior-y: contain;
}

/* Custom Thin Scrollbar (Stealth mode) */
::-webkit-scrollbar {
    width: 3px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    /* Stealth */
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* App Mirror Frame on Desktop */
@media (min-width: 1100px) {
    .app-container {
        height: 85vh;
        border: 8px solid #1a1a1e;
        border-radius: 40px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    body {
        background: radial-gradient(circle at center, #1a1a1e 0%, #020205 100%);
    }
}

/* Background Glow */
.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.3;
    animation: floating 10s infinite alternate ease-in-out;
}

#orb-1 {
    background: var(--neon-blue);
    top: -50px;
    left: -50px;
}

#orb-2 {
    background: var(--neon-indigo);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes floating {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, 50px);
    }
}

/* APP LAYOUT v14 */
#main-view {
    padding-bottom: 80px;
    /* Space for bottom nav */
}

.view {
    display: none;
    animation: fadeIn 0.3s ease;
    height: calc(100vh - 120px);
    /* Account for header and nav */
    overflow-y: auto;
    padding-bottom: 40px;
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scroll */
}

@media (min-width: 1100px) {
    .view {
        height: calc(85vh - 120px);
    }
}

.view.active {
    display: block;
}

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

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

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-top: -10px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.app-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
    color: var(--text-dim);
}

.cloud-sync-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cloud-sync-pill i {
    font-size: 0.9rem;
}

.cloud-sync-pill.active {
    background: rgba(79, 172, 254, 0.1);
    color: var(--neon-blue);
    border-color: rgba(79, 172, 254, 0.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.1);
}

.cloud-sync-pill:active {
    transform: scale(0.95);
}

/* BOTTOM NAVIGATION */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #111114;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1100px) {
    .bottom-nav {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        transform: none;
        border-radius: 0 0 32px 32px;
    }
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.7rem;
    width: 33%;
}

.nav-btn i {
    font-size: 1.2rem;
}

.nav-btn.active {
    color: #ff4d6d;
    /* HabitNow Pink */
    position: relative;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 20px;
    height: 3px;
    background: #ff4d6d;
    border-radius: 10px;
}

header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1rem;
    color: var(--text-dim);
    margin-top: 5px;
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
    cursor: pointer;
}

.glass-card:active {
    transform: scale(0.95);
}

.module-card {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-icon {
    font-size: 2rem;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.card-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--text-dim);
}

/* Footer & Extras */
footer {
    margin-top: auto;
    text-align: center;
    padding-bottom: 20px;
}

.footer-btn {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-dim);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.footer-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.donation-hint {
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Overlay Container */
.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 2000;
    padding: 20px;
    display: none;
    flex-direction: column;
}

@media (min-width: 1100px) {
    .overlay-container {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        height: 85vh;
        top: 7.5vh;
        border-radius: 32px;
    }
}

.fab-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ff4d6d;
    color: white;
    border: none;
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 900;
    transition: transform 0.2s;
}

@media (min-width: 1100px) {
    .fab-btn {
        position: absolute;
        right: 20px;
        bottom: 90px;
    }
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 30px;
    text-align: left;
}

.back-btn:hover {
    color: white;
}

/* Visualizer & Module Specifics */
.module-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.visualizer-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 30px;
    /* Reduced from 80px */
    margin-bottom: 5px;
    /* Reduced from 20px */
}

.visualizer-bar {
    width: 40px;
    background: linear-gradient(to top, var(--neon-blue), var(--neon-indigo));
    border-radius: 20px;
    transition: height 0.5s ease;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

.controls-container {
    padding: 20px 15px;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Unified row layout */
    gap: 15px;
    width: 100%;
}

.control-group {
    margin-bottom: 5px;
}

.control-group label {
    display: block;
    font-size: 0.75rem;
    /* Slightly smaller */
    color: var(--text-dim);
    margin-bottom: 4px;
    /* Reduced from 12px */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.main-play-btn {
    margin-top: 10px;
    /* Reduced from 25px */
    width: 100%;
    padding: 16px;
    border-radius: 20px;
    border: none;
    background: #ff4d6d;
    color: white;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
    transition: 0.3s;
}

.main-play-btn:active {
    transform: scale(0.95);
    background: var(--neon-blue);
    color: white;
}

/* CALM MODULE - BREATHING */
.calm-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.breathing-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

.breathing-circle {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.6) 0%, rgba(0, 242, 254, 0.2) 100%);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(79, 172, 254, 0.3);
    transition: all 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.breathing-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

.breathing-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.method-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    /* Reduced from 30px */
    flex-wrap: wrap;
    justify-content: center;
}

.method-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.method-btn.active {
    background: white;
    color: var(--bg-dark);
    font-weight: 700;
}

.breathing-timer {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 10px;
}

/* Dynamic Animation States handled via JS classes */
.circle-inhale {
    transform: scale(2.2);
    box-shadow: 0 0 80px rgba(0, 242, 254, 0.6);
    background: radial-gradient(circle, rgba(0, 242, 254, 0.7) 0%, rgba(79, 172, 254, 0.3) 100%);
}

.circle-exhale {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.2);
}

.circle-hold-inhale {
    transform: scale(2.2);
    box-shadow: 0 0 80px rgba(0, 242, 254, 0.6);
    background: radial-gradient(circle, rgba(0, 242, 254, 0.7) 0%, rgba(79, 172, 254, 0.3) 100%);
    opacity: 0.9;
}

.circle-hold-exhale {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.2);
    opacity: 0.8;
}

/* HABIT TRACKER v11 - PREMIUM UI */
.habit-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.habit-container-inline {
    background: #1a1a1e;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.habit-container-inline.expanded {
    background: #252529;
    border-color: rgba(255, 77, 109, 0.2);
}

.habit-card {
    background: #1a1a1e;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.habit-card.today-item {
    background: transparent;
    border: none;
    flex-direction: row;
    align-items: center;
    padding: 15px 20px;
}

.habit-detail-inline {
    padding: 0 20px 20px;
    animation: slideDown 0.3s ease-out;
}

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

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

.inline-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 12px;
}

.inline-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inline-stat .val {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ff4d6d;
}

.inline-stat .lbl {
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.action-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.habit-icon-box {
    width: 50px;
    height: 50px;
    background: #252529;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--neon-blue);
}

.habit-card.completed .habit-icon-box {
    background: rgba(0, 208, 132, 0.1);
    color: #00D084;
}

.habit-content-main {
    flex: 1;
}

.habit-content-main h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.habit-content-main p {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.habit-check-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.habit-card.completed .habit-check-btn {
    background: #00D084;
    border-color: #00D084;
}

/* 7-DAY CIRCLE ROW */
.habit-week-circles {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.day-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
}

.day-circle strong {
    font-size: 0.8rem;
}

.day-circle span {
    font-size: 0.6rem;
    margin-bottom: 2px;
    color: var(--text-dim);
}

.day-circle.active {
    background: #00D084;
    border-color: #00D084;
    color: #000;
}

.day-circle.today {
    border-color: #ff4d6d;
}

/* HABIT LIST CARD (Used in 'Habits' view) */
.habit-card.list-item {
    flex-direction: column;
    align-items: center;
}

.habit-card.list-item .habit-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.habit-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
}

.habit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.habit-info h3 {
    margin: 0;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.habit-info p {
    display: none;
    /* Hide description on compact mobile view */
}

.habit-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
}

.habit-card.completed .habit-action-btn {
    background: var(--neon-blue);
    color: white;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
}

.habit-stats-row {
    display: flex;
    gap: 10px;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.03);
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
}

.stat-pill i {
    color: var(--neon-blue);
}

/* MINI CALENDAR GRID (v13 Balanced) */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cal-dot {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    min-width: 8px;
    position: relative;
}

/* MODAL v14 (Fixed Overlays) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1100px) {
    .modal {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background: rgba(0, 0, 0, 0.7);
    }
}

.modal-content.full-screen {
    width: 100%;
    height: 100%;
    max-width: 480px;
    /* Constrain on desktop */
    margin: 0 auto;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1100px) {
    .modal-content.full-screen {
        height: 85vh;
        margin-top: 7.5vh;
        border-radius: 32px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    }

    #habit-modal {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
    }
}

@media (min-width: 1100px) {
    .modal-content.full-screen {
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
}

.modal-tabs {
    display: flex;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: #ff4d6d;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #ff4d6d;
    border-radius: 10px;
}

#modal-habit-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h4 {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* BIG CALENDAR (Modal) */
.big-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.cal-day-box {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.cal-day-box.active {
    background: #00D084;
    color: black;
    font-weight: bold;
}

.cal-day-box.today {
    border: 2px solid #ff4d6d;
}

/* SUMMARY BOXES in Modal */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Unified row layout */
    gap: 15px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.stat-box .val {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #00D084;
}

.stat-box .lbl {
    font-size: 0.6rem;
    color: var(--text-dim);
}

.cal-dot.active {
    background: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
}

.cal-dot.today {
    border: 1px solid white;
}

/* STREAK BADGE v11 */
.summary-card {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.05));
    border: 1px solid var(--neon-blue);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 5px;
}

/* FAB & ADD HABIT v24 */
.add-habit-btn {
    background: #252529;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    margin-top: 10px;
}

.add-habit-btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
}

/* MIR TAB INTEGRATED v25 - Compact */
.mir-section-card {
    background: #1a1a1e;
    border-radius: 24px;
    padding: 12px 16px;
    /* Reduced from 18x20 */
    margin-bottom: 8px;
    /* Reduced from 12px */
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.mir-section-card h3 {
    font-size: 0.95rem;
    /* Even smaller */
    margin-bottom: 2px !important;
    /* Forces minimal gap */
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mir-section-card h3 i {
    color: #ff4d6d;
}

.modal-content.full-screen {
    background: var(--bg-dark);
}

.delete-habit-btn {
    background: none;
    border: none;
    color: rgba(255, 50, 50, 0.4);
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
}

/* RELAX VIEW (Mir) v20 */
#view-explore .dashboard {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    height: 40vh;
}

#view-explore .card {
    background: #1a1a1e;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px 10px;
    text-align: center;
    width: 140px;
    cursor: pointer;
    transition: 0.3s;
}

#view-explore .card:active {
    transform: scale(0.95);
    border-color: var(--neon-blue);
}

#view-explore .card-icon {
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin: 0 auto 10px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

#view-explore .card h3 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

#view-explore .card p {
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* REUSE RANGE STYLE */
input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
}