/**
 * FitCalc Pro - Core Stylesheet
 * Clinical & Fitness theme styling, responsive typography, and interactive calculator UI.
 */

:root {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-glow: rgba(5, 150, 105, 0.25);
    --accent: #10b981;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --hero-gradient: linear-gradient(135deg, #065f46 0%, #059669 100%);
    --badge-bg: #d1fae5;
    --badge-text: #065f46;
    
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-hover); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.text-success { color: #16a34a !important; }
.text-warning { color: #d97706 !important; }
.text-danger { color: #dc2626 !important; }
.bg-light { background-color: #f1f5f9; }

/* Top Medical Alert Bar */
.medical-alert-bar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #334155;
}
.medical-alert-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    flex-wrap: wrap;
}
.medical-alert-bar .alert-icon { color: #38bdf8; font-size: 0.95rem; }
.medical-alert-bar .alert-link { color: #38bdf8; text-decoration: underline; font-weight: 600; }
.medical-alert-bar .alert-link:hover { color: #7dd3fc; }

/* Header Navigation */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text-main);
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px var(--primary-glow);
}
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.logo-sub { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; list-style: none; gap: 0.5rem; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--bg-body);
}
.nav-btn-highlight {
    background: var(--badge-bg);
    color: var(--badge-text);
}
.nav-btn-highlight:hover {
    background: var(--primary);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient);
    color: #ffffff;
    padding: 5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.hero-title .text-highlight { color: #fef08a; text-decoration: underline; text-decoration-color: rgba(254, 240, 138, 0.4); }
.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 580px;
}
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.65rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
}
.btn-primary {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-primary:hover { background: #f8fafc; transform: translateY(-2px); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.28); }

.hero-stats {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); margin-top: 0.25rem; font-weight: 500; }

/* Hero Quick Interactive Card */
.hero-widget-card {
    background: #ffffff;
    color: var(--text-main);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.widget-header h3 { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.widget-header h3 i { color: var(--primary); }
.widget-pill {
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}
.widget-form .form-group { margin-bottom: 1.15rem; }
.widget-form label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.35rem; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #ffffff;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.btn-widget-calc {
    width: 100%;
    background: var(--primary);
    color: #ffffff;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-widget-calc:hover { background: var(--primary-hover); }

.widget-result-box {
    margin-top: 1.25rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}
.result-number-wrap { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.result-num-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.result-num-val { font-size: 2rem; font-weight: 800; color: var(--primary); }
.result-category-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.badge-normal { background: #dcfce7; color: #15803d; }
.badge-underweight { background: #fef3c7; color: #b45309; }
.badge-overweight { background: #ffedd5; color: #c2410c; }
.badge-obese { background: #fee2e2; color: #b91c1c; }
.result-advice-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }

/* Section Headers */
.section-header { margin-bottom: 3.5rem; }
.section-tag {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.section-title { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }

/* Categorized Calculators Grid */
.category-block { margin-bottom: 3.5rem; }
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}
.category-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.65rem; }
.category-title i { color: var(--primary); }
.category-count { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

.calcs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.calc-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.65rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.calc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.calc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.calc-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--badge-bg);
    color: var(--badge-text);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}
.badge-popular {
    background: var(--badge-bg);
    color: var(--badge-text);
}
.calc-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}
.calc-name a { color: var(--text-main); }
.calc-name a:hover { color: var(--primary); }
.calc-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.calc-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}
.calc-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
}
.calc-link-btn:hover { gap: 0.65rem; }

/* Features E-E-A-T Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--badge-bg);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.65rem; }
.feature-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Breadcrumbs */
.breadcrumbs-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    font-size: 0.85rem;
}
.breadcrumbs-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.breadcrumbs-list a { color: var(--text-muted); font-weight: 500; }
.breadcrumbs-list a:hover { color: var(--primary); }
.breadcrumbs-list i { font-size: 0.65rem; color: #cbd5e1; }
.breadcrumbs-list .active { color: var(--text-main); font-weight: 700; }

/* Single Calculator App Layout */
.calc-page-wrapper { background: var(--bg-body); padding: 2.5rem 0 4.5rem; }
.calc-layout-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.calc-main-content { display: flex; flex-direction: column; gap: 2rem; }

/* Calculator Header Card */
.calc-header-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}
.calc-header-icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--hero-gradient);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    flex-shrink: 0;
    box-shadow: 0 6px 15px var(--primary-glow);
}
.calc-header-meta { flex-grow: 1; }
.calc-header-tags { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.calc-display-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.75rem; }
.calc-lead-summary { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

/* Interactive Computation Card */
.calc-interactive-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.interactive-card-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 1.15rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-subtitle { font-size: 0.95rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 0.5rem; }
.live-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.live-tag i { animation: pulseGreen 2s infinite; }
@keyframes pulseGreen {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.calc-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.calc-form-pane {
    padding: 2.25rem;
    border-right: 1px solid var(--border-color);
    background: #ffffff;
}
.calc-form .form-group { margin-bottom: 1.35rem; }
.field-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem; }
.field-label-row label { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }
.field-live-val { font-size: 0.88rem; font-weight: 700; color: var(--primary); font-family: 'JetBrains Mono', monospace; }

.form-actions-row { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.btn-primary-full {
    width: 100%;
    padding: 0.95rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary-full:hover { background: var(--primary-hover); }
.btn-outline-sm {
    width: 100%;
    padding: 0.65rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.btn-outline-sm:hover { background: #f8fafc; color: var(--text-main); }

/* Results Pane */
.calc-results-pane {
    padding: 2.25rem;
    background: #fbfcfe;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.results-primary-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.res-card-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--text-muted); }
.res-card-figure { font-size: 2.75rem; font-weight: 800; color: var(--primary); line-height: 1.15; margin: 0.5rem 0; font-family: 'JetBrains Mono', monospace; }
.res-card-status { display: inline-block; padding: 0.3rem 0.85rem; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; background: var(--badge-bg); color: var(--badge-text); }
.res-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.results-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.sub-stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}
.sub-stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.sub-stat-val { font-size: 1.15rem; font-weight: 800; color: var(--text-main); margin-top: 0.25rem; font-family: 'JetBrains Mono', monospace; }

/* Chart Container */
.results-chart-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.chart-header-row h5 { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.chart-canvas-container { position: relative; height: 220px; width: 100%; }

.results-action-bar { display: flex; gap: 0.75rem; }
.btn-tool-action {
    flex: 1;
    padding: 0.65rem 0.85rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s;
    font-family: inherit;
}
.btn-tool-action:hover { background: #f1f5f9; border-color: #cbd5e1; }

/* Educational Guide Article */
.calc-guide-article {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}
.guide-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
}
.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}
.guide-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 0.75rem; }
.guide-byline { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }

.guide-body-content { font-size: 1.02rem; line-height: 1.8; color: #334155; }
.guide-body-content p { margin-bottom: 1.5rem; }
.guide-body-content h3 { font-size: 1.45rem; font-weight: 800; margin: 2.25rem 0 1rem; color: var(--text-main); }
.guide-body-content h4 { font-size: 1.25rem; font-weight: 700; margin: 1.85rem 0 0.85rem; color: var(--text-main); }
.guide-body-content ul, .guide-body-content ol { margin: 1rem 0 1.5rem 1.75rem; }
.guide-body-content li { margin-bottom: 0.5rem; }
.guide-body-content code { background: #f1f5f9; padding: 0.2rem 0.45rem; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 0.9em; color: var(--primary); }

/* FAQ Accordion */
.calc-faqs-section {
    margin-top: 3.5rem;
    border-top: 2px solid var(--border-color);
    padding-top: 3rem;
}
.faq-section-header { margin-bottom: 1.75rem; }
.faq-section-header h3 { font-size: 1.5rem; font-weight: 800; }
.faq-section-header p { color: var(--text-muted); font-size: 0.95rem; }

.faq-accordion-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-trigger {
    width: 100%;
    text-align: left;
    background: #ffffff;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.15s;
    font-family: inherit;
}
.faq-trigger:hover { background: #f8fafc; }
.faq-trigger i {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}
.faq-trigger[aria-expanded="true"] i,
.faq-item.active .faq-trigger i {
    transform: rotate(180deg) !important;
}
.faq-body {
    padding: 0 1.5rem 1.35rem;
    display: none;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}
.faq-body.open,
.faq-item.active .faq-body,
.faq-trigger[aria-expanded="true"] + .faq-body {
    display: block !important;
}

/* Sidebar Styling */
.calc-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.sidebar-card h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 1rem; }
.sidebar-link-btn { font-size: 0.85rem; font-weight: 700; color: var(--primary); }

.sidebar-calc-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-calc-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s;
}
.sidebar-calc-list li a:hover { background: #f8fafc; color: var(--primary); }
.sidebar-calc-list li.active a { background: var(--badge-bg); color: var(--badge-text); font-weight: 700; }

.trust-check-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.88rem; font-weight: 600; }
.trust-check-list li { display: flex; align-items: center; gap: 0.65rem; }
.sidebar-updated-tag { margin-top: 1.25rem; border-top: 1px solid var(--border-color); padding-top: 0.85rem; color: var(--text-muted); }

/* Legal Pages Styling */
.legal-page-wrap { background: var(--bg-body); padding: 3rem 0 5rem; }
.legal-container { max-width: 900px; margin: 0 auto; }
.legal-article-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-sm);
}
.legal-header { margin-bottom: 2.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1.75rem; }
.legal-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.legal-title { font-size: 2.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1rem; }
.legal-meta-row { display: flex; align-items: center; gap: 0.85rem; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }

.legal-body-content { font-size: 1.02rem; line-height: 1.8; color: #334155; }
.legal-body-content h2 { font-size: 1.55rem; font-weight: 800; margin: 2.5rem 0 1rem; color: var(--text-main); border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.legal-body-content h3 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.85rem; color: var(--text-main); }
.legal-body-content p { margin-bottom: 1.5rem; }
.legal-body-content ul, .legal-body-content ol { margin: 1rem 0 1.5rem 1.75rem; }
.legal-body-content li { margin-bottom: 0.5rem; }
.legal-footer-notice { margin-top: 3rem; background: #f8fafc; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 1.25rem; font-size: 0.85rem; color: var(--text-muted); }

/* Contact Page Layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-col .contact-title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin: 0.75rem 0 1rem; }
.contact-desc { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; }
.contact-details-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-detail-item { display: flex; gap: 1rem; align-items: flex-start; }
.detail-icon { width: 44px; height: 44px; background: var(--badge-bg); color: var(--primary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.detail-text strong { display: block; font-size: 0.85rem; color: var(--text-muted); }
.detail-text span, .detail-text a { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.contact-notice-card { background: #fffbeb; border: 1px solid #fef3c7; border-radius: var(--radius-md); padding: 1.25rem; }
.contact-notice-card h5 { font-size: 0.95rem; font-weight: 700; color: #92400e; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.contact-notice-card p { font-size: 0.85rem; color: #78350f; line-height: 1.5; margin: 0; }
.form-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 1.5rem; }
.alert { padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Global Footer */
.site-footer { background: #0f172a; color: #e2e8f0; padding-top: 4.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; color: #ffffff; text-decoration: none; margin-bottom: 1.25rem; }
.footer-desc { font-size: 0.9rem; color: #94a3b8; line-height: 1.6; margin-bottom: 1.5rem; }
.trust-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: #1e293b; color: #38bdf8; border: 1px solid #334155; padding: 0.4rem 0.85rem; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; }
.footer-title { font-size: 1.05rem; font-weight: 700; color: #ffffff; margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links li a { color: #94a3b8; font-size: 0.88rem; transition: color 0.15s; display: flex; align-items: center; gap: 0.5rem; }
.footer-links li a i { font-size: 0.7rem; color: #475569; }
.footer-links li a:hover { color: #ffffff; }

.footer-disclaimer-bar { background: #1e293b; border-top: 1px solid #334155; border-bottom: 1px solid #334155; padding: 1.5rem 0; font-size: 0.8rem; color: #94a3b8; line-height: 1.6; }
.footer-bottom { padding: 1.75rem 0; font-size: 0.85rem; color: #64748b; }
.footer-bottom-flex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom-links { display: flex; align-items: center; gap: 0.85rem; }
.footer-bottom-links a { color: #94a3b8; font-size: 0.85rem; }
.footer-bottom-links a:hover { color: #ffffff; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-title { font-size: 2.35rem; }
    .calc-layout-grid { grid-template-columns: 1fr; }
    .calcs-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        display: none;
        padding: 1rem 1.5rem;
        box-shadow: var(--shadow-md);
    }
    .site-nav.open { display: block; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    
    .calc-app-grid { grid-template-columns: 1fr; }
    .calc-form-pane { border-right: none; border-bottom: 1px solid var(--border-color); }
    .calcs-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .legal-article-card { padding: 2rem 1.5rem; }
}

/* Admin Panel Styles */
.admin-body {
    background: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
}
.admin-nav {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand-admin {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}
.nav-brand-admin i {
    color: #059669;
}
.nav-links-admin {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-links-admin a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-links-admin a:hover, .nav-links-admin a.active {
    color: #ffffff;
}
.nav-links-admin a.btn-logout {
    color: #f87171;
}
.admin-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.admin-page-header {
    margin-bottom: 2rem;
}
.admin-page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
}
.admin-page-header p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}
.stats-grid-admin {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-card-admin {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
}
.stat-card-admin .label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}
.stat-card-admin .val {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.5rem;
}
.badge-status {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}
.badge-disabled {
    background: #450a0a;
    color: #fca5a5;
}
.badge-enabled {
    background: #064e3b;
    color: #6ee7b7;
}
.dashboard-grid-admin {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}
.dash-card-admin {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.75rem;
}
.dash-card-admin h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.75rem;
}
.domain-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: #e2e8f0;
}
.domain-info-table td {
    padding: 0.65rem 0;
    border-bottom: 1px solid #334155;
}
.domain-info-table td:first-child {
    color: #94a3b8;
    font-weight: 600;
    width: 35%;
}
.quick-actions-admin {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.btn-action-admin {
    display: block;
    padding: 0.85rem 1.25rem;
    background: #334155;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
}
.btn-action-admin:hover {
    background: #059669;
}
.form-card-admin {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.form-card-admin h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.75rem;
}
.toggle-box-admin {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}
.toggle-info-admin h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}
.toggle-info-admin p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}
.switch-admin {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}
.switch-admin input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-admin {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: .3s;
    border-radius: 34px;
}
.slider-admin:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider-admin {
    background-color: #059669;
}
input:checked + .slider-admin:before {
    transform: translateX(24px);
}
.form-group-admin {
    margin-bottom: 1.5rem;
}
.form-group-admin label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}
.form-group-admin small {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}
.form-control-admin {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
}
.form-control-admin:focus {
    outline: none;
    border-color: #059669;
}
textarea.form-control-admin {
    font-family: monospace;
    font-size: 0.85rem;
    resize: vertical;
}
.btn-save-admin {
    padding: 0.85rem 2rem;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-save-admin:hover {
    background: #047857;
}
.alert-success-admin {
    background: #064e3b;
    border: 1px solid #059669;
    color: #a7f3d0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.alert-danger-admin {
    background: #7f1d1d;
    border: 1px solid #991b1b;
    color: #fecaca;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.tip-box-admin {
    background: #451a03;
    border: 1px solid #78350f;
    color: #fde68a;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
.login-body {
    background: #0f172a;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}
.login-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-logo {
    width: 56px;
    height: 56px;
    background: #059669;
    color: #ffffff;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.login-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}
.login-header p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}
.btn-submit-login {
    width: 100%;
    padding: 0.85rem;
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    margin-top: 0.5rem;
}
.btn-submit-login:hover {
    background: #047857;
}
.back-link-admin {
    text-align: center;
    margin-top: 1.5rem;
}
.back-link-admin a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}
.back-link-admin a:hover {
    color: #ffffff;
}
