/* ====================================================
   ORAYU COURSE — Global Theme (Mobile-First Responsive)
   ==================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --brand:       #2f5d50;
  --brand-dark:  #1d3d34;
  --brand-light: #3a7567;
  --accent:      #e8b96b;
  --bg:          #f6f8f7;
  --surface:     #ffffff;
  --border:      #e4e9e7;
  --text:        #1a2421;
  --muted:       #6b8078;
  --danger:      #e05252;
  --success:     #27ae60;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --shadow-sm:   0 2px 10px rgba(0,0,0,.05);
  --shadow-md:   0 8px 30px rgba(0,0,0,.08);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.1);
  --transition:  all .25s ease;
  --topbar-h:    60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { font-family: 'DM Serif Display', Georgia, serif; line-height: 1.25; color: var(--text); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--topbar-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  z-index: 1100;
  box-shadow: var(--shadow-sm);
}
.topbar-brand { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--brand); letter-spacing: -.3px; white-space: nowrap; }
.topbar-brand span { color: var(--accent); }
.topbar-user-name { font-size: 14px; font-weight: 600; }

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  width: 280px; height: 100vh;
  background: linear-gradient(160deg, #162b26 0%, #0f1e1b 100%);
  position: fixed; top: 0; left: 0;
  padding: 24px 18px; overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  z-index: 1200;
  box-shadow: 4px 0 32px rgba(0,0,0,.18);
}
.sidebar.active { transform: translateX(0); }
.sidebar-logo { font-family: 'DM Serif Display', serif; font-size: 20px; color: #fff; margin-bottom: 28px; padding-left: 4px; }
.sidebar-logo span { color: var(--accent); }
.sidebar-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; border: 2px solid rgba(255,255,255,.12); flex-shrink: 0; }
.sidebar-user-name { color: #fff; font-weight: 600; font-size: 14px; }
.sidebar-user-email { color: rgba(255,255,255,.5); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.65); font-size: 15px; font-weight: 500; transition: var(--transition); margin-bottom: 4px; }
.sidebar nav a:hover, .sidebar nav a.active-link { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a.active-link { border-left: 3px solid var(--accent); }
.sidebar-close { position: absolute; top: 20px; right: 18px; width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; border: none; transition: var(--transition); }
.sidebar-close:hover { background: rgba(255,255,255,.15); }
.sidebar-user-block { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.sidebar-user-meta { min-width: 0; line-height: 1.25; flex: 1; }

/* ── Overlay ─────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 1150; }
.overlay.active { opacity: 1; visibility: visible; }

/* ── Content ─────────────────────────────────────────── */
.main-content {
  padding-top: calc(var(--topbar-h) + 20px);
  padding-left: 16px; padding-right: 16px; padding-bottom: 40px;
  max-width: 1320px; margin: 0 auto; min-height: 100vh;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-brand { display: inline-flex; align-items: center; gap: 7px; background: var(--brand); color: #fff; padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--brand); padding: 9px 20px; border-radius: 50px; font-size: 14px; font-weight: 600; border: 2px solid var(--brand); cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ── Cards ─────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ── Course Card ─────────────────────────────────────── */
.course-card { background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: var(--transition); }
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.course-card-img { position: relative; overflow: hidden; }
.course-card-img img { width: 100%; height: 185px; object-fit: cover; transition: transform .35s ease; }
.course-card:hover .course-card-img img { transform: scale(1.04); }
.course-card-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.course-card-provider { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.course-card-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.course-card-desc { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 12px; }
.course-card-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.course-price { font-weight: 700; font-size: 15px; color: var(--text); }

/* ── Progress ─────────────────────────────────────────── */
.progress-bar-wrap { height: 6px; background: #e4e9e7; border-radius: 10px; overflow: hidden; margin: 8px 0 4px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); border-radius: 10px; transition: width .6s ease; }

/* ── Badge ─────────────────────────────────────────── */
.badge-featured { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, #f5c842, #e8a32a); color: #1a1a00; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }

/* ── Avatar ─────────────────────────────────────────── */
.avatar-text { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; border: 2px solid rgba(255,255,255,.4); flex-shrink: 0; }

/* ── Profile dropdown ─────────────────────────────────── */
.profile-dropdown { position: relative; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.profile-dropdown-menu { position: absolute; top: 48px; right: 0; min-width: 180px; background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; z-index: 200; overflow: hidden; }
.profile-dropdown-menu.show { display: block; }
.profile-dropdown-menu a { display: block; padding: 12px 16px; font-size: 14px; color: var(--text); transition: var(--transition); }
.profile-dropdown-menu a:hover { background: var(--bg); }
.profile-dropdown-menu a.danger { color: var(--danger); }

/* ── Stat Card ─────────────────────────────────────────── */
.stat-card { background: var(--surface); border-radius: var(--radius-md); padding: 18px 20px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: var(--transition); }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.stat-icon.green { background: #e8f4ef; }
.stat-icon.amber { background: #fef5e4; }
.stat-icon.violet { background: #f0eaff; }
.stat-val { font-size: 22px; font-weight: 700; }
.stat-lbl { font-size: 12px; color: var(--muted); }

/* ── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.form-control { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 16px; color: var(--text); background: var(--surface); transition: border-color .2s; font-family: inherit; outline: none; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,93,80,.1); }

/* ── Alerts ─────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e8f5ee; color: #1a6639; border: 1px solid #b6dfc9; }
.alert-danger  { background: #fdecea; color: #9b2c2c; border: 1px solid #f5c6c6; }
.alert-info    { background: #e8f0fd; color: #1a3a6b; border: 1px solid #b6cdfa; }

/* ── Section titles ──────────────────────────────────── */
.section-heading { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.section-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ── Video player ─────────────────────────────────────── */
.video-wrapper { position: relative; padding-top: 56.25%; background: #000; border-radius: var(--radius-md); overflow: hidden; }
.video-wrapper iframe, .video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; border-radius: var(--radius-md); }

/* ── Lesson item ─────────────────────────────────────── */
.lesson-item { padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--surface); cursor: pointer; transition: var(--transition); }
.lesson-item.locked { opacity: .55; cursor: not-allowed; }
.lesson-item.completed { border-color: #a8d8bc; background: #f0faf4; }
.lesson-item:not(.locked):hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.lesson-item-title { font-weight: 600; font-size: 14px; }

/* ── Certificate ─────────────────────────────────────── */
.certificate-wrap { border: 3px solid var(--brand); border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; background: linear-gradient(135deg, #fff 0%, #f6fbf8 100%); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.certificate-wrap::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(47,93,80,.15); border-radius: 18px; pointer-events: none; }

/* ── Menu hamburger ──────────────────────────────────── */
.menu-btn { width: 38px; height: 38px; background: var(--brand); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; font-size: 18px; transition: var(--transition); flex-shrink: 0; }
.menu-btn:hover { background: var(--brand-dark); }

/* ── Utility ─────────────────────────────────────────── */
.text-muted { color: var(--muted) !important; }
.text-brand { color: var(--brand); }
.fw-600 { font-weight: 600; }
.gap-8 { gap: 8px; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }

/* ====================================================
   COMPONENT STYLES
   ==================================================== */

/* ── Dashboard hero ──────────────────────────────────── */
.dashboard-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.dashboard-hero-text { flex: 1; min-width: 180px; }
.hero-greeting { font-size: 26px; margin-bottom: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; flex: 1; min-width: 0; }

/* ── Continue card ───────────────────────────────────── */
.continue-card { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); color: #fff; border-radius: var(--radius-lg); padding: 24px; display: flex; align-items: center; gap: 20px; margin-bottom: 28px; box-shadow: 0 12px 40px rgba(47,93,80,.25); flex-wrap: wrap; }
.continue-thumb { width: 90px; height: 62px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.continue-content { flex: 1; min-width: 140px; }
.continue-title { font-size: 16px; color: #fff; margin-bottom: 4px; }
.continue-meta { font-size: 12px; opacity: .8; }
.continue-bar-wrap { height: 5px; background: rgba(255,255,255,.25); border-radius: 10px; margin: 8px 0 12px; }
.continue-bar-fill { height: 100%; background: #fff; border-radius: 10px; }
.btn-resume { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand); padding: 9px 20px; border-radius: 50px; font-size: 14px; font-weight: 700; transition: var(--transition); white-space: nowrap; }
.btn-resume:hover { transform: scale(1.04); box-shadow: 0 6px 20px rgba(0,0,0,.12); }

/* ── Category pills ──────────────────────────────────── */
.topics-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.topic-pill { padding: 7px 14px; border-radius: 50px; font-size: 13px; font-weight: 500; background: var(--surface); border: 1.5px solid var(--border); color: var(--text); text-decoration: none; transition: var(--transition); white-space: nowrap; }
.topic-pill:hover, .topic-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Featured scroll ─────────────────────────────────── */
.featured-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 12px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.featured-scroll::-webkit-scrollbar { height: 4px; }
.featured-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.featured-card { min-width: 220px; max-width: 220px; background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; transition: var(--transition); }
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.featured-card-img { position: relative; overflow: hidden; }
.featured-card-img img { width: 100%; height: 130px; object-fit: cover; transition: .35s ease; }
.featured-card:hover img { transform: scale(1.05); }
.featured-card-body { padding: 14px; }
.featured-card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

/* ── Courses grid ────────────────────────────────────── */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* ── Auth layout ─────────────────────────────────────── */
.auth-wrapper { display: flex; min-height: 100vh; }
.auth-left { flex: 1; background: linear-gradient(145deg, #0f2621 0%, #1d4538 50%, #2f5d50 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 48px; color: #fff; }
.auth-right { width: 460px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; padding: 60px 48px; }
.auth-logo { font-family: 'DM Serif Display', serif; font-size: 26px; margin-bottom: 36px; }
.auth-logo span { color: var(--accent); }
.auth-illustration-text h2 { font-family: 'DM Serif Display', serif; font-size: 34px; color: #fff; line-height: 1.2; }
.auth-illustration-text p { font-size: 15px; opacity: .7; margin-top: 10px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h2 { font-size: 26px; margin-bottom: 6px; }
.auth-form p { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.input-float { position: relative; margin-bottom: 20px; }
.input-float input { width: 100%; padding: 15px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 16px; font-family: inherit; outline: none; color: var(--text); transition: border-color .2s; background: #fff; }
.input-float input:focus { border-color: var(--brand); }
.input-float label { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); background: #fff; padding: 0 5px; color: var(--muted); font-size: 14px; transition: .25s; pointer-events: none; }
.input-float input:focus+label, .input-float input:not(:placeholder-shown)+label { top: -1px; font-size: 11px; color: var(--brand); font-weight: 600; }
.toggle-pwd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; font-size: 16px; color: var(--muted); padding: 4px; }
.btn-login { width: 100%; padding: 15px; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: var(--transition); }
.btn-login:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(47,93,80,.3); }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--muted); }
.auth-footer a { color: var(--brand); font-weight: 600; }
.pill-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pill-tag { padding: 7px 16px; border-radius: 50px; background: rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.8); }

/* ── Course Detail ────────────────────────────────────── */
.course-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.course-hero-img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius-lg); }
.enroll-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: calc(var(--topbar-h) + 16px); box-shadow: var(--shadow-md); }
.price-big { font-size: 30px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.course-meta { display: flex; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.course-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.module-accordion { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-top: 20px; }
.module-acc-item { border-bottom: 1px solid var(--border); }
.module-acc-item:last-child { border-bottom: none; }
.module-acc-head { padding: 14px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--bg); font-weight: 600; font-size: 14px; transition: var(--transition); }
.module-acc-head:hover { background: #edf3ef; }
.module-acc-body { padding: 0 18px 10px; display: none; }
.module-acc-body.open { display: block; }
.lesson-preview { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.lesson-preview:last-child { border-bottom: none; }

/* ── Learn Layout ─────────────────────────────────────── */
.learn-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.video-area { position: sticky; top: calc(var(--topbar-h) + 16px); }
.lesson-list-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.lesson-list-header { padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--bg); }
.lesson-list-header h3 { font-size: 15px; margin: 0; }
.module-block { border-bottom: 1px solid var(--border); }
.module-block:last-child { border-bottom: none; }
.module-title { padding: 12px 18px; font-size: 12px; font-weight: 700; background: #f9fbfa; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; display: flex; justify-content: space-between; }
.lesson-row { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); cursor: pointer; transition: var(--transition); text-decoration: none; color: var(--text); }
.lesson-row:hover { background: var(--bg); }
.lesson-row.active { background: #e8f4ef; border-left: 3px solid var(--brand); }
.lesson-row.locked { opacity: .5; cursor: not-allowed; pointer-events: none; }
.lesson-dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; border: 2px solid var(--border); }
.lesson-dot.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.lesson-dot.active { border-color: var(--brand); color: var(--brand); }
.lesson-dot.locked { background: #f5f5f5; }
.lesson-row-title { font-size: 13px; font-weight: 500; flex: 1; line-height: 1.4; }
.progress-bar-header { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 18px; }
.course-title-learn { font-size: 18px; margin-bottom: 2px; }
.btn-complete { margin-top: 18px; background: var(--brand); color: #fff; padding: 13px 28px; border-radius: 50px; border: none; cursor: pointer; font-size: 15px; font-weight: 600; font-family: inherit; transition: var(--transition); width: 100%; }
.btn-complete:hover { background: var(--brand-dark); transform: translateY(-1px); }
.complete-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; background: #e8f4ef; color: var(--brand); font-weight: 600; font-size: 14px; margin-top: 14px; }

/* Lesson panel toggle — mobile only */
.lesson-panel-toggle { display: none; width: 100%; padding: 13px 18px; background: var(--brand); color: #fff; border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; margin-bottom: 14px; align-items: center; gap: 10px; transition: var(--transition); }
.lesson-panel-toggle:hover { background: var(--brand-dark); }

/* ── Tables ──────────────────────────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
thead th { background: var(--bg); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ====================================================
   RESPONSIVE BREAKPOINTS
   ==================================================== */

/* ── Tablet and below (≤900px) ───────────────────────── */
@media (max-width: 900px) {
  .course-detail-layout { grid-template-columns: 1fr; }
  .enroll-card { position: static; }
  .course-hero-img { height: 220px; }

  .learn-layout { grid-template-columns: 1fr; }
  .video-area { position: static; }
  .lesson-panel-toggle { display: flex; }
  .lesson-list-panel { display: none; }
  .lesson-list-panel.panel-open { display: block; }
}

/* ── Mobile (≤640px) ─────────────────────────────────── */
@media (max-width: 640px) {
  :root { --topbar-h: 56px; }

  .topbar { padding: 0 14px; }
  .topbar-brand { font-size: 16px; }
  .topbar-user-name { display: none; }

  .main-content {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: calc(var(--topbar-h) + 14px);
  }

  .section-heading { font-size: 18px; }
  .section-sub { font-size: 13px; }

  /* Dashboard hero stacks vertically */
  .dashboard-hero { flex-direction: column; gap: 14px; }
  .stats-grid { width: 100%; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-greeting { font-size: 22px; }

  /* Continue card */
  .continue-card { padding: 18px; gap: 14px; }
  .continue-thumb { width: 68px; height: 48px; border-radius: 8px; }
  .continue-title { font-size: 14px; }
  .btn-resume { width: 100%; justify-content: center; font-size: 13px; }

  /* Featured scroll */
  .featured-card { min-width: 175px; max-width: 175px; }
  .featured-card-img img { height: 110px; }
  .featured-card-body { padding: 10px; }
  .featured-card-title { font-size: 13px; }

  /* Courses */
  .courses-grid { grid-template-columns: 1fr; gap: 14px; }
  .course-card-img img { height: 170px; }

  /* Course detail */
  .course-hero-img { height: 180px; border-radius: var(--radius-md); }
  .price-big { font-size: 26px; }

  /* Learn */
  .course-title-learn { font-size: 16px; }
  .progress-bar-header { padding: 14px 16px; }

  /* Auth */
  .auth-right { padding: 32px 16px; }

  /* Stat cards */
  .stat-card { padding: 14px 16px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
  .stat-val { font-size: 20px; }

  /* Certificate */
  .certificate-wrap { padding: 28px 16px; border-radius: var(--radius-md); }

  /* Buttons */
  .btn-brand, .btn-outline { padding: 9px 18px; font-size: 13px; }

  /* Profile dropdown - keep on screen */
  .profile-dropdown-menu { right: -8px; min-width: 160px; }
}

/* ── Very small (≤380px) ─────────────────────────────── */
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topics-row { gap: 6px; }
  .topic-pill { padding: 6px 12px; font-size: 12px; }
}
