    :root {
      --bg: #242424;
      --panel: #2B2B2B;
      --panel-2: #3B3B3B;
      --line: #454545;
      --text: #DBDBDB;
      --header-text: #2B2B2B;
      --muted: #818181ff;
      --accent: #82CB9B;
      --accent-dark: #44C4E4;
      --accent-ink: #2f3f35;
      --accent-hover: #73bd8d;
      --danger: #cb8282ff;
      --success: #82CB9B;
      --shadow: 0 8px 28px rgba(0,0,0,0.35);
      --panel-soft: rgba(56,56,56,0.82);
      --panel-soft-2: rgba(56,56,56,0.68);
      --panel-soft-3: rgba(56,56,56,0.56);
      --overlay-light: rgba(219,219,219,0.12);
      --overlay-lighter: rgba(219,219,219,0.2);
      --overlay-line: rgba(219,219,219,0.16);
      --text-strong: #ffffff;
      --sidebar-grad: linear-gradient(135deg, rgba(68,196,228,0.78), rgba(130,203,155,0.82));
      --radius: 16px;
    }
    * { box-sizing: border-box; }
    html, body { min-height: 100%; }
    html { overflow-y: scroll; }
    body {
      margin: 0;
      padding: 24px;
      font-family: Georgia, "Times New Roman", serif;
      background: var(--bg);
      color: var(--text);
    }

#shell {
  max-width: 1880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: start;
  justify-content: center;
}

#global-sidebar,
#right-sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  overflow-y: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  color: var(--text);
}

.sidebar-card {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.affiliates-card {
  overflow: visible;
}
    #app {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 22px;
      box-shadow: var(--shadow);
      padding: 28px;
    }

    /* ── Sidebar ── */
.sidebar-grad-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  background: rgba(255,255,255,0.03);
}

.sidebar-grad-name {
  font-weight: bold;
  color: var(--text);
  margin-bottom: 2px;
  font-size: 15px;
}

.sidebar-grad-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.sidebar-grad-stars {
  color: var(--accent);
  font-size: 15px;
}

.sidebar-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  background: rgba(255,255,255,0.02);
}

.sidebar-header {
  background: var(--sidebar-grad);
  color: var(--accent-ink);
  padding: 14px 16px;
  border-radius: 16px 16px 0 0;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}
    .sidebar-course-img {
      width: 100%;
      height: 130px;
      object-fit: cover;
      display: block;
      background: var(--panel);
    }
    .sidebar-course-img-placeholder {
      width: 100%;
      height: 130px;
      background: var(--sidebar-grad);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text);
      font-size: 32px;
    }

    .sidebar-grad-item:last-child { border-bottom: none; }

    .sidebar-grad-name a {
      color: var(--accent);
      text-decoration: none;
    }
    .sidebar-grad-name a:hover { text-decoration: underline; }


.affiliate-item {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  display: flex;
  justify-content: center;
}

.affiliate-item:last-child { border-bottom: none; }

.affiliate-link {
  display: inline-block;
  position: relative;
  max-width: 100%;
}

.affiliate-image {
  width: 100%;
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 10px;
  border: none;
  background: transparent;
  padding: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.affiliate-link:hover .affiliate-image {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.affiliate-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  display: inline-block;
  width: max-content;
  max-width: 420px;
  background: linear-gradient(135deg, rgba(68,196,228,0.95), rgba(130,203,155,0.95));
  color: var(--accent-ink);
  font-size: 15px;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  white-space: pre-wrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 20;
}

.affiliate-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(130,203,155,0.95) transparent transparent transparent;
}

.affiliate-link:hover .affiliate-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.affiliate-link.tooltip-below .affiliate-tooltip {
  top: calc(100% + 10px);
  bottom: auto;
}

.affiliate-link.tooltip-below:hover .affiliate-tooltip {
  transform: translateX(-50%) translateY(2px);
}

.affiliate-link.tooltip-below .affiliate-tooltip::after {
  top: auto;
  bottom: 100%;
  border-color: transparent transparent rgba(130,203,155,0.95) transparent;
}


    /* ── Hero ── */
    .hero {
      background: var(--panel-2);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 24px;
      margin-bottom: 22px;
    }
    h1, h2, h3, h4 { margin: 0 0 10px 0; color: var(--text-strong); line-height: 1.2; }
    h1 { font-size: 34px; }
    h2 { font-size: 25px; }
    h3 { font-size: 20px; }
    h4 { font-size: 17px; }
    p { margin: 0 0 12px 0; line-height: 1.55; }
    .muted { color: var(--muted); }
    .section { margin-bottom: 28px; }

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

    .card {
      background: var(--panel-2);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 18px;
    }

    /* ── Auth ── */
    .auth-wrap { max-width: 980px; margin: 0 auto; }
    .auth-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; align-items: start; }
    .auth-panel { background: var(--panel-soft); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }

    /* ── Forms ── */
    label { display: block; font-weight: bold; margin-bottom: 6px; color: var(--text); }
    input[type="text"], input[type="password"], input[type="date"], select, textarea {
      width: 100%; padding: 11px 12px; border: 1px solid var(--line);
      border-radius: 12px; background: var(--panel-2); color: var(--text);
      margin-bottom: 12px; font-family: inherit; font-size: 15px;
    }
    textarea { min-height: 100px; resize: vertical; }
    .checkbox-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
    .checkbox-row label { font-weight: normal; margin: 0; }

    /* ── Buttons ── */
    button, .menu-btn {
      appearance: none; -webkit-appearance: none; border: none;
      border-radius: 12px; padding: 11px 15px; cursor: pointer;
      font-weight: bold; font-family: inherit; font-size: 15px;
      margin-right: 8px; margin-bottom: 8px;
      transition: background 0.15s, transform 0.15s, opacity 0.15s;
      line-height: 1.2; display: inline-block; text-decoration: none;
    }
    button:hover, .menu-btn:hover { transform: translateY(-1px); }
    button:disabled { cursor: not-allowed; opacity: 0.7; transform: none; }
    .primary { background: var(--accent); color: var(--accent-ink); }
    .primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
    .secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
    .secondary:hover { background: var(--overlay-light); }
    .danger { background: var(--danger); color: var(--text-strong); }
    .danger:hover { background: var(--accent-dark); }
    .success { background: var(--success); color: var(--accent-ink); }
    .success:hover { background: var(--accent-hover); color: var(--accent-ink); }
    .menu-btn.primary, .menu-btn.primary:hover { color: var(--accent-ink); }
    .menu-btn.secondary, .menu-btn.secondary:hover { color: var(--text); }

    /* ── Topbar ── */
    .topbar {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 22px;
    }
    .topbar-brand { text-align: center; width: 100%; }
    .topbar-actions {
      width: 100%;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
    }

    /* ── Pills ── */
    .pill {
      display: inline-block; padding: 5px 11px; border-radius: 999px;
      font-size: 12px; font-weight: bold; line-height: 1.2; white-space: nowrap;
    }
    .status-active { background: var(--overlay-light); color: var(--accent-dark); }
    .status-submitted { background: var(--overlay-light); color: var(--accent); }
    .status-approved { background: rgba(130,203,155,0.2); color: var(--success); }
    .status-rejected { background: rgba(203,130,130,0.2); color: var(--danger); }
    .status-dropped { background: var(--overlay-light); color: var(--muted); }
    .admin-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
    .admin-tab-badges { display:inline-flex; gap:5px; margin-left:8px; vertical-align:middle; }
    .count-bubble { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; border-radius:999px; font-size:11px; font-weight:bold; padding:0 6px; color:#fff; }
    .count-bubble-blue { background:#DBDBDB; color: var(--accent-ink); }
    .count-bubble-green { background:#cb8282ff; color: var(--accent-ink); }

    /* ── Misc ── */
    .empty { padding: 18px; border: 1px dashed var(--line); border-radius: 14px; background: var(--panel-soft-2); color: var(--muted); }
    .course-card-title { font-size: 21px; margin-bottom: 8px; line-height: 1.25; }
    .table-like { width: 100%; border-collapse: collapse; }
    .table-like th, .table-like td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
    .table-like th { color: var(--text); font-size: 14px; }
    .progress-wrap { margin-top: 12px; margin-bottom: 12px; }
    .progress-bar { height: 18px; background: var(--panel-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
    .progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }
    .phase-block { margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
    .entry-item { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); margin-bottom: 10px; }
    .alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: bold; }
    .alert-success { background: rgba(130,203,155,0.2); color: var(--success); border: 1px solid var(--success); }
    .alert-error { background: rgba(203,130,130,0.2); color: var(--danger); border: 1px solid var(--danger); }
    a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
    a:hover { color: var(--accent-dark); }

    @media (max-width: 980px) {
      body { padding: 14px; }
      #shell { grid-template-columns: 1fr; }
      #app { padding: 18px; border-radius: 18px; }
      .auth-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
      .topbar { flex-direction: column; align-items: stretch; }
      .topbar-actions { justify-content: flex-end; }
      .sidebar { position: static; }
    }

    /* About page image layouts */
.about-img-single img {
  display: block;
  max-width: 100%;
  margin: 1rem auto;
  border-radius: 6px;
}

.about-img-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.about-img-row img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .about-img-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.about-img-pair figure {
  margin: 0;
}

.about-img-pair img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.about-img-pair figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted, #888);
  margin-top: 0.4rem;
}

/* Points table */
.about-points-table {
  border-collapse: collapse;
  margin: 1rem 0 1rem 1rem;
}

.about-points-table td {
  padding: 0.2rem 1.5rem 0.2rem 0;
  font-size: 0.95rem;
}

.about-points-table tr td:last-child {
  color: var(--accent, teal);
  font-weight: 600;
}

.small {
  font-size: 0.85rem;
}
  
