/* ========================================
   ОДНА КАЛОРИЯ — Modern Fresh Design
   ======================================== */

/* CSS Variables — Fresh Green Theme */
:root {
    /* Основные цвета — свежая зеленая тема */
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #D1FAE5;
    --primary-soft: #ECFDF5;
    
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --accent-light: #FEF3C7;
    
    /* Дополнительные цвета */
    --coral: #EF4444;
    --coral-light: #FEE2E2;
    --purple: #8B5CF6;
    --purple-light: #EDE9FE;
    --amber: #F59E0B;
    --blue: #3B82F6;
    --blue-light: #DBEAFE;
    --teal: #14B8A6;
    --teal-light: #CCFBF1;
    
    /* Нейтральные цвета */
    --text: #111827;
    --text-secondary: #4B5563;
    --text-muted: #9CA3AF;
    
    /* Фоны */
    --bg: #F0FDF4;
    --card: #FFFFFF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Скругления — современные */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Переходы */
    --transition: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ========================================
   Базовые стили
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

/* Roboto Font Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   Header & Navigation — Modern
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: var(--primary-soft);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    padding: 10px;
    transition: all var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-light);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

/* ========================================
   Hero Section — Modern
   ======================================== */

.hero {
    padding: 140px 32px 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.badge svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
}

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--primary-light);
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ========================================
   Main Layout
   ======================================== */

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
}

/* ========================================
   Cards — Modern Style
   ======================================== */

.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.card-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-soft);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.card:hover .card-icon {
    background: var(--primary-light);
}

.card-icon.accent {
    background: var(--accent-light);
    border-color: var(--accent);
}

.card:hover .card-icon.accent {
    background: #FDE68A;
}

.card-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

.card-icon.accent svg {
    fill: var(--accent-dark);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.sidebar-card:hover {
    box-shadow: var(--shadow);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.sidebar-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.sidebar-card:hover .sidebar-icon {
    opacity: 0.9;
}

.sidebar-icon.green {
    background: var(--primary-soft);
    border: 2px solid var(--primary-light);
}

.sidebar-icon.green svg {
    fill: var(--primary);
}

.sidebar-icon.orange {
    background: var(--accent-light);
    border: 2px solid #FDE68A;
}

.sidebar-icon.orange svg {
    fill: var(--accent-dark);
}

.sidebar-icon.blue {
    background: var(--blue-light);
    border: 2px solid #BFDBFE;
}

.sidebar-icon.blue svg {
    fill: var(--blue);
}

.sidebar-icon.yellow {
    background: var(--accent-light);
    border: 2px solid #FDE68A;
}

.sidebar-icon.yellow svg {
    fill: var(--amber);
}

.sidebar-icon.purple {
    background: var(--purple-light);
    border: 2px solid #DDD6FE;
}

.sidebar-icon.purple svg {
    fill: var(--purple);
}

.sidebar-icon.coral {
    background: var(--coral-light);
    border: 2px solid #FECACA;
}

.sidebar-icon.coral svg {
    fill: var(--coral);
}

.sidebar-icon.teal {
    background: var(--teal-light);
    border: 2px solid #99F6E4;
}

.sidebar-icon.teal svg {
    fill: var(--teal);
}

.sidebar-icon svg {
    width: 22px;
    height: 22px;
}

.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.sidebar-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Forms — Modern Style
   ======================================== */

.form-section {
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-row.two {
    grid-template-columns: repeat(2, 1fr);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-label span {
    color: var(--text-muted);
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--card);
    color: var(--text);
    transition: all var(--transition);
}

.form-input:hover,
.form-select:hover {
    border-color: var(--primary-light);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%2310B981'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

.form-select option {
    background: var(--card);
    color: var(--text);
    padding: 10px;
    font-size: 15px;
}

/* Gender Selection — Modern */
.gender-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.gender-option {
    flex: 1;
    position: relative;
}

.gender-option input {
    position: absolute;
    opacity: 0;
}

.gender-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.gender-label:hover {
    border-color: var(--primary-light);
    background: var(--primary-soft);
}

.gender-option input:checked + .gender-label {
    background: var(--primary-soft);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.gender-label svg {
    width: 28px;
    height: 28px;
    fill: var(--text-muted);
    transition: var(--transition);
}

.gender-option input:checked + .gender-label svg {
    fill: var(--primary);
}

.gender-label span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.gender-option input:checked + .gender-label span {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ========================================
   Buttons — Modern Style
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    box-shadow: var(--shadow);
}

.btn:hover {
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.btn-accent:hover {
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

/* ========================================
   Results Section — Modern
   ======================================== */

.results {
    display: none;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px dashed var(--border);
}

.results.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.result-main {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-light) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.result-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

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

.result-value {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    position: relative;
}

.result-label {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 12px;
    font-weight: 600;
}

/* Macros Grid */
.macros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.macro-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.macro-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.macro-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: transform var(--transition);
}

.macro-card:hover .macro-icon {
    opacity: 0.9;
}

.macro-icon.protein {
    background: var(--coral-light);
    border: 2px solid #FECACA;
}

.macro-icon.protein svg {
    fill: var(--coral);
}

.macro-icon.fat {
    background: var(--accent-light);
    border: 2px solid #FDE68A;
}

.macro-icon.fat svg {
    fill: var(--amber);
}

.macro-icon.carbs {
    background: var(--blue-light);
    border: 2px solid #BFDBFE;
}

.macro-icon.carbs svg {
    fill: var(--blue);
}

.macro-icon.fiber {
    background: var(--primary-soft);
    border: 2px solid var(--primary-light);
}

.macro-icon.fiber svg {
    fill: var(--primary);
}

.macro-icon svg {
    width: 20px;
    height: 20px;
}

.macro-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.macro-name {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
}

/* Goals Grid */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.goal-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.goal-card:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.goal-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
}

.goal-name {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 600;
}

/* ========================================
   Accordion — Modern Style
   ======================================== */

.accordion-item {
    border-bottom: 1px solid var(--border);
}

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

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    transition: transform var(--transition);
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
    fill: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-body {
    padding-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Section Headers — Modern
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   Formula Cards — Modern
   ======================================== */

.formulas-section {
    margin-top: 60px;
}

.formula-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.formula-card:hover {
    box-shadow: var(--shadow);
}

.formula-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.formula-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.formula-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.formula-text {
    font-size: 18px;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--primary-soft);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    font-family: 'SF Mono', monospace;
    text-align: center;
}

.formula-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.formula-desc strong {
    color: var(--text);
    font-weight: 600;
}

/* ========================================
   Facts Section — Modern
   ======================================== */

.facts-section {
    margin-top: 60px;
}

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

.fact-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.fact-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.fact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}

.fact-card:hover .fact-icon {
    background: var(--primary-light);
}

.fact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.fact-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.fact-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   BMI Specific — Modern
   ======================================== */

.bmi-main {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--purple-light) 0%, #F3EEFD 100%);
    border: 2px solid var(--purple);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.bmi-value {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: var(--purple);
}

.bmi-value.underweight {
    color: var(--blue);
}

.bmi-value.normal {
    color: var(--primary);
}

.bmi-value.overweight {
    color: var(--amber);
}

.bmi-value.obese {
    color: var(--coral);
}

.bmi-category {
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
}

.bmi-category.underweight {
    color: var(--blue);
}

.bmi-category.normal {
    color: var(--primary);
}

.bmi-category.overweight {
    color: var(--amber);
}

.bmi-category.obese {
    color: var(--coral);
}

/* Scale */
.scale-container {
    margin-bottom: 24px;
}

.scale {
    position: relative;
    height: 40px;
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.scale-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.scale-segment.underweight {
    background: var(--blue);
}

.scale-segment.normal {
    background: var(--primary);
}

.scale-segment.overweight {
    background: var(--amber);
}

.scale-segment.obese {
    background: var(--coral);
}

.scale-marker {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    font-size: 20px;
    color: var(--text);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: left 0.5s ease;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Ideal Weight */
.ideal-weight {
    text-align: center;
    padding: 20px;
    background: var(--primary-soft);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.ideal-weight-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.ideal-weight-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* BMI Table */
.bmi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bmi-table th {
    background: var(--primary-soft);
    padding: 14px;
    text-align: left;
    font-weight: 700;
    color: var(--text);
    border-bottom: 2px solid var(--primary-light);
}

.bmi-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.bmi-table tr:hover td {
    background: var(--primary-soft);
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.category-badge.underweight {
    background: var(--blue-light);
    color: var(--blue);
}

.category-badge.normal {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.category-badge.overweight {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.category-badge.obese {
    background: var(--coral-light);
    color: var(--coral);
}

/* Formula Section */
.formula-section {
    margin-top: 60px;
    text-align: center;
}

.formula-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.formula-box {
    display: inline-block;
    padding: 24px 48px;
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.formula-example {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Info Section */
.info-section {
    margin-top: 60px;
}

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

.info-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.info-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-soft);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition);
}

.info-card:hover .info-icon {
    background: var(--primary-light);
}

.info-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.info-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Food Analyzer Specific
   ======================================== */

.table-container {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.food-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.food-table th {
    background: var(--primary-soft);
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text);
    border-bottom: 2px solid var(--primary-light);
    white-space: nowrap;
}

.food-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.food-table tr:hover td {
    background: var(--primary-soft);
}

.food-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.food-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.food-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.food-name {
    font-weight: 600;
    color: var(--text);
}

.weight-input {
    width: 70px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    transition: all var(--transition);
}

.weight-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.delete-btn {
    background: var(--coral-light);
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    transition: all var(--transition);
}

.delete-btn:hover {
    background: var(--coral);
}

.delete-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--coral);
    transition: fill var(--transition);
}

.delete-btn:hover svg {
    fill: white;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-state-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
}

.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.counter-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.counter-badge {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
}

.results-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
}

.results-section {
    margin-bottom: 24px;
}

.results-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.results-grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.result-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.result-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Quick Add Section */
.quick-section {
    margin-top: 40px;
}

.quick-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-align: center;
}

.quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}

.quick-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.quick-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
}

/* How It Works Section */
.how-section {
    margin-top: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.step-card:hover {
    box-shadow: var(--shadow);
}

.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 20px;
    height: 2px;
    background: var(--primary-light);
}

.step-number {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow);
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.step-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Satiety Page Specific
   ======================================== */

.top-section {
    margin-bottom: 40px;
}

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

.top-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.top-card:hover {
    box-shadow: var(--shadow);
}

.top-card:first-child {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-color: var(--amber);
}

.top-rank {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    background: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.top-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-soft);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.top-card:first-child .top-icon {
    background: white;
    border-color: var(--amber);
}

.top-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.top-card:first-child .top-icon svg {
    fill: var(--amber);
}

.top-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.top-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.top-card:first-child .top-value {
    color: var(--amber);
}

.top-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 600;
}

/* Search & Filters */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* Legend */
.legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 14px;
    background: var(--primary-soft);
    border-radius: var(--radius);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.high {
    background: var(--primary);
}

.legend-dot.medium {
    background: var(--amber);
}

.legend-dot.low {
    background: var(--coral);
}

/* Satiety Table */
.satiety-table-container {
    overflow-x: auto;
}

.satiety-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.satiety-table th {
    background: var(--primary-soft);
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text);
    border-bottom: 2px solid var(--primary-light);
    cursor: pointer;
    transition: background var(--transition);
}

.satiety-table th:hover {
    background: var(--primary-light);
}

.sort-icon {
    font-size: 12px;
    margin-left: 4px;
}

.satiety-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.satiety-table tr:hover td {
    background: var(--primary-soft);
}

.food-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.food-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.satiety-value {
    font-weight: 700;
    font-size: 16px;
}

.satiety-value.high {
    color: var(--primary);
}

.satiety-value.medium {
    color: var(--amber);
}

.satiety-value.low {
    color: var(--coral);
}

.satiety-bar {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.satiety-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.satiety-bar-fill.high {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.satiety-bar-fill.medium {
    background: linear-gradient(90deg, var(--amber) 0%, var(--accent-dark) 100%);
}

.satiety-bar-fill.low {
    background: linear-gradient(90deg, var(--coral) 0%, #DC2626 100%);
}

.no-results {
    text-align: center;
    padding: 48px 24px;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.no-results-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

/* Stats Section */
.stats-section {
    margin-top: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========================================
   Footer — Modern
   ======================================== */

.footer {
    background: var(--text);
    color: white;
    padding: 60px 32px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.footer-logo-text {
    font-size: 22px;
    font-weight: 700;
}

.footer-text {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .sidebar-card {
        margin-bottom: 0;
    }
    
    .facts-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-card:not(:last-child)::after {
        display: none;
    }
    
    .top-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 12px 20px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        gap: 8px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav-link {
        padding: 14px 20px;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 20px 40px;
    }
    
    .main {
        padding: 0 20px 60px;
    }
    
    .card {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .macros-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid,
    .results-grid.four {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
    
    .fact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .fact-icon {
        margin: 0 auto;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .bmi-value {
        font-size: 56px;
    }
    
    .scale {
        height: 32px;
    }
    
    .scale-segment {
        font-size: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .legend {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .result-value {
        font-size: 42px;
    }
    
    .bmi-value {
        font-size: 48px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
