/* ===================================================
   GYMPRO VN - MODERN GYM WEB APP STYLES
   BEAST MODE: PURE BLACK & DEEP CRIMSON RED (ĐEN & ĐỎ THẪM)
   Tối ưu hiển thị điện thoại & phòng tập gym
   =================================================== */

:root {
  /* Nền Đen Chủ Đạo */
  --bg-primary: #070709;
  --bg-secondary: #0e0e13;
  --bg-card: #14141b;
  --bg-card-hover: #1c1c25;
  --bg-glass: rgba(14, 14, 19, 0.9);

  /* Tông Màu Đỏ Thẫm (Deep Crimson / Blood Red) */
  --accent-red: #ef4444;
  --accent-crimson: #dc2626;
  --accent-darkred: #b91c1c;
  --accent-blood: #991b1b;
  --accent-deep-burgundy: #450a0a;
  --accent-red-glow: rgba(220, 38, 38, 0.35);

  --accent-orange: #f97316;
  --accent-gold: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-red: rgba(220, 38, 38, 0.3);
  --border-active: rgba(239, 68, 68, 0.6);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--accent-red-glow);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 90px; /* Chừa khoảng trống cho thanh điều hướng dưới */
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-crimson);
}

/* Layout Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-deep-burgundy));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #fca5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--accent-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f87171;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Quick Banner - Beast Mode Banner */
.hero-banner {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.25), rgba(69, 10, 10, 0.15));
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-title-row h2 {
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.today-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-crimson), var(--accent-darkred));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}

.hero-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.hero-quick-stats {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #e4e4e7;
}

.stat-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-red);
}

/* Day Selector Bar (Thứ 2 -> Chủ Nhật) */
.day-selector-section {
  margin: 18px 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.days-scroll-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.days-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.day-btn {
  flex: 0 0 calc(14.28% - 7px);
  min-width: 82px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-main);
  text-align: center;
  position: relative;
}

.day-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(220, 38, 38, 0.4);
  transform: translateY(-2px);
}

.day-btn.active {
  background: linear-gradient(145deg, #7f1d1d, #450a0a);
  border-color: var(--accent-crimson);
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

.day-btn.is-today::before {
  content: "Hôm nay";
  position: absolute;
  top: -8px;
  font-size: 0.6rem;
  font-weight: 800;
  background: #f59e0b;
  color: #000;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.day-btn-name {
  font-size: 0.85rem;
  font-weight: 700;
}

.day-btn-focus {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.day-btn.active .day-btn-focus {
  color: #fca5a5;
}

/* Day Header Card */
.workout-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.workout-header-card.rest-mode {
  background: linear-gradient(145deg, #181822, #0e0e14);
  border-color: rgba(239, 68, 68, 0.3);
}

.workout-title-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.workout-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.workout-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.workout-meta-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: #fca5a5;
}

.meta-pill svg {
  width: 14px;
  height: 14px;
  fill: var(--accent-red);
}

/* Warmup Box */
.warmup-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
}

.warmup-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.warmup-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.warmup-item {
  font-size: 0.8rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.warmup-item::before {
  content: "•";
  color: var(--accent-red);
  font-size: 1.2rem;
  line-height: 1;
}

/* Exercises List */
.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
  transition: border-color 0.25s, transform 0.2s;
  box-shadow: var(--shadow-card);
}

.exercise-card:hover {
  border-color: rgba(220, 38, 38, 0.4);
}

.exercise-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.ex-number-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ex-index {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: var(--accent-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.ex-names h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.ex-names p {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

.ex-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.35);
  white-space: nowrap;
}

/* Exercise Quick Stats Grid */
.ex-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ex-stat-col {
  text-align: center;
}

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

.ex-stat-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.ex-stat-val.highlight {
  color: #f87171;
}

/* Action Bar inside Exercise */
.ex-actions-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-video {
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.btn-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.btn-timer {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid var(--accent-crimson);
  color: #fca5a5;
}

.btn-timer:hover {
  background: var(--accent-crimson);
  color: #fff;
}

.btn-toggle-details {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  margin-left: auto;
}

.btn-toggle-details:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Sets Log / Checkbox Tracker */
.set-tracker-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.tracker-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tracker-title span:last-child {
  font-size: 0.72rem;
  color: #f87171;
  text-transform: none;
  font-weight: 700;
}

.sets-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.set-pill {
  flex: 1;
  min-width: 65px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.set-pill:hover {
  border-color: rgba(220, 38, 38, 0.4);
}

.set-pill.done {
  background: linear-gradient(145deg, rgba(185, 28, 28, 0.35), rgba(69, 10, 10, 0.4));
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}

.set-pill-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 700;
}

.set-pill.done .set-pill-label {
  color: #fca5a5;
}

.set-pill-check {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
}

.set-pill.done .set-pill-check {
  color: #ef4444;
}

/* Weight Log input row */
.weight-log-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.weight-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.weight-input:focus {
  border-color: var(--accent-red);
}

.btn-save-log {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save-log:hover {
  background: var(--accent-crimson);
  color: #fff;
}

/* Expandable Exercise Details */
.ex-details-collapsible {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
  animation: fadeIn 0.3s ease;
}

.ex-details-collapsible.show {
  display: block;
}

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

.detail-section {
  margin-bottom: 12px;
}

.detail-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-list {
  padding-left: 18px;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.detail-list li {
  margin-bottom: 4px;
}

.detail-box-alert {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid var(--accent-red);
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 8px;
}

.detail-box-alert .alert-title {
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.detail-box-alert ul {
  padding-left: 16px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.pro-tip-box {
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid var(--accent-crimson);
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 8px;
}

.pro-tip-box .tip-title {
  color: #f87171;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.pro-tip-box p {
  font-size: 0.78rem;
  color: #e2e8f0;
}

/* REST DAY VIEW */
.rest-day-card {
  background: var(--bg-card);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.rest-hero {
  text-align: center;
  padding: 20px 0;
}

.rest-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: rgba(220, 38, 38, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.rest-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--accent-red);
}

.rest-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.recovery-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.recovery-card h4 {
  font-size: 0.92rem;
  color: #fca5a5;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recovery-card p {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* FLOATING REST TIMER WIDGET */
.rest-timer-widget {
  position: fixed;
  bottom: 80px;
  right: 18px;
  z-index: 95;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-crimson);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(220, 38, 38, 0.3);
  padding: 12px 16px;
  display: none;
  align-items: center;
  gap: 14px;
  animation: slideUp 0.3s ease;
}

.rest-timer-widget.active {
  display: flex;
}

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

.timer-circle-wrap {
  position: relative;
  width: 50px;
  height: 50px;
}

.timer-svg {
  transform: rotate(-90deg);
  width: 50px;
  height: 50px;
}

.timer-bg-circle {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 4;
  fill: none;
}

.timer-progress-circle {
  stroke: var(--accent-red);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 126;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

.timer-ctrls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timer-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.timer-buttons-row {
  display: flex;
  gap: 6px;
}

.btn-mini-timer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-mini-timer:hover {
  background: var(--accent-crimson);
  color: #fff;
}

.btn-close-timer {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
}

.btn-close-timer:hover {
  color: #fff;
}

/* VIDEO MODAL (TIKTOK PREVIEW) */
.video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.video-modal-backdrop.open {
  display: flex;
}

.video-modal-content {
  background: var(--bg-card);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(220, 38, 38, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.modal-header h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 16px;
}

.tiktok-embed-container {
  min-height: 380px;
  background: #09090c;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tiktok-direct-action {
  margin-top: 14px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

/* BOTTOM NAVIGATION (Mobile-friendly) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  padding: 6px 0 10px;
}

.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.nav-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-tab-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-tab-btn.active {
  color: #f87171;
}

.nav-tab-btn.active svg {
  fill: var(--accent-red);
  filter: drop-shadow(0 0 6px var(--accent-red));
}

/* SECTION TABS TOGGLING */
.tab-content-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-content-panel.active {
  display: block;
}

/* VIDEO HUB PANEL */
.video-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.video-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
}

.video-hub-card:hover {
  border-color: rgba(220, 38, 38, 0.45);
  transform: translateY(-2px);
}

.hub-card-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #f87171;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hub-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.hub-card-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* TOOLS / CALCULATORS PANEL */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.calc-input-group {
  margin-bottom: 12px;
}

.calc-label {
  display: block;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 4px;
}

.calc-input, .calc-select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
}

.calc-input:focus, .calc-select:focus {
  border-color: var(--accent-red);
}

.calc-result-box {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
  text-align: center;
}

.calc-result-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f87171;
}

.calc-result-note {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 4px;
}

/* HANDBOOK / TIPS PANEL */
.handbook-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
}

.handbook-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 8px;
}

.handbook-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* FREE HOSTING GUIDE BANNER */
.free-host-guide-banner {
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.8), rgba(69, 10, 10, 0.4));
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 24px;
}

.free-host-guide-banner h3 {
  color: #f87171;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.free-host-guide-banner p {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.free-host-steps {
  list-style: decimal;
  padding-left: 20px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.free-host-steps li {
  margin-bottom: 6px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .day-btn {
    min-width: 72px;
    padding: 8px 4px;
  }
  .ex-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 10px;
  }
  .workout-main-title {
    font-size: 1.15rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
