/* Tekora Design System — matches landing page tokens */
:root {
  --bg-deep:     #0a0a0c;
  --bg-surface:  #111114;
  --bg-elevated: #1a1a1f;
  --accent:      #e85d26;
  --accent-glow: rgba(232, 93, 38, 0.15);
  --text-primary: #f0ede8;
  --text-secondary: #8a8690;
  --text-muted:  #5a5660;
  --border:      rgba(255,255,255,0.06);
  --success:     #22c55e;
  --danger:      #ef4444;
  --warning:     #f59e0b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.5px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-links a {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.nav-links a.btn-primary {
  background: var(--accent);
  color: #fff;
}
.nav-links a.btn-primary:hover { background: #d44f1f; }

/* === PAGE WRAPPER === */
.page-wrapper { padding-top: 64px; }

/* === PAGE HEADER === */
.page-header {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.page-header .subtitle { color: var(--text-secondary); font-size: 0.875rem; margin-top: 2px; }

/* === CARDS === */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.card-title { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* === TABLES === */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
td { padding: 0.75rem; font-size: 0.875rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-elevated); }
td .name { color: var(--text-primary); font-weight: 500; }
td .email { font-size: 0.8rem; color: var(--text-muted); }

/* === BADGE === */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-active { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-inactive { background: rgba(90,86,96,0.3); color: var(--text-muted); }
.badge-warning { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-rejected { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-testing { background: var(--accent-glow); color: var(--accent); }

/* === BELT BADGE === */
.belt {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.belt-white   { background: rgba(255,255,255,0.08); color: #e0e0e0; }
.belt-yellow  { background: rgba(234,234,0,0.12); color: #e6e600; }
.belt-orange  { background: rgba(255,165,0,0.12); color: #ffa500; }
.belt-green   { background: rgba(34,197,94,0.12); color: #22c55e; }
.belt-blue    { background: rgba(59,130,246,0.12); color: #60a5fa; }
.belt-purple  { background: rgba(168,85,247,0.12); color: #a855f7; }
.belt-brown   { background: rgba(161,106,72,0.15); color: #c9a87a; }
.belt-red     { background: rgba(239,68,68,0.12); color: #ef4444; }
.belt-black   { background: rgba(255,255,255,0.12); color: #fff; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d44f1f; }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: #222230; }
.btn-danger { background: rgba(239,68,68,0.15); color: #ef4444; }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-icon { padding: 0.4rem; border-radius: 6px; background: none; border: none; cursor: pointer; color: var(--text-muted); }
.btn-icon:hover { background: var(--bg-elevated); color: var(--text-primary); }

/* === FORMS === */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, select, textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder { color: var(--text-muted); }

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 480px;
}
.modal h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.25rem; }

/* === SECTION === */
.section { padding: 1.5rem 2rem; }
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }

/* === CLASS SCHEDULE GRID === */
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.class-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.class-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 12px 12px 0 0;
}
.class-card .day-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.class-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.class-card .time { font-size: 0.875rem; color: var(--text-secondary); }
.class-card .instructor { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.class-card .cap { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.class-card .actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

/* === ATTENDANCE === */
.attendance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.attendance-row:last-child { border-bottom: none; }
.attendance-row .member-info { display: flex; align-items: center; gap: 0.75rem; }
.attendance-row .member-info .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.check-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  color: transparent;
}
.check-btn.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 1rem; opacity: 0.3; }
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.875rem; }

/* === SECTION TABS === */
.tabs { display: flex; gap: 0.25rem; padding: 1rem 2rem 0; border-bottom: 1px solid var(--border); }
.tab {
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s;
}
.tab:hover { color: var(--text-primary); background: var(--bg-elevated); }
.tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); }

/* === CLASS SELECTOR === */
.class-selector { display: flex; gap: 0.5rem; padding: 0.75rem 2rem; overflow-x: auto; border-bottom: 1px solid var(--border); }
.class-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
}
.class-chip:hover { border-color: var(--accent); color: var(--text-primary); }
.class-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* === FOOTER === */
.footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.8rem; color: var(--text-muted); }

/* === UTIL === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* === PAGE GRID === */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; padding: 1.5rem 2rem; }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* === TOAST === */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  z-index: 300;
  animation: slideIn 0.2s ease;
}
.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* === LANDING PAGE === */
.hero {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--accent-glow);
  border: 1px solid rgba(232,93,38,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }

/* Features section */
.features { padding: 5rem 2rem; max-width: 900px; margin: 0 auto; }
.features h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* CTA */
.cta-section { padding: 5rem 2rem; text-align: center; border-top: 1px solid var(--border); }
.cta-section h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; }

/* === FEEDBACK FORM === */
.field-error { font-size: 0.78rem; color: #ef4444; min-height: 1rem; }

.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.radio-label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.radio-label input[type="radio"] { display: none; }
.radio-label input[type="radio"]:checked + .priority-badge { outline: 2px solid var(--accent); outline-offset: 2px; }

.priority-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.priority-low   { background: rgba(90,86,96,0.3); color: var(--text-secondary); }
.priority-medium { background: rgba(245,158,11,0.15); color: #f59e0b; }
.priority-urgent { background: rgba(239,68,68,0.15); color: #ef4444; }

.badge-success { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-info    { background: rgba(59,130,246,0.15); color: #3b82f6; }
.cta-section p { color: var(--text-secondary); margin-bottom: 1.5rem; }