/* ============================================
   HYDRA DAILY APP - Complete CSS
   ============================================ */

:root {
    --primary: #FF9933;
    --primary-dark: #E88820;
    --secondary: #138808;
    --secondary-light: #1AA310;
    --gold: #D4A017;
    --cream: #FFF8E1;
    --white: #FFFFFF;
    --dark: #1A1A2E;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans Devanagari', 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 50%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.splash-logo {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.splash-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.splash-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.splash-loader {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.splash-loader-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 2px;
    animation: loadBar 2s ease forwards;
}

.splash-version {
    font-size: 0.75rem;
    opacity: 0.7;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes loadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--cream);
    position: relative;
    padding-bottom: 80px;
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    font-size: 1.8rem;
}

.header-brand h1 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.header-brand span {
    font-size: 0.7rem;
    opacity: 0.9;
}

.header-right {
    display: flex;
    gap: 8px;
}

.header-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.header-btn:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.3);
}

.header-btn-icon {
    font-size: 1.2rem;
}

.header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   SCORE CARD
   ============================================ */
.score-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    margin: 16px;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-ring {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 8;
}

.score-ring-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.score-label {
    font-size: 0.8rem;
    color: var(--gray);
}

.score-info h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.score-info p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar {
    display: none;
}

.quick-btn {
    flex: 1;
    min-width: 60px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quick-btn span:first-child {
    font-size: 1.5rem;
}

.quick-btn small {
    font-size: 0.65rem;
    color: var(--gray);
    font-weight: 500;
}

.quick-btn.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
}

.quick-btn.active small {
    color: var(--primary);
    font-weight: 700;
}

.quick-btn:active {
    transform: scale(0.95);
}

/* ============================================
   MAIN CONTENT & TABS
   ============================================ */
.main-content {
    padding: 0 16px 16px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

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

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.time-now {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    background: #FFF7ED;
    padding: 4px 10px;
    border-radius: 20px;
}

/* ============================================
   MODE TOGGLE
   ============================================ */
.mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mode-toggle::-webkit-scrollbar {
    display: none;
}

.mode-btn {
    flex: 1;
    min-width: 100px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-xs);
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   TASK TIMELINE
   ============================================ */
.task-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
    border-left: 4px solid transparent;
}

.task-card:active {
    transform: scale(0.98);
}

.task-card.completed {
    border-left-color: var(--success);
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.task-card.in-progress {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.task-card.missed {
    border-left-color: var(--danger);
    opacity: 0.7;
}

.task-card.upcoming {
    border-left-color: var(--gray);
}

.task-time {
    flex-shrink: 0;
    text-align: center;
    min-width: 50px;
}

.task-time .time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
}

.task-time .ampm {
    font-size: 0.6rem;
    color: var(--gray);
}

.task-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.task-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.task-info p {
    font-size: 0.75rem;
    color: var(--gray);
}

.task-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.task-check.checked {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.task-check span {
    font-size: 1rem;
}

/* ============================================
   WATER TRACKER
   ============================================ */
.water-tracker {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.water-tracker h3 {
    font-size: 1rem;
    color: #1E40AF;
    margin-bottom: 12px;
}

.water-glasses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.water-glass {
    width: 36px;
    height: 48px;
    background: rgba(255,255,255,0.5);
    border: 2px solid #93C5FD;
    border-radius: 4px 4px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.water-glass.filled {
    background: #3B82F6;
    border-color: #2563EB;
}

.water-glass.filled::after {
    content: '💧';
}

.water-goal {
    font-size: 0.8rem;
    color: #1E40AF;
    text-align: center;
    font-weight: 500;
}

/* ============================================
   MEAL CARDS
   ============================================ */
.meal-section {
    margin-bottom: 12px;
}

.meal-section h3 {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meal-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.meal-card.logged {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 2px solid var(--success);
}

.meal-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.meal-info p {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.sugar-free {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 600;
    background: #ECFDF5;
    padding: 2px 8px;
    border-radius: 10px;
}

.meal-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xs);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.meal-btn:active {
    transform: scale(0.95);
}

.sugar-alert {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border: 2px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    animation: shake 0.5s ease;
}

.sugar-alert span {
    font-size: 1.5rem;
}

.sugar-alert p {
    font-size: 0.85rem;
    color: var(--danger);
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.cheat-meal {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cheat-meal h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cheat-meal p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.cheat-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.cheat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ============================================
   WEIGHT & BMI
   ============================================ */
.weight-card {
    background: linear-gradient(135deg, var(--white) 0%, #F0FDF4 100%);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.weight-current {
    margin-bottom: 8px;
}

.weight-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
}

.weight-unit {
    font-size: 1rem;
    color: var(--gray);
}

.weight-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.weight-arrow {
    font-size: 1.2rem;
    color: var(--success);
}

.weight-diff {
    font-size: 1rem;
    font-weight: 700;
    color: var(--success);
}

.weight-period {
    font-size: 0.75rem;
    color: var(--gray);
}

.weight-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xs);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.weight-btn:active {
    transform: scale(0.95);
}

.bmi-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.bmi-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.bmi-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bmi-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
}

.bmi-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.bmi-status.underweight { background: #DBEAFE; color: #1E40AF; }
.bmi-status.normal { background: #D1FAE5; color: #065F46; }
.bmi-status.overweight { background: #FEF3C7; color: #92400E; }
.bmi-status.obese { background: #FEE2E2; color: #991B1B; }

.bmi-bar {
    height: 12px;
    background: linear-gradient(90deg, #3B82F6 0%, #10B981 33%, #F59E0B 66%, #EF4444 100%);
    border-radius: 6px;
    position: relative;
    margin-bottom: 8px;
}

.bmi-marker {
    position: absolute;
    top: -4px;
    width: 20px;
    height: 20px;
    background: var(--dark);
    border: 3px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: left 0.5s ease;
}

.bmi-interpretation {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ============================================
   EXERCISE LIST
   ============================================ */
.exercise-log {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.exercise-log h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exercise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--light-gray);
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.exercise-item.done {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.exercise-item .ex-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.exercise-item .ex-info {
    flex: 1;
}

.exercise-item .ex-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.exercise-item .ex-info p {
    font-size: 0.7rem;
    color: var(--gray);
}

.exercise-item .ex-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.exercise-item.done .ex-check {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* ============================================
   STEP COUNTER
   ============================================ */
.step-counter {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.step-counter h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.step-display {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.step-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.step-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.step-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step-text span:first-child {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
}

.step-text small {
    font-size: 0.7rem;
    color: var(--gray);
}

.step-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xs);
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.step-btn:active {
    transform: scale(0.95);
}

/* ============================================
   MANTRA & AARTI
   ============================================ */
.mantra-card {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.mantra-card h3 {
    font-size: 1rem;
    color: #92400E;
    margin-bottom: 12px;
}

.mantra-display {
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.mantra-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 8px;
}

.mantra-name {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.mantra-controls {
    display: flex;
    gap: 10px;
}

.mantra-btn {
    flex: 1;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius-xs);
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mantra-btn:active {
    transform: scale(0.95);
    background: var(--gold);
    color: white;
}

.aarti-section {
    margin-bottom: 16px;
}

.aarti-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

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

.aarti-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: var(--transition);
}

.aarti-item:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.aarti-item .aarti-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.aarti-item h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
}

/* ============================================
   SANKALP
   ============================================ */
.sankalp-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.sankalp-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.sankalp-section textarea {
    width: 100%;
    min-height: 80px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-xs);
    padding: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 10px;
}

.sankalp-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.sankalp-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xs);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sankalp-btn:active {
    transform: scale(0.95);
}

/* ============================================
   FESTIVAL BANNER
   ============================================ */
.festival-banner {
    background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.festival-banner h3 {
    font-size: 1rem;
    color: #831843;
    margin-bottom: 12px;
}

.festival-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.festival-icon {
    font-size: 2rem;
}

.festival-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

.festival-info p {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ============================================
   POMODORO
   ============================================ */
.pomodoro-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.pomodoro-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.pomodoro-timer {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.pomodoro-timer.break {
    color: var(--secondary);
}

.pomodoro-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.pomo-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pomo-btn.start {
    background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
    color: white;
}

.pomo-btn.pause {
    background: linear-gradient(135deg, var(--warning) 0%, #FBBF24 100%);
    color: white;
}

.pomo-btn.reset {
    background: var(--light-gray);
    color: var(--gray);
}

.pomo-btn:active {
    transform: scale(0.95);
}

.pomodoro-cycles {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ============================================
   GOALS
   ============================================ */
.goals-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.goals-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.goal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--light-gray);
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.goal-item.done {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.goal-item .goal-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.goal-item.done .goal-check {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.goal-item .goal-text {
    flex: 1;
    font-size: 0.85rem;
}

.goal-item.done .goal-text {
    text-decoration: line-through;
    color: var(--gray);
}

.goal-item .goal-delete {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
}

.add-goal-btn {
    width: 100%;
    padding: 10px;
    background: var(--light-gray);
    border: 2px dashed var(--gray);
    border-radius: var(--radius-xs);
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-goal-btn:active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ============================================
   FINANCE
   ============================================ */
.finance-quick {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.finance-quick h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.finance-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.finance-box {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-xs);
    text-align: center;
}

.finance-box.income {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.finance-box.expense {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
}

.finance-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 4px;
}

.finance-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.finance-box.income .finance-value {
    color: var(--success);
}

.finance-box.expense .finance-value {
    color: var(--danger);
}

.finance-inputs {
    display: flex;
    gap: 8px;
}

.finance-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
}

.finance-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

.finance-inputs button {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.finance-inputs button:first-of-type {
    background: var(--success);
    color: white;
}

.finance-inputs button:last-of-type {
    background: var(--danger);
    color: white;
}

/* ============================================
   MOTIVATION
   ============================================ */
.motivation-section {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.motivation-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #92400E;
}

.quote-card {
    background: rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    text-align: center;
}

.quote-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 8px;
}

.quote-author {
    font-size: 0.8rem;
    color: var(--gray);
    font-style: italic;
}

.quote-btn {
    width: 100%;
    padding: 10px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius-xs);
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quote-btn:active {
    background: var(--gold);
    color: white;
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: var(--radius) var(--radius) 0 0;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.nav-center {
    position: relative;
    top: -20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255,153,51,0.4);
    color: white;
}

.nav-item.nav-center .nav-icon {
    font-size: 1.5rem;
}

.nav-item.nav-center .nav-label {
    position: absolute;
    bottom: -18px;
    font-size: 0.6rem;
    color: var(--gray);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.3rem;
}

.nav-label {
    font-size: 0.6rem;
    font-weight: 500;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--cream);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

/* AI Chat Modal */
.ai-modal-content {
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.ai-chat {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.ai-message.ai-bot {
    align-self: flex-start;
}

.ai-message.ai-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-bubble {
    background: var(--white);
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ai-message.ai-user .ai-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: white;
}

.ai-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
}

.ai-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--light-gray);
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: inherit;
}

.ai-input-area input:focus {
    outline: none;
    border-color: var(--primary);
}

.ai-input-area button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-input-area button:active {
    transform: scale(0.9);
}

.ai-quick-replies {
    display: flex;
    gap: 8px;
    padding: 8px 16px 16px;
    background: var(--white);
    overflow-x: auto;
    scrollbar-width: none;
}

.ai-quick-replies::-webkit-scrollbar {
    display: none;
}

.ai-quick-replies button {
    white-space: nowrap;
    padding: 8px 14px;
    background: var(--light-gray);
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.ai-quick-replies button:active {
    background: var(--primary);
    color: white;
}

/* Analytics */
.analytics-content {
    padding: 16px;
}

.analytics-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.analytics-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.week-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 150px;
    padding-top: 20px;
}

.week-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.week-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}

.week-bar-label {
    font-size: 0.7rem;
    color: var(--gray);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.badge-item {
    text-align: center;
    padding: 12px;
    background: var(--light-gray);
    border-radius: var(--radius-xs);
}

.badge-item.earned {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.badge-item .badge-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.badge-item h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dark);
}

.badge-item p {
    font-size: 0.6rem;
    color: var(--gray);
}

.summary-stats {
    display: flex;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray);
}

.share-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn:active {
    transform: scale(0.98);
}

/* ============================================
   SLIDE PANELS
   ============================================ */
.slide-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--cream);
    z-index: 300;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.slide-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.panel-header button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.panel-content {
    padding: 16px;
}

/* Profile */
.profile-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.profile-avatar {
    font-size: 4rem;
    margin-bottom: 8px;
}

.profile-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.profile-card p {
    font-size: 0.85rem;
    color: var(--gray);
}

.profile-settings {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

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

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

.setting-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.setting-item select {
    padding: 6px 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    background: white;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--light-gray);
    border-radius: 26px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
}

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

.profile-stats {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.profile-stats h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.profile-stats p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.profile-stats strong {
    color: var(--primary);
}

/* Notifications */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius-xs);
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.notification-item .notif-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-item .notif-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.notification-item .notif-info p {
    font-size: 0.75rem;
    color: var(--gray);
}

.notification-item .notif-time {
    font-size: 0.65rem;
    color: var(--gray);
    margin-top: 4px;
}

/* ============================================
   OVERLAY & TOAST
   ============================================ */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 250;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 400;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}

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

.toast-icon {
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 360px) {
    .splash-title { font-size: 1.8rem; }
    .score-ring { width: 80px; height: 80px; }
    .score-number { font-size: 1.5rem; }
    .quick-btn span:first-child { font-size: 1.2rem; }
    .quick-btn small { font-size: 0.55rem; }
    .pomodoro-timer { font-size: 2.5rem; }
}

@media (min-width: 481px) {
    .app-container {
        box-shadow: 0 0 40px rgba(0,0,0,0.1);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-bounce {
    animation: bounce 0.5s ease;
}

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

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

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