/* ==========================================================================
   @Abhishektrains Component Styles
   Decluttered, Spacious, Modern Fitness-Tech SaaS Layout
   Typography: Sora (Headings & Numbers), Inter (Body/UI)
   ========================================================================== */

/* --------------------------------------------------------------------------
   SITE BANNER
   -------------------------------------------------------------------------- */
.site-banner {
  background: linear-gradient(90deg, #0050cc 0%, #0066ee 50%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 10px 0;
  text-align: center;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 102, 238, 0.15);
}

.site-banner .banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   NAVIGATION (Fixed Glassmorphism Header)
   -------------------------------------------------------------------------- */
.fixed-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0066ee, #0284c7);
  color: #ffffff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-numbers);
  box-shadow: 0 4px 12px rgba(0, 102, 238, 0.25);
  flex-shrink: 0;
}

.brand-text {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.nav-link:hover::after, .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-blue);
  border-radius: var(--radius-full);
  animation: fadeIn 0.2s ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-text-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-text-btn:hover {
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

/* User Greeting in Nav */
.user-chip-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.logout-link-btn {
  background: none;
  border: none;
  color: var(--accent-rose);
  cursor: pointer;
  font-size: 0.78rem;
  margin-left: 6px;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--topbar-height, 72px);
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 20px 36px 20px;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--topbar-height, 72px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  display: flex;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 12px 6px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  color: var(--brand-blue);
  padding-left: 10px;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.mobile-drawer-actions .btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   HERO SECTION (Spacious & Clean)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 100px 0 80px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.personal-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue-light);
  border: 1px solid rgba(0, 102, 238, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
  transition: all var(--transition-fast);
  white-space: nowrap;
  max-width: 100%;
}

.personal-brand-chip:hover {
  background: #dbeafe;
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #0066ee 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item span {
  color: var(--brand-blue);
  font-weight: 700;
}

/* Hero Visual Mockup Dashboard (Clean SaaS card with gentle float) */
.hero-mock-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  position: relative;
  animation: gentleFloat 6s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.mock-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

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

.mock-calorie-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.mock-stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.mock-stat-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
}

.mock-stat-num {
  font-family: var(--font-numbers);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.mock-stat-unit {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-left: 4px;
  font-weight: 500;
}

.mock-stat-box.target {
  border-color: rgba(0, 102, 238, 0.35);
  background: var(--brand-blue-light);
}

.mock-stat-box.target .mock-stat-num {
  color: var(--brand-blue);
}

.mock-macros-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.mock-macro-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
}

.mock-macro-pill .num {
  font-family: var(--font-numbers);
  font-weight: 700;
  font-size: 1.3rem;
  display: block;
}

.mock-macro-pill.protein .num { color: var(--macro-protein); }
.mock-macro-pill.carbs .num { color: var(--macro-carbs); }
.mock-macro-pill.fat .num { color: var(--macro-fat); }

.mock-macro-pill .lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.mock-graph-bar {
  background: var(--bg-input);
  height: 8px;
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  margin-bottom: 18px;
}

.mock-graph-bar .seg-prot { width: 30%; background: var(--macro-protein); }
.mock-graph-bar .seg-carb { width: 45%; background: var(--macro-carbs); }
.mock-graph-bar .seg-fat { width: 25%; background: var(--macro-fat); }

.mock-footer-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   PERSONAL DASHBOARD
   -------------------------------------------------------------------------- */
.dashboard-card-inner {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   HOW IT WORKS (01 - 02 - 03)
   -------------------------------------------------------------------------- */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-process-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.step-process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 238, 0.3);
  box-shadow: var(--shadow-md);
}

.step-num-badge {
  font-family: var(--font-numbers);
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(0, 102, 238, 0.14);
  line-height: 1;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   CALORIE CALCULATOR
   -------------------------------------------------------------------------- */
.calc-card-container {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.calc-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.calc-step-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-blue);
}

.calc-step-dots {
  display: flex;
  gap: 8px;
}

.step-dot {
  width: 24px;
  height: 5px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  transition: all var(--transition-fast);
}

.step-dot.active {
  background: var(--brand-blue);
  width: 44px;
}

.step-dot.done {
  background: rgba(0, 102, 238, 0.35);
}

.calc-step-view {
  display: none;
}

.calc-step-view.active {
  display: block;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.choice-cards-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.choice-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.choice-card.selected {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px var(--brand-blue);
}

.choice-card input[type="radio"] {
  margin-top: 4px;
  margin-right: 16px;
  accent-color: var(--brand-blue);
  width: 18px;
  height: 18px;
}

.choice-content strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.choice-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.calc-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   CALCULATION RESULTS DASHBOARD
   -------------------------------------------------------------------------- */
.results-dashboard-wrapper {
  margin-top: 60px;
  display: none;
}

.results-dashboard-wrapper.active {
  display: block;
  animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.results-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 18px;
}

.results-targets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.res-primary-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition-fast);
}

.res-primary-box:hover {
  transform: translateY(-2px);
}

.res-primary-box.highlight {
  border-color: rgba(0, 102, 238, 0.35);
  background: var(--brand-blue-light);
}

.res-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.res-num-big {
  font-family: var(--font-numbers);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.res-num-big.green { color: var(--brand-blue); }

.res-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Macros Breakdown */
.macros-results-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.macro-result-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition-fast);
}

.macro-result-card:hover {
  transform: translateY(-2px);
}

.macro-result-card.prot { border-top: 3px solid var(--macro-protein); }
.macro-result-card.carb { border-top: 3px solid var(--macro-carbs); }
.macro-result-card.fat { border-top: 3px solid var(--macro-fat); }

.macro-card-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 8px;
}

.macro-card-grams {
  font-family: var(--font-numbers);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.macro-card-range {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.results-explanation-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
}

.explanation-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.explanation-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.results-upgrade-cta-card {
  background: linear-gradient(135deg, rgba(0, 102, 238, 0.07) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(0, 102, 238, 0.2);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  margin-top: 36px;
}

.upgrade-headline {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.upgrade-subtext {
  font-size: 1.02rem;
  max-width: 600px;
  margin: 0 auto 28px auto;
  color: var(--text-muted);
  line-height: 1.6;
}

.upgrade-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   BUSY MODE SECTION
   -------------------------------------------------------------------------- */
.busy-controls-wrapper {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.meals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.meal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.meal-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.meal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.meal-time-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.meal-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.meal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.meal-macros-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.macro-stat {
  text-align: center;
}

.macro-val {
  font-family: var(--font-numbers);
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
}

.macro-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.macro-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
}

.meal-ingredients-preview {
  margin-bottom: 22px;
}

.ingredients-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 8px;
}

.ingredients-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.ingredients-tags li {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.meal-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.meal-card-footer .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   MEAL PLANNER SECTION
   -------------------------------------------------------------------------- */
.planner-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
}

.stat-main {
  font-family: var(--font-numbers);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.stat-goal {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
}

.progress-track {
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--brand-blue);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-protein { background: var(--macro-protein); }
.fill-warning { background: var(--accent-amber); }

.planner-slots-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.planner-slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: border-color var(--transition-fast);
}

.planner-slot-card:hover {
  border-color: var(--border-light);
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.slot-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slot-icon { font-size: 1.4rem; }
.slot-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.slot-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.slot-meal-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.slot-meal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.slot-ingredients-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ing-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}

.slot-macros {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.slot-macro-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
}

.slot-macro-pill .val {
  font-family: var(--font-numbers);
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.slot-macro-pill.prot .val { color: var(--macro-protein); }

/* --------------------------------------------------------------------------
   FOOD SWAP COMPARATOR
   -------------------------------------------------------------------------- */
.food-swap-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cat-tab:hover {
  color: var(--text-main);
  border-color: var(--border-light);
}

.cat-tab.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.swap-comparator-grid {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.swap-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.swap-item-card.target-card {
  border-color: rgba(0, 102, 238, 0.35);
  background: var(--brand-blue-light);
}

.card-pill-label {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.card-pill-label.highlight { color: var(--brand-blue); }

.dropdown-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.swap-item-nutrients {
  margin: 22px 0;
  padding: 18px;
  background: var(--bg-input);
  border-radius: var(--radius-lg);
}

.swap-cal-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}

.cal-num {
  font-family: var(--font-numbers);
  font-size: 2.3rem;
  font-weight: 800;
}

.cal-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.swap-macro-triplet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.triplet-item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}

.triplet-item .val {
  font-family: var(--font-numbers);
  font-size: 1.15rem;
  font-weight: 700;
}

.item-tip-box {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
}

.swap-center-badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.swap-arrow-circle {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.diff-summary-card {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.84rem;
}

.diff-title {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-size: 0.74rem;
}

.diff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.delta-tag {
  font-family: var(--font-numbers);
  font-weight: 700;
  font-size: 0.82rem;
}

.delta-tag.plus { color: var(--accent-emerald); }
.delta-tag.minus { color: var(--accent-rose); }
.delta-tag.neutral { color: var(--text-dim); }

.coach-takeaway-banner {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   CALORIES LEFT TOOL
   -------------------------------------------------------------------------- */
.cal-left-panel {
  max-width: 760px;
  margin: 0 auto 48px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.cal-left-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0;
}

.cal-number-input {
  width: 170px;
  font-family: var(--font-numbers);
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  background: #ffffff;
  border: 2px solid rgba(0, 102, 238, 0.35);
  border-radius: var(--radius-md);
  color: var(--brand-blue);
  padding: 10px;
}

.cal-slider {
  width: 100%;
  max-width: 480px;
  accent-color: var(--brand-blue);
  margin: 18px 0;
}

.quick-chips-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  border-color: var(--border-light);
  color: var(--text-main);
  transform: translateY(-1px);
}

.cal-left-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.cal-left-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.cal-left-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.meal-type-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.cal-left-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.cal-left-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.cal-left-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
  text-align: center;
}

.stat-bubble .num {
  font-family: var(--font-numbers);
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

.stat-bubble .lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-bubble.protein .num { color: var(--macro-protein); }
.stat-bubble.cal .num { color: var(--brand-blue); }

.cal-left-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   GROCERY LIST
   -------------------------------------------------------------------------- */
.grocery-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.grocery-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grocery-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.grocery-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.cat-title {
  font-size: 1.1rem;
  flex-grow: 1;
}

.cat-count {
  font-size: 0.76rem;
  color: var(--text-dim);
  background: var(--bg-input);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.grocery-items-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grocery-li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.grocery-li.purchased .item-label {
  text-decoration: line-through;
  color: var(--text-dim);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.94rem;
}

.grocery-checkbox {
  accent-color: var(--brand-blue);
  width: 18px;
  height: 18px;
}

.item-qty {
  font-family: var(--font-numbers);
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   PROGRESS TRACKER & CHART
   -------------------------------------------------------------------------- */
.progress-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 250px;
}

.chart-reminder-quote {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

.progress-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.log-weight-card, .stats-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.metric-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.stat-value {
  font-weight: 700;
  font-family: var(--font-numbers);
}

.stat-value.good { color: var(--brand-blue); }

/* --------------------------------------------------------------------------
   PERSONAL BRAND SECTION (@Abhishektrains)
   -------------------------------------------------------------------------- */
.brand-feature-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  color: #ffffff;
}

.coach-avatar-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #1e293b;
  border: 2px solid rgba(0, 102, 238, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.coach-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #94a3b8;
  text-align: center;
  padding: 28px;
}

.coach-avatar-icon {
  font-size: 4.5rem;
  margin-bottom: 14px;
}

.coach-social-pill {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.brand-text-col h2 {
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.creator-insta-link {
  color: #38bdf8 !important;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-block;
}

.creator-insta-link:hover {
  color: #7dd3fc !important;
  text-decoration: underline;
}

.brand-text-col p {
  color: #cbd5e1 !important;
  font-size: 1.05rem;
  line-height: 1.75;
}

.brand-text-col p strong {
  color: #ffffff !important;
}

.brand-quote {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 22px;
  font-family: var(--font-heading);
}

/* --------------------------------------------------------------------------
   PRICING / PAYWALL SECTION
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.pro {
  border-color: rgba(0, 102, 238, 0.45);
  background: linear-gradient(180deg, rgba(0, 102, 238, 0.04) 0%, #ffffff 100%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 0 30px rgba(0, 102, 238, 0.08);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
}

.price-box {
  margin: 28px 0;
}

.price-main {
  font-family: var(--font-numbers);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.check-icon { color: var(--brand-blue); font-weight: 700; }
.cancel-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.pricing-philosophy-quote {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.5;
  margin-top: 8px;
}

.pricing-card.pro.highlighted-yearly {
  border: 2px solid var(--brand-blue);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.12), 0 0 0 1px var(--brand-blue);
}

.tier-pill-starter {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.tier-pill-pro {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.price-subcalc {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-top: 6px;
  font-family: var(--font-heading);
}

.pricing-badge-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge-savings {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #bbf7d0;
  letter-spacing: 0.02em;
}

.badge-daily {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #bae6fd;
}

.trial-info-block {
  margin-top: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

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

.trial-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.prefer-plan-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.prefer-text {
  color: var(--text-muted);
}

.btn-prefer-toggle {
  background: none;
  border: none;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s ease;
}

.btn-prefer-toggle:hover {
  color: #1d4ed8;
}

.pro-features-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 24px 0 14px 0;
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-accordion-stack {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-arrow {
  transition: transform var(--transition-fast);
  color: var(--brand-blue);
}

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

.faq-answer {
  display: none;
  padding: 0 28px 24px 28px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* --------------------------------------------------------------------------
   MODALS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.16);
}

.modal-sm { max-width: 440px; }
.modal-md { max-width: 620px; }
.modal-lg { max-width: 840px; }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-header {
  margin-bottom: 28px;
}

.modal-title {
  font-size: 1.55rem;
  margin-top: 8px;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 70px 0 36px 0;
  margin-top: 80px;
  color: #f8fafc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid #1e293b;
  font-size: 0.88rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   PREP & DINING GRID DESKTOP DEFINITION
   -------------------------------------------------------------------------- */
.prep-dining-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Touch & iOS Input Optimization */
input, select, textarea {
  font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Dev Tier Simulator Base Styles */
.dev-tier-switcher {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.tier-label {
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.76rem;
  white-space: nowrap;
}

.tier-buttons-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tier-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tier-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.tier-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN: TABLETS & SMALL DESKTOPS (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links,
  .nav-actions #nav-login-btn,
  .nav-actions #nav-signup-btn,
  .nav-actions .btn,
  .nav-actions .nav-text-btn,
  .desktop-only {
    display: none !important;
  }
  .hamburger-btn,
  .mobile-only {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-trust-bar {
    justify-content: center;
  }
  .hero-mock-dashboard {
    max-width: 520px;
    margin: 0 auto;
  }
  .prep-dining-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .progress-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .how-it-works-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
  }
  .results-card {
    padding: 36px 28px;
  }
  .results-targets-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
  .macros-results-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .macro-card-grams {
    font-size: 1.85rem;
  }
  .planner-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .meals-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
  }
  .grocery-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .brand-feature-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 32px;
    text-align: center;
  }
  .brand-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN: TABLET PORTRAIT (<= 920px)
   -------------------------------------------------------------------------- */
@media (max-width: 920px) {
  .swap-comparator-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .swap-arrow-circle {
    transform: rotate(90deg);
  }
  .swap-center-badge {
    margin: 8px auto;
    width: 100%;
    max-width: 320px;
  }
  .planner-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN: MOBILE (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section-wrapper {
    padding: 56px 0;
  }
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .section-header {
    margin-bottom: 36px;
  }

  /* Typography */
  h1 { font-size: clamp(1.85rem, 7.5vw, 2.35rem); text-wrap: balance; }
  h2 { font-size: clamp(1.45rem, 6vw, 1.85rem); text-wrap: balance; }
  h3 { font-size: 1.2rem; }

  /* Hero adjustments */
  .hero-section {
    padding: 36px 0 32px 0;
  }
  .hero-badge-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
  }
  .personal-brand-chip {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 6px 14px;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    text-wrap: balance;
    line-height: 1.25;
    margin-bottom: 20px;
    text-align: center;
  }
  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    min-height: 50px;
    justify-content: center;
    text-align: center;
  }
  .hero-trust-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 18px;
    font-size: 0.82rem;
  }
  .hero-mock-dashboard {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  /* How It Works */
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .step-process-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  /* Form & Calculator on Mobile */
  .calc-card-container {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }
  .calc-progress-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }
  .form-row {
    flex-direction: column;
    gap: 14px;
  }
  .col-half {
    width: 100%;
  }
  .pill-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .pill-group .tag-btn, .pill-btn {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
  }
  .choice-card {
    padding: 16px 16px;
    border-radius: var(--radius-md);
    gap: 12px;
    min-height: 54px;
  }
  .choice-card input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
  }
  .choice-content strong {
    font-size: 0.98rem;
  }
  .choice-content p {
    font-size: 0.85rem;
  }
  .calc-nav-buttons {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 28px;
  }
  .calc-nav-buttons .btn {
    width: 100%;
    padding: 15px;
    font-size: 0.98rem;
    min-height: 48px;
  }

  /* Results Dashboard Mobile */
  .results-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }
  .results-targets-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  .res-primary-box {
    padding: 20px 16px;
  }
  .res-num-big {
    font-size: 2.3rem;
  }
  .macros-results-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }
  .macro-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    text-align: left;
    border-top: none;
    border-radius: var(--radius-md);
  }
  .macro-result-card.prot { border-left: 4px solid var(--macro-protein); }
  .macro-result-card.carb { border-left: 4px solid var(--macro-carbs); }
  .macro-result-card.fat { border-left: 4px solid var(--macro-fat); }
  .macro-card-title { margin-bottom: 0; }
  .macro-card-grams { margin-bottom: 0; font-size: 1.6rem; }
  .results-upgrade-cta-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }
  .upgrade-cta-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .upgrade-cta-row .btn {
    width: 100%;
    padding: 14px;
    min-height: 48px;
  }

  /* Busy Mode Mobile */
  .busy-controls-wrapper {
    margin-bottom: 28px;
    width: 100%;
  }
  .tag-group {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .tag-group::-webkit-scrollbar {
    display: none;
  }
  .tag-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 0.86rem;
    min-height: 42px;
  }
  .meals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .meal-card {
    padding: 22px 18px;
    border-radius: var(--radius-lg);
  }
  .meal-card-footer {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .meal-card-footer .btn {
    width: 100%;
    padding: 13px;
    min-height: 46px;
  }

  /* Meal Planner Mobile */
  .planner-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 22px;
  }
  .planner-slot-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }
  .slot-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .slot-macros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }
  .slot-macro-pill {
    width: 100%;
    padding: 8px 6px;
  }
  .slot-macro-pill .val {
    font-size: 1rem;
  }

  /* Food Swap Mobile */
  .category-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
  }
  .cat-tab {
    width: 100%;
    text-align: center;
    padding: 12px 10px;
    font-size: 0.86rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .swap-comparator-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .swap-center-badge {
    margin: 8px auto;
    width: 100%;
  }
  .swap-arrow-circle {
    transform: rotate(90deg);
    margin: 0 auto 8px auto;
  }
  .swap-item-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  /* Calories Left Mobile */
  .cal-left-panel {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 36px;
  }
  .cal-number-input {
    width: 150px;
    font-size: 2.2rem;
    padding: 8px;
  }
  .quick-chips-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .chip-btn {
    width: 100%;
    padding: 12px 8px;
    font-size: 0.84rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cal-left-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .cal-left-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }
  .cal-left-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .cal-left-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    text-align: center;
  }
  .cal-left-footer .btn {
    width: 100%;
    min-height: 44px;
  }

  /* Grocery List Mobile */
  .grocery-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .grocery-btns {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .grocery-btns .btn {
    width: 100%;
    padding: 13px;
    min-height: 46px;
  }
  .grocery-categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .grocery-category-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }
  .grocery-checkbox {
    width: 22px;
    height: 22px;
  }
  .checkbox-container {
    min-height: 44px;
    padding: 6px 0;
  }

  /* Progress Tracker Mobile */
  .chart-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }
  .canvas-container {
    height: 195px;
  }
  .log-weight-card, .stats-summary-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  /* Brand Feature Card */
  .brand-feature-card {
    padding: 30px 18px;
    gap: 26px;
    border-radius: var(--radius-lg);
  }
  .coach-avatar-wrapper {
    max-width: 230px;
  }
  .brand-quote {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  /* Pricing Mobile */
  .pricing-card {
    padding: 30px 18px;
    border-radius: var(--radius-lg);
  }
  .price-main {
    font-size: 2.6rem;
  }

  /* Modals Mobile */
  .modal-backdrop {
    padding: 14px;
  }
  .modal-dialog {
    padding: 24px 16px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: min(94vw, 540px);
  }
  .modal-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
  }

  /* Dev Simulator Controls */
  .dev-tier-switcher {
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    width: calc(100% - 24px);
    max-width: 360px;
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 10px 12px;
    gap: 6px;
    text-align: center;
  }
  .tier-buttons-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
  }
  .tier-btn {
    width: 100%;
    padding: 8px 2px;
    text-align: center;
    font-size: 0.72rem;
  }

  /* Toast notification on mobile */
  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 80px; /* Above dev simulator */
  }
  .toast {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN: EXTRA SMALL SMARTPHONES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .brand-logo {
    font-size: 1.05rem;
    gap: 8px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  .hero-badge-group {
    gap: 6px;
    margin-bottom: 16px;
  }
  .personal-brand-chip {
    font-size: 0.78rem;
    padding: 5px 12px;
    white-space: nowrap;
  }
  .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    white-space: nowrap;
  }
  h1, .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.05rem);
    text-wrap: balance;
    line-height: 1.25;
  }
  .hero-lead {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .hero-trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
  }
  .mock-calorie-split {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mock-stat-num {
    font-size: 1.8rem;
  }
  .mock-macros-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .mock-macro-pill {
    padding: 8px 2px;
  }
  .mock-macro-pill .num {
    font-size: 1rem;
  }
  .cal-number-input {
    width: 120px;
    font-size: 1.8rem;
  }
  .res-num-big {
    font-size: 2.1rem;
  }
  .coach-social-pill {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 10px;
  }
}

/* --------------------------------------------------------------------------
   SUBSCRIPTION PRICING TOGGLE & BILLING MANAGEMENT
   -------------------------------------------------------------------------- */
.pricing-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 36px auto;
}

.pricing-toggle-pill {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.pricing-toggle-btn {
  padding: 10px 26px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.pricing-toggle-btn:hover {
  color: var(--text-main);
}

.pricing-toggle-btn.active {
  background: #ffffff;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.badge-discount {
  background: #dcfce7;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.billing-chip-btn {
  background: rgba(0, 102, 238, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 102, 238, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.billing-chip-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Account Billing Dialog */
.account-billing-dialog {
  max-width: 580px;
}

.billing-details-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

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

.billing-row-val {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.cancellation-notice-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.5;
}

.checkout-dialog {
  max-width: 520px;
}

.checkout-summary-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.checkout-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   INDIAN MEAL PLANNER & 7-DAY ROTATION DESIGN SYSTEM
   -------------------------------------------------------------------------- */
.planner-meta-overview {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.overview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.overview-pill {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.overview-pill .lbl {
  color: var(--text-dim);
}

/* 4 Diet Tabs (Segmented Control) */
.diet-tabs-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.diet-tab-btn {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.diet-tab-btn:hover {
  color: var(--text-main);
}

.diet-tab-btn.active {
  background: #ffffff;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.planner-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.planner-sub-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sub-ctrl-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}

.custom-select-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

/* 7-Day Day Switcher Tabs */
.planner-day-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
}

.day-tabs-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.day-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.day-tab-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-main);
}

.day-tab-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 238, 0.25);
}

.day-tab-btn.locked-day {
  opacity: 0.75;
}

.day-lock-icon {
  font-size: 0.75rem;
}

.active-day-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

/* Meal Slot Cards Action Group */
.slot-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-text-dim {
  background: transparent;
  border: none;
  font-size: 0.76rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-text-dim:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

/* Recipe Details Modal */
.recipe-modal-dialog {
  max-width: 650px;
}

.recipe-macro-strip {
  display: flex;
  justify-content: space-around;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.recipe-ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-ing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.ing-check {
  color: var(--brand-blue);
  font-weight: 700;
  margin-right: 8px;
}

.recipe-oil-callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.84rem;
  color: #92400e;
  line-height: 1.5;
}

.recipe-steps-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipe-step-item {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Grocery Config Strip & Details */
.grocery-diet-bar {
  display: flex;
  justify-content: center;
}

.grocery-config-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
}

.config-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.pill-segmented {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  gap: 4px;
}

.pill-seg-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-seg-btn:hover {
  color: var(--text-main);
}

.pill-seg-btn.active {
  background: #ffffff;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.grocery-cost-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  text-align: right;
}

.cost-lbl {
  font-size: 0.74rem;
  color: #166534;
  font-weight: 600;
  text-transform: uppercase;
}

.cost-val {
  font-family: var(--font-numbers);
  font-size: 1.25rem;
  font-weight: 800;
  color: #15803d;
}

.cost-note {
  font-size: 0.68rem;
  color: #4ade80;
}

.badge-mandi {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-right: 6px;
}

.grocery-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
}

.item-qty-badge {
  font-family: var(--font-numbers);
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.grocery-item-row.is-checked .item-name-text {
  text-decoration: line-through;
  color: var(--text-dim);
}

.coach-swap-advice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   GLOBAL CALORIE TARGET RIBBON & REAL-TIME CALIBRATION
   ========================================================================== */
.global-target-ribbon {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 10px 0;
  position: sticky;
  top: 72px; /* right below sticky topbar */
  z-index: 900;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.global-target-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.target-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.target-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-600, #059669);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.target-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.target-highlight {
  font-family: var(--font-numbers);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.target-highlight small {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.target-macro-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-color);
}

.target-macro-pill.p strong { color: var(--emerald-600, #059669); }
.target-macro-pill.c strong { color: #2563eb; }
.target-macro-pill.f strong { color: #d97706; }

.target-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.target-stepper-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 3px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stepper-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-right: 4px;
}

.btn-stepper {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-stepper:hover {
  background: var(--emerald-50, #ecfdf5);
  border-color: var(--emerald-500, #10b981);
  color: var(--emerald-700, #047857);
}

.target-quick-input {
  width: 68px;
  text-align: center;
  font-family: var(--font-numbers);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 3px 4px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--text-main);
}

.target-quick-input:focus {
  outline: none;
  border-color: var(--emerald-500);
  background: #ffffff;
}

.target-recalc-btn {
  font-size: 0.76rem;
  padding: 5px 12px;
}

/* Daily Progress Bar in Meal Planner */
.planner-daily-progress-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-info strong {
  color: var(--text-main);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Results Calibrated Success Banner */
.results-calibrated-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
}

.calibrated-badge-icon {
  font-size: 2rem;
  line-height: 1;
}

.calibrated-content h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.calibrated-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

.calibrated-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.slot-pct-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-700, #047857);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-left: 6px;
}

/* ==========================================================================
   BEGINNER QUICK-START HUB (3-STEP ROADMAP) - PREMIUM DESIGN
   ========================================================================== */
.beginner-hub-section {
  padding: 48px 0 36px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
}

.beginner-hub-header {
  text-align: center;
  margin-bottom: 36px;
}

.beginner-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.beginner-hub-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-top: 12px;
  margin-bottom: 8px;
}

.beginner-hub-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.beginner-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .beginner-steps-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.beginner-step-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.beginner-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: 0 16px 36px -4px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

.beginner-step-card.step-card-featured {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, rgba(16, 185, 129, 0.03) 100%);
  box-shadow: 0 6px 24px -2px rgba(16, 185, 129, 0.12), 0 2px 8px -1px rgba(15, 23, 42, 0.04);
}

.beginner-step-card.step-card-featured:hover {
  border-color: #10b981;
  box-shadow: 0 16px 36px -4px rgba(16, 185, 129, 0.18);
}

.b-step-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.b-step-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--text-muted);
}

.b-step-badge.blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
}

.b-step-badge.green {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.b-step-badge.purple {
  background: rgba(147, 51, 234, 0.1);
  color: #7e22ce;
}

.b-step-icon-bubble {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.b-step-icon-bubble.blue {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.b-step-icon-bubble.green {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.b-step-icon-bubble.purple {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.2);
}

.beginner-step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.beginner-step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
}

.b-step-btn {
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.b-step-btn.btn-emerald {
  background: #059669;
  border: 1px solid #059669;
  color: #ffffff;
}

.b-step-btn.btn-emerald:hover {
  background: #047857;
  border-color: #047857;
}

.coach-golden-rule-card {
  margin-top: 32px;
  background: #ffffff;
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.05);
}

.coach-rule-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.coach-rule-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.coach-rule-titles strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.coach-rule-titles span {
  font-size: 0.88rem;
  color: var(--brand-blue);
  font-weight: 600;
}

.coach-rule-bullets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rule-pill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 500;
}

.rule-pill-chip .check {
  color: #10b981;
  font-weight: 800;
}

.hub-tabs-container {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.hub-tabs-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  font-family: var(--font-heading);
}

.hub-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}

.hub-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.hub-tab:hover {
  background: #ffffff;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.hub-tab.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Meal Planner View Mode Switcher */
.meal-view-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-top: 16px;
}

.view-mode-toggle {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.view-mode-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-mode-btn.active {
  background: #ffffff;
  color: var(--brand-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Simple Mode Styling on Meal Cards */
.planner-simple-mode .slot-pct-pill,
.planner-simple-mode .exclude-meal-btn,
.planner-simple-mode .slot-macro-pill.carb,
.planner-simple-mode .slot-macro-pill.fat {
  display: none !important;
}

.planner-simple-mode .planner-slot-card {
  padding: 18px 22px;
}

.planner-simple-mode .slot-meal-title {
  font-size: 1.15rem;
}

.planner-simple-mode .slot-macros {
  gap: 8px;
}

.planner-simple-mode .slot-macro-pill.cal,
.planner-simple-mode .slot-macro-pill.prot {
  padding: 8px 14px;
  font-size: 0.9rem;
}

/* Extra Tools Hub Section */
.extra-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .extra-tools-grid {
    grid-template-columns: 1fr;
  }
}

.extra-tool-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.extra-tool-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.extra-tool-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.extra-tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.extra-tool-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Dietary Preference Selection Grid in Calculator Step 2 */
.calc-diet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .calc-diet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calc-diet-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.calc-diet-btn:hover {
  border-color: var(--brand-blue, #2563eb);
  background: #f8fafc;
  transform: translateY(-1px);
}

.calc-diet-btn.active {
  border-color: var(--brand-blue, #2563eb);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.diet-btn-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.diet-btn-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main, #0f172a);
}

.calc-diet-btn.active .diet-btn-name {
  color: var(--brand-blue, #2563eb);
}

/* Results Card Dietary Switcher Pills */
.results-diet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-color, #e2e8f0);
  width: fit-content;
}

@media (max-width: 640px) {
  .results-diet-pills {
    border-radius: var(--radius-lg, 12px);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

.res-diet-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full, 9999px);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted, #475569);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.res-diet-pill:hover {
  color: var(--text-main, #0f172a);
}

.res-diet-pill.active {
  background: var(--brand-blue, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Primary Meal Planner Diet Hero Switcher */
.planner-diet-hero-switcher {
  background: #ffffff;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl, 18px);
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.planner-diet-switcher-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.planner-diet-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 960px) {
  .planner-diet-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .planner-diet-cards-grid {
    grid-template-columns: 1fr;
  }
}

.planner-diet-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  cursor: pointer;
  text-align: left;
  transition: all 0.22s ease;
  font-family: inherit;
}

.planner-diet-btn:hover {
  border-color: var(--brand-blue, #2563eb);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.1);
}

.planner-diet-btn.active {
  border-color: var(--brand-blue, #2563eb);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}

.diet-btn-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.diet-btn-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.diet-btn-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}

.planner-diet-btn.active .diet-btn-name {
  color: var(--brand-blue, #2563eb);
}

.diet-btn-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  line-height: 1.35;
}

.planner-diet-indicator-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md, 10px);
  font-size: 0.92rem;
  color: var(--text-main, #0f172a);
}

.planner-diet-indicator-banner .indicator-icon {
  font-size: 1.35rem;
}

/* ==========================================================================
   TODAY ACTION HUB ("What should I do today?")
   ========================================================================== */
.today-dashboard-section {
  padding: 48px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.today-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.hub-diet-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.diet-current-pill {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-blue, #2563eb);
}

.today-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .today-grid {
    grid-template-columns: 1fr;
  }
}

.today-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl, 18px);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.live-gauge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .live-gauge-row {
    gap: 8px;
  }
  .gauge-num {
    font-size: 1.2rem !important;
  }
  .gauge-lbl {
    font-size: 0.68rem !important;
  }
}

.gauge-stat {
  display: flex;
  flex-direction: column;
}

.gauge-lbl {
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gauge-num {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}

.font-emerald {
  color: #10b981 !important;
}

.font-brand {
  color: #2563eb !important;
}

.font-warning {
  color: #f59e0b !important;
}

/* Habits Strip */
.habits-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .habits-checklist-grid {
    grid-template-columns: 1fr;
  }
}

.habit-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.habit-check-item:hover {
  border-color: #2563eb;
  background: #ffffff;
}

.habit-check-item.done {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.habit-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.habit-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.habit-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}

.habit-status {
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
}

.habit-box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--border-color, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  background: transparent;
  flex-shrink: 0;
}

.habit-check-item.done .habit-box {
  background: #10b981;
  border-color: #10b981;
}

.btn-water-plus {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-water-plus:hover {
  transform: scale(1.08);
}

/* Shortcuts Grid */
.shortcuts-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .shortcuts-actions-grid {
    grid-template-columns: 1fr;
  }
}

.shortcut-action-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
}

.shortcut-action-tile:hover {
  background: #ffffff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.tile-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.tile-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-text strong {
  font-size: 0.88rem;
  color: var(--text-main, #0f172a);
}

.tile-text span {
  font-size: 0.74rem;
  color: var(--text-muted, #64748b);
  line-height: 1.3;
}

/* Today Meals Checklist Stack */
.today-meals-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.today-meal-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  background: #ffffff;
  transition: all 0.2s ease;
}

.today-meal-row:hover {
  border-color: #cbd5e1;
}

.today-meal-row.eaten {
  background: #f8fafc;
  border-color: rgba(16, 185, 129, 0.3);
  opacity: 0.85;
}

.meal-check-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-color, #cbd5e1);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.meal-check-btn.checked {
  background: #10b981;
  border-color: #10b981;
}

.today-meal-content {
  flex-grow: 1;
}

.today-slot-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.today-dish-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 2px 0 4px;
  color: var(--text-main, #0f172a);
}

.today-meal-row.eaten .today-dish-title {
  text-decoration: line-through;
  color: var(--text-muted, #64748b);
}

.today-dish-macros {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.today-reminder-strip {
  padding: 12px 16px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-md, 10px);
  font-size: 0.82rem;
  color: var(--text-main, #0f172a);
  line-height: 1.45;
}

/* Pulse animation for slots refresh */
@keyframes plannerPulse {
  0% { opacity: 0.4; transform: scale(0.99); }
  100% { opacity: 1; transform: scale(1); }
}

.planner-fade-in {
  animation: plannerPulse 0.22s ease-out forwards;
}

/* ==========================================================================
   PERSONALIZED TRAINING PROGRAM SYSTEM & WORKOUT MODE
   ========================================================================== */

.training-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hub-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.training-meta-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.meta-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-main, #0f172a);
}

.meta-pill strong {
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

/* 7-Day Calendar Strip */
.training-week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .training-week-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .training-week-strip .train-day-card {
    min-width: 105px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

.train-day-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.train-day-card:hover {
  border-color: var(--brand-blue, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.train-day-card.active {
  border-color: var(--brand-blue, #2563eb);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.train-day-card.is-today {
  border-top: 3px solid #10b981;
}

.train-day-card.is-rest {
  background: #f8fafc;
  opacity: 0.85;
}

.train-day-card.is-rest.active {
  background: rgba(148, 163, 184, 0.12);
  opacity: 1;
}

.train-day-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main, #0f172a);
}

.today-marker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.train-day-summary {
  font-size: 0.74rem;
  color: var(--text-muted, #64748b);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.train-day-badge {
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 600;
}

.train-day-badge .badge {
  padding: 2px 6px;
  font-size: 0.68rem;
}

/* Active Workout Card */
.training-workout-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl, 18px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.workout-card-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.workout-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-top: 4px;
}

.workout-header-cta {
  display: flex;
  gap: 10px;
}

.rest-day-card-body {
  padding: 28px;
}

.rest-tip-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
}

.rest-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.rest-bullets {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
}

/* Exercise Rows Stack */
.workout-exercises-list {
  padding: 28px;
}

.exercise-rows-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exercise-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  transition: all 0.2s ease;
}

.exercise-item-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.ex-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-main, #0f172a);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ex-main-info {
  flex: 1;
  min-width: 0;
}

.ex-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ex-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  margin: 0;
}

.ex-cues-preview {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  margin-top: 4px;
  line-height: 1.4;
}

.ex-metrics-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ex-chip {
  background: #f8fafc;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: var(--text-secondary, #475569);
  font-weight: 600;
  white-space: nowrap;
}

.ex-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .exercise-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ex-metrics-chips {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .ex-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================================================
   WORKOUT MODE MODAL & SET LOGGING
   ========================================================================== */

.workout-mode-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

.workout-mode-dialog {
  background: #ffffff;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

.workout-mode-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workout-mode-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.workout-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.workout-progress-fill {
  height: 100%;
  background: #38bdf8;
  transition: width 0.3s ease;
}

.workout-mode-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.active-exercise-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-xl, 16px);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.set-input-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.set-input-row {
  background: #f8fafc;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.set-input-row.set-done {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.set-badge {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  padding: 8px 12px;
}

.stepper-control {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
}

.stepper-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.stepper-btn:hover {
  background: #e2e8f0;
}

.stepper-input {
  width: 60px;
  height: 38px;
  border: none;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  background: transparent;
}

.btn-set-check {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color, #e2e8f0);
  background: #ffffff;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-set-check:hover {
  border-color: #10b981;
}

.btn-set-check.checked {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Rest Countdown Box */
.rest-timer-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.rest-timer-countdown {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-heading, 'Sora', sans-serif);
  color: #38bdf8;
  letter-spacing: 2px;
  line-height: 1;
  margin: 10px 0;
}

.rest-timer-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

/* Progressive Overload Box */
.overload-nudge-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px dashed #10b981;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.overload-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.overload-text {
  font-size: 0.88rem;
  color: var(--text-main, #0f172a);
  line-height: 1.45;
}

/* Workout Completion Feel Selector */
.feel-rating-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.feel-btn {
  padding: 10px 18px;
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: inherit;
}

.feel-btn:hover {
  border-color: var(--brand-blue, #2563eb);
}

.feel-btn.selected {
  border-color: var(--brand-blue, #2563eb);
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-blue, #2563eb);
}

/* PR Badges Grid */
.pr-badge-card {
  transition: all 0.2s ease;
}

.pr-badge-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

@media (max-width: 480px) {
  .workout-mode-dialog {
    border-radius: 18px;
    max-height: 96vh;
  }
  .workout-mode-header {
    padding: 14px 16px;
  }
  .workout-mode-body {
    padding: 14px 10px;
  }
  .active-exercise-card {
    padding: 14px 10px;
  }
  .set-badge {
    padding: 6px 4px;
    font-size: 0.75rem;
  }
  .stepper-btn {
    width: 32px;
    height: 34px;
    font-size: 1rem;
  }
  .stepper-input {
    width: 46px;
    height: 34px;
    font-size: 0.88rem;
  }
  .btn-set-check {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .rest-timer-countdown {
    font-size: 2.8rem;
  }
}

/* --------------------------------------------------------------------------
   ADMIN DASHBOARD & USER DATA STYLES
   -------------------------------------------------------------------------- */
.admin-modal-dialog {
  max-width: 1140px;
  width: 95vw;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg-card, #0f172a);
  border: 1px solid var(--border-subtle, #334155);
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle, #334155);
}

.admin-title {
  font-size: 1.4rem;
  margin: 6px 0 4px 0;
  color: var(--text-main, #ffffff);
}

.admin-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  margin: 0;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-export-wrap {
  position: relative;
}

.admin-export-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.export-opt-btn {
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.export-opt-btn:hover {
  background: rgba(255,255,255,0.08);
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-metric-card {
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-input, #1e293b);
  border: 1px solid var(--border-subtle, #334155);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-glow-accent { border-color: rgba(245, 158, 11, 0.4); }
.card-glow-success { border-color: rgba(16, 185, 129, 0.4); }
.card-glow-primary { border-color: rgba(37, 99, 235, 0.4); }
.card-glow-revenue {
  border-color: rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.22));
}
.card-glow-neutral { border-color: rgba(148, 163, 184, 0.3); }
.card-glow-warning { border-color: rgba(239, 68, 68, 0.4); }

.metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim, #94a3b8);
  font-weight: 700;
}

.metric-value {
  font-family: var(--font-numbers);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main, #ffffff);
}

.metric-revenue {
  color: #10b981;
}

.metric-subtext {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.admin-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-search-wrap {
  flex: 1;
  min-width: 240px;
}

.admin-filter-group {
  display: flex;
  gap: 10px;
}

.admin-filter-select {
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
  background: var(--bg-input, #1e293b);
  color: var(--text-main, #f8fafc);
  border: 1px solid var(--border-subtle, #334155);
}

.admin-table-container {
  border: 1px solid var(--border-subtle, #334155);
  border-radius: 14px;
  overflow-x: auto;
  background: var(--bg-surface, #0f172a);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim, #94a3b8);
  border-bottom: 1px solid var(--border-subtle, #334155);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.user-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pro {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-trial {
  background: rgba(37, 99, 235, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-free {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-expired {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* User Detail Overlay */
.admin-sub-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.admin-detail-dialog {
  background: var(--bg-card, #0f172a);
  border: 1px solid var(--border-subtle, #334155);
  border-radius: 18px;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.detail-panel {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-input, #1e293b);
  border: 1px solid var(--border-subtle, #334155);
}

.panel-heading {
  margin: 0 0 12px 0;
  font-size: 0.92rem;
  color: var(--text-main, #ffffff);
  font-weight: 700;
}

.profile-stats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.timeline-panel {
  padding: 16px;
  border-radius: 12px;
  background: var(--bg-input, #1e293b);
  border: 1px solid var(--border-subtle, #334155);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border-subtle, #334155);
  margin-left: 8px;
  margin-top: 12px;
}

.timeline-item {
  position: relative;
}

.timeline-point {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-accent, #f59e0b);
  border: 2px solid var(--bg-card, #0f172a);
}

.timeline-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-main, #f8fafc);
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  margin: 2px 0;
}

.timeline-time {
  font-size: 0.72rem;
  color: var(--text-dim, #64748b);
}

.admin-danger-zone {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* User chip action buttons in nav */
.admin-chip-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  border: none;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.admin-chip-btn:hover {
  transform: translateY(-1px);
}

.settings-chip-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main, #f8fafc);
  border: 1px solid var(--border-subtle, #334155);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

.settings-chip-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Account Settings Modal Dialog */
.account-modal-dialog {
  max-width: 560px;
  width: 95vw;
}

.settings-action-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-input, #1e293b);
  border: 1px solid var(--border-subtle, #334155);
}

.settings-danger-box {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
}

.btn-danger-subtle {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  cursor: pointer;
}

.btn-danger-subtle:hover {
  background: #ef4444;
  color: #ffffff;
}
