/* ==========================================================================
   TDEE CALCULATOR & ADAPTIVE EXPENDITURE PLATFORM - DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1c2742;
  --bg-card: rgba(23, 32, 54, 0.7);
  --bg-card-hover: rgba(30, 42, 70, 0.85);

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(6, 182, 212, 0.4);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px var(--accent-cyan-glow);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables & Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.2);
  --accent-indigo: #4f46e5;
  --accent-purple: #9333ea;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --border-color: rgba(15, 23, 42, 0.12);
  --border-highlight: rgba(2, 132, 199, 0.35);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(2, 132, 199, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(147, 51, 234, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .tdee-main-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.95));
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
}

[data-theme="light"] .tdee-number {
  background: linear-gradient(135deg, #0f172a 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .range-box {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .segmented-control {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme="light"] .segmented-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .goal-tab-btn.active {
  background: var(--accent-cyan);
  color: #ffffff;
}

[data-theme="light"] .input-field,
[data-theme="light"] .select-field {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .input-field:focus,
[data-theme="light"] .select-field:focus {
  border-color: var(--accent-cyan);
  background: #ffffff;
}

[data-theme="light"] .article-body {
  color: #334155;
}

[data-theme="light"] .calibration-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(147, 51, 234, 0.25);
}

[data-theme="light"] .wizard-box {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .diagnostic-box {
  background: rgba(225, 29, 72, 0.04);
  border-color: rgba(225, 29, 72, 0.2);
}

[data-theme="light"] .footer {
  background: #f1f5f9;
  border-top-color: #e2e8f0;
}

[data-theme="light"] .footer-bottom {
  border-top-color: #e2e8f0;
}

/* Theme Toggle Button Styles */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  outline: none;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-cyan);
  transform: scale(1.06);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.theme-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

[data-theme="dark"] .theme-icon.moon {
  opacity: 0;
  transform: translateY(14px) rotate(60deg);
}

[data-theme="dark"] .theme-icon.sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

[data-theme="light"] .theme-icon.moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

[data-theme="light"] .theme-icon.sun {
  opacity: 0;
  transform: translateY(-14px) rotate(-60deg);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.85rem;
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none !important;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
  text-decoration: none;
}

.header-cta {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
  transition: var(--transition);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
  color: #fff;
  text-decoration: none;
}

/* Hero & Main Calculator Workspace */
.hero-section {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* Main Grid Layout for Calculator */
.calc-grid {
  display: grid;
  /* minmax(0,1fr) lets the column shrink below the <select>'s long option text */
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .calc-grid {
    grid-template-columns: 460px minmax(0, 1fr);
  }
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

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

.card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
}

.card-title-icon {
  color: var(--accent-cyan);
}

/* Form Styling */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.label-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* Segmented Control / Toggle Buttons */
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.segmented-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.segmented-btn.active {
  background: var(--bg-tertiary);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Input Fields & Selects */
.input-field,
.select-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.input-field:focus,
.select-field:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.input-unit {
  position: absolute;
  right: 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
}

/* Primary Action Buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Results Display Panel */
.results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tdee-main-card {
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.9), rgba(28, 39, 66, 0.9));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tdee-main-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 60%);
  pointer-events: none;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.tdee-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tdee-unit {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.range-box {
  margin-top: 1rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.range-value {
  font-weight: 700;
  color: var(--accent-cyan);
}

.metrics-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.metric-mini-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.metric-mini-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-mini-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Goal Selector & Target Cards */
.goals-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-primary);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow-x: auto;
}

.goal-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.goal-tab-btn.active {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.target-calories-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.target-cal-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.target-pace {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* Rest vs Training Day Card */
.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.split-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.split-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.split-val {
  font-size: 1.4rem;
  font-weight: 800;
}

.split-box.training .split-val {
  color: var(--accent-emerald);
}

.split-box.rest .split-val {
  color: var(--accent-amber);
}

/* Macro Distribution Bars */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.macro-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.macro-card.protein {
  border-top: 3px solid var(--accent-rose);
}

.macro-card.carbs {
  border-top: 3px solid var(--accent-cyan);
}

.macro-card.fat {
  border-top: 3px solid var(--accent-amber);
}

.macro-grams {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.macro-cals {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Interactive Activity Wizard Modal/Section */
.wizard-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.option-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.option-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.option-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.option-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Calibration Lab (Signature Differentiator) */
.calibration-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 4rem 0;
  box-shadow: var(--shadow-lg);
}

.calibration-badge {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-purple);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.tracker-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tracker-table th,
.tracker-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.tracker-table th {
  background: var(--bg-primary);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.tracker-table td input {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  width: 100px;
}

.calibration-result-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Diagnostic Drawer / Section */
.diagnostic-box {
  background: rgba(244, 63, 94, 0.05);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
}

/* Topical SEO Content & Silo Hub */
.content-section {
  padding: 4rem 0;
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #cbd5e1;
}

.article-body h2 {
  font-size: 1.8rem;
  margin: 2.2rem 0 1rem;
  color: var(--text-main);
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 1.8rem 0 0.8rem;
  color: var(--accent-cyan);
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 1.8rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Footer & Full Silo Tree Links */
.footer {
  background: #070a12;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  font-size: 0.9rem;
}

.footer-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  color: var(--text-dim);
}

/* Utility classes & Print styles */
.hidden {
  display: none !important;
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-emerald {
  color: var(--accent-emerald);
}

.text-purple {
  color: var(--accent-purple);
}

@media print {

  .header,
  .footer,
  .btn-primary,
  .wizard-box,
  .calibration-section {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .glass-card,
  .tdee-main-card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* ==========================================================================
   RESPONSIVE / MOBILE-FRIENDLY LAYER
   Additive media queries only — no existing rule above is modified,
   and no HTML/JS structure is touched. These breakpoints reflow the
   same elements for smaller viewports.
   ========================================================================== */

/* ---- Tablet & below (≤900px): header starts to compress ---- */
@media (max-width: 900px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-wrapper {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.25rem;
    /* hide scrollbar but keep it scrollable */
    scrollbar-width: thin;
  }

  .nav-menu li {
    flex-shrink: 0;
  }

  .dropdown-menu {
    max-width: 90vw;
  }
}

/* ---- Mobile (≤768px): single-column layout, resized type ---- */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  body {
    overflow-x: hidden;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero-section {
    padding: 2rem 0 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Header uses hamburger nav — layout handled by the mobile nav layer */

  /* Calculator + results already switch to 1 column below 1024px via
     the existing rule; just tighten spacing here */
  .calc-grid {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .glass-card,
  .calibration-section,
  .wizard-box,
  .diagnostic-box {
    padding: 1.25rem;
  }

  /* Card header (title + unit toggle) stacks instead of squeezing */
  .card-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .card-header .segmented-control {
    width: 100% !important;
  }

  /* TDEE result card */
  .result-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .tdee-number {
    font-size: 2.6rem;
  }

  .range-box {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

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

  /* Macro cards: 3 columns is too tight on phones */
  .macro-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .macro-grams {
    font-size: 1.2rem;
  }

  /* Goal tabs: allow horizontal scroll instead of squashing text */
  .goals-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .goal-tab-btn {
    flex: 0 0 auto;
    min-width: 110px;
  }

  .target-calories-display {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .target-pace {
    text-align: left;
  }

  /* Any inline flex row in the markup (macro preset selector row,
     activity simulator row, wizard/calibration action rows) wraps
     instead of overflowing on narrow screens */
  main [style*="display:flex"] {
    flex-wrap: wrap !important;
  }

  /* Fixed-width inline controls become fluid on mobile */
  #select-macro-preset,
  #input-extra-steps {
    width: 100% !important;
    max-width: 100% !important;
  }

  .wizard-box [style*="justify-content:space-between"] {
    text-align: left;
  }

  #btn-start-wizard,
  #btn-apply-wizard,
  #btn-run-diagnostic {
    width: 100% !important;
  }

  #wizard-result {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  #btn-apply-wizard {
    width: 100% !important;
  }

  .calibration-result-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.25rem;
    gap: 1rem;
  }

  .tracker-table th,
  .tracker-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  .tracker-table td input {
    width: 85px;
  }

  .article-body {
    font-size: 1rem;
  }

  .footer-tree {
    gap: 1.5rem;
  }
}

/* ---- Small phones (≤480px): tighter fine-tuning ---- */
@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .logo {
    font-size: 1.15rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .tdee-number {
    font-size: 2.1rem;
  }

  .metrics-mini-grid {
    grid-template-columns: 1fr;
  }

  .macro-grid {
    grid-template-columns: 1fr;
  }

  .split-card {
    grid-template-columns: 1fr;
  }

  .calibration-result-card {
    grid-template-columns: 1fr;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .goal-tab-btn {
    min-width: 130px;
  }

  #input-extra-steps,
  #select-macro-preset {
    font-size: 0.9rem;
  }

  .footer-tree {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION (hamburger) + touch dropdown support
   ========================================================================== */

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Tablet & below: show hamburger, panel menu ---- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .header-cta {
    margin-left: auto;
  }

  .nav-menu {
    /* collapsed by default; expands when .nav-open is set on .header */
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.25rem;
    overflow: visible;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--border-color);
  }

  .nav-open .nav-menu {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 0.5rem;
  }

  /* Dropdowns become in-flow accordions (no absolute positioning) */
  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    padding: 0.25rem 0 0.25rem 1rem;
  }

  /* Desktop hover rule disabled on mobile — rely on .touch-open / JS */
  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }

  .nav-dropdown.touch-open .dropdown-menu {
    display: flex;
  }

  /* Indent dropdown items inside the accordion */
  .dropdown-item {
    padding: 0.7rem 0.8rem;
  }
}

/* ---- Small phones: CTA moves into the panel area ---- */
@media (max-width: 768px) {
  .nav-wrapper {
    justify-content: flex-start;
    text-align: left;
  }

  .header-cta {
    order: 2;
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .nav-toggle {
    order: 3;
    margin-left: auto;
  }

  .logo {
    order: 1;
    margin-right: auto;
  }

  .nav-menu {
    order: 4;
  }
}

/* iOS: prevent auto-zoom on input focus (16px minimum) */
@media (max-width: 768px) {

  .input-field,
  .select-field,
  .segmented-btn {
    font-size: 16px;
  }
}

/* Very small phones: stack the 2-col footer back to one column */
@media (max-width: 380px) {
  .footer-tree {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   STANDALONE SILO-PAGE CALCULATORS (js/extras.js)
   ========================================================================== */

.extras-calc .extras-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.extras-calc .extras-form-grid .form-group:first-child {
  grid-column: 1 / -1;
}

.extras-result {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.10));
  border: 1px solid rgba(6, 182, 212, 0.3);
  text-align: center;
}

.ex-result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.ex-result-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0.25rem 0;
}

.ex-result-formula {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.extras-breakdown {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ex-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.ex-row-label {
  color: var(--text-muted);
}

.ex-row-value {
  color: var(--text-main);
  font-weight: 700;
  white-space: nowrap;
}

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

/* Mobile */
@media (max-width: 768px) {
  .extras-calc .extras-form-grid {
    grid-template-columns: 1fr;
  }

  .extras-macro-grid {
    grid-template-columns: 1fr;
  }

  .ex-result-value {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   AI FITNESS & TDEE ASSISTANT CHATBOT WIDGET
   ========================================================================== */

.chat-trigger-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.chat-trigger-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.55);
}

.chat-trigger-icon {
  font-size: 1.2rem;
}

.chat-online-dot {
  width: 9px;
  height: 9px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Floating Chat Window */
.chat-window-card {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 380px;
  max-width: calc(100vw - 2.5rem);
  height: 520px;
  max-height: calc(100vh - 7rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-window-card.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat Header */
.chat-header {
  background: var(--bg-primary);
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chat-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.chat-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.chat-close-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

/* Messages Area */
.chat-messages-container {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scrollbar-width: thin;
}

.chat-msg {
  display: flex;
  gap: 0.6rem;
  max-width: 88%;
}

.chat-msg.user-msg {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.bot-msg {
  align-self: flex-start;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.5;
}

.user-msg .msg-bubble {
  background: var(--accent-cyan);
  color: #000000;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}

.bot-msg .msg-bubble {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
}

.chat-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

/* Typing Dots Animation */
.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  margin-right: 3px;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Quick Chips */
.chat-chips-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  overflow-x: auto;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  scrollbar-width: none;
}

.chat-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-chip:hover {
  background: var(--accent-cyan-glow);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Input Bar */
.chat-input-bar {
  display: flex;
  padding: 0.75rem 0.8rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  gap: 0.5rem;
}

.chat-input-field {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
}

.chat-input-field:focus {
  border-color: var(--accent-cyan);
}

.chat-send-btn {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .chat-window-card {
    right: 1rem;
    bottom: 5rem;
    width: calc(100vw - 2rem);
    height: 480px;
  }

  .chat-trigger-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   HOMEPAGE ARTICLE CONTENT ENHANCEMENTS (PROPER UI/UX DESIGN)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-card);
  font-size: 0.95rem;
}

.styled-table th {
  background: var(--bg-tertiary);
  color: var(--accent-cyan);
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  border-bottom: 2px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.styled-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

.styled-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.formula-callout-box,
.equation-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-left: 5px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
}

.formula-callout-box p,
.equation-box p {
  margin: 0;
  color: var(--text-main);
  font-size: 1.05rem;
}

.worked-example-card {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0 1.75rem;
  box-shadow: var(--shadow-sm);
}

.worked-example-card p {
  margin-bottom: 0.75rem;
}

.calc-step-line {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-cyan);
  font-family: monospace, monospace;
  font-size: 0.95rem;
  color: var(--accent-cyan) !important;
  margin-bottom: 0.5rem !important;
}

[data-theme="light"] .calc-step-line {
  background: rgba(15, 23, 42, 0.05);
  color: var(--accent-cyan) !important;
}

.example-highlight-box,
.comparison-summary-box,
.takeaway-callout-box,
.question-callout-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 4px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
}

.example-highlight-box p,
.comparison-summary-box p,
.takeaway-callout-box p,
.question-callout-box p {
  margin: 0;
  color: var(--text-main);
}

.takeaway-callout-box {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
  border-left-color: var(--accent-purple);
}

.disclaimer-callout-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-left: 5px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.disclaimer-callout-card p {
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.disclaimer-callout-card p:last-child {
  margin-bottom: 0;
}

.about-calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 1.5rem 0 2rem;
}

.eeat-publishing-note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

