  :root {
    --primary:       #2563eb;
    --primary-dark:  #1d4ed8;
    --primary-light: #dbeafe;
    --indigo:        #4338ca;
    --teal:          #14b8a6;
    --bg:            #f8fafc;
    --sidebar-bg:    #1e293b;
    --sidebar-w:     280px;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --border:        #e2e8f0;
    --card-bg:       #ffffff;
    --hover:         #eff6ff;
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  body { font-family:'Be Vietnam Pro',sans-serif; background:var(--bg); color:var(--text); display:flex; min-height:100vh; }

  /* ── LOGIN MODAL ── */
  #login-modal {
    display:none; position:fixed; inset:0; z-index:999;
    background:rgba(15,23,42,.65); align-items:center; justify-content:center;
  }
  #login-modal.show { display:flex; }
  .lm-box {
    background:#fff; border-radius:20px; padding:40px;
    width:360px; box-shadow:0 24px 64px rgba(0,0,0,.25);
  }
  .lm-logo { text-align:center; margin-bottom:24px; }
  .lm-logo-icon { width:44px;height:44px;background:var(--primary);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;margin:0 auto 10px; }
  .lm-logo-name { font-size:20px;font-weight:700;color:var(--text); }
  .lm-logo-name span { color:var(--primary); }
  .lm-sub { font-size:12px;color:var(--text-muted);letter-spacing:1.5px;text-transform:uppercase; }
  .lm-field { margin-bottom:12px; }
  .lm-field label { display:block;font-size:13px;font-weight:500;color:var(--text-muted);margin-bottom:5px; }
  .lm-field input {
    width:100%; border:1.5px solid var(--border); border-radius:9px;
    padding:10px 13px; font-size:14px; font-family:inherit; outline:none; transition:border .15s;
  }
  .lm-field input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.08); }
  .lm-btn {
    width:100%; padding:11px; background:var(--primary); color:#fff;
    border:none; border-radius:10px; font-size:15px; font-weight:600;
    cursor:pointer; font-family:inherit; transition:background .15s; margin-top:4px;
  }
  .lm-btn:hover { background:var(--primary-dark); }
  .lm-err { color:#ef4444;font-size:13px;text-align:center;margin-top:8px;display:none; }
  .lm-close { display:block;text-align:center;margin-top:14px;font-size:13px;color:var(--text-muted);cursor:pointer; }
  .lm-close:hover { color:var(--primary); }
  .lm-link { font-size:13px;color:var(--primary);cursor:pointer;text-decoration:underline;text-underline-offset:2px; }
  .lm-link:hover { opacity:.75; }
  .lm-ok { color:#16a34a;font-size:13px;text-align:center;margin-top:8px;display:none; }
  .lm-divider { display:flex;align-items:center;gap:10px;margin:14px 0; }
  .lm-divider::before,.lm-divider::after { content:'';flex:1;border-top:1px solid var(--border); }
  .lm-divider span { font-size:12px;color:var(--text-muted); }

  /* ── USER BADGE (topbar) ── */
  .user-badge {
    display:flex; align-items:center; gap:8px;
    padding:5px 12px 5px 6px; background:var(--hover);
    border:1px solid #bfdbfe; border-radius:20px; cursor:pointer;
    font-size:13px; color:var(--primary); font-weight:500;
    transition:all .15s;
  }
  .user-badge:hover { background:var(--primary-light); }
  .user-avatar {
    width:24px; height:24px; border-radius:50%; background:var(--primary);
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:11px; font-weight:700;
  }
  .login-btn {
    display:flex; align-items:center; gap:6px;
    padding:6px 14px; background:var(--primary); color:#fff;
    border:none; border-radius:20px; font-size:13px; font-weight:600;
    cursor:pointer; font-family:inherit; transition:all .15s;
  }
  .login-btn:hover { background:var(--primary-dark); }
  /* Profile */
  #profile-modal { display:none;position:fixed;inset:0;z-index:998;background:rgba(15,23,42,.6);align-items:center;justify-content:center; }
  #profile-modal.show { display:flex; }
  .profile-box { background:#fff;border-radius:20px;width:420px;max-height:90vh;overflow-y:auto;box-shadow:0 24px 64px rgba(0,0,0,.25); }
  .profile-header { background:linear-gradient(135deg,var(--primary),var(--indigo));padding:28px;text-align:center;border-radius:20px 20px 0 0; }
  .profile-avatar-wrap { position:relative;display:inline-block;margin-bottom:12px; }
  .profile-avatar { width:80px;height:80px;border-radius:50%;border:3px solid rgba(255,255,255,.5);object-fit:cover;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:32px;color:#fff;font-weight:700;margin:0 auto; }
  .profile-avatar-edit { position:absolute;bottom:0;right:0;width:26px;height:26px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2); }
  .profile-name { font-size:20px;font-weight:700;color:#fff;margin-bottom:4px; }
  .profile-role { font-size:12px;color:rgba(255,255,255,.7);text-transform:uppercase;letter-spacing:1px; }
  .profile-body { padding:24px; }
  .profile-section { margin-bottom:20px; }
  .profile-section-title { font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid var(--border); }
  .profile-field { margin-bottom:12px; }
  .profile-field label { display:block;font-size:13px;font-weight:500;color:var(--text-muted);margin-bottom:5px; }
  .profile-field input { width:100%;border:1.5px solid var(--border);border-radius:8px;padding:9px 12px;font-size:14px;font-family:inherit;outline:none;transition:border .15s;box-sizing:border-box; }
  .profile-field input:focus { border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,.08); }
  .profile-field input:disabled { background:#f8fafc;color:var(--text-muted); }
  .profile-actions { display:flex;gap:10px;margin-top:20px; }
  .profile-btn { flex:1;padding:11px;border-radius:10px;border:none;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .15s; }
  .profile-btn-primary { background:var(--primary);color:#fff; }
  .profile-btn-primary:hover { background:var(--primary-dark); }
  .profile-btn-outline { background:transparent;border:1.5px solid var(--border);color:var(--text); }
  .profile-btn-outline:hover { border-color:var(--primary);color:var(--primary); }
  .profile-msg { font-size:13px;text-align:center;margin-top:10px;min-height:20px; }

  /* ── PRIVATE LOCK OVERLAY ── */
  .lock-overlay {
    position:absolute; inset:0; background:rgba(248,250,252,.92);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    border-radius:20px; gap:8px; z-index:2;
  }
  .lock-overlay i { font-size:28px; color:var(--text-muted); }
  .lock-overlay span { font-size:13px; color:var(--text-muted); font-weight:500; }
  .lock-btn {
    padding:6px 16px; background:var(--primary); color:#fff;
    border:none; border-radius:20px; font-size:12.5px; font-weight:600;
    cursor:pointer; font-family:inherit; transition:all .15s; margin-top:4px;
  }
  .lock-btn:hover { background:var(--primary-dark); }

  /* ── PRIVATE BADGE on card ── */
  .access-badge {
    padding:2px 8px; border-radius:5px; font-size:11px; font-weight:600; border:1px solid;
  }
  .badge-public  { background:#f0fdf4; color:#15803d; border-color:#86efac; }
  .badge-private { background:#fef2f2; color:#b91c1c; border-color:#fca5a5; }

  /* ── PRIVATE ARTICLE GATE ── */
  #article-gate {
    display:none; text-align:center; padding:60px 20px;
  }
  .gate-icon { font-size:52px; color:var(--text-muted); margin-bottom:16px; }
  .gate-title { font-size:20px; font-weight:700; margin-bottom:8px; }
  .gate-sub { font-size:14px; color:var(--text-muted); margin-bottom:24px; line-height:1.7; }

  /* ── SIDEBAR ── */
  #sidebar {
    width:var(--sidebar-w); background:var(--sidebar-bg); color:#fff;
    position:fixed; top:0; left:0; height:100vh;
    overflow-y:auto; z-index:100;
    display:flex; flex-direction:column;
    transition:transform .28s cubic-bezier(.4,0,.2,1), box-shadow .28s;
  }
  .sidebar-logo { padding:18px 20px; border-bottom:1px solid rgba(255,255,255,.1); display:flex; align-items:center; gap:10px; }
  .logo-icon { width:34px;height:34px;border-radius:10px;background:var(--primary);display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;flex-shrink:0; }
  .logo-name { font-size:19px;font-weight:700;color:#fff; }
  .logo-name span { color:#60a5fa; }
  .nav-search { padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.08);position:relative; }
  .nav-search i { position:absolute;left:28px;top:50%;transform:translateY(-50%);color:rgba(255,255,255,.3);font-size:12px; }
  .nav-search input { width:100%;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:8px 10px 8px 30px;color:#fff;font-size:13px;font-family:inherit;outline:none; }
  .nav-search input::placeholder { color:rgba(255,255,255,.3); }
  .nav-search input:focus { border-color:var(--primary);background:rgba(37,99,235,.18); }
  #nav-menu { padding:8px 0;flex:1; }
  .nav-item { display:flex;align-items:center;gap:9px;padding:9px 16px;cursor:pointer;font-size:13.5px;color:rgba(255,255,255,.7);border-left:3px solid transparent;transition:all .15s;text-decoration:none; }
  .nav-item:hover { color:#fff;background:rgba(255,255,255,.05);border-left-color:#38bdf8; }
  .nav-item.active { color:#fff;background:rgba(37,99,235,.2);border-left-color:var(--primary);font-weight:600; }
  .nav-item .icon { width:18px;font-size:13px;text-align:center;flex-shrink:0; }
  .nav-item .lock-icon { font-size:10px;color:rgba(255,165,0,.7);margin-left:auto; }
  .nav-folder-header { display:flex;align-items:center;gap:9px;padding:9px 16px;cursor:pointer;font-size:13.5px;color:rgba(255,255,255,.7);user-select:none;transition:all .15s; }
  .nav-folder-header:hover { color:#fff;background:rgba(255,255,255,.05); }
  .arrow { margin-left:auto;font-size:10px;color:rgba(255,255,255,.3);transition:transform .2s; }
  .nav-folder.open .arrow { transform:rotate(90deg); }
  .nav-folder-children { display:none;padding-left:14px; }
  .nav-folder.open .nav-folder-children { display:block; }
  .sidebar-footer { padding:14px 16px;border-top:1px solid rgba(255,255,255,.08);text-align:center; }
  .admin-link { display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:8px 0;background:rgba(37,99,235,.15);border:1px solid rgba(37,99,235,.35);border-radius:8px;color:#93c5fd;font-size:12.5px;font-weight:500;text-decoration:none;font-family:inherit;cursor:pointer;transition:all .15s;margin-bottom:8px; }
  .admin-link:hover { background:rgba(37,99,235,.3);color:#fff; }
  .copy { font-size:11px;color:rgba(255,255,255,.25); }

  /* ── MAIN ── */
  #main { margin-left:var(--sidebar-w);flex:1;display:flex;flex-direction:column;min-height:100vh; }
  @media (max-width:1024px) { #main { margin-left:0; } }
  .topbar { background:var(--card-bg);border-bottom:1px solid var(--border);padding:0 28px;height:56px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50;box-shadow:0 1px 3px rgba(0,0,0,.04); }
  .breadcrumb { display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-muted); }
  .bc-home { color:var(--primary);font-weight:500;cursor:pointer;display:flex;align-items:center;gap:5px; }
  .bc-home:hover { text-decoration:underline; }
  .bc-cur { color:var(--text);font-weight:600; }
  .bc-sep { color:var(--border); }
  .btn-toggle { display:none;background:none;border:none;font-size:20px;cursor:pointer;color:var(--text-muted);padding:6px 10px;border-radius:8px;transition:all .15s; }
  .btn-toggle:hover { background:var(--hover);color:var(--primary); }
  .count-badge { font-size:12px;color:var(--text-muted);background:var(--bg);border:1px solid var(--border);padding:4px 10px;border-radius:20px; }

  #content-area { flex:1;padding:28px 32px;max-width:1100px; }
  #content-area.article-mode { max-width:100%;padding:16px 20px; }

  /* ── HERO ── */
  .home-hero { background:linear-gradient(135deg,var(--primary) 0%,var(--indigo) 100%);border-radius:24px;padding:44px 48px;color:#fff;margin-bottom:32px;position:relative;overflow:hidden;box-shadow:0 10px 30px rgba(37,99,235,.25); }
  .home-hero::before { content:'';position:absolute;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.07);top:-60px;right:-40px; }
  .home-hero::after  { content:'';position:absolute;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.07);bottom:-40px;right:120px; }
  .home-hero h1 { font-size:30px;font-weight:700;margin-bottom:10px;line-height:1.35; }
  .home-hero p  { font-size:15px;color:rgba(255,255,255,.8);max-width:520px;line-height:1.75;margin-bottom:22px; }
  .hero-btn { display:inline-flex;align-items:center;gap:8px;padding:10px 22px;background:#fff;color:var(--primary);border-radius:100px;font-weight:700;font-size:14px;cursor:pointer;border:none;font-family:inherit;transition:all .15s;box-shadow:0 4px 12px rgba(0,0,0,.15); }
  .hero-btn:hover { background:var(--primary-light);transform:translateY(-1px); }
  .hero-stats { display:flex;gap:28px;margin-top:26px;padding-top:22px;border-top:1px solid rgba(255,255,255,.15); }
  .s-num { font-size:26px;font-weight:700;color:#fff; }
  .s-lbl { font-size:12px;color:rgba(255,255,255,.55);margin-top:2px; }

  /* ── CARDS ── */
  .sec-header { display:flex;align-items:center;justify-content:space-between;margin-bottom:16px; }
  .sec-header h2 { font-size:18px;font-weight:700;color:var(--text); }
  .cards-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px;margin-bottom:32px; }
  .content-card { background:var(--card-bg);border:1px solid var(--border);border-radius:20px;overflow:hidden;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;display:flex;flex-direction:column;box-shadow:0 1px 3px rgba(0,0,0,.04);position:relative;text-decoration:none;color:inherit; }
  .content-card:hover { transform:translateY(-5px);box-shadow:0 10px 25px rgba(0,0,0,.1);border-color:#bfdbfe; }
  .content-card.locked { cursor:default; }
  .content-card.locked:hover { transform:none;box-shadow:0 1px 3px rgba(0,0,0,.04);border-color:var(--border); }
  .card-banner { height:96px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden; }
  .card-banner.blue   { background:var(--primary); }
  .card-banner.indigo { background:#6366f1; }
  .card-banner.teal   { background:var(--teal); }
  .card-banner.slate  { background:#64748b; }
  .card-banner::before { content:'';position:absolute;width:90px;height:90px;background:rgba(255,255,255,.1);border-radius:50%;right:-25px;top:-25px; }
  .card-banner::after  { content:'';position:absolute;width:60px;height:60px;background:rgba(255,255,255,.1);border-radius:50%;left:-15px;bottom:-15px; }
  .card-banner i { font-size:34px;color:rgba(255,255,255,.9);position:relative;z-index:1; }
  .card-body { padding:16px 18px;flex:1;display:flex;flex-direction:column; }
  .card-tags { display:flex;gap:5px;margin-bottom:9px;flex-wrap:wrap;align-items:center; }
  .card-tag { padding:2px 8px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:600;border-radius:5px;border:1px solid #e2e8f0; }
  .card-title { font-size:14.5px;font-weight:700;margin-bottom:5px;color:var(--text);line-height:1.4; }
  .card-desc  { font-size:12.5px;color:var(--text-muted);line-height:1.6;flex:1; }
  .card-footer { display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding-top:10px;border-top:1px solid var(--border);font-size:12px;color:var(--text-muted);font-weight:500; }
  .card-cta { color:var(--primary);font-weight:700; }

  /* ── ARTICLE ── */
  #article-view { display:none;width:100%; }
  #article-iframe-wrap { width:100%; }

  /*
   * CHIẾN LƯỢC IFRAME:
   * - KHÔNG dùng aspect-ratio cố định → nội dung dài sẽ bị cắt
   * - KHÔNG dùng max-height → nội dung bị ẩn, phải scroll bên trong iframe
   * - Dùng height tối thiểu + JS postMessage để iframe tự báo chiều cao thực
   * - Trang ngoài scroll dọc tự nhiên (không scroll bên trong iframe)
   * - Portrait: ưu tiên đọc dọc → width 100%, height theo nội dung
   * - Landscape: ưu tiên đọc ngang → width 100%, height >= 85vw
   */
  #article-iframe {
    width: 100%;
    min-height: 400px;
    height: 600px;           /* initial height, JS sẽ cập nhật */
    display: block;
    border: none;
    overflow: hidden;        /* không scroll bên trong iframe */
    transition: height 0.1s ease;
  }
  #article-gate { display:none;max-width:860px; }
  .article-wrap { background:var(--card-bg);border:1px solid var(--border);border-radius:20px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.04);width:100%;box-sizing:border-box; }
  .article-hd { background:var(--hover);border-bottom:1px solid #bfdbfe;padding:22px 32px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px; }
  .article-hd-tags { display:flex;gap:6px;margin-bottom:8px;align-items:center; }
  .article-hd-tag { padding:3px 10px;background:#fff;border:1px solid #bfdbfe;color:var(--primary);font-size:11px;font-weight:700;border-radius:6px; }
  .article-hd h1 { font-size:21px;font-weight:700;color:var(--text); }
  .article-hd-meta { font-size:12.5px;color:var(--text-muted);margin-top:5px; }
  .article-hd-icon { color:#bfdbfe;font-size:38px;flex-shrink:0; }
  .article-body { padding:0; }
  #article-content { line-height:1.85;font-size:15px;color:var(--text); }
  #article-content h2 { font-size:18px;font-weight:700;margin:22px 0 10px;color:var(--text);border-bottom:2px solid var(--primary-light);padding-bottom:6px; }
  #article-content h3 { font-size:15.5px;font-weight:600;margin:18px 0 8px;color:#334155; }
  #article-content p  { margin-bottom:13px; }
  #article-content code { background:#f1f5f9;padding:2px 7px;border-radius:5px;font-size:13px;color:#1e40af;border:1px solid #e2e8f0; }
  #article-content pre { background:#1e293b;color:#94a3b8;padding:18px;border-radius:12px;overflow-x:auto;margin:16px 0; }
  #article-content pre code { background:none;border:none;color:inherit;padding:0; }
  #article-content ul,#article-content ol { padding-left:24px;margin-bottom:13px; }
  #article-content li { margin-bottom:5px; }
  .back-btn { display:inline-flex;align-items:center;gap:7px;padding:8px 18px;background:var(--card-bg);border:1px solid var(--border);border-radius:100px;font-size:13px;font-weight:500;cursor:pointer;color:var(--text-muted);font-family:inherit;margin-bottom:18px;transition:all .15s;box-shadow:0 1px 2px rgba(0,0,0,.05); }
  .back-btn:hover { background:var(--hover);border-color:#93c5fd;color:var(--primary); }
  .back-btn:hover i { transform:translateX(-3px); }
  .back-btn i { transition:transform .15s; }

  /* ── MISC ── */
  .loading { text-align:center;padding:60px;color:var(--text-muted); }
  .spin { font-size:26px;animation:spin 1s linear infinite;display:inline-block;color:var(--primary); }
  @keyframes spin { to { transform:rotate(360deg); } }

  /* ── SKELETON LOADING ── */
  @keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
  }
  .skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 1200px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 7px;
  }
  .skeleton-card { pointer-events:none; }
  .skeleton-card .card-banner { background:#e2e8f0 !important; }
  .skeleton-card .card-banner i { display:none; }
  .sk-line { height:11px; margin-bottom:9px; }
  .sk-line.w-70 { width:70%; }
  .sk-line.w-50 { width:50%; }
  .sk-line.w-85 { width:85%; }
  .sk-line.w-35 { width:35%; }

  .empty-state { text-align:center;padding:60px 20px;color:var(--text-muted); }
  .empty-state .emoji { font-size:48px;margin-bottom:14px; }
  .empty-state h3 { font-size:17px;margin-bottom:6px;color:var(--text);font-weight:600; }
  .overlay {
    display:none;position:fixed;inset:0;
    background:rgba(0,0,0,.45);z-index:99;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
  }
  .overlay.show { display:block; }
  /* ══ TABLET/MOBILE: sidebar ẩn ≤ 1024px ══════════════ */
  @media (max-width:1024px) {
    :root { --sidebar-w: 280px; }
    #sidebar {
      transform:translateX(-100%);
      box-shadow:none;
      width:var(--sidebar-w);
      transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
    }
    #sidebar.open {
      transform:translateX(0);
      box-shadow:4px 0 24px rgba(0,0,0,.35);
    }
    .btn-toggle { display:flex; }
  }

  /* ══ TABLET/MOBILE: 768px ════════════════════════════ */
  @media (max-width:768px) {
    :root { --sidebar-w: 260px; }
    #sidebar { width:260px; }
    #main { margin-left:0; }
    .btn-toggle { display:flex; }
    .topbar { padding:0 14px; height:52px; }
    .count-badge { display:none; }
    #content-area { padding:14px 14px 24px; }
    #content-area.article-mode { padding:10px 12px; }
    .home-hero { padding:24px 20px; border-radius:16px; }
    .home-hero h1 { font-size:20px; }
    .home-hero p { font-size:13.5px; }
    .hero-stats { gap:16px; flex-wrap:wrap; }
    .s-num { font-size:22px; }
    .cards-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px; }
    .card-body { padding:12px 14px; }
    .card-title { font-size:13.5px; }
    .article-hd { padding:14px 16px; gap:10px; }
    .article-hd h1 { font-size:17px; line-height:1.4; }
    .article-hd-icon { display:none; }
    .article-hd-meta { font-size:11.5px; }
    #article-view > div:first-child { flex-wrap:wrap; gap:8px; margin-bottom:12px; }
    .back-btn { padding:7px 14px; font-size:12.5px; }
    /* iframe: không giới hạn height, scroll trang ngoài */
    #article-iframe { min-height:300px; }
    #login-modal > .lm-box { width:calc(100vw - 32px) !important; padding:28px 20px; }
    .profile-box { width:calc(100vw - 24px) !important; max-height:85vh; }
  }

  /* ══ MOBILE NHỎ: 480px ════════════════════════════════ */
  @media (max-width:480px) {
    :root { --sidebar-w: 240px; }
    #sidebar { width:240px; }
    #content-area { padding:10px 10px 20px; }
    #content-area.article-mode { padding:8px 10px; }
    .home-hero { padding:20px 16px; border-radius:14px; }
    .home-hero h1 { font-size:18px; }
    .home-hero p { font-size:13px; margin-bottom:14px; }
    .hero-btn { font-size:13px; padding:9px 18px; }
    .cards-grid { grid-template-columns:1fr; gap:10px; }
    .article-hd { padding:12px 14px; }
    .article-hd h1 { font-size:15.5px; }
    .article-hd-tags { flex-wrap:wrap; }
    #article-iframe { min-height:250px; }
    .topbar { padding:0 10px; }
    .bc-cur { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    #share-btn span { display:none; }
  }

  /* ══ LANDSCAPE: quay ngang → ưu tiên chiều ngang ════════ */
  @media (orientation:landscape) and (max-height:600px) {
    /* Khi quay ngang, màn hình thấp → giảm header, tăng vùng đọc */
    .topbar { height:44px; }
    .article-hd { padding:10px 16px; }
    .article-hd h1 { font-size:15px; }
    #content-area { padding:8px 12px; }
    #content-area.article-mode { padding:6px 10px; }
    /* Sidebar hẹp hơn để nhường chỗ cho nội dung */
    :root { --sidebar-w: 220px; }
    /* iframe chiều ngang: min-height = 80% chiều cao viewport */
    #article-iframe { min-height:80vh; }
  }

  /* ══ PORTRAIT: quay dọc → ưu tiên chiều dọc ════════════ */
  @media (orientation:portrait) {
    /* Không giới hạn height iframe → scroll tự nhiên */
    #article-iframe { min-height:50vh; }
  }

  /* ══ ACTIVE LEARNING: PROGRESS + REACTIONS ══════════════ */

  /* Reading timer strip */
  .reading-timer-bar { height:3px; background:#e0f2fe; width:100%; overflow:hidden; border-radius:0 0 20px 20px; }
  .reading-timer-fill { height:100%; width:0; background:linear-gradient(90deg,#3b82f6,#10b981); transition:width .8s linear; }

  /* Reaction panel */
  .reaction-panel { background:var(--card-bg);border-top:1px solid var(--border);padding:16px 24px;border-radius:0 0 20px 20px; }
  .reaction-label { font-size:12.5px;font-weight:600;color:var(--text-muted);margin-bottom:10px;display:flex;align-items:center;gap:6px; }
  .reaction-row { display:flex;gap:8px;flex-wrap:wrap; }
  .reaction-btn { display:inline-flex;align-items:center;gap:5px;padding:7px 14px;border-radius:100px;border:1.5px solid var(--border);background:var(--card-bg);cursor:pointer;font-size:13px;font-family:inherit;transition:all .15s;color:var(--text); }
  .reaction-btn:hover { border-color:#93c5fd;background:var(--hover); }
  .reaction-btn.selected { border-color:var(--primary);background:#eff6ff;color:var(--primary);font-weight:600; }
  .reaction-done-msg { color:#16a34a;font-size:12.5px;font-weight:500;margin-top:8px;display:none; }
  .read-complete-bar { display:flex;align-items:center;gap:8px;padding:10px 24px;background:#f0fdf4;border-top:1px solid #86efac;font-size:12.5px;color:#15803d;font-weight:500; }

  /* Nav read badge */
  .nav-read-badge { display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;background:#16a34a;border-radius:50%;margin-left:auto;flex-shrink:0; }
  .nav-read-badge i { font-size:7px;color:#fff; }

  /* Card read overlay */
  .card-read-chip { display:inline-flex;align-items:center;gap:4px;padding:2px 8px;background:#f0fdf4;border:1px solid #86efac;color:#15803d;border-radius:100px;font-size:10.5px;font-weight:600; }

  /* ══ LỘ TRÌNH HỌC PANEL ══════════════════════════════════ */
  #lo-trinh-overlay { display:none;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:200; }
  #lo-trinh-panel { display:none;position:fixed;top:0;right:0;bottom:0;width:360px;background:var(--card-bg);border-left:1px solid var(--border);z-index:201;overflow-y:auto;box-shadow:-6px 0 24px rgba(0,0,0,.12);flex-direction:column; }
  .lt-header { background:linear-gradient(135deg,#1e3a8a,#2563eb);color:#fff;padding:20px 20px 18px;position:relative;flex-shrink:0; }
  .lt-header h2 { font-size:16px;font-weight:700;margin-bottom:3px; }
  .lt-header-sub { font-size:12px;opacity:.75; }
  .lt-close-btn { position:absolute;top:14px;right:14px;background:rgba(255,255,255,.2);border:none;color:#fff;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center; }
  .lt-close-btn:hover { background:rgba(255,255,255,.35); }
  .lt-summary { display:flex;gap:0;border-bottom:1px solid var(--border); }
  .lt-stat { flex:1;text-align:center;padding:14px 0; }
  .lt-stat-val { font-size:22px;font-weight:700;color:var(--primary);line-height:1; }
  .lt-stat-lbl { font-size:11px;color:var(--text-muted);margin-top:3px; }
  .lt-stat + .lt-stat { border-left:1px solid var(--border); }
  .lt-overall-bar-wrap { padding:12px 16px;border-bottom:1px solid var(--border); }
  .lt-overall-bar-track { height:6px;background:#e2e8f0;border-radius:6px;overflow:hidden; }
  .lt-overall-bar-fill { height:100%;background:linear-gradient(90deg,#3b82f6,#10b981);border-radius:6px;transition:width .5s; }
  .lt-folder-section { padding:6px 0; }
  .lt-folder-hd { padding:10px 16px 4px;display:flex;align-items:center;justify-content:space-between; }
  .lt-folder-name { font-size:11.5px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.4px; }
  .lt-folder-prog { font-size:11px;color:var(--text-muted); }
  .lt-folder-bar-wrap { height:3px;background:#e2e8f0;margin:0 16px 6px;border-radius:3px; }
  .lt-folder-bar-fill { height:100%;background:#3b82f6;border-radius:3px;transition:width .4s; }
  .lt-article { display:flex;align-items:center;gap:9px;padding:7px 16px;border-radius:8px;cursor:pointer;transition:background .12s;margin:0 4px; }
  .lt-article:hover { background:var(--hover); }
  .lt-dot { width:18px;height:18px;border-radius:50%;border:2px solid #cbd5e1;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:8px;background:#fff; }
  .lt-dot.done { background:#16a34a;border-color:#16a34a;color:#fff; }
  .lt-article-name { flex:1;font-size:13px;color:var(--text);line-height:1.3; }
  .lt-article.done .lt-article-name { color:var(--text-muted); }

  /* Sidebar "Lộ trình học" trigger */
  .lt-trigger { display:none;margin:8px 12px;padding:8px 12px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:10px;cursor:pointer;color:#fff;font-size:13px;font-family:inherit;width:calc(100% - 24px);text-align:left;transition:background .15s; }
  .lt-trigger:hover { background:rgba(255,255,255,.18); }
  .lt-trigger-inner { display:flex;align-items:center;gap:8px; }
  .lt-trigger-pct { margin-left:auto;font-size:11px;background:rgba(255,255,255,.2);padding:2px 7px;border-radius:100px; }

  @media (max-width:600px) {
    #lo-trinh-panel { width:100%; }
    .reaction-panel { padding:12px 16px; }
  }

/* ── SOCRATIC AI PANEL ──────────────────────────────── */
.socratic-hd{display:flex;align-items:center;gap:8px;padding:12px 16px;background:linear-gradient(135deg,#ede9fe,#f5f3ff);border-radius:12px 12px 0 0;border:1.5px solid #ddd6fe;border-bottom:none;font-size:13px}
.socratic-messages{max-height:280px;overflow-y:auto;padding:12px 16px;border:1.5px solid #ddd6fe;border-top:none;border-bottom:none;background:#fafafa;display:flex;flex-direction:column;gap:10px}
.socratic-msg{padding:9px 13px;border-radius:10px;font-size:13px;line-height:1.5;max-width:90%}
.socratic-msg.user{background:#ede9fe;color:#4c1d95;align-self:flex-end;border-radius:10px 10px 2px 10px}
.socratic-msg.ai{background:#fff;color:#1e293b;border:1px solid #e2e8f0;align-self:flex-start;border-radius:10px 10px 10px 2px}
.socratic-msg.system{background:#fef9c3;color:#713f12;font-size:12px;border-radius:8px;align-self:center;text-align:center;padding:6px 12px}
.socratic-input-row{display:flex;gap:8px;padding:10px 16px;background:#fff;border:1.5px solid #ddd6fe;border-top:none;border-radius:0 0 12px 12px}
.socratic-input{flex:1;border:1px solid #e2e8f0;border-radius:8px;padding:8px 12px;font-size:13px;font-family:inherit;resize:none;outline:none;transition:border-color .15s}
.socratic-input:focus{border-color:#7c3aed}
.socratic-send-btn{background:#7c3aed;color:#fff;border:none;border-radius:8px;padding:8px 14px;cursor:pointer;font-size:14px;transition:background .15s;flex-shrink:0}
.socratic-send-btn:hover{background:#6d28d9}
.socratic-send-btn:disabled{background:#c4b5fd;cursor:not-allowed}

/* ── COURSE CARDS ───────────────────────────────────── */
.course-card{background:#fff;border-radius:14px;border:1.5px solid var(--border);padding:20px;cursor:pointer;transition:all .18s;display:flex;flex-direction:column;gap:8px}
.course-card:hover{border-color:var(--primary);box-shadow:0 4px 20px rgba(37,99,235,.1);transform:translateY(-2px)}
.course-card-title{font-size:16px;font-weight:700;color:var(--text)}
.course-card-desc{font-size:13px;color:var(--text-muted);line-height:1.4}
.course-card-meta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-muted);margin-top:4px}

/* ── MODULE ITEMS IN COURSE DETAIL ──────────────────── */
.module-block{margin-bottom:20px;border:1.5px solid var(--border);border-radius:12px;overflow:hidden}
.module-block-hd{background:linear-gradient(135deg,#eff6ff,#f0fdf4);padding:14px 18px;display:flex;align-items:center;gap:10px;border-bottom:1.5px solid var(--border)}
.module-block-num{width:28px;height:28px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}
.module-block-title{font-weight:600;font-size:14px;color:var(--text)}
.module-block-items{padding:8px 0}
.module-item-row{display:flex;align-items:center;gap:12px;padding:10px 18px;cursor:pointer;transition:background .12s;border-bottom:1px solid #f1f5f9}
.module-item-row:last-child{border-bottom:none}
.module-item-row:hover{background:#f8fafc}
.module-item-type{font-size:10px;font-weight:700;padding:2px 7px;border-radius:100px;flex-shrink:0}
.type-article{background:#dbeafe;color:#1e40af}
.type-interactive{background:#d1fae5;color:#065f46}
.type-quiz{background:#fef3c7;color:#92400e}

/* ── EXAM VIEW ──────────────────────────────────────── */
.exam-section-block{margin-bottom:28px}
.exam-sec-hd{display:flex;align-items:center;gap:10px;padding:10px 16px;background:linear-gradient(135deg,#eff6ff,#f5f3ff);border-radius:10px;margin-bottom:14px;font-size:13px;font-weight:600;color:#1e40af;border:1px solid #bfdbfe}
.exam-sec-pts{margin-left:auto;font-size:11px;font-weight:700;background:#fff;border:1px solid #bfdbfe;padding:2px 9px;border-radius:100px;color:#2563eb}
.exam-q-card{background:#fff;border:1.5px solid var(--border);border-radius:12px;padding:18px;margin-bottom:14px}
.exam-q-num{font-size:12px;font-weight:700;color:var(--primary);margin-bottom:8px;text-transform:uppercase;letter-spacing:.3px}
.exam-q-text{font-size:14px;font-weight:500;color:var(--text);margin-bottom:14px;line-height:1.5}
.exam-q-options{display:flex;flex-direction:column;gap:8px}
.exam-option{display:flex;align-items:flex-start;gap:10px;padding:10px 14px;border:1.5px solid var(--border);border-radius:9px;cursor:pointer;transition:all .15s;font-size:13px}
.exam-option:hover{border-color:var(--primary);background:#eff6ff}
.exam-option.selected{border-color:#2563eb;background:#eff6ff}
.exam-option.correct{border-color:#16a34a!important;background:#dcfce7!important}
.exam-option.wrong{border-color:#dc2626!important;background:#fee2e2!important}
.exam-option input[type="radio"]{width:16px;height:16px;margin-top:1px;accent-color:var(--primary);flex-shrink:0;cursor:pointer}
.exam-explanation{margin-top:12px;padding:10px 14px;background:#fefce8;border:1px solid #fde68a;border-radius:8px;font-size:13px;color:#713f12}

/* ── MODULE LOCK ────────────────────────────────────── */
.module-locked{opacity:.75;border-color:#cbd5e1!important}
.module-locked .module-block-hd{background:#f1f5f9}
.module-lock-badge{margin-left:auto;font-size:11px;color:#dc2626;background:#fee2e2;padding:3px 10px;border-radius:100px;border:1px solid #fca5a5;cursor:help}
.module-lock-overlay{padding:14px 18px;font-size:13px;color:#64748b;background:#f8fafc;border-top:1px solid #e2e8f0;display:flex;align-items:center;gap:8px}

/* ═══════════════════════════════════════════════════════════════
   SECTION 20 — CANVAS-QUALITY STUDENT COURSE UI
   ═══════════════════════════════════════════════════════════════ */

/* ── Course Catalog ─────────────────────────────────────────── */
.cv-student-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cv-student-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cv-student-card:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.cv-student-card-banner {
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
}
.cv-student-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.45));
}
.cv-student-card-banner-icon {
  font-size: 32px;
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: .35;
  z-index: 1;
}
.cv-student-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.3;
}
.cv-student-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cv-student-card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cv-student-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: auto;
}
.cv-student-card-meta span { display: flex; align-items: center; gap: 4px; }

/* Progress bar on card */
.cv-student-card-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.cv-student-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #7C3AED);
  border-radius: 2px;
  transition: width .4s;
}

.cv-student-card-footer {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cv-enroll-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #dbeafe;
  color: #1d4ed8;
}
.cv-enroll-badge.enrolled {
  background: #dcfce7;
  color: #15803d;
}
.cv-continue-link {
  font-size: 12px;
  color: #4F46E5;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Course Detail Hero ─────────────────────────────────────── */
.cv-course-hero {
  border-radius: 16px;
  padding: 32px 36px;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}
.cv-course-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.1), rgba(0,0,0,.35));
}
.cv-course-hero-content { position: relative; z-index: 1; }
.cv-course-hero h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.cv-course-hero-desc {
  font-size: 14px;
  opacity: .9;
  max-width: 600px;
  line-height: 1.5;
}
.cv-course-hero-stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
  opacity: .9;
}
.cv-course-hero-stats span { display: flex; align-items: center; gap: 5px; }

.cv-course-hero-actions {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
}
.cv-enroll-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
}
.cv-enroll-btn.primary {
  background: #fff;
  color: #4F46E5;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.cv-enroll-btn.primary:hover { background: #f0f0ff; transform: scale(1.03); }
.cv-enroll-btn.enrolled-btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
}

/* ── Canvas-style Module Accordion (Student) ────────────────── */
.cv-student-modules { display: flex; flex-direction: column; gap: 4px; }

.cv-student-module {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.cv-student-module-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  cursor: pointer;
  background: #fff;
  transition: background .15s;
  user-select: none;
}
.cv-student-module-hd:hover { background: #f8fafc; }
.cv-student-module-hd.locked { background: #f8fafc; cursor: default; }

.cv-module-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4F46E5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.cv-module-num.locked-num { background: #94a3b8; }
.cv-module-num.done-num { background: #16a34a; }

.cv-module-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}
.cv-module-meta {
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-module-prog {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 20px;
}
.cv-module-chevron {
  color: #94a3b8;
  font-size: 11px;
  transition: transform .2s;
  flex-shrink: 0;
}
.cv-student-module.open .cv-module-chevron { transform: rotate(90deg); }

.cv-student-module-items { display: none; border-top: 1px solid #f1f5f9; }
.cv-student-module.open .cv-student-module-items { display: block; }

.cv-student-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 22px;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #f8fafc;
  transition: all .15s;
  position: relative;
}
.cv-student-item-row:last-child { border-bottom: none; }
.cv-student-item-row:hover {
  background: #f8fafc;
  border-left-color: #4F46E5;
}
.cv-student-item-row.completed {
  border-left-color: #16a34a;
}
.cv-student-item-row.locked-item {
  opacity: .5;
  cursor: not-allowed;
}
.cv-student-item-row.locked-item:hover {
  background: transparent;
  border-left-color: transparent;
}

.cv-item-type-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cv-item-type-badge.type-article { background: #eff6ff; color: #1d4ed8; }
.cv-item-type-badge.type-video   { background: #fef3c7; color: #92400e; }
.cv-item-type-badge.type-interactive { background: #f3e8ff; color: #7e22ce; }
.cv-item-type-badge.type-quiz    { background: #fce7f3; color: #9d174d; }
.cv-item-type-badge.type-exam    { background: #fef2f2; color: #991b1b; }

.cv-item-title {
  flex: 1;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.35;
}
.cv-item-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
}
.cv-item-check.done {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

/* ── Locked module overlay ──────────────────────────────────── */
.cv-module-lock-banner {
  padding: 18px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #64748b;
  font-size: 13px;
}
.cv-module-lock-banner i { font-size: 20px; color: #94a3b8; }

/* ── Continue Learning Banner ───────────────────────────────── */
.cv-continue-banner {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: opacity .18s;
}
.cv-continue-banner:hover { opacity: .92; }
.cv-continue-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cv-continue-banner-text { flex: 1; }
.cv-continue-banner-label { font-size: 11px; opacity: .8; margin-bottom: 2px; }
.cv-continue-banner-title { font-size: 14px; font-weight: 700; }
.cv-continue-banner-arrow { font-size: 18px; opacity: .7; }

/* ── Course overall progress bar ───────────────────────────── */
.cv-course-progress-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cv-course-progress-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}
.cv-course-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F46E5, #7C3AED);
  border-radius: 4px;
  transition: width .5s ease;
}
.cv-course-progress-pct {
  font-size: 15px;
  font-weight: 700;
  color: #4F46E5;
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
}
.cv-course-progress-label { font-size: 12px; color: #64748b; }

/* ── My Learning tab ────────────────────────────────────────── */
.cv-mylearn-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cv-mylearn-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
}
.cv-mylearn-tab {
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #64748b;
  transition: all .15s;
  font-family: inherit;
}
.cv-mylearn-tab.active {
  background: #fff;
  color: #4F46E5;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cv-student-course-grid { grid-template-columns: 1fr; }
  .cv-course-hero { padding: 20px 18px 24px; }
  .cv-course-hero h1 { font-size: 20px; }
  .cv-course-hero-actions { position: static; margin-top: 16px; }
  .cv-course-hero-stats { flex-wrap: wrap; gap: 12px; }
}
