/* ============================================================
   Academia Acordia — Premium Dashboard
   Ultra-premium SaaS-level student experience
   ============================================================ */

/* ── Fullwidth override for Divi (standard + Theme Builder) ──── */
.acad-dashboard #sidebar,
.acad-dashboard .et_pb_widget_area_right,
.acad-dashboard #left-area + #sidebar,
.acad-dashboard .sidebar,
.acad-dashboard .widget-area,
.acad-dashboard #secondary,
.acad-dashboard .et_right_sidebar { display: none !important; }

.acad-dashboard #main-content,
.acad-dashboard #et-main-area,
.acad-dashboard #main-content .container,
.acad-dashboard #page-container,
.acad-dashboard .page-content,
.acad-dashboard #left-area,
.acad-dashboard .et_pb_section:not(.et_pb_section--absolute),
.acad-dashboard .et_pb_row,
.acad-dashboard .et_pb_column,
.acad-dashboard .et_post_meta_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.acad-dashboard #page-container { padding: 0 !important; }

/* Hide WordPress + Divi page title */
.acad-dashboard .entry-title,
.acad-dashboard h1.entry-title,
.acad-dashboard .page-title-wrapper,
.acad-dashboard .et_pb_title_container,
.acad-dashboard .et_pb_module.et_pb_post_title { display: none !important; }

/* Remove padding from Divi content area */
.acad-dashboard .entry-content,
.acad-dashboard article.page { padding: 0 !important; margin: 0 !important; }

/* Admin bar offset */
.admin-bar.acad-dashboard .acad-dash-sidebar { top: 32px; height: calc(100vh - 32px); }
@media screen and (max-width: 782px) {
    .admin-bar.acad-dashboard .acad-dash-sidebar { top: 46px; height: calc(100vh - 46px); }
}

/* ── Layout ──────────────────────────────────────────────────── */
.acad-dash-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: #f4f1ec;
    font-family: var(--acad-font);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.acad-dash-sidebar {
    background: var(--acad-dark);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(196,161,90,.2) transparent;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,.04);
}

.acad-dash-sidebar::-webkit-scrollbar { width: 4px; }
.acad-dash-sidebar::-webkit-scrollbar-thumb { background: rgba(196,161,90,.2); border-radius: 2px; }

.acad-dash-sidebar__top {
    padding: 28px 20px 0;
    flex-shrink: 0;
}

/* Brand */
.acad-dash-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.acad-dash-brand__name {
    font-size: 13px;
    font-weight: 700;
    color: #f0ece3;
    letter-spacing: -.01em;
}

/* User block */
.acad-dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.acad-dash-user__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.acad-dash-user__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(196,161,90,.2), rgba(196,161,90,.08));
    border: 2px solid rgba(196,161,90,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--acad-gold);
    letter-spacing: -.02em;
}

.acad-dash-user__level-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--acad-gold), var(--acad-gold-dark));
    border: 2px solid var(--acad-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
    color: #0a0a0e;
}

.acad-dash-user__info { min-width: 0; }

.acad-dash-user__name {
    font-size: 13px;
    font-weight: 700;
    color: #f0ece3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acad-dash-user__level {
    font-size: 11px;
    color: var(--acad-gold);
    font-weight: 600;
    margin-top: 1px;
}

/* XP bar */
.acad-dash-xp {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 24px;
}

.acad-dash-xp__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.acad-dash-xp__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--acad-gold);
}

.acad-dash-xp__next {
    font-size: 10px;
    color: #44413c;
}

.acad-dash-xp__bar {
    background: rgba(255,255,255,.06);
    border-radius: 99px;
    height: 5px;
    overflow: hidden;
}

.acad-dash-xp__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--acad-gold), var(--acad-gold-light));
    border-radius: 99px;
    transition: width .8s cubic-bezier(.4,0,.2,1);
    position: relative;
}

.acad-dash-xp__fill::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acad-gold-light);
    box-shadow: 0 0 6px var(--acad-gold);
}

/* Nav */
.acad-dash-nav {
    padding: 0 12px;
    flex: 1;
}

.acad-dash-nav__group-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2e2c28;
    padding: 14px 8px 6px;
}

.acad-dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #78746c;
    text-decoration: none;
    transition: all .18s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: var(--acad-font);
    margin-bottom: 1px;
}

.acad-dash-nav-item:hover {
    background: rgba(255,255,255,.05);
    color: #b8b4aa;
    text-decoration: none;
}

.acad-dash-nav-item.is-active {
    background: rgba(196,161,90,.1);
    color: var(--acad-gold);
    border: 1px solid rgba(196,161,90,.2);
}

.acad-dash-nav-item__icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}

.acad-dash-nav-item__label { flex: 1; }

.acad-dash-nav-item__badge {
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--acad-gold);
    color: #0a0a0e;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.acad-dash-nav-item--logout { color: #5a3a3a; }
.acad-dash-nav-item--logout:hover { background: rgba(196,90,90,.08); color: #c45a5a; }

.acad-dash-nav__logout {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,.04);
    margin-top: auto;
}

/* Mobile toggle */
.acad-sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--acad-dark);
    border: 1px solid rgba(255,255,255,.1);
    color: #f0ece3;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════════════ */
.acad-dash-main {
    padding: 40px 48px;
    min-width: 0;
    overflow-x: hidden;
}

/* ── Welcome hero ────────────────────────────────────────────── */
.acad-dash-welcome {
    background: linear-gradient(135deg, #0e0e11 0%, #1a1a20 100%);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(196,161,90,.12);
}

.acad-dash-welcome::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,161,90,.07) 0%, transparent 70%);
    pointer-events: none;
}

.acad-dash-welcome__greeting {
    font-size: 13px;
    font-weight: 600;
    color: var(--acad-gold);
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.acad-dash-welcome__title {
    font-size: 22px;
    font-weight: 800;
    color: #f0ece3;
    margin: 0 0 8px;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.acad-dash-welcome__sub {
    font-size: 13px;
    color: #78746c;
    margin-bottom: 16px;
    line-height: 1.5;
}

.acad-dash-welcome__sub strong { color: var(--acad-gold); }

.acad-dash-welcome__visual { flex-shrink: 0; }

.acad-dash-welcome__level-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acad-dash-welcome__level-text {
    position: absolute;
    text-align: center;
}

.acad-dash-welcome__level-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--acad-gold);
    line-height: 1;
}

.acad-dash-welcome__level-name {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #44413c;
    margin-top: 2px;
}

/* ── Stats row ───────────────────────────────────────────────── */
.acad-dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.acad-dash-stats--mini {
    grid-template-columns: repeat(3, 1fr);
}

.acad-stat-card {
    background: var(--acad-white);
    border-radius: 14px;
    padding: 20px 22px;
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}

.acad-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0,0,0,.04);
    border-radius: 14px 14px 0 0;
}

.acad-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.acad-stat-card--gold::before { background: linear-gradient(90deg, var(--acad-gold), var(--acad-gold-light)); }
.acad-stat-card--fire::before { background: linear-gradient(90deg, #ff6b35, #ff9a5c); }

.acad-stat-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0,0,0,.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--acad-gold);
}

.acad-stat-card--gold .acad-stat-card__icon {
    background: rgba(196,161,90,.1);
    color: var(--acad-gold);
}

.acad-stat-card__val {
    font-size: 30px;
    font-weight: 800;
    color: var(--acad-dark);
    line-height: 1;
    letter-spacing: -.02em;
    margin-bottom: 4px;
}

.acad-stat-card--gold .acad-stat-card__val { color: var(--acad-gold); }
.acad-stat-card--fire .acad-stat-card__val { color: #e05a20; }

.acad-stat-card__label {
    font-size: 11px;
    color: var(--acad-text-muted);
    font-weight: 500;
}

/* ── Home grid ───────────────────────────────────────────────── */
.acad-dash-home-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.acad-dash-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Panel ───────────────────────────────────────────────────── */
.acad-dash-panel {
    background: var(--acad-white);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0,0,0,.06);
}

.acad-dash-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.acad-dash-panel__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--acad-dark);
    margin: 0;
}

.acad-dash-panel__link {
    font-size: 12px;
    color: var(--acad-gold);
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s;
}

.acad-dash-panel__link:hover { opacity: .7; text-decoration: none; }

/* ── Course compact list ─────────────────────────────────────── */
.acad-course-compact-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.acad-course-compact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s ease;
    margin: 0 -4px;
}

.acad-course-compact:hover {
    background: rgba(0,0,0,.03);
    text-decoration: none;
}

.acad-course-compact__thumb {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--acad-dark-3);
}

.acad-course-compact__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acad-course-compact__thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.acad-course-compact__body { flex: 1; min-width: 0; }

.acad-course-compact__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--acad-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.acad-course-compact__meta {
    font-size: 11px;
    color: var(--acad-text-muted);
    margin-top: 3px;
}

.acad-course-compact__cta {
    color: var(--acad-text-muted);
    flex-shrink: 0;
}

/* ── Progress bars ───────────────────────────────────────────── */
.acad-progress-bar {
    background: rgba(0,0,0,.06);
    border-radius: 99px;
    height: 6px;
    overflow: hidden;
}

.acad-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--acad-gold), var(--acad-gold-light));
    border-radius: 99px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
}

.acad-progress-bar--sm { height: 4px; }

/* ── Streak panel ────────────────────────────────────────────── */
.acad-streak-panel {
    background: linear-gradient(135deg, #0e0e11, #1a1a20);
    border-color: rgba(196,161,90,.12);
}

.acad-streak-panel__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.acad-streak-panel__fire { font-size: 32px; }

.acad-streak-panel__num {
    font-size: 22px;
    font-weight: 800;
    color: #ff7240;
    line-height: 1;
}

.acad-streak-panel__label {
    font-size: 11px;
    color: #78746c;
    margin-top: 3px;
}

.acad-streak-days {
    display: flex;
    gap: 6px;
    justify-content: space-between;
}

.acad-streak-day {
    flex: 1;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #44413c;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.acad-streak-day.is-active {
    background: rgba(255,114,64,.12);
    border-color: rgba(255,114,64,.3);
    color: #ff7240;
}

.acad-streak-day.is-today {
    background: rgba(196,161,90,.1);
    border-color: rgba(196,161,90,.3);
    color: var(--acad-gold);
}

/* ── Badge mini grid ─────────────────────────────────────────── */
.acad-badge-mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.acad-badge-mini {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: default;
    transition: transform .2s ease;
    position: relative;
}

.acad-badge-mini:hover { transform: scale(1.1); }

.acad-badge-mini.is-earned {
    background: rgba(196,161,90,.1);
    border: 1px solid rgba(196,161,90,.25);
}

.acad-badge-mini.is-locked {
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
    filter: grayscale(1);
    opacity: .4;
}

/* ── Page header ─────────────────────────────────────────────── */
.acad-dash-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.acad-dash-page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--acad-dark);
    margin: 0;
    letter-spacing: -.02em;
}

.acad-dash-page-sub {
    font-size: 14px;
    color: var(--acad-text-muted);
    margin-top: 4px;
}

.acad-dash-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--acad-dark);
    margin: 0 0 16px;
}

/* ── Enrolled cards grid ─────────────────────────────────────── */
.acad-enrolled-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.acad-enrolled-card {
    background: var(--acad-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    display: flex;
    flex-direction: column;
}

.acad-enrolled-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,.1);
    border-color: rgba(196,161,90,.2);
}

.acad-enrolled-card__thumb {
    position: relative;
    aspect-ratio: 16/8;
    background: var(--acad-dark-3);
    overflow: hidden;
}

.acad-enrolled-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.acad-enrolled-card:hover .acad-enrolled-card__thumb img {
    transform: scale(1.04);
}

.acad-enrolled-card__thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, #0e0e11, #1c1c22);
}

.acad-enrolled-card__progress-ring {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acad-enrolled-card__pct {
    position: absolute;
    font-size: 9px;
    font-weight: 800;
    color: #f0ece3;
}

.acad-enrolled-card__body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.acad-enrolled-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--acad-dark);
    margin-bottom: 8px;
    line-height: 1.35;
}

.acad-enrolled-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--acad-text-muted);
    margin-bottom: 10px;
}

.acad-enrolled-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,.05);
    margin-top: auto;
}

.acad-enrolled-card__status {
    font-size: 11px;
    color: var(--acad-text-muted);
    font-weight: 600;
}

.acad-enrolled-card__status.is-complete { color: var(--acad-success); }

/* ── Achievements page ───────────────────────────────────────── */
.acad-level-card {
    background: linear-gradient(135deg, #0e0e11, #1a1a20);
    border: 1px solid rgba(196,161,90,.15);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.acad-level-card__ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.acad-level-card__ring-label {
    position: absolute;
    font-size: 28px;
    font-weight: 800;
    color: var(--acad-gold);
}

.acad-level-card__info { flex: 1; }

.acad-level-card__level {
    font-size: 22px;
    font-weight: 800;
    color: #f0ece3;
    margin-bottom: 4px;
}

.acad-level-card__xp {
    font-size: 13px;
    color: var(--acad-gold);
    font-weight: 600;
    margin-bottom: 14px;
}

.acad-level-card__bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acad-level-card__bar-wrap .acad-progress-bar {
    flex: 1;
    background: rgba(255,255,255,.08);
}

.acad-level-card__bar-meta {
    font-size: 11px;
    color: #44413c;
    white-space: nowrap;
}

.acad-level-card__stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    flex-shrink: 0;
}

.acad-level-card__stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #f0ece3;
}

.acad-level-card__stat-lbl {
    font-size: 10px;
    color: #44413c;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Badges grid */
.acad-badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.acad-badge-card {
    background: var(--acad-white);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.acad-badge-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }

.acad-badge-card.is-earned {
    border-color: rgba(196,161,90,.25);
    background: linear-gradient(135deg, rgba(196,161,90,.04), rgba(196,161,90,.01));
}

.acad-badge-card.is-locked {
    opacity: .55;
    filter: grayscale(.6);
}

.acad-badge-card__icon {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1;
}

.acad-badge-card__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--acad-dark);
    margin-bottom: 5px;
}

.acad-badge-card__desc {
    font-size: 11px;
    color: var(--acad-text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.acad-badge-card__earned {
    font-size: 11px;
    font-weight: 700;
    color: var(--acad-success);
}

.acad-badge-card__locked {
    font-size: 11px;
    color: var(--acad-text-muted);
}

/* Milestones */
.acad-milestones {
    display: flex;
    gap: 0;
    position: relative;
}

.acad-milestones::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: rgba(0,0,0,.06);
}

.acad-milestone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.acad-milestone__dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e8e4dc;
    border: 2px solid #e8e4dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    font-weight: 700;
}

.acad-milestone.is-done .acad-milestone__dot {
    background: linear-gradient(135deg, var(--acad-gold), var(--acad-gold-dark));
    border-color: var(--acad-gold-dark);
    color: #0a0a0e;
}

.acad-milestone__name {
    font-size: 12px;
    font-weight: 700;
    color: var(--acad-text-muted);
    text-align: center;
}

.acad-milestone.is-done .acad-milestone__name { color: var(--acad-dark); }

.acad-milestone__xp {
    font-size: 10px;
    color: var(--acad-text-muted);
}

/* ── Resources grid ──────────────────────────────────────────── */
.acad-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.acad-resource-card {
    background: var(--acad-white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.acad-resource-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.acad-resource-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(196,161,90,.08);
    border: 1px solid rgba(196,161,90,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.acad-resource-card__body { flex: 1; min-width: 0; }

.acad-resource-card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--acad-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acad-resource-card__course {
    font-size: 11px;
    color: var(--acad-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acad-resource-card__type {
    font-size: 10px;
    font-weight: 700;
    color: var(--acad-gold);
    margin-top: 4px;
    letter-spacing: .08em;
}

/* ── Tickets ─────────────────────────────────────────────────── */
.acad-tickets-list { display: flex; flex-direction: column; gap: 8px; }

.acad-ticket-item {
    background: var(--acad-white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.acad-ticket-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.acad-ticket-item--open .acad-ticket-item__dot { background: var(--acad-gold); }
.acad-ticket-item--closed .acad-ticket-item__dot { background: var(--acad-success); }

.acad-ticket-item__body { flex: 1; }

.acad-ticket-item__subject {
    font-size: 14px;
    font-weight: 600;
    color: var(--acad-dark);
    margin-bottom: 3px;
}

.acad-ticket-item__preview {
    font-size: 12px;
    color: var(--acad-text-muted);
    line-height: 1.4;
}

.acad-ticket-item__meta {
    font-size: 11px;
    color: var(--acad-text-muted);
    margin-top: 6px;
}

.acad-ticket-item__status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    flex-shrink: 0;
}

.acad-ticket-item--open .acad-ticket-item__status {
    background: rgba(196,161,90,.1);
    color: var(--acad-gold);
}

.acad-ticket-item--closed .acad-ticket-item__status {
    background: rgba(90,175,125,.1);
    color: var(--acad-success);
}

.acad-ticket-form-wrap { margin-bottom: 20px; }

/* ── Orders table ────────────────────────────────────────────── */
.acad-orders-table-wrap { padding: 0; overflow: hidden; }

.acad-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--acad-font);
    font-size: 13px;
}

.acad-orders-table thead tr {
    background: #f8f5f0;
}

.acad-orders-table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--acad-text-muted);
}

.acad-orders-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.04);
    transition: background .15s;
}

.acad-orders-table tbody tr:last-child { border-bottom: none; }
.acad-orders-table tbody tr:hover { background: rgba(0,0,0,.015); }

.acad-orders-table td {
    padding: 14px 20px;
    color: var(--acad-text-2);
}

.acad-orders-table__order { font-weight: 700; color: var(--acad-dark); }
.acad-orders-table__amount { font-weight: 700; color: var(--acad-dark); }

.acad-status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    letter-spacing: .04em;
}

.acad-status-badge--success { background: rgba(90,175,125,.1); color: var(--acad-success); }
.acad-status-badge--warning { background: rgba(196,161,90,.1); color: var(--acad-gold); }
.acad-status-badge--muted   { background: rgba(0,0,0,.05); color: var(--acad-text-muted); }

.acad-table-link {
    color: var(--acad-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

/* ── Profile ─────────────────────────────────────────────────── */
.acad-profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.acad-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(196,161,90,.2), rgba(196,161,90,.08));
    border: 2px solid rgba(196,161,90,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--acad-gold);
    flex-shrink: 0;
}

.acad-profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--acad-dark);
}

.acad-profile-email {
    font-size: 13px;
    color: var(--acad-text-muted);
    margin-top: 2px;
}

/* ── Form elements ───────────────────────────────────────────── */
.acad-profile-form { display: flex; flex-direction: column; gap: 16px; }

.acad-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.acad-form-group { display: flex; flex-direction: column; gap: 6px; }

.acad-form-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--acad-text-muted);
}

.acad-form-input {
    padding: 10px 14px;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 8px;
    font-family: var(--acad-font);
    font-size: 14px;
    color: var(--acad-text);
    background: var(--acad-white);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

.acad-form-input:focus {
    border-color: var(--acad-gold);
    box-shadow: 0 0 0 3px rgba(196,161,90,.1);
}

.acad-form-input:disabled {
    background: rgba(0,0,0,.02);
    color: var(--acad-text-muted);
}

.acad-form-textarea { resize: vertical; min-height: 120px; }

.acad-form-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,.06);
    margin: 4px 0;
}

/* ── Alert ───────────────────────────────────────────────────── */
.acad-alert {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.acad-alert--success {
    background: rgba(90,175,125,.08);
    border: 1px solid rgba(90,175,125,.2);
    color: var(--acad-success);
}

/* ── Empty state ─────────────────────────────────────────────── */
.acad-empty-state {
    text-align: center;
    padding: 32px 20px;
}

.acad-empty-state--large {
    padding: 64px 40px;
    background: var(--acad-white);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
}

.acad-empty-state__icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.acad-empty-state__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--acad-dark);
    margin: 0 0 8px;
}

.acad-empty-state__text {
    font-size: 14px;
    color: var(--acad-text-muted);
    margin: 0 0 20px;
}

.acad-empty-state__text a {
    color: var(--acad-gold);
    text-decoration: none;
    font-weight: 600;
}

/* ── Login wall ──────────────────────────────────────────────── */
.acad-login-wall {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.acad-login-wall__card {
    background: var(--acad-white);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,.08);
}

.acad-login-wall__logo {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.acad-login-wall__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--acad-dark);
    margin: 0 0 10px;
}

.acad-login-wall__sub {
    font-size: 14px;
    color: var(--acad-text-muted);
    margin-bottom: 28px;
}

.acad-login-wall__register {
    font-size: 13px;
    color: var(--acad-text-muted);
    margin-top: 18px;
}

.acad-login-wall__register a {
    color: var(--acad-gold);
    font-weight: 600;
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .acad-dash-main { padding: 32px 32px; }
    .acad-dash-home-grid { grid-template-columns: 1fr 300px; }
}

@media (max-width: 1024px) {
    .acad-dash-layout { grid-template-columns: 1fr; }

    .acad-dash-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100%;
        width: 260px;
        transition: left .3s ease;
        z-index: 150;
    }

    .acad-dash-sidebar.is-open { left: 0; }

    .acad-sidebar-toggle { display: flex; }

    .acad-dash-main { padding: 80px 24px 40px; }

    .acad-dash-stats { grid-template-columns: repeat(2, 1fr); }

    .acad-dash-home-grid { grid-template-columns: 1fr; }

    .acad-enrolled-grid { grid-template-columns: 1fr; }

    .acad-badges-grid { grid-template-columns: repeat(2, 1fr); }

    .acad-badge-mini-grid { grid-template-columns: repeat(6, 1fr); }

    .acad-level-card { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .acad-dash-welcome { flex-direction: column; text-align: center; }
    .acad-dash-welcome__visual { display: none; }
    .acad-dash-stats { grid-template-columns: repeat(2, 1fr); }
    .acad-resources-grid { grid-template-columns: 1fr; }
    .acad-form-row { grid-template-columns: 1fr; }
    .acad-badges-grid { grid-template-columns: 1fr 1fr; }
    .acad-milestones { flex-wrap: wrap; gap: 16px; }
    .acad-milestones::before { display: none; }
}

@media (max-width: 480px) {
    .acad-dash-main { padding: 72px 16px 32px; }
    .acad-dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .acad-stat-card { padding: 14px 16px; }
    .acad-stat-card__val { font-size: 24px; }
}
