:root {
  /* Warm Beige Base Palette */
  --bg-main: #faf7f2;
  --bg-card: #ffffff;
  --bg-card-alt: #f3ede4;
  --bg-sidebar: #f5eee4;
  --bg-accent-soft: #fbf5ec;
  --border-beige: #e5dacb;
  --border-beige-dark: #d5c6b2;
  
  /* Blue Accents */
  --blue-primary: #123060;
  --blue-dark: #091a38;
  --blue-light: #2563eb;
  --blue-soft: #e9f0fe;
  --blue-hover: #1d4ed8;

  /* Orange Accents */
  --orange-primary: #ea580c;
  --orange-light: #f97316;
  --orange-vibrant: #ff6b00;
  --orange-soft: #fff4ed;
  --orange-hover: #c2410c;

  /* Text & Status */
  --text-dark: #24201c;
  --text-body: #4a433c;
  --text-muted: #786f66;
  --text-light: #ffffff;
  
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --success: #16a34a;
  --success-bg: #f0fdf4;

  --shadow-sm: 0 2px 6px rgba(36, 32, 28, 0.04);
  --shadow-md: 0 8px 20px rgba(36, 32, 28, 0.08);
  --shadow-lg: 0 16px 36px rgba(18, 48, 96, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 270px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-main);
}

body {
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: 85px; /* for sticky bottom panel */
  background-color: var(--bg-main);
}

/* Master Layout with Sidebar */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling (Tabs on Side) */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1.5px solid var(--border-beige);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 18px;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 2px 0 14px rgba(36, 32, 28, 0.04);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border-beige);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(18, 48, 96, 0.2);
}

.brand-info h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-info span {
  font-size: 0.75rem;
  color: var(--orange-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-tab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-tab-item:hover {
  background: #ffffff;
  color: var(--blue-primary);
  border-color: var(--border-beige);
  transform: translateX(4px);
}

.nav-tab-item.active {
  background: var(--blue-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(18, 48, 96, 0.25);
}

.nav-tab-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-tab-item.active svg {
  stroke: var(--orange-light);
}

.sidebar-promo-card {
  background: #ffffff;
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.sidebar-promo-card h4 {
  font-size: 0.88rem;
  color: var(--blue-primary);
  margin-bottom: 4px;
}

.sidebar-promo-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.btn-sidebar-cta {
  display: block;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25);
}

.btn-sidebar-cta:hover {
  background: linear-gradient(135deg, var(--orange-hover), var(--orange-primary));
  transform: translateY(-2px);
}

/* Mobile Header & Hamburger */
.mobile-top-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 150;
  background: var(--bg-sidebar);
  border-bottom: 1.5px solid var(--border-beige);
  padding: 12px 20px;
  justify-content: space-between;
  align-items: center;
}

.mobile-hamburger {
  background: #ffffff;
  border: 1px solid var(--border-beige);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content Area */
.main-wrapper {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.container-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 28px;
  width: 100%;
}

/* Badges & Accents */
.badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--orange-soft);
  border: 1px solid rgba(234, 88, 12, 0.3);
  color: var(--orange-primary);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-label.blue {
  background: var(--blue-soft);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--blue-primary);
}

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

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

/* Hero & Main Sections */
.hero-box {
  background: #ffffff;
  border: 1.5px solid var(--border-beige);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.hero-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange-primary), var(--blue-primary));
}

.hero-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-top: 14px;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Gym Trainer Photo Showcase */
.gym-photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-beige);
  margin-bottom: 30px;
  position: relative;
  background: #000;
}

.gym-photo-card img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gym-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(0deg, rgba(9, 26, 56, 0.92) 0%, rgba(9, 26, 56, 0.4) 70%, transparent 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gym-photo-caption h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.gym-photo-caption p {
  font-size: 0.85rem;
  color: #e2e8f0;
}

/* Story Article Styling */
.story-article {
  background: #ffffff;
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.story-article h2 {
  font-size: 1.8rem;
  color: var(--blue-primary);
  margin-bottom: 18px;
  line-height: 1.3;
}

.story-article h3 {
  font-size: 1.4rem;
  color: var(--blue-dark);
  margin: 28px 0 14px;
}

.story-article p {
  font-size: 1.02rem;
  margin-bottom: 18px;
  color: var(--text-body);
}

.quote-highlight {
  background: var(--bg-accent-soft);
  border-left: 4px solid var(--orange-primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  font-style: italic;
}

/* Feature Cards Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: #ffffff;
  border-color: var(--orange-light);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h4 {
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Product Spotlight Card */
.product-spotlight {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  margin: 36px 0;
}

.product-spotlight h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.product-spotlight p {
  color: #e2e8f0;
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.spotlight-pill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #f1f5f9;
}

.spotlight-pill svg {
  color: var(--orange-light);
  flex-shrink: 0;
}

/* Order Form Section */
.order-card-container {
  background: #ffffff;
  border: 2px solid var(--border-beige-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-top: 36px;
}

.order-header-box {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 28px;
}

.order-header-box h3 {
  font-size: 1.7rem;
  color: var(--blue-primary);
  margin-top: 10px;
  margin-bottom: 8px;
}

.order-header-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.form-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.form-field-group {
  margin-bottom: 18px;
  position: relative;
}

.form-field-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.input-custom {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-main);
  border: 1.5px solid var(--border-beige-dark);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.input-custom:focus {
  border-color: var(--blue-light);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Interactive Phone Validation Feedback */
.input-custom.phone-error {
  border-color: var(--danger) !important;
  background: var(--danger-bg) !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important;
}

.input-custom.phone-valid {
  border-color: var(--success) !important;
  background: var(--success-bg) !important;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15) !important;
}

.phone-feedback-msg {
  font-size: 0.82rem;
  margin-top: 6px;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.phone-feedback-msg.error {
  color: var(--danger);
}

.phone-feedback-msg.valid {
  color: var(--success);
}

.btn-form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.45);
}

/* Double User Edition (Reviews) */
.edition-toggle-bar {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  background: var(--bg-card-alt);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-beige);
}

.btn-edition-tab {
  flex: 1;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-edition-tab.active {
  background: var(--blue-primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(18, 48, 96, 0.2);
}

.review-cards-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.review-item-card {
  background: #ffffff;
  border: 1px solid var(--border-beige);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.review-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-stars {
  color: #f59e0b;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Bottom Interactive Multi-Tab Panel */
.bottom-dock-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  pointer-events: none;
}

.dock-drawer-wrapper {
  background: #ffffff;
  border-top: 3px solid var(--blue-primary);
  border-bottom: 1px solid var(--border-beige);
  box-shadow: 0 -10px 30px rgba(36, 32, 28, 0.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.dock-drawer-wrapper.open {
  max-height: 450px;
  overflow-y: auto;
}

.dock-drawer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
  position: relative;
}

.btn-close-drawer {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-beige);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-dark);
}

.dock-tab-pane {
  display: none;
}

.dock-tab-pane.active {
  display: block;
}

.dock-bar-panel {
  background: var(--bg-sidebar);
  border-top: 1.5px solid var(--border-beige);
  padding: 10px 0;
  pointer-events: auto;
  box-shadow: 0 -4px 14px rgba(36, 32, 28, 0.06);
}

.dock-bar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dock-nav-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.btn-dock-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-beige-dark);
  border-radius: var(--radius-full);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-dock-tab:hover {
  background: var(--blue-soft);
  color: var(--blue-primary);
  border-color: var(--blue-light);
}

.btn-dock-tab.active {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
}

.btn-dock-action {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: var(--transition);
}

.btn-dock-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 26, 56, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
}

.order-product-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 960px) {
  .sidebar {
    position: fixed;
    left: -290px;
    transition: left 0.3s ease;
  }

  .sidebar.mobile-open {
    left: 0;
  }

  .mobile-top-bar {
    display: flex;
  }

  .feature-grid, .form-grid-layout, .product-spotlight, .review-cards-list, .order-product-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-box {
    padding: 24px 18px;
  }

  .container-content {
    padding: 24px 16px;
  }

  .dock-nav-buttons {
    max-width: 60%;
  }
}
