:root {
    --bg-dark: #0A1C12;
    --bg-card: #0F2D1D;
    --bg-card-light: #16402A;
    --primary-green: #0F3A22;
    --accent-gold: #F4B41A;
    --accent-gold-hover: #DDA014;
    --alert-red: #EF4444;
    --success-green: #10B981;
    --offline-amber: #F59E0B;
    
    --text-light: #FFFFFF;
    --text-muted: #D1D5DB;
    --text-dim: #9CA3AF;
    
    --font-tamil: 'Mukta Malar', -apple-system, sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-tamil);
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.mobile-container {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Offline Banner */
.offline-banner {
    background: var(--offline-amber);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    padding: 0.35rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* App Header */
.app-header {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--accent-gold);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-text h1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Screen Body */
.screen-body {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding-bottom: 90px;
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(244, 180, 26, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input {
    background: #06140D;
    border: 2px solid #1C4D32;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* Big Tap Buttons & Pills */
.pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.pill-btn {
    background: #06140D;
    border: 2px solid #1C4D32;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.pill-btn.active {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
    font-weight: 800;
}

.btn-large {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn-gold {
    background: var(--accent-gold);
    color: #000;
}

.btn-gold:active {
    background: var(--accent-gold-hover);
    transform: scale(0.98);
}

.btn-audio {
    background: #DC2626;
    color: #FFF;
    font-size: 1rem;
    padding: 0.85rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: #06140D;
    border-top: 2px solid var(--accent-gold);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0.25rem;
    z-index: 50;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.nav-tab.active {
    color: var(--accent-gold);
}

.tab-icon {
    font-size: 1.25rem;
}
