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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --card: #222222;
  --accent: #e8c96d;
  --accent2: #c0392b;
  --text: #f0f0f0;
  --muted: #888;
  --border: #2e2e2e;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1008 50%, #0f0f0f 100%);
  padding: 100px 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,201,109,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(232,201,109,0.15);
  color: var(--accent);
  border: 1px solid rgba(232,201,109,0.3);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #f0d57a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,201,109,0.3);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  margin-left: 1rem;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item .number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-item .label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── MAIN CONTENT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title span {
  color: var(--accent);
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── ABOUT SECTION ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}

.tag {
  background: rgba(232,201,109,0.1);
  color: var(--accent);
  border: 1px solid rgba(232,201,109,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── TRAINING PAGE ── */
.exercise-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.exercise-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.2s;
}

.exercise-item:hover {
  border-color: var(--accent);
}

.ex-num {
  width: 40px;
  height: 40px;
  background: rgba(232,201,109,0.1);
  border: 1px solid rgba(232,201,109,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.9rem;
}

.ex-info h4 {
  font-weight: 700;
  margin-bottom: 2px;
}

.ex-info p {
  color: var(--muted);
  font-size: 0.85rem;
}

.ex-sets {
  text-align: right;
}

.ex-sets .sets {
  font-weight: 800;
  color: var(--accent);
  font-size: 1.1rem;
}

.ex-sets .sets-label {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── PROGRESS PAGE ── */
.pr-hero {
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.pr-hero .big-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.pr-hero .unit {
  font-size: 2rem;
  color: var(--muted);
}

.pr-hero p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border);
  margin-bottom: 3rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── NUTRITION PAGE ── */
.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.macro-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.macro-card .macro-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
}

.macro-card .macro-unit {
  font-size: 0.9rem;
  color: var(--muted);
}

.macro-card .macro-label {
  font-weight: 700;
  margin-top: 0.5rem;
}

.macro-card .macro-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.meal-plan {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.meal-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meal-item:hover {
  border-color: var(--accent);
}

.meal-time {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 80px;
}

.meal-name {
  font-weight: 600;
  flex: 1;
  padding: 0 1rem;
}

.meal-cal {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── UPLOAD FORM ── */
.upload-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 4rem;
}

.upload-section h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.upload-section .upload-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1.5rem;
  position: relative;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--accent);
  background: rgba(232,201,109,0.04);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-dropzone .dz-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.upload-dropzone .dz-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.upload-dropzone .dz-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.upload-dropzone .dz-hint span {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.upload-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.upload-fields input,
.upload-fields select,
.upload-textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.upload-fields input::placeholder,
.upload-textarea::placeholder {
  color: var(--muted);
}

.upload-fields input:focus,
.upload-fields select:focus,
.upload-textarea:focus {
  border-color: var(--accent);
}

.upload-fields select option {
  background: var(--card);
}

.upload-textarea {
  resize: vertical;
  min-height: 80px;
  margin-bottom: 1.25rem;
  display: block;
}

.upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.upload-footer .upload-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.upload-footer .upload-note span {
  color: var(--accent);
}

.upload-progress {
  display: none;
  margin-top: 1.25rem;
}

.upload-progress-bar-wrap {
  background: var(--border);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.1s linear;
}

.upload-progress-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.upload-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  background: rgba(76,175,80,0.08);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 10px;
  margin-top: 1.25rem;
}

.upload-success .us-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-success p { color: #4caf50; font-weight: 700; }
.upload-success small { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 640px) {
  .upload-fields {
    grid-template-columns: 1fr;
  }

  .upload-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-footer .btn {
    text-align: center;
  }
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 4rem;
}

footer strong {
  color: var(--accent);
}

/* ── BURGER BUTTON ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-avatar {
    max-width: 180px;
    font-size: 5rem;
    margin: 0 auto;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .macro-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  /* Nav — burger menu */
  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 2rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    padding: 60px 1.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .btn-outline {
    margin: 0.75rem auto 0;
  }

  /* Stats */
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-item .number {
    font-size: 1.8rem;
  }

  /* Cards */
  .cards {
    grid-template-columns: 1fr;
  }

  /* Container padding */
  .container {
    padding: 2.5rem 1.25rem;
  }

  /* About */
  .about-avatar {
    max-width: 140px;
    font-size: 4rem;
  }

  /* Exercise list */
  .exercise-item {
    grid-template-columns: auto 1fr;
    padding: 1.25rem;
    gap: 1rem;
  }

  .ex-sets {
    display: none;
  }

  /* Macros */
  .macro-grid {
    grid-template-columns: 1fr;
  }

  /* Meal plan */
  .meal-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 1rem 1.25rem;
  }

  .meal-name {
    padding: 0;
    font-size: 0.95rem;
  }

  /* Progress stats grid */
  .pr-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Cards on tablet in 2-col stay 2-col on mobile */
  .cards {
    grid-template-columns: 1fr !important;
  }

  .pr-hero .big-number {
    font-size: 3.5rem;
  }

  /* Timeline */
  .timeline {
    padding-left: 1.25rem;
  }

  .timeline-item {
    padding: 0 0 1.5rem 1.5rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.5rem;
  }
}
