/* =============================================================
   Proten LMS — Student & Instructor Dashboards
   Design reference: Coursera + Udemy pro standards
   Mobile-first · Clean · Minimal · Professional
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────── */
.proten-dash-root,
.proten-dash-root * { box-sizing: border-box; }
.proten-dash-root {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f7f8fa;
    color: #111827;
    min-height: 100vh;
    line-height: 1.5;
}
.proten-dash-root a { text-decoration: none; color: inherit; }
.proten-dash-root button { font-family: inherit; cursor: pointer; }
.proten-dash-root input, .proten-dash-root textarea, .proten-dash-root select { font-family: inherit; }

/* ════════════════════════════════════════════════════════════
   DESKTOP LAYOUT  (≥ 900px)
   Left sidebar + Main content  — like Udemy instructor hub
   ════════════════════════════════════════════════════════════ */
.proten-dash-layout {
    display: flex;
    min-height: 100vh;
}

/* ── SIDEBAR (desktop) ────────────────────────────────────── */
.proten-dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-top: 3px solid var(--proten-primary,#FFD53F);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    z-index: 50;
}
.proten-dash-sidebar::-webkit-scrollbar { display: none; }

.proten-dash-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 20px 18px;
    border-bottom: 1px solid #f3f4f6;
    min-height: 72px;
}
.proten-dash-sidebar-logo-icon {
    width: 34px; height: 34px;
    background: var(--proten-primary, #FFD53F);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.proten-dash-sidebar-logo-name {
    font-size: 14px; font-weight: 800; color: #111827;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proten-dash-sidebar-logo-role {
    font-size: 10px; color: #9ca3af; font-weight: 500; margin-top: 1px;
}

.proten-dash-sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.proten-dash-sidebar-user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--proten-primary, #FFD53F); flex-shrink: 0;
}
.proten-dash-sidebar-user-name { font-size: 13px; font-weight: 700; }
.proten-dash-sidebar-user-email { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.proten-dash-sidebar-user-role {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--proten-primary, #FFD53F);
    margin-top: 3px;
    background: rgba(255,213,63,.12);
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
}

.proten-dash-sidebar-nav { flex: 1; padding: 12px 10px; }
.proten-dash-sidebar-nav-group { margin-bottom: 20px; }
.proten-dash-sidebar-nav-label {
    font-size: 10px; font-weight: 700; color: #9ca3af;
    text-transform: uppercase; letter-spacing: .7px;
    padding: 0 10px; margin-bottom: 4px;
}
.proten-dash-sidebar-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 9px; margin-bottom: 2px;
    font-size: 13px; font-weight: 600;
    color: #374151 !important;
    cursor: pointer; transition: all .15s;
    border: none; background: none; width: 100%;
    text-align: left; font-family: inherit;
    text-decoration: none !important;
}
.proten-dash-sidebar-nav-item:hover {
    background: rgba(255,213,63,.15);
    color: #0f172a !important;
    text-decoration: none !important;
}
.proten-dash-sidebar-nav-item.active {
    background: linear-gradient(135deg, var(--proten-primary,#FFD53F)25, var(--proten-secondary,#167DC0)15);
    color: var(--proten-dark, #09324D);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--proten-primary,#FFD53F);
}
.proten-dash-sidebar-nav-item.active .proten-dash-nav-icon { opacity: 1; }
.proten-dash-nav-icon { font-size: 16px; flex-shrink: 0; opacity: .7; width: 20px; text-align: center; }
.proten-dash-nav-label { flex: 1; }
.proten-dash-nav-badge {
    background: var(--proten-accent, #DC2626); color: #fff;
    font-size: 10px; font-weight: 800; min-width: 18px; height: 18px;
    border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.proten-dash-sidebar-footer {
    padding: 14px 10px;
    border-top: 1px solid #f3f4f6;
}
.proten-dash-sidebar-footer .proten-dash-sidebar-nav-item { color: #ef4444; }
.proten-dash-sidebar-footer .proten-dash-sidebar-nav-item:hover { background: #fef2f2; }

/* ── MAIN CONTENT (desktop) ───────────────────────────────── */
.proten-dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.proten-dash-topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky; top: 0; z-index: 40;
}
.proten-dash-topbar-title { font-size: 16px; font-weight: 800; color: #111827; }
.proten-dash-topbar-spacer { flex: 1; }
.proten-dash-topbar-actions { display: flex; align-items: center; gap: 8px; }

.proten-dash-body { flex: 1; padding: 28px; max-width: 1100px; }

/* ── STAT CARDS (desktop) ─────────────────────────────────── */
.proten-dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.proten-dash-stat-card {
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    border: 1px solid transparent;
}
.proten-dash-stat-card:hover { transform: translateY(-2px); }
.proten-dash-stat-card::after {
    content: '';
    position: absolute; top: -30px; right: -30px;
    width: 100px; height: 100px; border-radius: 50%; opacity: .08;
}
.proten-dash-stat-card.yellow { background: linear-gradient(155deg,#fff 0%,#fffdf2 100%); border-color: #f0e6a8; box-shadow: 0 2px 12px rgba(255,213,63,.1); }
.proten-dash-stat-card.yellow::after { background: var(--proten-primary, #FFD53F); }
.proten-dash-stat-card.green  { background: linear-gradient(155deg,#fff 0%,#f2f8fc 100%); border-color: #c8e0f0; box-shadow: 0 2px 12px rgba(22,125,192,.1); }
.proten-dash-stat-card.green::after  { background: var(--proten-secondary, #167DC0); }
.proten-dash-stat-card.red    { background: linear-gradient(155deg,#fff 0%,#fef4f4 100%); border-color: #f5c9cb; box-shadow: 0 2px 12px rgba(220,38,38,.1); }
.proten-dash-stat-card.red::after    { background: var(--proten-accent, #DC2626); }
.proten-dash-stat-card.dark   { background: linear-gradient(155deg,#fff 0%,#f7f7f7 100%); border-color: #e2e2e2; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.proten-dash-stat-card.dark::after   { background: var(--proten-dark, #09324D); }
.proten-dash-stat-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; margin-bottom: 14px; position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.proten-dash-stat-icon.yellow { background: var(--proten-primary,#FFD53F); }
.proten-dash-stat-icon.green  { background: var(--proten-secondary,#167DC0); }
.proten-dash-stat-icon.red    { background: var(--proten-accent,#DC2626); color: #fff; }
.proten-dash-stat-icon.dark   { background: var(--proten-dark,#09324D); color: #fff; }
.proten-dash-stat-value { font-size: 26px; font-weight: 900; color: #111827; letter-spacing: -.5px; line-height: 1; }
.proten-dash-stat-label { font-size: 12px; font-weight: 500; color: #6b7280; margin-top: 4px; }
.proten-dash-stat-change {
    font-size: 11px; font-weight: 700; margin-top: 6px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: 999px;
}
.proten-dash-stat-change.up   { background: #dcfce7; color: #15803d; }
.proten-dash-stat-change.down { background: #fee2e2; color: #dc2626; }

/* ── SECTION CARDS ────────────────────────────────────────── */
.proten-dash-section-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}
.proten-dash-section-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.proten-dash-section-card-title { font-size: 14px; font-weight: 700; color: #111827; }
.proten-dash-section-card-body  { padding: 20px; }

/* ── COURSE ROWS ──────────────────────────────────────────── */
.proten-dash-course-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none; color: inherit;
}
.proten-dash-course-row:last-child { border-bottom: none; }
.proten-dash-course-row:hover { background: none; }
.proten-dash-course-row:hover .proten-dash-course-row-title { color: var(--proten-dark, #09324D); }
.proten-dash-course-thumb {
    width: 88px; height: 56px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0; background: #f3f4f6;
}
.proten-dash-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proten-dash-course-thumb-empty {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--proten-primary, #FFD53F), var(--proten-secondary, #167DC0));
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.proten-dash-course-row-info { flex: 1; min-width: 0; }
.proten-dash-course-row-title {
    font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 3px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .15s;
}
.proten-dash-course-row-meta { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.proten-dash-progress-wrap { display: flex; align-items: center; gap: 10px; }
.proten-dash-progress-track {
    flex: 1; height: 5px; background: #f3f4f6;
    border-radius: 999px; overflow: hidden; max-width: 220px;
}
.proten-dash-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--proten-primary, #FFD53F), var(--proten-secondary, #167DC0));
    border-radius: 999px;
    transition: width .9s cubic-bezier(.4,0,.2,1);
}
.proten-dash-progress-pct { font-size: 12px; font-weight: 700; color: #374151; }
.proten-dash-course-row-action { flex-shrink: 0; }

/* ── TABLE ────────────────────────────────────────────────── */
.proten-dash-table-wrap { overflow-x: auto; }
.proten-dash-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; white-space: nowrap;
}
.proten-dash-table th {
    padding: 10px 16px; text-align: left;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; color: #9ca3af;
    background: #f9fafb; border-bottom: 1px solid #e5e7eb;
}
.proten-dash-table td {
    padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
    color: #374151; vertical-align: middle;
}
.proten-dash-table tr:last-child td { border-bottom: none; }
.proten-dash-table tr:hover td { background: #fafafa; }
.proten-dash-table .tavi { width:28px;height:28px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:8px; }

/* ── BADGES ───────────────────────────────────────────────── */
.proten-dash-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
}
.proten-dash-badge-green  { background: #dcfce7; color: #15803d; }
.proten-dash-badge-yellow { background: #fef9c3; color: #92400e; }
.proten-dash-badge-red    { background: #fee2e2; color: #dc2626; }
.proten-dash-badge-blue   { background: #dbeafe; color: #1d4ed8; }
.proten-dash-badge-gray   { background: #f3f4f6; color: #6b7280; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.proten-dash-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    border: 1.5px solid transparent; transition: all .18s;
    font-family: inherit; text-decoration: none; white-space: nowrap;
}
.proten-dash-btn-sm   { padding: 6px 13px; font-size: 12px; }
.proten-dash-btn-lg   { padding: 12px 26px; font-size: 14px; }
.proten-dash-btn-full { width: 100%; justify-content: center; }
.proten-dash-btn-primary   { background: var(--proten-primary,#FFD53F); color: var(--proten-dark,#09324D); border-color: var(--proten-primary,#FFD53F); }
.proten-dash-btn-primary:hover   { filter: brightness(.93); transform: translateY(-1px); }
.proten-dash-btn-secondary { background: var(--proten-secondary,#167DC0); color: var(--proten-dark,#09324D); }
.proten-dash-btn-outline   { background: #fff; color: #374151; border-color: #d1d5db; }
.proten-dash-btn-outline:hover   { border-color: #374151; }
.proten-dash-btn-ghost     { background: transparent; color: #6b7280; border-color: transparent; }
.proten-dash-btn-ghost:hover     { background: #f3f4f6; color: #111827; }
.proten-dash-btn-danger    { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ── FORM ─────────────────────────────────────────────────── */
.proten-dash-form-group  { margin-bottom: 18px; }
.proten-dash-label { display: block; font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
.proten-dash-input, .proten-dash-textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: 14px; font-family: inherit; color: #111827;
    background: #fff; transition: border-color .15s, box-shadow .15s; outline: none;
}
.proten-dash-input:focus, .proten-dash-textarea:focus { border-color: var(--proten-primary,#FFD53F); box-shadow: 0 0 0 3px rgba(255,213,63,.15); }
.proten-dash-textarea { min-height: 90px; resize: vertical; }

/* ── XP BAR ───────────────────────────────────────────────── */
.proten-dash-xp-card {
    background: linear-gradient(135deg, var(--proten-dark,#09324D) 0%, #2c2a2a 100%);
    border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; color: #fff;
}
.proten-dash-xp-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.proten-dash-xp-level { font-size: 12px; font-weight: 700; }
.proten-dash-xp-level span { background: var(--proten-primary,#FFD53F); color: var(--proten-dark,#09324D); padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.proten-dash-xp-pts { font-size: 11px; opacity: .6; }
.proten-dash-xp-track { height: 6px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.proten-dash-xp-fill { height: 100%; background: linear-gradient(90deg, var(--proten-primary,#FFD53F), var(--proten-secondary,#167DC0)); border-radius: 999px; transition: width 1s cubic-bezier(.4,0,.2,1); }
.proten-dash-xp-sub { font-size: 11px; opacity: .5; margin-top: 5px; }

/* ── GAMIFICATION ─────────────────────────────────────────── */
.proten-dash-game-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.proten-dash-streak-box {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 12px; padding: 20px; color: #fff; text-align: center;
    box-shadow: 0 4px 16px rgba(220,38,38,.25);
}
.proten-dash-streak-flame { font-size: 36px; display: block; }
.proten-dash-streak-num   { font-size: 40px; font-weight: 900; line-height: 1; }
.proten-dash-streak-lbl   { font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }
.proten-dash-level-box {
    background: linear-gradient(135deg, var(--proten-primary,#FFD53F), var(--proten-secondary,#167DC0));
    border-radius: 12px; padding: 20px; color: var(--proten-dark,#09324D); text-align: center;
}
.proten-dash-level-circle {
    width: 52px; height: 52px; background: var(--proten-dark,#09324D);
    color: var(--proten-primary,#FFD53F); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900; margin: 0 auto 8px;
}
.proten-dash-level-num { font-size: 18px; font-weight: 800; }
.proten-dash-level-sub { font-size: 11px; opacity: .7; margin-top: 2px; }

.proten-dash-badges-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.proten-dash-badge-item { text-align: center; cursor: default; }
.proten-dash-badge-icon { font-size: 24px; display: block; background: #f9fafb; border-radius: 10px; padding: 10px; margin-bottom: 4px; transition: all .2s; }
.proten-dash-badge-icon.earned { background: #fef9c3; }
.proten-dash-badge-item.locked .proten-dash-badge-icon { opacity: .2; filter: grayscale(1); }
.proten-dash-badge-lbl { font-size: 9px; font-weight: 600; color: #9ca3af; line-height: 1.3; }

/* Leaderboard */
.proten-dash-board-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.proten-dash-board-row:last-child { border-bottom: none; }
.proten-dash-board-rank { width: 22px; font-weight: 800; font-size: 13px; color: #9ca3af; flex-shrink: 0; text-align: center; }
.proten-dash-board-rank.g { color: #f59e0b; }
.proten-dash-board-rank.s { color: #94a3b8; }
.proten-dash-board-rank.b { color: #92400e; }
.proten-dash-board-avi img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.proten-dash-board-name { flex: 1; font-size: 13px; font-weight: 600; }
.proten-dash-board-xp { font-size: 12px; font-weight: 700; color: #15803d; }

/* ── CERT CARDS ───────────────────────────────────────────── */
.proten-dash-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.proten-dash-cert-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: all .2s; }
.proten-dash-cert-card:hover { border-color: var(--proten-primary,#FFD53F); box-shadow: 0 4px 20px rgba(255,213,63,.15); transform: translateY(-2px); }
.proten-dash-cert-head { background: linear-gradient(135deg, #111827, #374151); padding: 22px; text-align: center; color: #fff; }
.proten-dash-cert-head .icon { font-size: 36px; display: block; margin-bottom: 8px; }
.proten-dash-cert-head .type { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; opacity: .5; margin-bottom: 5px; }
.proten-dash-cert-head .name { font-size: 14px; font-weight: 800; line-height: 1.3; }
.proten-dash-cert-foot { padding: 14px; }
.proten-dash-cert-num { font-size: 10px; color: #9ca3af; font-family: monospace; margin-bottom: 4px; }
.proten-dash-cert-date { font-size: 11px; color: #9ca3af; margin-bottom: 12px; }
.proten-dash-cert-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── PROFILE ──────────────────────────────────────────────── */
.proten-dash-profile-header {
    background: linear-gradient(135deg, var(--proten-dark,#09324D) 0%, #2c2a2a 100%);
    border-radius: 12px; padding: 24px; text-align: center; color: #fff; margin-bottom: 20px;
}
.proten-dash-profile-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--proten-primary,#FFD53F); margin: 0 auto 12px; display: block; }
.proten-dash-profile-name  { font-size: 18px; font-weight: 800; margin-bottom: 3px; }
.proten-dash-profile-email { font-size: 13px; opacity: .6; margin-bottom: 14px; }
.proten-dash-profile-stats { display: flex; justify-content: center; gap: 28px; }
.proten-dash-profile-stat  { text-align: center; }
.proten-dash-profile-stat-val { font-size: 20px; font-weight: 900; color: var(--proten-primary,#FFD53F); }
.proten-dash-profile-stat-lbl { font-size: 10px; opacity: .6; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }

/* ── EMPTY ────────────────────────────────────────────────── */
.proten-dash-empty { text-align: center; padding: 52px 20px; }
.proten-dash-empty-icon { font-size: 52px; display: block; margin-bottom: 12px; }
.proten-dash-empty h3 { font-size: 16px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.proten-dash-empty p  { font-size: 13px; color: #9ca3af; margin-bottom: 20px; }

/* ════════════════════════════════════════════════════════════
   MOBILE LAYOUT  (< 900px)
   Full-screen · Sticky header · Bottom nav  — like a native app
   ════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {

    .proten-dash-layout  { display: block; }
    .proten-dash-sidebar { display: none; }
    .proten-dash-main    { display: block; }
    .proten-dash-topbar  { display: none; }
    .proten-dash-body    { padding: 16px 14px 88px; max-width: 100%; }
    .proten-dash-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Mobile sticky header */
    .proten-dash-mobile-header {
        display: flex !important;
        align-items: center;
        background: var(--proten-dark, #09324D);
        color: #fff; padding: 14px 16px;
        gap: 12px; position: sticky; top: 0; z-index: 100;
    }
    .proten-dash-mobile-header-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--proten-primary,#FFD53F); flex-shrink: 0; }
    .proten-dash-mobile-header-info   { flex: 1; min-width: 0; }
    .proten-dash-mobile-header-greeting { font-size: 10px; opacity: .55; }
    .proten-dash-mobile-header-name     { font-size: 15px; font-weight: 800; }
    .proten-dash-mobile-header-actions  { display: flex; gap: 6px; }
    .proten-dash-mobile-icon-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 14px; border: none; color: #fff; cursor: pointer; text-decoration: none; }

    /* Mobile hero strip */
    .proten-dash-mobile-hero {
        background: linear-gradient(135deg, var(--proten-dark,#09324D), #252323);
        padding: 16px 16px 20px;
        display: flex !important;
        overflow-x: auto;
        gap: 10px;
        scrollbar-width: none;
        border-bottom: 2px solid var(--proten-primary,#FFD53F);
    }
    .proten-dash-mobile-hero::-webkit-scrollbar { display: none; }
    .proten-dash-mobile-stat { background: rgba(255,255,255,.08); border-radius: 10px; padding: 12px 14px; flex-shrink: 0; text-align: center; min-width: 80px; border: 1px solid rgba(255,255,255,.08); }
    .proten-dash-mobile-stat-val { font-size: 18px; font-weight: 900; color: var(--proten-primary,#FFD53F); line-height: 1; }
    .proten-dash-mobile-stat-lbl { font-size: 9px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }

    /* XP bar on mobile */
    .proten-dash-xp-card { border-radius: 0; margin: 0; padding: 12px 16px; }

    /* Tab bar — fixed bottom */
    .proten-dash-tab-bar {
        display: flex !important;
        position: fixed; bottom: 0; left: 0; right: 0;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        z-index: 200;
        box-shadow: 0 -4px 16px rgba(0,0,0,.08);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .proten-dash-tab-btn {
        flex: 1; display: flex; flex-direction: column; align-items: center;
        padding: 8px 4px 6px; gap: 2px; cursor: pointer; border: none;
        background: none; font-family: inherit; color: #9ca3af;
        transition: color .15s; min-width: 0; font-size: 10px;
    }
    .proten-dash-tab-btn-icon { font-size: 20px; transition: transform .2s; line-height: 1; }
    .proten-dash-tab-btn-lbl  { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
    .proten-dash-tab-btn.active { color: var(--proten-dark, #09324D); }
    .proten-dash-tab-btn.active .proten-dash-tab-btn-icon { transform: scale(1.15); }

    /* Cards on mobile */
    .proten-dash-section-card { border-radius: 10px; margin-bottom: 12px; }
    .proten-dash-cert-grid    { grid-template-columns: 1fr; }
    .proten-dash-game-row     { grid-template-columns: 1fr 1fr; gap: 10px; }
    .proten-dash-badges-grid  { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .proten-dash-profile-stats { gap: 20px; }
    .proten-dash-stats-grid { margin-bottom: 14px; }
    .proten-dash-stat-card { padding: 14px; }
    .proten-dash-stat-value { font-size: 20px; }
    .proten-dash-stat-icon  { width: 34px; height: 34px; font-size: 15px; margin-bottom: 8px; }
    .proten-dash-course-thumb { width: 72px; height: 48px; }
}

/* Desktop only */
@media (min-width: 900px) {
    .proten-dash-mobile-header { display: none; }
    .proten-dash-mobile-hero   { display: none; }
    .proten-dash-tab-bar       { display: none; }
    .proten-dash-sidebar       { display: flex; }
    .proten-dash-topbar        { display: flex; }
    .proten-dash-badges-grid   { grid-template-columns: repeat(5, 1fr); }
    .proten-dash-game-row      { grid-template-columns: 1fr 1fr; }
}

/* ── PANE VISIBILITY ──────────────────────────────────────── */
.proten-dash-pane { display: none; }
.proten-dash-pane.active { display: block; animation: proten-dash-fadein .22s ease; }
@keyframes proten-dash-fadein { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* ── UTILITY ──────────────────────────────────────────────── */
.proten-dash-divider { border: none; border-top: 1px solid #f3f4f6; margin: 16px 0; }
.proten-dash-text-muted  { color: #9ca3af; font-size: 12px; }
.proten-dash-text-center { text-align: center; }
.proten-dash-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── MOBILE ACCOUNT DRAWER ────────────────────────────────── */
.proten-dash-drawer-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 998;
    backdrop-filter: blur(2px);
    opacity: 0; transition: opacity .25s ease;
}
.proten-dash-drawer-overlay.open { display: block; opacity: 1; }

.proten-dash-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; max-width: 84vw;
    background: #fff; z-index: 999;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0,0,0,.18);
    display: flex; flex-direction: column;
}
.proten-dash-drawer.open { transform: translateX(0); }

.proten-dash-drawer-header {
    background: linear-gradient(135deg, var(--proten-dark,#09324D), #2c2a2a);
    color: #fff; padding: 24px 20px; text-align: center; position: relative;
}
.proten-dash-drawer-close {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.1); border: none; color: #fff;
    font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.proten-dash-drawer-avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--proten-primary,#FFD53F); margin: 0 auto 10px; display: block;
}
.proten-dash-drawer-name  { font-size: 15px; font-weight: 800; }
.proten-dash-drawer-email { font-size: 12px; opacity: .6; margin-top: 2px; }

.proten-dash-drawer-nav { padding: 12px; flex: 1; }
.proten-dash-drawer-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    color: #374151 !important;          /* explicit so hover doesn't lose it */
    cursor: pointer; border: none; background: none; width: 100%;
    text-align: left; font-family: inherit;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.proten-dash-drawer-item:hover {
    background: rgba(255,213,63,.15);   /* yellow tint — readable */
    color: #09324D !important;
    text-decoration: none;
}
.proten-dash-drawer-item.active {
    background: rgba(255,213,63,.2);
    color: #09324D !important;
    box-shadow: inset 3px 0 0 var(--proten-primary,#FFD53F);
}
.proten-dash-drawer-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.proten-dash-drawer-divider { border: none; border-top: 1px solid #f3f4f6; margin: 8px 12px; }
.proten-dash-drawer-footer {
    padding: 12px 12px 0;
    border-top: 1px solid #f3f4f6;
    display: flex; flex-direction: column; gap: 4px;
}
/* Back to Website link */
.proten-dash-home-link { color: #0f172a !important; }
.proten-dash-home-link:hover { background: rgba(15,23,42,.06) !important; color: #0f172a !important; }
/* Sidebar Back to Website */
.proten-dash-sidebar-footer .proten-dash-home-link { color: #374151 !important; }
.proten-dash-sidebar-footer .proten-dash-home-link:hover { color: var(--proten-dark,#09324D) !important; }
/* Logout link */
.proten-dash-logout-link { color: #ef4444 !important; }
.proten-dash-logout-link:hover { background: rgba(239,68,68,.08) !important; color: #dc2626 !important; }

@media (min-width: 900px) {
    .proten-dash-drawer, .proten-dash-drawer-overlay { display: none !important; }
}
