/**
 * Core Premium Design Tokens, Components, & Layouts
 * Brand: CalorieDeficitCalculator.co
 * Theme: Premium Emerald Glassmorphism Wellness
 */

/* 1. Imports & Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #090d16;
    --bg-deep: #0f172a;
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --primary-hover: #34d399;
    --secondary: #064e3b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #f59e0b;
    --error: #ef4444;
    --success: #10b981;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* 2. Global Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(6, 78, 59, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.5) 0px, transparent 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

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

a:hover {
    color: var(--primary-hover);
}

/* 3. Layout Structure & Header/Footer */
.app-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
    flex: 1;
    overflow-x: hidden;
}

.site-header {
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
}

.logo-text span {
    color: var(--primary);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.25rem;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--primary), #059669);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-glow);
    color: #fff;
}

.site-footer {
    background: #05080f;
    border-top: 1px solid var(--card-border);
    padding: 4rem 0 2rem 0;
    margin-top: 5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about p {
    margin-top: 1rem;
    max-width: 320px;
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-muted);
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 4. Page Intro & Hero Elements */
.page-intro {
    text-align: center;
    max-width: 750px;
    margin: 4rem auto 3rem auto;
}

.main-post-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main), #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* 5. Central Hub / Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(16, 185, 129, 0.05);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.tool-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-tool-cta {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.tool-card:hover .btn-tool-cta {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

/* 6. Layout for Specific Tools (Split Form / Results) */
.tool-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.calculator-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.calculator-panel h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.results-panel {
    align-self: start;
}

/* 7. Zero-Typing UI Components */
.form-group {
    margin-bottom: 2.25rem;
}

/* Slider Customization */
.slider-group {
    margin-bottom: 2.25rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.slider-header label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.value-display {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.unit-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    margin: 0 0.25rem;
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: var(--transition);
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary);
}

/* Segmented selector cards */
.selector-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.gender-selector, .activity-selector, .climate-selector {
    display: grid;
    gap: 1rem;
}

.gender-selector {
    grid-template-columns: repeat(2, 1fr);
}

.activity-selector {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.climate-selector {
    grid-template-columns: repeat(3, 1fr);
}

.gender-card, .activity-card, .climate-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
}

.gender-card:hover, .activity-card:hover, .climate-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(16, 185, 129, 0.3);
}

.gender-card.active, .activity-card.active, .climate-card.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.card-content svg {
    color: var(--text-muted);
    transition: var(--transition);
}

.gender-card.active .card-content svg,
.activity-card.active .card-content svg,
.climate-card.active .card-content svg {
    color: var(--primary);
    transform: scale(1.1);
}

.card-content span {
    font-weight: 500;
    font-size: 0.9rem;
}

.card-content .activity-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 400;
}

/* 8. Premium Result Widget Card (Glassmorphic) */
.glass-results-card {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.2), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-lg);
}

.glass-results-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.results-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 2.5rem;
}

.results-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-block;
    margin-bottom: 1rem;
}

.result-main-value {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.result-main-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.05rem;
}

.results-breakdown {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.breakdown-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.breakdown-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breakdown-val {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

/* Specific Layout Elements for Deficit Plans & Roadmaps */
.roadmap-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.roadmap-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.roadmap-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

.roadmap-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.timeline-milestone h5 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.timeline-milestone p {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

/* Macros Breakdown visual chart */
.macro-chart {
    display: flex;
    height: 14px;
    border-radius: 100px;
    overflow: hidden;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.1);
}

.macro-bar {
    height: 100%;
}

.macro-bar.protein { background-color: #3b82f6; }
.macro-bar.carbs { background-color: #f59e0b; }
.macro-bar.fat { background-color: #10b981; }

.macro-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.indicator {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
}

.indicator-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.indicator-title.p { color: #60a5fa; }
.indicator-title.c { color: #fbbf24; }
.indicator-title.f { color: #34d399; }

.indicator-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

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

/* BMI status gauge */
.gauge-container {
    margin: 2rem 0;
}

.gauge-track {
    height: 8px;
    border-radius: 100px;
    background: linear-gradient(to right, #60a5fa, #34d399, #fbbf24, #ef4444);
    position: relative;
}

.gauge-pin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--bg-dark);
    position: absolute;
    top: -4px;
    transform: translateX(-50%);
    box-shadow: var(--shadow-sm);
    transition: left 0.5s ease-in-out;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Safety Warnings for floor restrictions */
.safety-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #fbbf24;
}

.safety-warning svg {
    flex-shrink: 0;
}

/* 9. SolutionFlow-Compliant Affiliate Widgets */
.affiliate-section {
    margin-top: 5rem;
    border-top: 1px solid var(--card-border);
    padding-top: 4rem;
}

.affiliate-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.affiliate-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.affiliate-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: var(--shadow-md);
}

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(16, 185, 129, 0.95);
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    z-index: 10;
    font-family: var(--font-heading);
}

.product-image-container {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
}

.product-image-container:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-info {
    padding: 1.5rem 1.75rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.verified-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 0.5rem;
}

.verified-label::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.product-name {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 0.15rem;
}

.star {
    width: 14px;
    height: 14px;
}

.star.full { color: var(--accent); }
.star.half { color: var(--accent); }
.star.empty { color: rgba(255, 255, 255, 0.2); }

.rating-val {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent);
}

.reviews-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    line-height: 1.55;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
    margin-top: auto;
}

.product-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.btn-product-cta {
    background: linear-gradient(135deg, var(--primary), #059669);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-product-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
}

.products-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-style: italic;
}

/* 10. SEO static pages & CMS styles */
.static-page-container {
    max-width: 800px;
    margin: 4rem auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 4rem;
    backdrop-filter: blur(10px);
}

.static-page-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.static-page-container h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
}

.static-page-container p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.static-page-container ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.static-page-container ul li {
    margin-bottom: 0.5rem;
}

/* Admin Dashboard panel styles */
.admin-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-admin {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-admin-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
}

.btn-admin-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-admin-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-admin-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-admin-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-admin-danger:hover {
    background: #ef4444;
    color: #fff;
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-input, .admin-select, .admin-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    width: 100%;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.admin-textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.admin-list-table th, .admin-list-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.admin-list-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
}

.admin-list-table td {
    font-size: 0.9rem;
}

.admin-login-box {
    max-width: 400px;
    margin: 6rem auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.admin-login-box h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.admin-login-box p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.admin-login-box .btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0.8rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.admin-login-box .btn-submit:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary-glow);
}

.admin-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: none;
}

.admin-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.admin-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* 11. Responsive Media Queries */
@media (max-width: 1024px) {
    .tool-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .results-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .main-post-title {
        font-size: 2.25rem;
    }

    .page-subtitle {
        font-size: 1.05rem;
    }

    .calculator-panel {
        padding: 1.75rem;
    }

    .glass-results-card {
        padding: 2rem;
    }

    .result-main-value {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .static-page-container {
        padding: 2rem;
        margin: 2rem auto;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .site-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Mobile: prevent horizontal overflow on water-intake climate cards */
    .climate-selector {
        grid-template-columns: 1fr;
    }

    /* Mobile: prevent any tool panel from causing horizontal scroll */
    .tool-layout {
        overflow-x: hidden;
    }

    .calculator-panel,
    .glass-results-card {
        max-width: 100%;
        overflow: hidden;
    }

    /* Gauge labels wrap on small screens */
    .gauge-labels {
        font-size: 0.6rem;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: space-between;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   12. Premium Additions: Dropdown, Mini Hero, Interactive FAQ & Assessment Panels
   ────────────────────────────────────────────────────────────────────────── */

/* A. Premium Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Hamburger icon button */
.btn-dropdown {
    background: rgba(16, 185, 129, 0.06);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.btn-dropdown .menu-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

.btn-dropdown:hover, .nav-dropdown.open .btn-dropdown {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

/* Hamburger lines icon */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hamburger-icon span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-dropdown.open .hamburger-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-dropdown.open .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-dropdown.open .hamburger-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    width: 260px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .dropdown-content,
.nav-dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none !important;
}

.dropdown-item:hover {
    color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.08);
    padding-left: 1.5rem;
}

.dropdown-divider {
    height: 1px;
    background: var(--card-border);
    margin: 0.4rem 0;
}

/* B. Premium Mini Hero Message Box */
.mini-hero-banner {
    max-width: var(--container-width);
    margin: 2rem auto 0 auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.07), rgba(9, 79, 43, 0.03));
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.mini-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.mini-hero-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.mini-hero-banner h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.mini-hero-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* C. Interactive FAQ Accordion Styles */
.faq-hub-section {
    margin-top: 6rem;
    border-top: 1px solid var(--card-border);
    padding-top: 5rem;
}

.faq-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.faq-badge {
    display: inline-block;
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.faq-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.faq-section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.faq-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.faq-tab-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.faq-tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.faq-category-panel {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.faq-category-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.faq-item[open] {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.05);
}

.faq-item summary {
    padding: 1.25rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.75rem 1.5rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-answer p {
    margin: 0;
    padding-top: 1rem;
}

/* D. Expert Assessment Premium Panel Styles */
.assessment-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(96, 165, 250, 0.02));
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(15px);
}

.assessment-header {
    margin-bottom: 2rem;
}

.assessment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.assessment-header h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.assessment-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.assessment-summary {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 2.2rem;
}

.assessment-summary h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1rem;
}

.assessment-summary p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.assessment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.assessment-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.assessment-col.strengths {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.assessment-col.improvements {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05) 0%, rgba(15, 23, 42, 0.5) 100%);
    border: 1px solid rgba(96, 165, 250, 0.18);
}

.assessment-col:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.assessment-col.strengths:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.assessment-col.improvements:hover {
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.05);
}

.assessment-col h4 {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.assessment-col.strengths h4 {
    color: var(--primary);
    border-bottom-color: rgba(16, 185, 129, 0.1);
}

.assessment-col.improvements h4 {
    color: #60a5fa;
    border-bottom-color: rgba(96, 165, 250, 0.1);
}

.assessment-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex-grow: 1;
}

.assessment-col li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.assessment-col li strong {
    color: #fff;
}

.assessment-col.strengths li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.assessment-col.improvements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* E. Copy Button Styling */
.btn-copy-result {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-copy-result:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* E2. Recommended Next Steps CTA */
.next-steps-cta {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 2.25rem;
    margin-top: 2.5rem;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.next-steps-cta:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}

.next-steps-cta .cta-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.next-steps-cta h5 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.next-steps-cta p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.cta-scroll-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--primary);
    animation: bounce 2s infinite;
}

.next-steps-cta:hover .cta-scroll-arrow {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary);
}

.btn-view-evaluation {
    width: 100%;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, var(--primary), #059669);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.9rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    transition: var(--transition);
}

.btn-view-evaluation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* F. CSS Animation Helper */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* H. Tool Disclaimer — small subtle gray below input panel */
.tool-disclaimer {
    font-size: 0.71rem;
    color: rgba(148, 163, 184, 0.55);
    line-height: 1.5;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-disclaimer strong {
    color: rgba(148, 163, 184, 0.75);
    font-weight: 600;
}

/* I. Formula Source Strip — compact info box at top of tool page */
.formula-source-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.13);
    border-radius: var(--radius-md);
    padding: 0.65rem 1.1rem;
    margin-top: 1.5rem;
    font-size: 0.77rem;
    line-height: 1.4;
}

.fss-label {
    color: #93c5fd;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.fss-sep {
    color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.fss-formula {
    color: var(--text-muted);
    font-style: italic;
    flex: 1;
    min-width: 0;
}

.fss-sources {
    color: rgba(148, 163, 184, 0.65);
    flex-shrink: 0;
}

.fss-sources a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fss-sources a:hover {
    color: #bfdbfe;
}

/* G. Responsive Additions */
@media (max-width: 768px) {
    .mini-hero-banner {
        padding: 1.5rem;
        margin: 1rem 0.75rem 0 0.75rem;
    }
    .mini-hero-banner h2 {
        font-size: 1.6rem;
    }
    .faq-section-header h2 {
        font-size: 1.75rem;
    }
    .assessment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .assessment-wrapper {
        padding: 1.5rem;
    }
    /* Hamburger menu label hidden on very small screens */
    .btn-dropdown .menu-label {
        display: none;
    }
    /* Dropdown anchors to right edge, never off-screen */
    .dropdown-content {
        right: 0;
        left: auto;
        width: 230px;
    }
    .nav-dropdown.open .dropdown-content {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    /* Tool card icons centered on mobile */
    .tool-card {
        align-items: center;
        text-align: center;
    }
    .tool-icon {
        margin-left: auto;
        margin-right: auto;
    }
    .tool-card p {
        text-align: center;
    }
    /* Logo smaller on mobile */
    .logo {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    .logo-icon {
        width: 1.8rem;
        height: 1.8rem;
    }
    .logo-icon svg {
        width: 14px !important;
        height: 14px !important;
    }
    /* nav-wrapper stays horizontal on mobile */
    .nav-wrapper {
        flex-direction: row !important;
        gap: 0 !important;
    }
    .site-nav {
        gap: 0.5rem;
    }
}

/* Extra small screens (iPhone SE / 5/6/7 ~375px and below) */
@media (max-width: 400px) {
    .logo-text {
        font-size: 0.95rem;
    }
    /* FAQ tabs: scroll horizontally on tiny screens */
    .faq-category-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
    }
    .faq-tab-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        flex-shrink: 0;
    }
    .mini-hero-banner h2 {
        font-size: 1.35rem;
    }
}

/* Formula Source Strip: stack vertically on mobile */
@media (max-width: 640px) {
    .formula-source-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .fss-sep {
        display: none;
    }
    .fss-sources {
        white-space: normal;
    }
}
