/*
 * Custom CSS untuk dashboard fallback (Blade) — token warna/tipografi/spacing
 * disamakan dengan tema "OrangeTheme" di miz-fe (Vuetify).
 * File statis biasa (bukan lewat Vite) supaya tidak butuh build step.
 */

:root {
  /* Warna */
  --udash-primary: #e45f00;
  --udash-secondary: #1f2937;
  --udash-accent: #ffd54f;
  --udash-info: #03c9d7;
  --udash-success: #00c853;
  --udash-warning: #ffc107;
  --udash-error: #f44336;

  --udash-primary-light: #fff3e8;
  --udash-secondary-light: #ffe0cc;
  --udash-success-light: #b9f6ca;
  --udash-error-light: #f9d8d8;
  --udash-warning-light: #fff8e1;

  --udash-primary-dark: #c94e00;
  --udash-secondary-dark: #a33d00;

  --udash-text: #2d1a00;
  --udash-text-muted: #7a5533;
  --udash-border: #ffbb7c;
  --udash-input-border: #ff8c2a;

  --udash-bg: #fafafa;
  --udash-surface: #ffffff;
  --udash-surface-tint: #fffaf5;

  /* Tipografi */
  --udash-font: "Poppins", "Segoe UI", sans-serif;

  /* Radius & shadow */
  --udash-radius-sm: 6px;
  --udash-radius: 12px;
  --udash-radius-lg: 24px;
  --udash-radius-pill: 9999px;
  --udash-shadow: 1px 0 20px rgba(0, 0, 0, 0.08);
  --udash-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);

  /* Layout */
  --udash-sidebar-width: 224px;
  --udash-topbar-height: 80px;
}

* {
  box-sizing: border-box;
}

/* Guarantee the native [hidden] attribute always wins, even against classes
   that set their own display (flex/grid/etc) — otherwise equal-specificity +
   later-in-cascade author rules silently override it and the element never
   actually hides. */
[hidden] {
  display: none !important;
}

body.udash {
  margin: 0;
  font-family: var(--udash-font);
  font-size: 0.875rem;
  color: var(--udash-text);
  background: var(--udash-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Layout shell ── */

.udash-shell {
  display: flex;
  min-height: 100vh;
}

.udash-sidebar {
  width: var(--udash-sidebar-width);
  flex-shrink: 0;
  background: var(--udash-surface);
  border-right: 1px solid rgba(31, 41, 55, 0.08);
  padding: 20px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
  transition: transform 0.2s ease, width 0.2s ease, padding 0.2s ease;
}

.udash-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--udash-radius);
  background: var(--udash-primary-light);
  color: var(--udash-primary);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.udash-sidebar-backdrop {
  display: none;
}

/* Desktop: sidebar tetap in-flow, di-collapse lewat width (bukan overlay) */
@media (min-width: 901px) {
  .udash-shell.sidebar-collapsed .udash-sidebar {
    width: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    border-right: none;
  }
}

@media (max-width: 900px) {
  .udash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    box-shadow: var(--udash-shadow);
  }

  .udash-sidebar.open {
    transform: translateX(0);
  }

  .udash-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .udash-sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

.udash-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 20px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--udash-primary);
}

.udash-logo img {
  width: 100px;
  height: 35px;
  object-fit: contain;
  border-radius: 10px;
}

.udash-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--udash-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.udash-icon-btn:hover { background: rgba(31, 41, 55, 0.06); }
.udash-icon-btn:disabled { cursor: default; }

.udash-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.udash-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border-radius: var(--udash-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--udash-secondary);
}

.udash-nav a:hover {
  background: rgba(31, 41, 55, 0.05);
}

.udash-nav a.active {
  background: var(--udash-primary-light);
  color: var(--udash-primary-dark);
}

.udash-nav .icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.udash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.udash-topbar {
  height: var(--udash-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--udash-surface);
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.udash-topbar .user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.udash-avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(228, 95, 0, 0.5);
  background: var(--udash-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--udash-primary);
  flex-shrink: 0;
}

.udash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.udash-page-wrapper {
  padding: 15px 24px 32px;
  margin-right: 20px;
}

@media (max-width: 700px) {
  .udash-topbar {
    padding: 0 16px;
  }

  .udash-page-wrapper {
    padding: 14px 14px 24px;
    margin-right: 0;
  }
}

/* ── Typography ── */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--udash-font);
}

h1 { font-size: 2.125rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: 0.875rem; font-weight: 500; }
h6 { font-size: 0.75rem; font-weight: 500; }

.text-muted { color: var(--udash-text-muted); }

a.text-muted i,
.back-link i {
  vertical-align: -1px;
  margin-right: 2px;
}

/* ── Card ── */

.udash-card {
  background: var(--udash-surface);
  border: 1px solid rgba(255, 187, 124, 0.36);
  border-radius: var(--udash-radius-lg);
  padding: 20px 24px;
}

.udash-card + .udash-card,
.udash-card-row + .udash-card {
  margin-top: 20px;
}

.udash-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.udash-card-header .icon-box {
  width: 30px;
  height: 30px;
  border-radius: var(--udash-radius-sm);
  background: var(--udash-primary-light);
  color: var(--udash-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Grid helpers ── */

.udash-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.udash-col-8 { flex: 2 1 0; min-width: 0; }
.udash-col-4 { flex: 1 1 0; min-width: 0; }

.udash-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.udash-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .udash-row { flex-direction: column; align-items: stretch; }
  .udash-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .udash-grid-2 { grid-template-columns: 1fr; }
  .udash-grid-3 { grid-template-columns: 1fr; }
}

/* ── Stat card ── */

.udash-stat {
  position: relative;
  overflow: hidden;
  border-radius: var(--udash-radius-lg);
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}

.udash-stat.is-primary { background: var(--udash-primary); }
.udash-stat.is-secondary { background: var(--udash-secondary); }

.udash-stat .icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--udash-radius);
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.udash-stat .value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.udash-stat .label {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* ── Buttons ── */

.udash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--udash-radius);
  padding: 10px 20px;
  font-family: var(--udash-font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.udash-btn.is-primary {
  background: var(--udash-primary);
  color: #fff;
}

.udash-btn.is-primary:hover {
  box-shadow: var(--udash-shadow-hover);
}

.udash-btn.is-tonal {
  background: var(--udash-primary-light);
  color: var(--udash-primary-dark);
}

.udash-btn.is-tonal-success {
  background: var(--udash-success-light);
  color: #007a37;
}

.udash-btn.is-tonal-neutral {
  background: rgba(31, 41, 55, 0.06);
  color: var(--udash-secondary);
}

.udash-btn.is-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.udash-btn.is-block { width: 100%; }

/* ── Chips ── */

.udash-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--udash-radius-pill);
  font-size: 0.7rem;
  font-weight: 500;
}

.udash-chip.is-success { background: var(--udash-success-light); color: #007a37; }
.udash-chip.is-warning { background: var(--udash-warning-light); color: #8a6100; }
.udash-chip.is-error { background: var(--udash-error-light); color: #a11c1c; }
.udash-chip.is-primary { background: var(--udash-primary-light); color: var(--udash-primary-dark); }
.udash-chip.is-info { background: rgba(3, 201, 215, 0.14); color: #067680; }
.udash-chip.is-secondary { background: rgba(31, 41, 55, 0.08); color: var(--udash-secondary); }

/* ── Progress bar ── */

.udash-progress {
  height: 6px;
  border-radius: var(--udash-radius-pill);
  background: rgba(31, 41, 55, 0.08);
  overflow: hidden;
}

.udash-progress > span {
  display: block;
  height: 100%;
  border-radius: var(--udash-radius-pill);
}

.udash-progress.is-primary > span { background: var(--udash-primary); }
.udash-progress.is-success > span { background: var(--udash-success); }

/* ── Course thumbnail card ── */

.udash-course-card {
  border: 1px solid rgba(255, 187, 124, 0.36);
  border-radius: var(--udash-radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--udash-surface);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.udash-course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--udash-shadow-hover);
}

.udash-course-card .thumb {
  position: relative;
  height: 170px;
  background: var(--udash-primary-light);
}

.udash-course-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: var(--udash-primary-light);
}

.udash-course-card .thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.55));
}

.udash-course-card .thumb-chips {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.udash-course-card .thumb-chip-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.udash-course-card .thumb-chip {
  background: #fff;
  color: var(--udash-primary-dark);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--udash-radius-pill);
}

.udash-course-card .thumb-chip.is-price {
  background: var(--udash-primary);
  color: #fff;
}

.udash-course-card .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.udash-course-card .body h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.udash-course-card .body .desc {
  font-size: 0.8rem;
  color: var(--udash-text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.udash-course-card .body .cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.udash-course-card .body .cta .udash-btn {
  width: 100%;
  background: var(--udash-secondary);
  color: #fff;
}

.udash-badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: var(--udash-radius-pill);
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
}

.udash-badge-overlay.is-warning { background: #b8860b; }
.udash-badge-overlay.is-success { background: var(--udash-success); }

.udash-meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--udash-text-muted);
}

.udash-meta-row + .udash-meta-row {
  margin-top: 2px;
}

/* ── Alert row (unpaid enrollment) ── */

.udash-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--udash-warning-light);
  border-radius: var(--udash-radius);
  padding: 12px 16px;
  margin-bottom: 12px;
}

.udash-alert-row .icon-box {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: #8a6100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Rank badge (Pencapaian) ── */

.udash-rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--udash-primary-light);
  color: var(--udash-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── Action button grid (Kelas Aktif quick links) ── */

.udash-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

/* ── Login page ── */

.udash-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--udash-primary-light);
  padding: 20px;
}

.udash-auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--udash-surface);
  border-radius: var(--udash-radius-lg);
  box-shadow: var(--udash-shadow);
  padding: 32px 28px;
}

.udash-field {
  margin-bottom: 16px;
}

.udash-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--udash-text-muted);
}

.udash-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--udash-input-border);
  border-radius: var(--udash-radius);
  font-family: var(--udash-font);
  font-size: 0.875rem;
  background: var(--udash-surface-tint);
}

.udash-field input:focus {
  outline: none;
  border-color: var(--udash-primary);
}

.udash-error-msg {
  background: var(--udash-error-light);
  color: #a11c1c;
  border-radius: var(--udash-radius);
  padding: 10px 14px;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

/* ── Level workspace: header + tab bar ── */

.udash-level-header {
  margin-bottom: 16px;
}

.udash-level-header .back-link {
  font-size: 0.8rem;
  color: var(--udash-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.udash-level-header h3 {
  margin-top: 6px;
}

.udash-tabbar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  margin-bottom: 20px;
}

.udash-tabbar a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--udash-text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}

.udash-tabbar a i {
  font-size: 1rem;
}

.udash-tabbar a:hover {
  color: var(--udash-primary);
}

.udash-tabbar a.active {
  color: var(--udash-primary);
  border-bottom-color: var(--udash-primary);
  font-weight: 600;
}

/* ── Video player ── */

.udash-player {
  position: relative;
  border-radius: var(--udash-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.udash-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.udash-player-empty {
  text-align: center;
  color: #fff;
}

.udash-player-empty .play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

.udash-player-empty h4 {
  color: #fff;
  margin-bottom: 6px;
}

.udash-player-empty p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin: 0;
}

/* ── Toggle pills (Deskripsi/Transkrip) ── */

.udash-pill-toggle {
  display: flex;
  gap: 8px;
  margin: 16px 0 10px;
}

.udash-pill-toggle summary,
.udash-pill-toggle .pill {
  padding: 6px 16px;
  border-radius: var(--udash-radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--udash-surface-tint);
  color: var(--udash-text-muted);
  cursor: pointer;
  list-style: none;
}

.udash-pill-toggle .pill.active {
  background: var(--udash-primary);
  color: #fff;
}

/* ── Collapsible section (Arsip Materi) ── */

.udash-collapsible summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.udash-collapsible summary::-webkit-details-marker {
  display: none;
}

.udash-collapsible-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Material / content row ── */

.udash-content-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.06);
}

.udash-content-row .status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.udash-content-row .status-icon.done {
  background: var(--udash-success);
  color: #fff;
}

.udash-content-row .status-icon.pending {
  background: rgba(31, 41, 55, 0.1);
  color: var(--udash-text-muted);
}

.udash-content-row .play-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--udash-primary-light);
  color: var(--udash-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.udash-content-row.is-selected {
  background: var(--udash-primary-light);
  border-radius: var(--udash-radius);
  padding-left: 8px;
  padding-right: 8px;
}

/* ── Compact thumbnail (Materi Aktif row) ── */

.thumb-sm {
  position: relative;
  width: 64px;
  height: 40px;
  border-radius: var(--udash-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--udash-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--udash-primary);
}

.thumb-sm.is-xs {
  width: 48px;
  height: 30px;
}

.thumb-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-sm .thumb-sm-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 0.8rem;
}

.thumb-sm.is-xs .thumb-sm-play { font-size: 0.6rem; }

/* ── Compact flex row (sidebar lists w/ thumbnail) ── */

.udash-flex-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.06);
}

.udash-flex-row:last-child { border-bottom: none; }

.udash-flex-row .title {
  font-size: 0.8rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ── Stat tile (centered icon + value + label) ── */

.udash-stat-tile {
  text-align: center;
}

.udash-stat-tile .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 1.3rem;
}

.udash-stat-tile .icon-circle.is-success { background: var(--udash-success-light); color: #007a37; }
.udash-stat-tile .icon-circle.is-warning { background: var(--udash-warning-light); color: #8a6100; }

.udash-stat-tile .value {
  font-size: 1.25rem;
  font-weight: 700;
}

.udash-stat-tile .label {
  font-size: 0.75rem;
  color: var(--udash-text-muted);
  margin-top: 2px;
}

/* ── Section title (Kuis Aktif / Kuis Lama) ── */

.udash-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--udash-text-muted);
}

/* ── Quiz card ── */

.udash-quiz-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--udash-surface);
  border: 1px solid rgba(255, 187, 124, 0.36);
  border-radius: var(--udash-radius-lg);
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.udash-quiz-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--udash-shadow-hover);
}

.udash-quiz-card.is-active {
  border-color: rgba(0, 200, 83, 0.35);
}

.udash-quiz-card-main {
  flex: 1;
  min-width: 0;
}

.udash-quiz-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.udash-quiz-card-material {
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.udash-quiz-card-material i {
  margin-right: 3px;
}

.udash-quiz-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Period header pill (Arsip kuis/materi grouped by date range) ── */

.udash-period-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 41, 55, 0.03);
  border: 1px solid rgba(31, 41, 55, 0.06);
  border-radius: var(--udash-radius);
  padding: 8px 14px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--udash-text-muted);
}

/* ── Generic icon tile (checklist rows, etc.) ── */

.udash-icon-tile {
  width: 36px;
  height: 36px;
  border-radius: var(--udash-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.udash-icon-tile.is-primary { background: var(--udash-primary-light); color: var(--udash-primary); }
.udash-icon-tile.is-warning { background: var(--udash-warning-light); color: #8a6100; }
.udash-icon-tile.is-success { background: var(--udash-success-light); color: #007a37; }
.udash-icon-tile.is-error { background: var(--udash-error-light); color: #a11c1c; }
.udash-icon-tile.is-info { background: rgba(3, 201, 215, 0.14); color: #067680; }
.udash-icon-tile.is-secondary { background: rgba(31, 41, 55, 0.08); color: var(--udash-secondary); }

.udash-icon-tile.is-round { border-radius: 50%; }

/* ── Course hero (kelas detail) ── */

.course-hero {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #1f2937, #0f172a);
}

.course-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.7) 100%);
}

.course-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
}

.level-card {
  margin-bottom: 12px;
}

.level-card:last-child { margin-bottom: 0; }

/* ── Certificate locked state ── */

.cert-locked {
  text-align: center;
  padding: 48px 32px;
}

.cert-lock-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
}

.cert-checklist {
  text-align: left;
  background: rgba(31, 41, 55, 0.03);
  border-radius: var(--udash-radius);
  padding: 20px;
  margin: 24px auto;
  max-width: 440px;
}

.cert-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.cert-checklist-item:last-child { margin-bottom: 0; }
.cert-checklist-item .title { font-size: 0.85rem; font-weight: 600; }
.cert-checklist-item .text-muted { font-size: 0.75rem; }

.cert-locked-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .cert-locked-actions { flex-direction: column; }
}

/* ── Document list toolbar + row ── */

.udash-doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.udash-doc-search {
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--udash-surface);
  border: 1px solid rgba(31, 41, 55, 0.15);
  border-radius: var(--udash-radius-pill);
  padding: 8px 14px;
  color: var(--udash-text-muted);
}

.udash-doc-search input {
  border: none;
  outline: none;
  font-family: var(--udash-font);
  font-size: 0.8rem;
  width: 100%;
  background: transparent;
  color: var(--udash-text);
}

.udash-doc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.udash-doc-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--udash-radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(31, 41, 55, 0.06);
  color: var(--udash-text-muted);
  border: none;
  cursor: pointer;
  font-family: var(--udash-font);
}

.udash-doc-filter.active { background: var(--udash-primary); color: #fff; }

.udash-doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.06);
  transition: background 0.15s;
}

.udash-doc-row:last-child { border-bottom: none; }
.udash-doc-row:hover { background: rgba(31, 41, 55, 0.03); }
.udash-doc-row .title { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.udash-doc-row .order { font-size: 0.75rem; color: var(--udash-text-muted); flex-shrink: 0; }

/* ── Ranking: podium ── */

.rank-podium-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.rank-podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 150px;
}

.rank-podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--udash-radius);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.rank-podium-item.is-rank-1 .rank-podium-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.3rem;
}

.rank-podium-crown { font-size: 1.3rem; margin-bottom: 4px; color: #f59e0b; }

.rank-podium-name {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  margin: 6px 0 4px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-podium-score {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(31, 41, 55, 0.7);
}

.rank-podium-score.is-gold { color: #b45309; font-size: 0.95rem; }

.rank-podium-block {
  width: 100%;
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  padding: 8px 4px;
}

.rank-podium-block.is-1 { height: 90px; background: linear-gradient(135deg, #ffd700, #f59e0b); }
.rank-podium-block.is-2 { height: 64px; background: linear-gradient(135deg, #9ca3af, #6b7280); }
.rank-podium-block.is-3 { height: 48px; background: linear-gradient(135deg, #d97706, #92400e); }

/* ── Ranking: rank badge + progress ring + table ── */

.rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(31, 41, 55, 0.06);
  color: rgba(31, 41, 55, 0.5);
  flex-shrink: 0;
}

.rank-badge.is-gold { background: #ffd700; color: #fff; }
.rank-badge.is-silver { background: #c0c0c0; color: #fff; }
.rank-badge.is-bronze { background: #cd7f32; color: #fff; }
.rank-badge.is-me { background: var(--udash-primary-light); color: var(--udash-primary-dark); }

.udash-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.udash-ring-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, var(--udash-primary)) calc(var(--pct, 0) * 3.6deg), rgba(31, 41, 55, 0.08) 0deg);
}

.udash-ring-inner {
  position: absolute;
  inset: 4px;
  background: var(--udash-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.udash-ring-inner span { font-size: 9px; font-weight: 700; }

.rank-table { width: 100%; border-collapse: collapse; }
.rank-table td { padding: 10px 8px; border-bottom: 1px solid rgba(31, 41, 55, 0.06); vertical-align: middle; }
.rank-table tr:last-child td { border-bottom: none; }
.rank-table tr.is-me { background: rgba(228, 95, 0, 0.05); }
.rank-table .col-center { text-align: center; }

.rank-final-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(31, 41, 55, 0.06);
  color: rgba(31, 41, 55, 0.7);
  margin: 0 auto;
}

.rank-final-badge.is-me { background: var(--udash-primary); color: #fff; }

.rank-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; }
.rank-pagination button {
  width: 30px; height: 30px; border-radius: var(--udash-radius-sm); border: 1px solid rgba(31, 41, 55, 0.12);
  background: var(--udash-surface); color: var(--udash-secondary); font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.rank-pagination button.active { background: var(--udash-primary); color: #fff; border-color: transparent; }
.rank-pagination button:disabled { opacity: 0.4; cursor: default; }

/* ── Search modal ── */

.udash-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
}

.udash-search-overlay.open { display: flex; }

.udash-search-modal {
  width: 100%;
  max-width: 640px;
  background: var(--udash-surface);
  border-radius: var(--udash-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.udash-search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  color: var(--udash-text-muted);
  flex-shrink: 0;
}

.udash-search-input-row input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--udash-font);
  font-size: 0.9rem;
  background: transparent;
  color: var(--udash-text);
}

.udash-search-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(31, 41, 55, 0.15);
  border-top-color: var(--udash-primary);
  animation: udash-spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes udash-spin {
  to { transform: rotate(360deg); }
}

.udash-search-results {
  overflow-y: auto;
  flex: 1;
}

.udash-search-hint {
  padding: 32px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--udash-text-muted);
}

.udash-search-group-label {
  padding: 10px 18px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--udash-text-muted);
  background: rgba(31, 41, 55, 0.02);
}

.udash-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
}

.udash-search-item:hover,
.udash-search-item.active {
  background: var(--udash-primary-light);
}

.udash-search-footer {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(31, 41, 55, 0.02);
  font-size: 0.72rem;
  color: var(--udash-text-muted);
  flex-shrink: 0;
}

.udash-search-footer kbd {
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
  border: 1px solid rgba(31, 41, 55, 0.2);
  margin-right: 2px;
}

@media (max-width: 600px) {
  .udash-search-footer span:not(:last-child) { display: none; }
}

/* ── Ebook card ── */

.udash-ebook-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 187, 124, 0.36);
  border-radius: var(--udash-radius-lg);
  overflow: hidden;
  background: var(--udash-surface);
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}

.udash-ebook-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--udash-shadow-hover);
}

.udash-ebook-card .cover {
  position: relative;
  height: 210px;
  background: var(--udash-primary-light);
  flex-shrink: 0;
}

.udash-ebook-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.udash-ebook-card .cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 55%);
  pointer-events: none;
}

.udash-ebook-card .cover-badges-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  gap: 8px;
}

.udash-ebook-card .cover-badges-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 12px;
}

.udash-ebook-card .cover-badges-bottom .udash-chip {
  background: #fff;
  color: var(--udash-secondary);
}

.udash-ebook-card .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.udash-ebook-card .title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.udash-ebook-card .desc {
  font-size: 0.8rem;
  color: var(--udash-text-muted);
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.udash-ebook-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.udash-ebook-card .price-row .price-label {
  font-size: 0.7rem;
  color: var(--udash-text-muted);
}

.udash-ebook-card .price-row .price-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--udash-primary);
}

.udash-ebook-card .price-row .price-value.is-free { color: var(--udash-success); }

/* ── Ebook detail page ── */

.ebook-detail-cover {
  border-radius: var(--udash-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 187, 124, 0.36);
  margin-bottom: 12px;
  background: var(--udash-primary-light);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ebook-detail-cover img { width: 100%; display: block; }

.ebook-social-proof {
  display: flex;
  justify-content: space-around;
  background: rgba(31, 41, 55, 0.02);
  border-radius: var(--udash-radius);
  padding: 14px;
}

.ebook-social-proof .stat { text-align: center; }
.ebook-social-proof .stat .value { font-size: 1.1rem; font-weight: 700; }
.ebook-social-proof .stat .label { font-size: 0.7rem; color: var(--udash-text-muted); }

.ebook-price-box {
  background: linear-gradient(135deg, rgba(228, 95, 0, 0.07), rgba(228, 95, 0, 0.02));
  border: 1px solid rgba(228, 95, 0, 0.18);
  border-radius: var(--udash-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.ebook-benefit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.ebook-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.ebook-trust-badge {
  background: rgba(31, 41, 55, 0.02);
  border: 1px solid rgba(31, 41, 55, 0.07);
  border-radius: var(--udash-radius);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ebook-trust-badge .title { font-size: 0.72rem; font-weight: 700; }
.ebook-trust-badge .sub { font-size: 0.68rem; color: var(--udash-text-muted); }

.ebook-buyer-box {
  background: rgba(31, 41, 55, 0.02);
  border: 1px dashed rgba(31, 41, 55, 0.15);
  border-radius: var(--udash-radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* ── Profile: mini tabs ── */

.udash-mini-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  overflow-x: auto;
}

.udash-mini-tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--udash-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: var(--udash-font);
  white-space: nowrap;
}

.udash-mini-tabs button.active { color: var(--udash-primary); border-bottom-color: var(--udash-primary); }

.udash-tab-panel { display: none; }
.udash-tab-panel.active { display: block; }

/* ── Profile: avatar upload ── */

.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 14px; }

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: var(--udash-secondary);
  box-shadow: 0 0 0 2px rgba(228, 95, 0, 0.5);
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--udash-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--udash-surface);
  font-size: 0.75rem;
}

/* ── Profile: quick stat tile ── */

.profile-stat-tile { text-align: center; padding: 14px 8px; }
.profile-stat-tile .value { font-size: 1.15rem; font-weight: 700; }
.profile-stat-tile .label { font-size: 0.7rem; color: var(--udash-text-muted); margin-top: 2px; }

/* ── Profile: progress row ── */

.profile-progress-row { margin-bottom: 18px; }
.profile-progress-row:last-child { margin-bottom: 0; }
.profile-progress-row .head { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 8px; }
.profile-progress-row .head .left { display: flex; align-items: center; gap: 8px; }

/* ── Profile: enrollment card row ── */

.profile-enrollment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: var(--udash-radius);
  margin-bottom: 10px;
  transition: background 0.15s;
}

.profile-enrollment-card:last-child { margin-bottom: 0; }
.profile-enrollment-card:hover { background: rgba(228, 95, 0, 0.03); }

.profile-enrollment-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--udash-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(31, 41, 55, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--udash-text-muted);
}

.profile-enrollment-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Level upgrade / payment page ── */

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.method-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: var(--udash-radius);
  background: var(--udash-surface);
  cursor: pointer;
  font-family: var(--udash-font);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
}

.method-btn.active { border-color: var(--udash-primary); background: var(--udash-primary-light); }
.method-btn img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--udash-primary);
  font-family: var(--udash-font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.payment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }

.pulse-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--udash-warning);
  flex-shrink: 0;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--udash-warning);
  animation: udash-pulse 1.4s ease-out infinite;
}

.pulse-dot.paid { background: var(--udash-success); }
.pulse-dot.paid::after { border-color: var(--udash-success); animation: none; }
.pulse-dot.error { background: var(--udash-error); }
.pulse-dot.error::after { border-color: var(--udash-error); animation: none; }

@keyframes udash-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.payment-title { font-weight: 700; font-size: 0.95rem; margin: 0; }
.payment-subtitle { font-size: 0.75rem; color: var(--udash-text-muted); margin: 2px 0 0; }

.qris-box, .va-box {
  background: var(--udash-surface);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: var(--udash-radius-lg);
  padding: 24px;
  text-align: center;
}

.qris-amount, .va-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--udash-primary);
  margin-bottom: 16px;
}

.qris-img-wrap { position: relative; display: inline-block; }
.qris-img-wrap img { border-radius: var(--udash-radius); border: 1px solid rgba(31, 41, 55, 0.08); }

.qris-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--udash-error);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: var(--udash-radius);
}

.qris-hint { font-size: 0.75rem; color: var(--udash-text-muted); margin: 14px 0 10px; }
.qris-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 0.68rem; color: var(--udash-text-muted); }
.qris-logos span { background: rgba(31, 41, 55, 0.05); padding: 3px 8px; border-radius: var(--udash-radius-pill); }

.va-bank-label { font-size: 0.8rem; color: var(--udash-text-muted); margin-bottom: 6px; }

.va-number-wrap {
  background: rgba(31, 41, 55, 0.03);
  border-radius: var(--udash-radius);
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
}

.va-label { font-size: 0.7rem; color: var(--udash-text-muted); }
.va-number-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.va-number { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.5px; }

.va-steps { text-align: left; }
.va-steps-title { font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.va-steps ol { margin: 0; padding-left: 18px; font-size: 0.8rem; color: var(--udash-text-muted); }
.va-steps li { margin-bottom: 4px; }

.payment-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--udash-text-muted);
}

/* ── Certificate verify (public, standalone page) ── */

.cert-verify-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.cert-verify-container { width: 100%; max-width: 440px; }

.cert-verify-brand { text-align: center; margin-bottom: 20px; }
.cert-verify-brand .icon { font-size: 1.75rem; color: #fff; }
.cert-verify-brand .title { font-size: 0.85rem; font-weight: 700; color: #fff; margin: 6px 0 2px; }
.cert-verify-brand .sub { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }

.cert-verify-card {
  background: #fff;
  border-radius: var(--udash-radius-lg);
  overflow: hidden;
  padding: 36px 24px;
  text-align: center;
}

.cert-verify-card.is-verified {
  padding: 0;
  border: 2px solid #e5e5e5;
  text-align: left;
}

.cert-verify-card .state-icon { font-size: 3rem; margin-bottom: 12px; }
.cert-verify-card .state-icon.is-warning { color: var(--udash-warning); }
.cert-verify-card .state-icon.is-error { color: var(--udash-error); }
.cert-verify-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.cert-valid-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #16a34a, #15803d);
  padding: 20px;
  text-align: center;
}

.cert-valid-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.cert-valid-banner .icon { font-size: 2rem; color: #fff; position: relative; }
.cert-valid-banner .label { font-size: 0.85rem; font-weight: 700; color: #fff; margin-top: 4px; position: relative; }

.cert-verify-body { padding: 24px; }

.cert-recipient { text-align: center; margin-bottom: 20px; }
.cert-recipient .label { font-size: 0.75rem; color: var(--udash-text-muted); margin-bottom: 4px; }
.cert-recipient .name { font-size: 1.35rem; font-weight: 700; font-family: Georgia, serif; letter-spacing: 0.5px; }

.cert-course-box {
  text-align: center;
  background: #f9fafb;
  border-radius: var(--udash-radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.cert-course-box .label { font-size: 0.75rem; color: var(--udash-text-muted); margin-bottom: 4px; }
.cert-course-box .title { font-weight: 700; margin-bottom: 8px; }
.cert-course-box .chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }

.cert-score-row { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.cert-score-ring { flex-shrink: 0; }

.cert-predikat-box {
  flex: 1;
  min-width: 0;
  background: #111827;
  color: #fff;
  border-radius: var(--udash-radius-lg);
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
}

.cert-predikat-box .ar { font-size: 1.5rem; font-weight: 700; direction: rtl; margin-bottom: 2px; }
.cert-predikat-box .id { font-size: 0.85rem; font-weight: 700; opacity: 0.9; }

.cert-mini-progress { margin-bottom: 8px; }
.cert-mini-progress:last-child { margin-bottom: 0; }
.cert-mini-progress .head { display: flex; justify-content: space-between; font-size: 0.72rem; margin-bottom: 4px; }
.cert-mini-progress .bar { height: 5px; border-radius: var(--udash-radius-pill); background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.cert-mini-progress .bar span { display: block; height: 100%; background: #1f2937; border-radius: var(--udash-radius-pill); }

.cert-verify-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--udash-text-muted);
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

/* ── Sidebar stat card ── */

.udash-sidebar-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.udash-sidebar-stat .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--udash-text-muted);
  text-transform: uppercase;
}

.udash-sidebar-empty {
  text-align: center;
  padding: 24px 0;
  color: var(--udash-text-muted);
  font-size: 0.8rem;
}
