/* ======================================================
   MyAIDoctor - Premium Health App Styles
   ====================================================== */

:root {
    --primary: #0066CC;
    --primary-dark: #004C99;
    --primary-light: #E6F0FF;
    --secondary: #00A86B;
    --secondary-light: #E6F9F0;
    --accent: #FF6B35;
    --danger: #DC3545;
    --warning: #FFC107;
    --success: #28A745;
    --text: #1A1A2E;
    --text-secondary: #5A5A7A;
    --text-light: #8888AA;
    --bg: #F8FAFE;
    --bg-card: #FFFFFF;
    --border: #E8ECF4;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 64px;
    --bottom-nav-height: 72px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--text-secondary); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 8px 16px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }

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

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-header h3 { display: flex; align-items: center; gap: 8px; }
.card-header .icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.icon-blue { background: var(--primary-light); color: var(--primary); }
.icon-green { background: var(--secondary-light); color: var(--secondary); }
.icon-orange { background: #FFF3E6; color: var(--accent); }
.icon-red { background: #FFE6E6; color: var(--danger); }

/* ---- Forms ---- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--text); }
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #fff;
    color: var(--text);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,204,0.1); }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }

/* ---- Landing Page ---- */
.landing-page { min-height: 100vh; }

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.landing-nav .logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.landing-nav .logo i { font-size: 1.6rem; }
.landing-nav .nav-links { display: flex; gap: 16px; align-items: center; }

.hero {
    padding: 60px 24px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}
.hero h1 { font-size: 2.5rem; margin-bottom: 16px; color: var(--text); line-height: 1.2; }
.hero .subtitle { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.hero-badge { display: flex; align-items: center; gap: 6px; background: #fff; padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; box-shadow: var(--shadow); color: var(--text-secondary); }
.hero-badge i { color: var(--primary); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card { text-align: left; }
.feature-card .feature-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

.cta-section { text-align: center; padding: 60px 24px; }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { margin-bottom: 24px; }

.landing-footer {
    background: var(--text);
    color: #ccc;
    padding: 40px 24px;
    text-align: center;
}
.landing-footer .footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.landing-footer a { color: #aaa; font-size: 0.9rem; }
.landing-footer a:hover { color: #fff; }
.landing-footer .copyright { font-size: 0.8rem; color: #666; margin-top: 12px; }

/* ---- App Layout ---- */
.app-layout { min-height: 100vh; padding-bottom: calc(var(--bottom-nav-height) + 16px); }

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
}
.top-bar .logo { font-size: 1.2rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.top-bar .logo i { font-size: 1.3rem; }
.top-bar-actions { display: flex; align-items: center; gap: 12px; }
.top-bar-actions .user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 56px;
}
.nav-item i { font-size: 1.2rem; }
.nav-item.active { color: var(--primary); }
.nav-item:hover { color: var(--primary); text-decoration: none; }

.page-content { padding: 20px; max-width: 800px; margin: 0 auto; }
.page-title { margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.page-title .back-btn { color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; }

/* ---- Dashboard ---- */
.dashboard-header { margin-bottom: 24px; }
.dashboard-header .greeting { font-size: 1.6rem; font-weight: 800; }
.dashboard-header .date { color: var(--text-light); font-size: 0.9rem; }

.health-score-card {
    background: linear-gradient(135deg, var(--primary), #0088FF);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.score-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex-shrink: 0;
}
.score-info h3 { font-size: 1.1rem; opacity: 0.9; font-weight: 500; }
.score-info p { font-size: 0.85rem; opacity: 0.7; }

.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
}
.stat-card .stat-icon { font-size: 1.3rem; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .stat-sub { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
}
.action-btn:hover { border-color: var(--primary); background: var(--primary-light); text-decoration: none; color: var(--primary); }
.action-btn i { font-size: 1.5rem; color: var(--primary); }

/* ---- Chat ---- */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-height) - var(--bottom-nav-height) - 20px);
    max-width: 800px;
    margin: 0 auto;
}
.chat-header { padding: 12px 20px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.message { max-width: 85%; }
.message.user { align-self: flex-end; }
.message.assistant { align-self: flex-start; }
.message-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.message.user .message-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.message.assistant .message-bubble {
    background: #fff;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    color: var(--text);
}
.message.assistant .message-bubble h2 { font-size: 1.1rem; margin: 16px 0 8px; color: var(--primary); }
.message.assistant .message-bubble h3 { font-size: 1rem; margin: 12px 0 6px; }
.message.assistant .message-bubble ul, .message.assistant .message-bubble ol { margin: 8px 0 8px 20px; }
.message.assistant .message-bubble li { margin: 4px 0; }
.message.assistant .message-bubble p { margin: 8px 0; color: var(--text); }
.message.assistant .message-bubble strong { color: var(--text); }
.message.assistant .message-bubble em { color: var(--text-secondary); font-size: 0.85rem; }
.message.assistant .message-bubble hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.message-time { font-size: 0.7rem; color: var(--text-light); margin-top: 4px; padding: 0 4px; }
.message.user .message-time { text-align: right; }

.typing-indicator { display: flex; gap: 4px; padding: 12px 18px; }
.typing-indicator span { width: 8px; height: 8px; background: var(--text-light); border-radius: 50%; animation: typing 1.4s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }

.chat-input-area {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--border);
}
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input-actions { display: flex; gap: 4px; }
.chat-action-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.chat-action-btn:hover { background: var(--primary); color: #fff; }
.chat-action-btn.recording { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

.chat-text-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 24px;
    font-family: var(--font);
    font-size: 0.95rem;
    resize: none;
    max-height: 120px;
    outline: none;
    transition: border-color 0.2s;
}
.chat-text-input:focus { border-color: var(--primary); }

.chat-send-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.chat-send-btn:hover { background: var(--primary-dark); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Image preview in chat ---- */
.image-preview { position: relative; margin-bottom: 8px; }
.image-preview img { max-width: 200px; border-radius: var(--radius-sm); }
.image-preview .remove-btn { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--danger); color: #fff; border: none; cursor: pointer; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; }

/* ---- Food Tracker ---- */
.meal-section { margin-bottom: 20px; }
.meal-section h4 { color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.food-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}
.food-item .food-info { flex: 1; }
.food-item .food-name { font-weight: 600; font-size: 0.95rem; }
.food-item .food-macros { font-size: 0.8rem; color: var(--text-light); display: flex; gap: 12px; margin-top: 4px; }
.food-item .food-calories { font-weight: 700; color: var(--primary); font-size: 1.1rem; white-space: nowrap; }

.macro-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.macro-item { text-align: center; padding: 12px 8px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.macro-item .macro-value { font-size: 1.3rem; font-weight: 700; }
.macro-item .macro-label { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.macro-item.calories .macro-value { color: var(--primary); }
.macro-item.protein .macro-value { color: var(--secondary); }
.macro-item.carbs .macro-value { color: var(--accent); }
.macro-item.fats .macro-value { color: #9B59B6; }

/* ---- Health Log ---- */
.tracker-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.tracker-card { cursor: pointer; transition: all 0.2s; }
.tracker-card:hover { border-color: var(--primary); }
.tracker-value { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.tracker-unit { font-size: 0.85rem; color: var(--text-light); font-weight: 400; }
.tracker-progress {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-top: 12px;
    overflow: hidden;
}
.tracker-progress .bar { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.bar-blue { background: var(--primary); }
.bar-green { background: var(--secondary); }
.bar-orange { background: var(--accent); }

/* ---- Symptom Checker ---- */
.symptom-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.symptom-tag {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.symptom-tag.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }

.severity-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--success), var(--warning), var(--danger));
    border-radius: 4px;
    outline: none;
}
.severity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.pricing-card { text-align: center; padding: 32px 24px; position: relative; overflow: hidden; }
.pricing-card.popular { border: 2px solid var(--primary); }
.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 12px;
    right: -32px;
    background: var(--primary);
    color: #fff;
    padding: 4px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    transform: rotate(45deg);
}
.pricing-card .plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.pricing-card .plan-price { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.pricing-card .plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }
.pricing-card .plan-features { list-style: none; margin: 20px 0; text-align: left; }
.pricing-card .plan-features li { padding: 8px 0; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.pricing-card .plan-features li i { color: var(--success); }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-light); padding: 4px; }

/* ---- Toast ---- */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 1100; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    display: flex; align-items: center; gap: 8px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- Disclaimer Banner ---- */
.disclaimer-banner {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.8rem;
    color: #795548;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}
.disclaimer-banner i { color: var(--warning); margin-top: 2px; flex-shrink: 0; }

/* ---- Chart container ---- */
.chart-container { position: relative; height: 200px; margin-top: 12px; }

/* ---- Loading ---- */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 12px;
    color: var(--text-light);
}
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* ---- Fasting Timer ---- */
.fasting-circle {
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 8px solid var(--border);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    margin: 20px auto;
    position: relative;
}
.fasting-circle.active { border-color: var(--secondary); }
.fasting-time { font-size: 2.2rem; font-weight: 800; }
.fasting-label { font-size: 0.8rem; color: var(--text-light); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none !important; }

/* ---- Legal Pages ---- */
.legal-page { padding: 40px 24px; max-width: 800px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { margin: 24px 0 12px; font-size: 1.2rem; }
.legal-page p { margin-bottom: 12px; font-size: 0.95rem; line-height: 1.8; }
.legal-page ul { margin: 8px 0 16px 24px; }
.legal-page li { margin: 4px 0; font-size: 0.95rem; color: var(--text-secondary); }

/* ---- Responsive ---- */
@media (min-width: 768px) {
    .hero h1 { font-size: 3.2rem; }
    .quick-stats { grid-template-columns: repeat(4, 1fr); }
    .quick-actions { grid-template-columns: repeat(4, 1fr); }
    .tracker-grid { grid-template-columns: repeat(2, 1fr); }
    .bottom-nav { max-width: 500px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero .subtitle { font-size: 1rem; }
    .landing-nav .nav-links .btn { padding: 8px 12px; font-size: 0.8rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .macro-summary { grid-template-columns: repeat(2, 1fr); }
}
