:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --subtext: #94a3b8;
    --accent: #fbbf24;
    --border: rgba(255, 255, 255, 0.1);
}


.light-mode {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --subtext: #64748b;
    --accent: #d97706;
    --border: rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.app-container { width: 100%; max-width: 500px; }

.top-nav { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.nav-icon-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
}

header { text-align: center; margin-bottom: 30px; }
.logo { font-size: 3rem; color: var(--accent); }
h1 { font-family: 'Cinzel', serif; font-size: 1.8rem; }
.subtitle { font-size: 0.9rem; color: var(--subtext); }

.page-section { display: none; animation: slideUp 0.4s ease; }
.page-section.active { display: block; }

.grid-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-btn {
    background: var(--card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}
.menu-btn:hover { border-color: var(--accent); transform: translateY(-3px); }
.menu-btn.primary { grid-column: span 2; display: flex; align-items: center; gap: 20px; text-align: left; }
.btn-title { display: block; font-weight: 600; font-size: 1.1rem; }
.btn-desc { font-size: 0.8rem; color: var(--subtext); }

.content-card {
    background: var(--card);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.scrollable { max-height: 70vh; overflow-y: auto; }
.back-btn { background: none; border: none; color: var(--accent); cursor: pointer; margin-bottom: 10px; font-weight: bold; }

.practice-modes { display: flex; background: var(--bg); padding: 5px; border-radius: 30px; margin-bottom: 20px; }
.mode-btn { flex: 1; border: none; background: none; color: var(--text); padding: 10px; cursor: pointer; border-radius: 25px; font-weight: 600; }
.mode-btn.active { background: var(--accent); color: white; }

.timer-settings { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.toggle-group { display: flex; gap: 5px; }
.setting-item input { width: 50px; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 5px; border-radius: 5px; }
.toggle-control { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 5px 10px; border-radius: 12px; cursor: pointer; font-size: 0.75rem; }

.breath-visualizer { height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.circle-yantra {
    width: 140px; height: 140px; border-radius: 50%;
    border: 2px solid var(--accent);
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    display: flex; align-items: center; justify-content: center;
}
.inner-geometry { width: 60%; height: 60%; border: 1px solid rgba(255,255,255,0.5); transform: rotate(45deg); }
.instruction-text { margin-top: 25px; font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.sanskrit-text { font-style: italic; opacity: 0.7; font-family: 'Cinzel', serif; }

.main-btn { width: 100%; padding: 15px; border-radius: 12px; border: none; background: var(--accent); color: white; font-weight: bold; font-size: 1.1rem; cursor: pointer; }
.breath-timeline { display: flex; justify-content: space-between; margin-top: 25px; font-size: 0.7rem; color: var(--subtext); }
.phase-dot.active { color: var(--accent); font-weight: bold; text-decoration: underline; }

.vertical-stack { display: flex; flex-direction: column; gap: 20px; }
.stack-item { border-left: 3px solid var(--accent); padding-left: 15px; }
.stack-item h3 { font-family: 'Cinzel', serif; margin-bottom: 8px; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }