/* CineAHO BMI Calculator Stylesheet */

:root {
  /* Colors */
  --brand-cyan: #06b6d4;
  --brand-cyan-dark: #0891b2;
  --brand-blue: #3b82f6;
  --brand-blue-dark: #1d4ed8;
  --brand-green: #10b981;
  --brand-green-dark: #047857;
  --brand-yellow: #eab308;
  --brand-orange: #f97316;
  --brand-red: #ef4444;

  --bg-dark: #0b1329;
  --panel-bg: rgba(15, 23, 42, 0.7);
  --border-light: rgba(255, 255, 255, 0.08);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.15);
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* 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.5;
}

/* Background Lighting */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-cyan {
  background: var(--brand-cyan);
  top: -100px;
  left: -100px;
}
.bg-glow-blue {
  background: var(--brand-blue);
  bottom: 10%;
  right: -100px;
}

/* Glass panel container helper */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}
.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-premium), 0 0 25px rgba(255,255,255,0.02);
}

/* ==========================================================================
   PORTAL HEADER
   ========================================================================== */
.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: relative;
}

.glass-header {
  background: rgba(10, 16, 32, 0.85);
  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-cyan) 0%, var(--brand-blue) 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(6, 182, 212, 0.3);
}

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

.logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.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,
.nav-list a.active {
  color: #fff;
}

.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-cyan);
  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: #fff;
  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-cyan);
  transform: translateX(-2px);
}

/* ==========================================================================
   MAIN BMI WORKSPACE
   ========================================================================== */
.bmi-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem 1.5rem;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Back navigation 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-cyan);
  transform: translateX(-3px);
}

/* App Header Banner Card */
.app-banner {
  padding: 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.6) 100%);
}
.app-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--brand-cyan), var(--brand-blue));
}

.badge-capsule {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--brand-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

.app-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.app-banner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.banner-decor {
  font-size: 3.5rem;
  color: rgba(255,255,255,0.04);
}

/* Quick Select bar */
.quick-select-card {
  padding: 1.25rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(15, 23, 42, 0.5);
}
.qs-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.qs-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.qs-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.qs-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
.qs-btn.active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   INPUTS & RESULTS GRID
   ========================================================================== */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.8rem;
}

.grid-col-input,
.grid-col-results {
  padding: 2.2rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.panel-header.no-border {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1rem;
}
.panel-header .title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  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,
.btn-copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
}
.btn-copy:hover {
  transform: scale(1.05);
}

/* Sliders */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.slider-label-row .label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}
.slider-label-row .value-display {
  font-size: 1.4rem;
  color: var(--brand-cyan);
}
.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;
}

/* Customize Range Slider Input */
.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;
  transition: background 0.3s;
}
.range-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: transparent;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-cyan);
  cursor: pointer;
  margin-top: -7px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
  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-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
  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.76rem;
  color: var(--text-muted);
}

/* Quick weight select button row */
.quick-weight-selector {
  border-top: 1px dashed var(--border-light);
  padding-top: 1.5rem;
}
.qw-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}
.qw-btn {
  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.5rem 0.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.qw-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.qw-btn.active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

/* Results panel output displays */
.bmi-output-display {
  text-align: center;
  margin-bottom: 2rem;
}
.bmi-output-display .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bmi-output-display h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.5rem 0;
  background: linear-gradient(to right, #fff 30%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bmi-output-display h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.bmi-output-display p {
  font-size: 0.9rem;
}

/* Text coloring variables */
.text-blue { color: var(--brand-blue) !important; }
.text-green { color: var(--brand-green) !important; }
.text-yellow { color: var(--brand-yellow) !important; }
.text-orange { color: var(--brand-orange) !important; }
.text-red { color: var(--brand-red) !important; }

/* Dynamic Gauge scale bar */
.bmi-gauge-wrapper {
  margin-bottom: 2.5rem;
  position: relative;
  padding: 2.5rem 0 0.5rem 0; /* space for bubble */
}
.bmi-gauge-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  position: relative;
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.gauge-sec {
  height: 100%;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.gauge-sec:first-child {
  border-radius: 6px 0 0 6px;
}
.gauge-sec:last-child {
  border-radius: 0 6px 6px 0;
}

/* Color segments gradients */
.gauge-sec.underweight { background: linear-gradient(to right, #1d4ed8, var(--brand-blue)); }
.gauge-sec.normal { background: linear-gradient(to right, var(--brand-blue), var(--brand-green)); }
.gauge-sec.overweight { background: linear-gradient(to right, var(--brand-green), var(--brand-yellow)); }
.gauge-sec.obese-1 { background: linear-gradient(to right, var(--brand-yellow), var(--brand-orange)); }
.gauge-sec.obese-2 { background: linear-gradient(to right, var(--brand-orange), var(--brand-red)); }

/* Pointer Needle Pin */
.gauge-pointer {
  position: absolute;
  top: -24px; /* offset up */
  left: 50%; /* driven dynamically */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}
.pointer-bubble {
  background: #fff;
  color: #0b1329;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  position: relative;
  white-space: nowrap;
}
.pointer-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
  margin-top: -1px;
}

/* Secondary Cards grids */
.results-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.res-sub-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
}
.res-sub-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.res-sub-card.span-all {
  grid-column: span 2;
}

.res-sub-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.icon-wrap.color-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--brand-green);
}
.icon-wrap.color-orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--brand-orange);
}
.icon-wrap.color-cyan {
  background: rgba(6, 182, 212, 0.1);
  color: var(--brand-cyan);
}
.icon-wrap.color-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand-blue);
}

.res-sub-card .card-info {
  display: flex;
  flex-direction: column;
}
.res-sub-card .lbl {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.res-sub-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0.15rem 0;
}
.res-sub-card p {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   STANDARD CLASSIFICATION TABLE
   ========================================================================== */
.standard-table-section {
  padding: 2.2rem;
  background: rgba(15, 23, 42, 0.55);
}
.standard-table-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.table-container {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

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

/* Markers colors representing category */
.class-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.class-title .marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.row-underweight .marker { background: var(--brand-blue); }
.row-normal .marker { background: var(--brand-green); }
.row-overweight .marker { background: var(--brand-yellow); }
.row-obese-1 .marker { background: var(--brand-orange); }
.row-obese-2 .marker { background: var(--brand-orange); }
.row-obese-3 .marker { background: var(--brand-red); }

.row-underweight .class-title { color: var(--brand-blue); }
.row-normal .class-title { color: var(--brand-green); }
.row-overweight .class-title { color: var(--brand-yellow); }
.row-obese-1 .class-title { color: var(--brand-orange); }
.row-obese-2 .class-title { color: var(--brand-orange); }
.row-obese-3 .class-title { color: var(--brand-red); }

/* Table Highlight Active row */
.bmi-table tr.active-highlight {
  background: rgba(16, 185, 129, 0.05);
  border: 2px solid var(--brand-green); /* Fallback */
  box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.1);
  position: relative;
}
.bmi-table tr.active-highlight td {
  border-bottom-color: var(--brand-green);
  border-top: 1px solid var(--brand-green);
  color: #fff;
}
.bmi-table tr.active-highlight td:first-child {
  border-left: 2px solid var(--brand-green);
}
.bmi-table tr.active-highlight td:last-child {
  border-right: 2px solid var(--brand-green);
}

.check-icon {
  display: none;
  font-weight: 800;
  margin-left: 0.25rem;
}
.active-highlight .check-icon {
  display: inline;
}

.table-footnote {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   COMPREHENSIVE GUIDE SECTION
   ========================================================================== */
.guide-details-section {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.guide-details-section h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.guide-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.guide-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.8rem;
}
.guide-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Guide usage list */
.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.guide-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
}
.guide-list .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Formula Block */
.formula-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.formula-box .formula {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-cyan);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}
.formula-box .example {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.formula-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Guide Standards comparison */
.guide-comparison-wrap h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
}
.comparison-table th {
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  font-weight: 700;
}
.comparison-table .type {
  font-weight: 700;
  color: #fff;
}
.comparison-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  line-height: 1.5;
}

/* Health tips block */
.guide-health-tips h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tips-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tips-bullets li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.65;
  align-items: flex-start;
}
.tips-bullets li i {
  font-size: 1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.tips-bullets li strong {
  color: #fff;
  margin-right: 0.25rem;
}

/* ==========================================================================
   FLOATING CONTROLS
   ========================================================================== */
.floating-controls-panel {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 99;
}

/* Scroll progress indicator ring */
.progress-ring-wrap {
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.progress-ring-svg {
  transform: rotate(-90deg);
}
.progress-ring-circle-bg {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 3;
}
.progress-ring-circle-indicator {
  fill: transparent;
  stroke: var(--brand-cyan);
  stroke-width: 3;
  stroke-dasharray: 125.66; /* 2 * PI * r (2 * 3.14159 * 20 = 125.66) */
  stroke-dashoffset: 125.66;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s;
}
.progress-txt {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-cyan);
  font-family: monospace;
}

.floating-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.floating-btn:hover {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #fff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: rgba(10, 16, 32, 0.5);
  margin-top: 4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.main-footer .footer-note {
  margin-top: 0.5rem;
  opacity: 0.6;
}

/* ==========================================================================
   PRINT MEDIA RULES
   ========================================================================== */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .bg-glow,
  .main-header,
  .sub-nav-back,
  .qs-title,
  .qs-buttons,
  .btn-reset,
  .btn-copy,
  .range-bounds,
  .quick-weight-selector,
  .floating-controls-panel,
  .main-footer,
  .range-slider {
    display: none !important;
  }
  
  .bmi-container {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .app-banner {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #000 !important;
    padding: 1.5rem !important;
  }
  .app-banner h2 { color: #000 !important; }
  .badge-capsule {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-col-input,
  .grid-col-results,
  .standard-table-section,
  .guide-details-section {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 1.5rem !important;
  }

  .slider-label-row .value-display {
    color: #000 !important;
  }

  .bmi-output-display h1 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #000 !important;
  }

  .bmi-gauge-bar {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
  }

  .pointer-bubble {
    border: 1px solid #000 !important;
    background: #f8fafc !important;
    color: #000 !important;
  }

  .res-sub-card {
    border: 1px solid #cbd5e1 !important;
    background: transparent !important;
  }
  .res-sub-card h3 { color: #000 !important; }

  .bmi-table,
  .comparison-table {
    border-color: #cbd5e1 !important;
  }
  .bmi-table th,
  .bmi-table td,
  .comparison-table th,
  .comparison-table td {
    border-color: #cbd5e1 !important;
    color: #000 !important;
  }
  .bmi-table tr.active-highlight {
    background: #f0fdf4 !important;
    border: 1px solid #22c55e !important;
  }

  .guide-card,
  .formula-box {
    border: 1px solid #cbd5e1 !important;
    background: transparent !important;
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .calculator-grid {
    grid-template-columns: 1fr;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .quick-select-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}
@media (max-width: 600px) {
  .main-header {
    flex-direction: column;
    gap: 0.85rem;
    border-radius: 16px;
    padding: 1rem;
  }
  .header-nav {
    margin: 0;
    width: 100%;
  }
  .nav-list {
    justify-content: center;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .results-cards-grid {
    grid-template-columns: 1fr;
  }
  .res-sub-card.span-all {
    grid-column: span 1;
  }
}
