/* CineAHO Exercise Calories Burned Calculator Stylesheet */

:root {
  /* Colors */
  --brand-orange: #f97316;
  --brand-orange-dark: #ea580c;
  --brand-purple: #a855f7;
  --brand-purple-dark: #7e22ce;
  --brand-blue: #3b82f6;
  --brand-blue-dark: #1d4ed8;
  --brand-green: #10b981;
  --brand-green-dark: #047857;
  --brand-red: #ef4444;
  --brand-yellow: #fbbf24;

  --bg-dark: #060913;
  --panel-bg: rgba(14, 20, 38, 0.55);
  --border-light: rgba(255, 255, 255, 0.05);
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Grid Background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

/* Background Lighting */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -3;
}
.bg-glow-orange {
  background: radial-gradient(circle, #ea580c 0%, transparent 70%);
  top: -200px;
  left: 10%;
}
.bg-glow-purple {
  background: radial-gradient(circle, #7e22ce 0%, transparent 70%);
  top: 25%;
  right: 5%;
}

/* Glass panel helper */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}
.glass-panel:hover {
  border-color: rgba(249, 115, 22, 0.2);
  box-shadow: var(--shadow-premium), 0 0 25px rgba(249, 115, 22, 0.05);
}

.glass-panel-inner {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  transition: var(--transition-smooth);
}
.glass-panel-inner:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--border-light);
}

/* ==========================================
     PORTAL HEADER & FOOTER
     ========================================== */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  z-index: 100;
  margin: 1rem 1.5rem 0 1.5rem;
  border-radius: 50px;
  position: sticky;
  top: 1rem;
}

.glass-header {
  background: rgba(14, 20, 38, 0.75);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-circle {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.logo-text span {
  color: var(--text-muted);
  font-weight: 400;
}

.header-nav {
  flex-grow: 1;
  margin: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  white-space: nowrap;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-list a:hover {
  color: var(--text-light);
}

.nav-list a.active {
  color: var(--text-muted);
}

.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 2px;
}

.btn-back-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-back-dashboard:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--brand-orange);
  transform: translateX(-2px);
}

.main-footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-light);
  margin-top: 5rem;
  background: rgba(14, 20, 38, 0.4);
}
.main-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-note {
  margin-top: 0.5rem;
  font-size: 0.78rem !important;
}

/* ==========================================
     MAIN CALCULATOR WORKSPACE
     ========================================== */
.calculator-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Back Link */
.sub-nav-back {
  display: flex;
}
.back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}
.back-link:hover {
  color: var(--brand-orange);
  transform: translateX(-3px);
}

/* Header Banner Card */
.app-banner {
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 20, 38, 0.85) 0%, rgba(30, 41, 59, 0.4) 100%);
}
.app-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--brand-orange), var(--brand-purple));
}

.badge-capsule {
  display: inline-block;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--brand-orange);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.app-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.app-banner p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.banner-decor {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.03);
}

/* ==========================================
     INPUTS & RESULTS GRID
     ========================================== */
.calculator-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}
.grid-col-input,
.grid-col-results {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
}
.panel-header.no-border {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.2rem;
}
.panel-header .title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.panel-header .title-sub {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-reset,
.btn-copy {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(180deg);
}
.btn-copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Sliders styling */
.slider-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.2rem;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.slider-label-row .label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}
.slider-label-row .label i {
  margin-right: 0.35rem;
}
.slider-label-row .value-display {
  font-size: 1.4rem;
  color: var(--brand-orange);
  transition: var(--transition-smooth);
}

.slider-label-row strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}
.slider-label-row .unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.1rem;
}

/* Range Slider input custom styling */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  margin: 1rem 0 0.5rem 0;
  transition: background 0.3s;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #fff;
}
.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}
.range-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: #fff;
}

.range-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Quick Select buttons */
.quick-buttons-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.quick-buttons-row .qs-btn {
  flex: 1;
  min-width: 42px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}
.quick-buttons-row .qs-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.quick-buttons-row .qs-btn.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Exercise selector headers */
.exercise-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border-top: 1px dashed var(--border-light);
  padding-top: 1.8rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.exercise-intensity-group {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.intensity-block {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.intensity-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.intensity-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.intensity-label.low { color: var(--brand-green); }
.intensity-label.low .dot { background-color: var(--brand-green); }
.intensity-label.moderate { color: var(--brand-yellow); }
.intensity-label.moderate .dot { background-color: var(--brand-yellow); }
.intensity-label.high { color: var(--brand-red); }
.intensity-label.high .dot { background-color: var(--brand-red); }

.exercise-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.ex-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.8rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  text-align: center;
}
.ex-btn .ex-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}
.ex-btn span {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}
.ex-btn .ex-mets-desc {
  font-size: 0.65rem;
  color: var(--text-dark);
  font-weight: 500;
}
.ex-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
}
.ex-btn:hover .ex-icon {
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Active glowing button styles based on intensity */
.ex-btn.active.intensity-low {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--brand-green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.ex-btn.active.intensity-low .ex-icon {
  color: var(--brand-green);
}

.ex-btn.active.intensity-moderate {
  background: rgba(251, 191, 36, 0.08);
  border-color: var(--brand-yellow);
  color: #fff;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}
.ex-btn.active.intensity-moderate .ex-icon {
  color: var(--brand-yellow);
}

.ex-btn.active.intensity-high {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}
.ex-btn.active.intensity-high .ex-icon {
  color: var(--brand-red);
}

/* ==========================================
     RESULTS PANEL STYLING
     ========================================== */
.calorie-output-display {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem 1.5rem;
}

.exercise-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--brand-orange);
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.exercise-title-badge .duration {
  font-weight: 500;
  opacity: 0.85;
}

.calorie-output-display h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0.75rem 0 1.5rem 0;
  background: linear-gradient(135deg, #ffffff 40%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.calorie-output-display h1 .unit {
  font-size: 2rem;
  font-weight: 600;
  margin-left: 0.15rem;
  vertical-align: baseline;
  -webkit-text-fill-color: var(--brand-orange);
}

/* Sub stats grid */
.sub-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}
.sub-stat-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
}
.sub-stat-box .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.sub-stat-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0.2rem 0;
  color: #fff;
}
.sub-stat-box p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Weight loss analysis card */
.weight-loss-analysis-card {
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--brand-orange);
}
.card-header-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}
.analysis-txt {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}
.analysis-txt strong {
  color: var(--brand-orange);
  font-weight: 700;
}

/* Food substitution grid */
.food-substitution-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.food-item {
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.food-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}
.food-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}
.food-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0.15rem 0;
}
.food-cal {
  font-size: 0.68rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* ==========================================
     COMPARISON TABLE SECTION
     ========================================== */
.comparison-table-section {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
}
.comparison-table-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.table-container {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.2);
}

.calories-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.calories-table th,
.calories-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.calories-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.calories-table tr:last-child td {
  border-bottom: none;
}

.calories-table tbody tr {
  transition: var(--transition-smooth);
}
.calories-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Selected row in comparison table */
.calories-table tr.active-row {
  background-color: rgba(249, 115, 22, 0.05) !important;
}
.calories-table tr.active-row td {
  color: #fff;
  font-weight: 600;
}

/* Badge pills */
.badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-align: center;
}
.badge-pill.intensity-low {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--brand-green);
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.badge-pill.intensity-moderate {
  background-color: rgba(251, 191, 36, 0.1);
  color: var(--brand-yellow);
  border: 1px solid rgba(251, 191, 36, 0.15);
}
.badge-pill.intensity-high {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--brand-red);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ==========================================
     EDUCATIONAL GUIDE DETAILS
     ========================================== */
.guide-details-section {
  padding: 2.2rem;
}
.guide-details-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.guide-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.guide-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  list-style: none;
}
.guide-list li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
}
.guide-list li strong {
  color: var(--text-light);
}
.guide-list .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Formula Box */
.formula-box {
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.formula-box .formula {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.formula-box .example {
  font-size: 0.78rem;
  color: var(--brand-orange);
}
.formula-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* METs Explanation Section */
.mets-explanation-wrap {
  border-top: 1px dashed var(--border-light);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}
.mets-explanation-wrap h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mets-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.mets-block {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mets-block .range {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}
.mets-block h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.mets-block p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}
.mets-block .ex-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  text-align: center;
}

/* Blocks styling */
.low-mets { border-top: 3px solid var(--brand-green); }
.low-mets .range { color: var(--brand-green); }
.moderate-mets { border-top: 3px solid var(--brand-yellow); }
.moderate-mets .range { color: var(--brand-yellow); }
.high-mets { border-top: 3px solid var(--brand-red); }
.high-mets .range { color: var(--brand-red); }

/* Strategy section */
.guide-strategy {
  border-top: 1px dashed var(--border-light);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}
.guide-strategy h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.strategy-card {
  padding: 1.5rem;
}
.strategy-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.strategy-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Section */
.guide-faq {
  border-top: 1px dashed var(--border-light);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}
.guide-faq h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}
.faq-list li strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.faq-list li p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Warnings/Disclaimer */
.guide-disclaimer {
  border-top: 1px dashed var(--border-light);
  padding-top: 2rem;
}
.guide-disclaimer h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.disclaimer-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.disclaimer-bullets li {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 1.25rem;
}
.disclaimer-bullets li::before {
  content: '⚠️';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
}

/* ==========================================
     FLOATING TOOLBAR CONTROLS
     ========================================== */
.floating-controls-panel {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  align-items: center;
}

.progress-ring-wrap {
  position: relative;
  width: 50px;
  height: 50px;
  background: rgba(14, 20, 38, 0.85);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.progress-ring-svg {
  position: absolute;
  top: -1px;
  left: -1px;
  transform: rotate(-90deg);
}

.progress-ring-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 3;
}

.progress-ring-circle-indicator {
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 3;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s;
}

.progress-txt {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
}

.floating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 20, 38, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}
.floating-btn:hover {
  background: rgba(14, 20, 38, 0.95);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
}

/* ==========================================
     MEDIA QUERIES (Mobile Responsiveness)
     ========================================== */
@media (max-width: 900px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .app-banner {
    padding: 1.8rem;
  }
  .app-banner h2 {
    font-size: 1.6rem;
  }
  .banner-decor {
    display: none;
  }
  .exercise-buttons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .food-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mets-split,
  .strategy-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .main-header {
    margin: 0.5rem 0.5rem 0 0.5rem;
    padding: 0.6rem 1.2rem;
  }
  .header-nav {
    display: none;
  }
  .floating-controls-panel {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .exercise-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sub-stats-grid {
    grid-template-columns: 1fr;
  }
}
