/* ===== Reset & Base ===== */
/* Versi: 4 */

* { box-sizing: border-box; }
:root {
  --primary: #0d7c4d;
  --primary-dark: #095e3a;
  --primary-light: #e7f6ee;
  --accent: #d4a017;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e2e8e5;
  --danger: #c0392b;
  --warn: #d97706;
  --info: #2563eb;
  --success: #16a34a;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
}

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.6rem; margin: 0 0 .3rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

.container { width: min(1100px, 92%); margin: 0 auto; }
.main { padding: 1.5rem 0 3rem; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.inline { display: inline; }
.hidden { display: none !important; }

/* ===== Topbar ===== */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}

/* Kop-surat resmi */
.kopsurat {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1rem 0 .8rem;
  border-bottom: 3px double var(--primary);
}
.kop-logo {
  width: 80px; height: 80px; object-fit: contain;
  flex-shrink: 0;
}
.kop-text { flex: 1; min-width: 0; }
.kop-title {
  margin: 0 0 .15rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: .01em;
  line-height: 1.15;
}
.kop-sub {
  margin: 0 0 .35rem;
  font-style: italic;
  color: var(--muted);
  font-size: .92rem;
}
.kop-addr, .kop-tel {
  margin: 0;
  font-size: .82rem;
  color: var(--text);
  line-height: 1.35;
}
.kop-tel { font-weight: 600; }

@media (max-width: 720px) {
  .kopsurat { flex-direction: column; text-align: center; gap: .6rem; padding: .9rem 0; }
  .kop-logo { width: 64px; height: 64px; }
  .kop-title { font-size: 1.05rem; }
  .kop-sub { font-size: .82rem; }
  .kop-addr { font-size: .75rem; }
}

/* Baris kedua: judul aplikasi & navigasi */
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem 0; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.6rem; }
.brand-logo {
  width: 38px; height: 38px; object-fit: contain;
  border-radius: 8px; background: #fff;
}
.brand-text strong { display: block; line-height: 1; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.brand-mini {
  color: var(--primary-dark); font-weight: 700;
  font-size: .95rem; letter-spacing: .02em;
}
.brand-mini:hover { text-decoration: none; opacity: .85; }

.topnav { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.topnav a, .topnav button {
  padding: .45rem .8rem; border-radius: 8px; color: var(--text);
  font-weight: 500; background: transparent; border: 0; cursor: pointer; font: inherit;
}
.topnav a:hover, .topnav button:hover { background: var(--primary-light); text-decoration: none; }
.topnav a.active, .topnav button.active { background: var(--primary-light); color: var(--primary-dark); }

.user-chip {
  background: var(--primary-light); color: var(--primary-dark);
  padding: .35rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
}
.user-chip-admin { background: #fef3c7; color: #92400e; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  background: var(--surface);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f1f5f3;
  color: var(--text);
  cursor: pointer;
  font-size: .92rem; font-weight: 600;
  transition: all .15s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-outline:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f5f3; }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-warn { background: #fef3c7; color: #92400e; }
.btn-warn:hover { background: #f59e0b; color: #fff; }
.btn-success { background: #16a34a; color: #fff; border-color: #16a34a; }
.btn-success:hover { background: #15803d; border-color: #15803d; }
.btn-success:disabled { background: #d1d5db; color: #6b7280; border-color: #d1d5db; cursor: not-allowed; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-sm { padding: .35rem .65rem; font-size: .8rem; }

/* Collapsible section (PG / Essay di halaman Periksa) */
.section-collapsible {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.section-collapsible > .section-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(to right, #f9fafb, #fff);
  font-weight: 600;
  user-select: none;
  transition: background .15s;
}
.section-collapsible > .section-summary::-webkit-details-marker { display: none; }
.section-collapsible > .section-summary:hover { background: #f3f4f6; }
.section-collapsible[open] > .section-summary {
  background: var(--primary-light, #ecfdf5);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.section-summary-title { font-size: 1.05rem; flex-shrink: 0; }
.section-summary-toggle {
  margin-left: auto;
  transition: transform .2s;
  color: var(--muted, #6b7280);
  font-size: .85rem;
}
.section-collapsible[open] .section-summary-toggle { transform: rotate(180deg); }
.section-collapsible-body { padding: 1rem; }
.section-collapsible-body > .soal-card:last-child { margin-bottom: 0; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1rem;
}
.card-pad { padding: 1.2rem 1.3rem; }

/* ===== Grids ===== */
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-2 { grid-template-columns: 1fr 2fr; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* ===== Forms ===== */
.form label { display: block; margin-bottom: .9rem; }
.form label > span:not(.huruf):not(.teks):not(.huruf-label) {
  display: block; font-weight: 600; margin-bottom: .3rem; font-size: .9rem;
}
input[type="text"], input[type="password"], input[type="number"],
input[type="email"], textarea, select {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.form-row > label { margin-bottom: 0; }

label.checkbox {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 500;
}
label.checkbox input { width: auto; }

.form-actions { margin-top: 1rem; display: flex; gap: .6rem; flex-wrap: wrap; }

.form-row-pilihan {
  display: grid; grid-template-columns: 50px 1fr; gap: .6rem;
  align-items: center; margin-bottom: .55rem;
}
.huruf-label {
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 8px; text-align: center; padding: .55rem; font-weight: 700;
}

.form-row-skor {
  display: flex; align-items: center; gap: .6rem; margin-top: .8rem;
  flex-wrap: wrap;
}
.form-row-skor input { width: 100px; }

/* ===== Alerts / Toasts ===== */
.alert {
  padding: .75rem 1rem; border-radius: 8px; margin: 1rem 0;
  border: 1px solid; font-weight: 500;
}
.alert-success { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-warn    { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.toast-area {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 200;
  display: flex; flex-direction: column; gap: .5rem; max-width: 360px;
}
.toast {
  background: var(--surface); border: 1px solid var(--border);
  padding: .8rem 1rem; border-radius: 8px; box-shadow: var(--shadow);
  font-weight: 500; animation: slideIn .2s ease-out;
  border-left: 4px solid var(--primary);
}
.toast-error { border-left-color: var(--danger); color: var(--danger); }
.toast-success { border-left-color: var(--success); }
.toast-warn { border-left-color: var(--warn); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ===== Page Head ===== */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1rem; margin: 1rem 0 1.5rem;
}
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.section-title {
  margin: 1.6rem 0 .8rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--primary-light);
}

/* ===== Tables ===== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: .75rem .9rem; border-bottom: 1px solid var(--border); text-align: left;
}
.table thead th {
  background: #fafbfa; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .03em; color: var(--muted);
}
.table tbody tr:hover { background: #fafbfa; }
.row-actions { display: flex; gap: .35rem; flex-wrap: wrap; }

/* ===== Badges ===== */
.badge {
  display: inline-block; padding: .15rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-warn    { background: #fef3c7; color: #92400e; }
.badge-muted   { background: #e5e7eb; color: #4b5563; }

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem;
  margin: 2rem 0; align-items: center;
}
.hero h1 { font-size: 2rem; margin-bottom: .8rem; }
.hero .accent { color: var(--primary); }
.hero .lead { font-size: 1.1rem; color: var(--muted); }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-logo {
  display: block;
  width: 110px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 14px rgba(13, 124, 77, .15));
}
@media (max-width: 720px) {
  .hero-logo { width: 90px; margin: 0 auto 1rem; }
  .hero-text { text-align: center; }
  .hero-text .hero-actions { justify-content: center; }
}
.hero-card {
  background: var(--primary-light); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid #c7e7d4;
}
.hero-card h3 { margin-top: 0; color: var(--primary-dark); }
.hero-card ol { padding-left: 1.2rem; margin: 0; }
.hero-card li { margin-bottom: .35rem; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }

/* ===== Auth ===== */
.auth-wrap {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 0;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
  width: 100%; max-width: 420px;
}
.auth-card h1 { margin-top: 0; }

/* ===== Stats ===== */
.stat .stat-num {
  display: block; font-size: 2rem; line-height: 1.1; margin-top: .3rem;
  color: var(--primary-dark);
}
.stat-warn .stat-num { color: var(--warn); }
.stat-ok .stat-num { color: var(--success); }

/* ===== Ujian Card ===== */
.ujian-card { display: flex; flex-direction: column; }
.ujian-card h3 { margin-top: 0; color: var(--primary-dark); }
.ujian-card .meta {
  list-style: none; padding: 0; margin: .5rem 0 1rem;
  font-size: .9rem; color: var(--muted);
}
.ujian-card .meta li { margin-bottom: .2rem; }
.ujian-card .btn { align-self: flex-start; margin-top: auto; }

/* Card ujian yang belum mulai / sudah ditutup tampak redup */
.ujian-card-locked { opacity: .85; }
.ujian-card-closed { opacity: .65; }

/* Banner status jadwal di card ujian (santri) */
.ujian-jadwal-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .6rem .8rem; border-radius: 8px; margin: .5rem 0 .8rem;
  font-size: .9rem; line-height: 1.4;
  border: 1px solid transparent;
}
.ujian-jadwal-banner .ujian-countdown {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}
.ujian-jadwal-tunggu {
  background: #fff7ed; color: #9a3412; border-color: #fed7aa;
}
.ujian-jadwal-aktif {
  background: #ecfdf5; color: #065f46; border-color: #a7f3d0;
}
.ujian-jadwal-tutup {
  background: #f3f4f6; color: #4b5563; border-color: #d1d5db;
}

/* Fieldset jadwal di form admin */
.form-fieldset {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px; padding: .8rem 1rem;
  margin: 0;
}
.form-fieldset legend {
  padding: 0 .4rem; font-weight: 600; font-size: .9rem;
  color: var(--muted, #6b7280);
}

/* ===== Nilai Summary ===== */
.nilai-summary {
  display: flex; gap: 2rem; flex-wrap: wrap; align-items: center;
  justify-content: space-around;
}
.nilai-summary > div { text-align: center; }
.nilai-num { display: block; font-size: 1.8rem; color: var(--primary-dark); margin-top: .2rem; }
.nilai-num.big { font-size: 2.5rem; color: var(--accent); }
.nilai { color: var(--primary-dark); font-size: 1.05rem; }
.catatan { background: #fffbeb; border-color: #fde68a; }
.catatan h3 { margin-top: 0; color: #92400e; }

/* ===== Soal Card ===== */
.soal-card .soal-head {
  display: grid; grid-template-columns: 36px 1fr auto; gap: .8rem;
  align-items: start; margin-bottom: .8rem;
}
.soal-card .no {
  background: var(--primary); color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.soal-card .pertanyaan { font-size: 1rem; white-space: pre-wrap; }
.soal-card .skor-badge {
  background: var(--primary-light); color: var(--primary-dark);
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}

.pilihan { display: grid; gap: .5rem; }
.pilihan label.opt {
  display: grid; grid-template-columns: 36px 1fr auto auto; gap: .6rem;
  align-items: center; padding: .65rem .8rem;
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  transition: all .15s; margin-bottom: 0;
}
.pilihan label.opt:hover { background: var(--primary-light); border-color: var(--primary); }
.pilihan label.opt input { display: none; }
.pilihan label.opt:has(input:checked) {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.pilihan .huruf {
  background: #eef2ef; border-radius: 6px; text-align: center;
  width: 32px; height: 32px; line-height: 32px; font-weight: 700;
  color: var(--text);
}
.pilihan label.opt:has(input:checked) .huruf {
  background: var(--primary); color: #fff;
}
.pilihan .teks { word-break: break-word; }

.pilihan.readonly .opt {
  display: grid; grid-template-columns: 36px 1fr auto; gap: .6rem;
  padding: .55rem .8rem; border: 1px solid var(--border); border-radius: 8px;
  align-items: center;
}
.pilihan.readonly .opt-benar { background: #ecfdf5; border-color: #6ee7b7; }
.pilihan.readonly .opt-benar .huruf { background: var(--success); color: #fff; }
.pilihan.readonly .opt-salah { background: #fef2f2; border-color: #fecaca; }
.pilihan.readonly .opt-salah .huruf { background: var(--danger); color: #fff; }

.essay-jawab {
  background: #fafbfa; border: 1px solid var(--border);
  border-radius: 8px; padding: .8rem 1rem; margin-top: .6rem;
}
.essay-text { white-space: pre-wrap; margin: .4rem 0 0; }

/* ===== Action Bar ===== */
.action-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; position: sticky; bottom: 1rem;
  background: var(--surface); box-shadow: 0 -2px 14px rgba(0,0,0,.05);
  border: 2px solid var(--primary-light);
}

/* ===== Timer ===== */
.timer-box {
  background: var(--primary); color: #fff;
  padding: .5rem 1rem; border-radius: 8px;
  font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums;
}
.timer-box.warn { background: var(--warn); animation: pulse 1.5s infinite; }
.timer-box.habis { background: var(--danger); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .7; } }

/* ===== Loader ===== */
.loader {
  display: inline-block; width: 18px; height: 18px;
  border: 3px solid var(--primary-light); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 1s linear infinite;
}
.loader-block {
  display: flex; align-items: center; justify-content: center;
  gap: .6rem; padding: 2rem; color: var(--muted);
}
@keyframes spin { to { transform: rotate(360deg); } }

details summary { cursor: pointer; }
details[open] summary { margin-bottom: .5rem; }

/* ===== Filter select (juara page) ===== */
.filter-select {
  padding: .5rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.filter-select:focus {
  outline: 2px solid var(--primary); outline-offset: 1px;
}

/* ===== Podium (juara mingguan) ===== */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1rem;
  align-items: end;
  margin: 1.5rem 0 2rem;
}
.podium-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .2s;
}
.podium-item:hover { transform: translateY(-4px); }
.podium-medal {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: .5rem;
}
.podium-nama {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: .15rem;
  word-break: break-word;
}
.podium-kelas {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .6rem;
}
.podium-nilai {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: .3rem 0;
  font-variant-numeric: tabular-nums;
}
.podium-info {
  font-size: .78rem;
  color: var(--muted);
}
.podium-1 {
  border-color: #facc15;
  background: linear-gradient(180deg, #fffbeb 0%, var(--surface) 70%);
  transform: translateY(-12px);
}
.podium-1:hover { transform: translateY(-16px); }
.podium-1 .podium-nilai { color: #b45309; font-size: 2.4rem; }
.podium-2 {
  border-color: #94a3b8;
  background: linear-gradient(180deg, #f1f5f9 0%, var(--surface) 70%);
}
.podium-2 .podium-nilai { color: #475569; }
.podium-3 {
  border-color: #fb923c;
  background: linear-gradient(180deg, #fff7ed 0%, var(--surface) 70%);
}
.podium-3 .podium-nilai { color: #c2410c; }

@media (max-width: 720px) {
  .podium { grid-template-columns: 1fr; gap: .6rem; }
  .podium-1 { transform: none; order: -1; }
  .podium-1:hover { transform: translateY(-4px); }
}

/* Highlight baris top 3 di tabel ranking */
.table tr.highlight {
  background: linear-gradient(90deg, var(--primary-light) 0%, transparent 100%);
}
.rank-top { color: var(--primary-dark); }

.center { text-align: center; }

/* ===== Komentar / Forum ===== */
.komentar-form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .5rem;
}
.komentar-form input[type="text"],
.komentar-form textarea { margin: 0; }
.komentar-form button { align-self: flex-start; }

#komentarList { display: flex; flex-direction: column; gap: .6rem; margin-top: .8rem; }

.komentar-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary-light);
  border-radius: 8px;
  padding: .85rem 1rem .9rem;
  position: relative;
}
.komentar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: .4rem; margin-bottom: .3rem;
}
.komentar-nama { color: var(--primary-dark); }
.komentar-isi {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.komentar-actions {
  display: flex;
  gap: .35rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}
.komentar-disembunyikan {
  background: #f9fafb;
  border-left-color: #d1d5db;
  border-style: dashed;
  padding: .6rem .9rem;
  font-style: italic;
  color: var(--muted);
}
.komentar-flag-sembunyi {
  background: #fff7ed;
  border-left-color: #fb923c;
}

/* ===== Tabs (import soal) ===== */
.tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
}
.tab-btn {
  background: transparent;
  border: 0;
  padding: .6rem 1rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }
