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

/* ── RESET & BASE ─────────────────────────────────────────── */
.ovfd-root,
.ovfd-root * { box-sizing: border-box; }
.ovfd-root {
    font-family: 'Inter', -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;
}
.ovfd-root a { text-decoration: none; color: inherit; }
.ovfd-root button { font-family: inherit; cursor: pointer; }
.ovfd-root input, .ovfd-root textarea, .ovfd-root select { font-family: inherit; }

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

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

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

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

.ovfd-sidebar-nav { flex: 1; padding: 12px 10px; }
.ovfd-sidebar-nav-group { margin-bottom: 20px; }
.ovfd-sidebar-nav-label {
    font-size: 10px; font-weight: 700; color: #9ca3af;
    text-transform: uppercase; letter-spacing: .7px;
    padding: 0 10px; margin-bottom: 4px;
}
.ovfd-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;
}
.ovfd-sidebar-nav-item:hover {
    background: rgba(255,222,23,.15);
    color: #0f172a !important;
    text-decoration: none !important;
}
.ovfd-sidebar-nav-item.active {
    background: linear-gradient(135deg, var(--ovlms-primary,#FFDE17)25, var(--ovlms-secondary,#B9D13D)15);
    color: var(--ovlms-dark, #1C1A1A);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--ovlms-primary,#FFDE17);
}
.ovfd-sidebar-nav-item.active .ovfd-nav-icon { opacity: 1; }
.ovfd-nav-icon { font-size: 16px; flex-shrink: 0; opacity: .7; width: 20px; text-align: center; }
.ovfd-nav-label { flex: 1; }
.ovfd-nav-badge {
    background: var(--ovlms-accent, #E42F3B); 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;
}
.ovfd-sidebar-footer {
    padding: 14px 10px;
    border-top: 1px solid #f3f4f6;
}
.ovfd-sidebar-footer .ovfd-sidebar-nav-item { color: #ef4444; }
.ovfd-sidebar-footer .ovfd-sidebar-nav-item:hover { background: #fef2f2; }

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

.ovfd-topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center;
    padding-left: max(32px, calc((100% - 1100px) / 2));
    padding-right: max(32px, calc((100% - 1100px) / 2));
    gap: 16px;
    position: sticky; top: 0; z-index: 40;
}
.ovfd-topbar-title { font-size: 16px; font-weight: 800; color: #111827; }
.ovfd-topbar-spacer { flex: 1; }
.ovfd-topbar-actions { display: flex; align-items: center; gap: 8px; }

.ovfd-body {
    flex: 1; padding: 28px 32px; max-width: 1100px; width: 100%; box-sizing: border-box;
    margin-left: max(32px, calc((100% - 1100px) / 2));
    margin-right: max(32px, calc((100% - 1100px) / 2));
}

/* ── STAT CARDS (desktop) ─────────────────────────────────── */
.ovfd-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.ovfd-stat-card {
    border-radius: 16px;
    padding: 26px 24px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    border: 1px solid transparent;
}
.ovfd-stat-card:hover { transform: translateY(-2px); }
.ovfd-stat-card::after {
    content: '';
    position: absolute; top: -34px; right: -34px;
    width: 120px; height: 120px; border-radius: 50%; opacity: .08;
}
.ovfd-stat-card.yellow { background: linear-gradient(155deg,#fff 0%,#fffdf2 100%); border-color: #f0e6a8; box-shadow: 0 2px 12px rgba(255,222,23,.1); }
.ovfd-stat-card.yellow::after { background: var(--ovlms-primary, #FFDE17); }
.ovfd-stat-card.green  { background: linear-gradient(155deg,#fff 0%,#f7fbef 100%); border-color: #d9e8b8; box-shadow: 0 2px 12px rgba(185,209,61,.1); }
.ovfd-stat-card.green::after  { background: var(--ovlms-secondary, #B9D13D); }
.ovfd-stat-card.red    { background: linear-gradient(155deg,#fff 0%,#fef4f4 100%); border-color: #f5c9cb; box-shadow: 0 2px 12px rgba(228,47,59,.1); }
.ovfd-stat-card.red::after    { background: var(--ovlms-accent, #E42F3B); }
.ovfd-stat-card.dark   { background: linear-gradient(155deg,#fff 0%,#f7f7f7 100%); border-color: #e2e2e2; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.ovfd-stat-card.dark::after   { background: var(--ovlms-dark, #1C1A1A); }
.ovfd-stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px; position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.ovfd-stat-icon.yellow { background: var(--ovlms-primary,#FFDE17); }
.ovfd-stat-icon.green  { background: var(--ovlms-secondary,#B9D13D); }
.ovfd-stat-icon.red    { background: var(--ovlms-accent,#E42F3B); color: #fff; }
.ovfd-stat-icon.dark   { background: var(--ovlms-dark,#1C1A1A); color: #fff; }
.ovfd-stat-value { font-size: 30px; font-weight: 900; color: #111827; letter-spacing: -.5px; line-height: 1; }
.ovfd-stat-label { font-size: 13px; font-weight: 500; color: #6b7280; margin-top: 6px; }
.ovfd-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;
}
.ovfd-stat-change.up   { background: #dcfce7; color: #15803d; }
.ovfd-stat-change.down { background: #fee2e2; color: #dc2626; }

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

/* ── COURSE ROWS ──────────────────────────────────────────── */
.ovfd-course-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none; color: inherit;
}
.ovfd-course-row:last-child { border-bottom: none; }
.ovfd-course-row:hover { background: none; }
.ovfd-course-row:hover .ovfd-course-row-title { color: var(--ovlms-dark, #1C1A1A); }
.ovfd-course-thumb {
    width: 88px; height: 56px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0; background: #f3f4f6;
}
.ovfd-course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ovfd-course-thumb-empty {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--ovlms-primary, #FFDE17), var(--ovlms-secondary, #B9D13D));
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ovfd-course-row-info { flex: 1; min-width: 0; }
.ovfd-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;
}
.ovfd-course-row-meta { font-size: 12px; color: #9ca3af; margin-bottom: 8px; }
.ovfd-progress-wrap { display: flex; align-items: center; gap: 10px; }
.ovfd-progress-track {
    flex: 1; height: 5px; background: #f3f4f6;
    border-radius: 999px; overflow: hidden; max-width: 220px;
}
.ovfd-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ovlms-primary, #FFDE17), var(--ovlms-secondary, #B9D13D));
    border-radius: 999px;
    transition: width .9s cubic-bezier(.4,0,.2,1);
}
.ovfd-progress-pct { font-size: 12px; font-weight: 700; color: #374151; }
.ovfd-course-row-action { flex-shrink: 0; }

/* ── TABLE ────────────────────────────────────────────────── */
.ovfd-table-wrap { overflow-x: auto; }
.ovfd-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; white-space: nowrap;
}
.ovfd-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;
}
.ovfd-table td {
    padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
    color: #374151; vertical-align: middle;
}
.ovfd-table tr:last-child td { border-bottom: none; }
.ovfd-table tr:hover td { background: #fafafa; }
.ovfd-table .tavi { width:28px;height:28px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:8px; }

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

/* ── BUTTONS ──────────────────────────────────────────────── */
.ovfd-cart-icon-btn {
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.ovfd-cart-badge {
    min-width: 16px; height: 16px; padding: 0 3px;
    border-radius: 999px; background: var(--ovlms-accent,#E42F3B);
    color: #fff; font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; border: 2px solid var(--ovlms-dark,#1C1A1A);
}
.ovfd-cart-icon-btn--desktop {
    position: relative;
    width: 44px; height: 44px; border-radius: 50%;
    background: #f3f4f6; border: 1.5px solid #e2e5ea;
    display: flex; align-items: center; justify-content: center;
    color: #1f2937; cursor: pointer; transition: all .15s;
}
.ovfd-cart-icon-btn--desktop svg { width: 21px; height: 21px; stroke-width: 2.2; }
.ovfd-cart-icon-btn--desktop:hover { background: #e5e7eb; border-color: #d1d5db; color: #111827; }
.ovfd-cart-icon-btn--desktop .ovfd-cart-badge { border-color: #fff; }

.ovfd-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;
}
.ovfd-btn-sm   { padding: 6px 13px; font-size: 12px; }
.ovfd-btn-lg   { padding: 12px 26px; font-size: 14px; }
.ovfd-btn-full { width: 100%; justify-content: center; }
.ovfd-btn.ovfd-btn-primary   { background: var(--ovlms-primary,#FFDE17); color: var(--ovlms-dark,#1C1A1A); border-color: var(--ovlms-primary,#FFDE17); }
.ovfd-btn-primary:hover   { filter: brightness(.93); transform: translateY(-1px); }
.ovfd-btn.ovfd-btn-secondary { background: var(--ovlms-secondary,#B9D13D); color: var(--ovlms-dark,#1C1A1A); }
.ovfd-btn.ovfd-btn-dark      { background: var(--ovlms-dark,#1C1A1A); color: #fff; }
.ovfd-btn-dark:hover { filter: brightness(1.2); }
.ovfd-btn.ovfd-btn-outline   { background: #fff; color: #374151; border-color: #d1d5db; }
.ovfd-btn-outline:hover   { border-color: #374151; }
.ovfd-btn.ovfd-btn-ghost     { background: transparent; color: #6b7280; border-color: transparent; }
.ovfd-btn-ghost:hover     { background: #f3f4f6; color: #111827; }
.ovfd-btn-danger    { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ── FORM ─────────────────────────────────────────────────── */
.ovfd-form-group  { margin-bottom: 18px; }
.ovfd-label { display: block; font-size: 12px; font-weight: 700; color: #374151; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px; }
.ovfd-input, .ovfd-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;
}
.ovfd-input:focus, .ovfd-textarea:focus { border-color: var(--ovlms-primary,#FFDE17); box-shadow: 0 0 0 3px rgba(255,222,23,.15); }
.ovfd-textarea { min-height: 90px; resize: vertical; }

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

/* ── GAMIFICATION ─────────────────────────────────────────── */
.ovfd-game-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.ovfd-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);
}
.ovfd-streak-flame { font-size: 36px; display: block; }
.ovfd-streak-num   { font-size: 40px; font-weight: 900; line-height: 1; }
.ovfd-streak-lbl   { font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }
.ovfd-level-box {
    background: linear-gradient(135deg, var(--ovlms-primary,#FFDE17), var(--ovlms-secondary,#B9D13D));
    border-radius: 12px; padding: 20px; color: var(--ovlms-dark,#1C1A1A); text-align: center;
}
.ovfd-level-circle {
    width: 52px; height: 52px; background: var(--ovlms-dark,#1C1A1A);
    color: var(--ovlms-primary,#FFDE17); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900; margin: 0 auto 8px;
}
.ovfd-level-num { font-size: 18px; font-weight: 800; }
.ovfd-level-sub { font-size: 11px; opacity: .7; margin-top: 2px; }

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

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

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

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

/* ── EMPTY ────────────────────────────────────────────────── */
.ovfd-empty { text-align: center; padding: 52px 20px; }
.ovfd-empty-icon { font-size: 52px; display: block; margin-bottom: 12px; }
.ovfd-empty h3 { font-size: 16px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.ovfd-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) {

    .ovfd-layout  { display: block; }
    .ovfd-sidebar { display: none; }
    .ovfd-main    { display: block; }
    .ovfd-topbar  { display: none; }
    .ovfd-body    { padding: 16px 14px calc(100px + env(safe-area-inset-bottom, 0px)); max-width: 100%; margin: 0 auto; }
    #ovfd-top-xp  { padding-left: 14px; padding-right: 14px; }
    .ovfd-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Mobile sticky header */
    .ovfd-mobile-header {
        display: flex !important;
        align-items: center;
        background: var(--ovlms-dark, #1C1A1A);
        color: #fff; padding: 12px 16px;
        gap: 12px; position: sticky; top: 0; z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,.18);
    }
    .ovfd-mobile-header-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ovlms-primary,#FFDE17); flex-shrink: 0; }
    .ovfd-mobile-header-info   { flex: 1; min-width: 0; }
    .ovfd-mobile-header-greeting { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ovfd-mobile-header-actions  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .ovfd-mobile-icon-btn {
        width: 34px; height: 34px; border-radius: 50%;
        background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
        display: flex; align-items: center; justify-content: center;
        font-size: 14px; color: #fff; cursor: pointer; text-decoration: none;
        padding: 0; transition: background .15s, border-color .15s;
        flex-shrink: 0;
    }
    .ovfd-mobile-icon-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.2); }
    .ovfd-mobile-avatar-btn { background: none; border: none; padding: 0; }
    .ovfd-mobile-avatar-btn img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ovlms-primary,#FFDE17); object-fit: cover; display: block; }

    /* Mobile hero strip */
    .ovfd-mobile-hero {
        background: linear-gradient(135deg, var(--ovlms-dark,#1C1A1A), #252323);
        padding: 16px 14px 20px;
        display: flex;
        overflow-x: auto;
        gap: 10px;
        scrollbar-width: none;
        border-bottom: 2px solid var(--ovlms-primary,#FFDE17);
    }
    .ovfd-mobile-hero::-webkit-scrollbar { display: none; }
    .ovfd-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); }
    .ovfd-mobile-stat-val { font-size: 18px; font-weight: 900; color: var(--ovlms-primary,#FFDE17); line-height: 1; }
    .ovfd-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 */
    .ovfd-xp-card { border-radius: 0; margin: 0; padding: 12px 16px; }

    /* Tab bar — fixed bottom */
    .ovfd-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);
    }
    .ovfd-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;
    }
    .ovfd-tab-btn-icon { font-size: 20px; transition: transform .2s; line-height: 1; }
    .ovfd-tab-btn-lbl  { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
    .ovfd-tab-btn.active { color: var(--ovlms-dark, #1C1A1A); }
    .ovfd-tab-btn.active .ovfd-tab-btn-icon { transform: scale(1.15); }

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

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

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

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

/* ── MOBILE ACCOUNT DRAWER ────────────────────────────────── */
.ovfd-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;
}
.ovfd-drawer-overlay.open { display: block; opacity: 1; }

.ovfd-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;
}
.ovfd-drawer.open { transform: translateX(0); }

.ovfd-drawer-header {
    background: linear-gradient(135deg, var(--ovlms-dark,#1C1A1A), #2c2a2a);
    color: #fff; padding: 24px 20px; text-align: center; position: relative;
}
.ovfd-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;
}
.ovfd-drawer-avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--ovlms-primary,#FFDE17); margin: 0 auto 10px; display: block;
}
.ovfd-drawer-name  { font-size: 15px; font-weight: 800; }
.ovfd-drawer-email { font-size: 12px; opacity: .6; margin-top: 2px; }

.ovfd-drawer-nav { padding: 12px; flex: 1; }
.ovfd-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;
}
.ovfd-drawer-item:hover {
    background: rgba(255,222,23,.15);   /* yellow tint — readable */
    color: #1C1A1A !important;
    text-decoration: none;
}
.ovfd-drawer-item.active {
    background: rgba(255,222,23,.2);
    color: #1C1A1A !important;
    box-shadow: inset 3px 0 0 var(--ovlms-primary,#FFDE17);
}
.ovfd-drawer-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.ovfd-drawer-divider { border: none; border-top: 1px solid #f3f4f6; margin: 8px 12px; }
.ovfd-drawer-footer {
    padding: 12px 12px 0;
    border-top: 1px solid #f3f4f6;
    display: flex; flex-direction: column; gap: 4px;
}
/* Back to Website link */
.ovfd-home-link { color: #0f172a !important; }
.ovfd-home-link:hover { background: rgba(15,23,42,.06) !important; color: #0f172a !important; }
/* Sidebar Back to Website */
.ovfd-sidebar-footer .ovfd-home-link { color: #374151 !important; }
.ovfd-sidebar-footer .ovfd-home-link:hover { color: var(--ovlms-dark,#1C1A1A) !important; }
/* Logout link */
.ovfd-logout-link { color: #ef4444 !important; }
.ovfd-logout-link:hover { background: rgba(239,68,68,.08) !important; color: #dc2626 !important; }

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