/* =========================================================
   Biz Hub LK LMS — Design Tokens
   Palette: deep navy + growth-gold, built around a
   rising-line "growth" motif (wealth-growth brand).
   ========================================================= */
:root {
  --navy-950: #081426;
  --navy-900: #0B1F3A;
  --navy-800: #13294D;
  --navy-700: #1C3660;
  --navy-100: #E7ECF5;
  --gold-600: #B4881C;
  --gold-500: #C9A227;
  --gold-300: #E4C662;
  --gold-100: #FBF3DA;
  --bg: #F6F5F1;
  --card: #FFFFFF;
  --text: #1B2430;
  --text-muted: #6B7484;
  --border: #E6E3DA;
  --success: #1F8A5C;
  --success-bg: #E6F4EC;
  --danger: #C0392B;
  --danger-bg: #FCEBE9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(11, 31, 58, 0.06);
  --shadow-lg: 0 12px 32px rgba(11, 31, 58, 0.14);
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
}

a { color: var(--navy-800); text-decoration: none; }
a:hover { color: var(--gold-600); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-300); color: var(--navy-950); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: inherit; }
.btn-outline-navy { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a5301f; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-navy { background: var(--navy-100); color: var(--navy-800); }

/* ---------- Public site header ---------- */
.site-header {
  background: var(--navy-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.brand:hover { color: var(--gold-300); }
.brand svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #DDE4F0; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--gold-300); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: transparent; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.hero .eyebrow { color: var(--gold-300); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 18px; }
.hero p.lead { color: #C6CEDD; font-size: 1.08rem; max-width: 46ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold-300); }
.hero-stats .stat-label { font-size: 0.82rem; color: #AEB9CC; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual svg { width: 100%; height: auto; max-width: 420px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--gold-600); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 0.78rem; }
.section-head h2 { margin: 8px 0 10px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--text-muted); }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Course grid / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.course-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card .thumb { position: relative; aspect-ratio: 16/9; background: var(--navy-100) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="40" height="40"%3E%3C/svg%3E') center/cover; overflow: hidden; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card .thumb .cat { position: absolute; top: 12px; left: 12px; background: rgba(11,31,58,0.85); color: var(--gold-300); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.course-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card h3 { font-size: 1.08rem; margin: 0; }
.course-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; flex: 1; }
.course-card .meta { display: flex; align-items: center; gap: 14px; font-size: 0.82rem; color: var(--text-muted); }
.course-card .footer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }

/* ---------- Forms (auth pages) ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: var(--bg); }
.auth-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; padding: 40px 36px; border-top: 4px solid var(--gold-500); }
.auth-card h1 { font-size: 1.5rem; margin: 0 0 6px; }
.auth-card .sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-family: var(--font-body); font-size: 0.95rem;
  background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100);
}
.field-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 20px; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--navy-100); color: var(--navy-800); }

/* ---------- App shell (admin + student) ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: 250px; flex-shrink: 0; background: var(--navy-950); color: #C6CEDD;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  transition: transform .2s ease; z-index: 60;
}
.app-sidebar .brand { padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); color: #fff; }
.app-sidebar nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.app-sidebar .nav-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .08em; color: #5C6B85; padding: 14px 12px 6px; }
.app-sidebar a.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  color: #C6CEDD; font-size: 0.92rem; font-weight: 500;
}
.app-sidebar a.nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.app-sidebar a.nav-link.active { background: var(--gold-500); color: var(--navy-950); font-weight: 700; }
.app-sidebar a.nav-link svg { flex-shrink: 0; opacity: .9; }
.app-sidebar .sidebar-foot { padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); }

.app-main { flex: 1; min-width: 0; }
.app-topbar {
  height: 68px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 40;
}
.app-topbar .page-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy-900); }
.app-topbar .user-chip { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.sidebar-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--navy-900); }
.app-content { padding: 26px; max-width: 1240px; }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.stat-card .stat-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-100); color: var(--gold-600); margin-bottom: 14px;
}
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy-900); }
.stat-card .stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Cards / panels ---------- */
.panel { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.05rem; }
.panel-body { padding: 22px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th {
  text-align: left; padding: 12px 16px; background: var(--bg); color: var(--text-muted);
  font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #FBFAF7; }
.row-actions { display: flex; gap: 8px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { margin-bottom: 16px; opacity: .6; }
.empty-state h3 { color: var(--navy-900); margin-bottom: 6px; }

/* ---------- Lesson player / course view ---------- */
.player-wrap { background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.player-wrap .ratio { position: relative; width: 100%; padding-top: 56.25%; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lesson-list { display: flex; flex-direction: column; gap: 6px; }
.lesson-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; font-size: 0.9rem;
}
.lesson-item.active { border-color: var(--gold-500); background: var(--gold-100); }
.lesson-item .lesson-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy-100); color: var(--navy-800);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.lesson-item.done .lesson-num { background: var(--success); color: #fff; }
.lesson-item .lesson-title { flex: 1; font-weight: 500; }
.lesson-item .lesson-dur { color: var(--text-muted); font-size: 0.78rem; }

.progress-track { height: 8px; background: var(--navy-100); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); border-radius: 999px; }

/* ---------- Zoom class list ---------- */
.zoom-item {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff;
}
.zoom-item .zoom-date {
  width: 58px; text-align: center; flex-shrink: 0; background: var(--navy-900); color: #fff; border-radius: var(--radius-sm); padding: 8px 4px;
}
.zoom-item .zoom-date .d-num { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; display: block; }
.zoom-item .zoom-date .d-mon { font-size: 0.68rem; text-transform: uppercase; color: var(--gold-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #96A2BB; padding: 48px 0 24px; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer .foot-bottom { text-align: center; padding-top: 24px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; }
.site-footer a { color: #C6CEDD; }
.site-footer a:hover { color: var(--gold-300); }

/* ---------- Utility ---------- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }

/* =========================================================
   Responsive — mobile-first breakpoints
   ========================================================= */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 12px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }

  .app-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .app-sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  .app-content { padding: 18px; }
  .app-topbar { padding: 0 16px; }
  .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
  .sidebar-backdrop.show { display: block; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px; }
  .section { padding: 48px 0; }
}
