/* ============================================================
   Saiga Stable — Portal Member
   Tema: "Equestrian Heritage Modern"
   Hijau hutan pekat + emas, dengan aksen kulit (leather) dan
   ornamen tapal kuda / panah. Klasik tapi tetap modern & gelap.
   ============================================================ */

:root {
  /* Hijau: lebih pekat & berlapis supaya tidak "datar" */
  --g900: #03150D;
  --g850: #052018;
  --g800: #0A3021;
  --g700: #0E3D2B;
  --g600: #14523A;

  /* Emas: dinaikkan kontrasnya, dengan varian terang & gelap */
  --gold: #D9B65C;
  --gold-2: #F2E0AC;
  --gold-3: #A8843A;
  --gold-dim: rgba(217, 182, 92, 0.20);
  --gold-line: rgba(217, 182, 92, 0.30);

  /* Aksen kulit (sadel, busur kayu) */
  --leather: #8A5A38;
  --leather-2: #B07C4F;
  --leather-dim: rgba(138, 90, 56, 0.28);

  --cream: #F6F1E4;
  --muted: #A9C0B2;
  --line: var(--gold-line);
  --card: rgba(255, 255, 255, 0.05);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 44px rgba(1, 10, 6, 0.5);
  --shadow-sm: 0 8px 20px rgba(1, 10, 6, 0.34);
  --pattern: url('pattern-horseshoe.svg');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--cream);
  background-color: var(--g850);
  /* Ornamen tapal kuda samar sebagai tekstur latar, di atas gradasi hijau & emas */
  background-image:
    var(--pattern),
    radial-gradient(1100px 620px at 12% -8%, rgba(24, 92, 66, 0.7), transparent 65%),
    radial-gradient(900px 520px at 92% 4%, rgba(217, 182, 92, 0.13), transparent 62%),
    radial-gradient(760px 560px at 50% 108%, rgba(138, 90, 56, 0.16), transparent 62%),
    linear-gradient(180deg, var(--g850), var(--g900));
  background-size: 132px 132px, auto, auto, auto, auto;
  background-attachment: fixed;
  min-height: 100vh;
}

/* ============================================================
   Gambar latar kustom (diatur dari Panel Coach).
   Gambar dipasang sebagai lapisan ::before dengan kerudung gelap,
   sehingga teks tetap kontras berapa pun gambarnya.
   ============================================================ */
body.has-bg { background-image: none; background-color: var(--g900); }

body.has-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(3, 21, 13, var(--bg-veil, 0.82)), rgba(3, 21, 13, calc(var(--bg-veil, 0.82) + 0.08))),
    var(--bg-image);
  /* Ukuran gambar mengikuti setelan Panel Coach:
     contain = tampil sesuai ukuran aslinya (tidak diperbesar) — gambar kecil tetap tajam.
     cover   = diperbesar memenuhi layar. repeat = diulang seperti pola. */
  background-size: cover, var(--bg-fit, contain);
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

/* Nuansa hijau-emas tetap dipertahankan di atas gambar latar */
body.has-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(900px 520px at 92% 4%, rgba(217, 182, 92, 0.14), transparent 62%),
    radial-gradient(760px 560px at 12% 100%, rgba(24, 92, 66, 0.30), transparent 62%);
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }

p { margin: 0 0 12px; }

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.main { padding: 30px 22px 70px; }

/* ---------------- Header / Nav ---------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(5, 32, 24, 0.94), rgba(3, 21, 13, 0.88));
  backdrop-filter: blur(18px) saturate(170%);
  /* garis emas ganda di bawah header = sentuhan klasik */
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(1, 10, 6, 0.45);
}
.site-head::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-3) 18%, var(--gold) 50%, var(--gold-3) 82%, transparent);
  opacity: 0.55;
}
.site-head.admin::after {
  background: linear-gradient(90deg, transparent, var(--leather) 30%, var(--leather-2) 50%, var(--leather) 70%, transparent);
  opacity: 0.6;
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo tampil polos tanpa bingkai/kotak: cukup gambarnya saja. */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Bila memakai logo UNGGULAN (biasanya gambar persegi dari pemilik), beri bingkai
   ringkas yang mengikuti bentuk gambarnya — rapi dan tidak melebar. */
body.has-logo-kustom .brand {
  padding: 5px 8px;
  border-radius: 14px;
  border: 1px solid rgba(217, 182, 92, 0.5);
  background: rgba(3, 21, 13, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(1, 10, 6, 0.35);
}
body.has-logo-kustom .brand-mark img {
  height: 62px;
  width: auto;
  border-radius: 10px;
  border: 1px solid rgba(217, 182, 92, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.has-logo-kustom .foot-logo {
  border-radius: 12px;
  border: 1px solid rgba(217, 182, 92, 0.45);
  background: rgba(3, 21, 13, 0.5);
  padding: 4px;
}
.brand:hover { color: #fff; }

.brand-mark {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  overflow: visible;
}

/* Logo penuh (kepala kuda + tulisan SAIGA STABLE + sub judul) TIDAK boleh terpotong
   atau berubah bentuk. Aturannya:
   - hanya tinggi yang dikunci, lebar mengikuti rasio asli (width: auto),
   - box-sizing: content-box supaya border/padding tidak ikut mengubah rasio isi,
   - object-fit: contain sebagai jaring pengaman.
   Tinggi minimal 60px supaya tulisan "SAIGA STABLE" masih terbaca. */
.brand-mark img {
  width: auto;
  height: 86px;
  max-width: 320px;
  box-sizing: content-box;
  object-fit: contain;
  display: block;
}

.brand-mark svg { width: auto; height: 86px; display: block; }

.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-logo {
  width: auto;
  height: 118px;
  max-width: 360px;
  flex: 0 0 auto;
  box-sizing: content-box;
  object-fit: contain;
  border: 0;
  background: transparent;
  padding: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: 'Cormorant Garamond', serif; font-size: 1.32rem; letter-spacing: 1px; }
.brand-text em { font-style: normal; font-size: 0.7rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 1100px) { .nav { overflow-x: auto; flex-wrap: nowrap; } }

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.nav a.on {
  color: var(--gold-2);
  background: linear-gradient(180deg, rgba(217, 182, 92, 0.22), rgba(217, 182, 92, 0.10));
  border-color: rgba(217, 182, 92, 0.55);
  box-shadow: 0 0 0 1px rgba(217, 182, 92, 0.12) inset, 0 4px 14px rgba(217, 182, 92, 0.12);
}

.nav a.nav-out { color: var(--gold); border-color: var(--line); }
.nav a.nav-out:hover { background: rgba(200, 169, 81, 0.16); color: #fff; }

.head-user { display: flex; align-items: center; gap: 10px; }
.chip-code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.76rem;
  letter-spacing: 1px;
  color: var(--gold-2);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.2);
}
.head-name { font-size: 0.9rem; color: #fff; font-weight: 500; }

@media (max-width: 860px) {
  .nav { margin-left: 0; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .head-user { width: 100%; }
}

/* ---------------- Kartu & Grid ---------------- */

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* garis emas halus di tepi atas setiap kartu */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) , transparent);
  opacity: 0.4;
}

.card.tight { padding: 16px 18px; }
.card.gold {
  border-color: rgba(217, 182, 92, 0.45);
  background:
    linear-gradient(150deg, rgba(217, 182, 92, 0.15), rgba(255, 255, 255, 0.035) 45%, rgba(138, 90, 56, 0.12));
}
.card.gold::before { opacity: 0.75; }

.grid { display: grid; gap: 20px; }
/* min() dipakai supaya kolom tidak pernah memaksa lebih lebar dari ruang yang tersedia
   (penyebab overflow horizontal di layar sangat sempit seperti 320px). */
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }
.grid.detail { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 820px) { .grid.detail { grid-template-columns: 1fr; } }
.grid > * { margin: 0; }

.section { margin-top: 42px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.68rem;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.muted { color: var(--muted); }
.small { font-size: 0.84rem; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------------- Tombol ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-3));
  color: #23190A;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 18px rgba(217, 182, 92, 0.22), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(217, 182, 92, 0.34), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  color: #23190A;
}
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--gold-2);
}
.btn-ghost:hover { background: rgba(200, 169, 81, 0.14); color: #fff; }

.btn-danger { background: transparent; border-color: rgba(229, 115, 115, 0.5); color: #f0a3a3; }
.btn-danger:hover { background: rgba(229, 115, 115, 0.14); box-shadow: none; color: #ffd6d6; }

.btn-sm { padding: 7px 13px; font-size: 0.8rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------------- Form ---------------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 600;
}
.field .hint { font-size: 0.78rem; color: var(--muted); }

input[type="text"], input[type="password"], input[type="email"], input[type="date"],
input[type="time"], input[type="number"], input[type="file"], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.92rem;
}

textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.18);
}

select option { background: var(--g800); color: var(--cream); }
input[type="file"] { padding: 9px; }

.form-grid { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ---------------- Alert ---------------- */

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
}
.alert.ok { border-color: rgba(126, 217, 168, 0.45); background: rgba(126, 217, 168, 0.12); color: #cdf3e1; }
.alert.err { border-color: rgba(229, 115, 115, 0.45); background: rgba(229, 115, 115, 0.12); color: #ffd6d6; }
.alert.warn { border-color: rgba(230, 205, 143, 0.45); background: rgba(230, 205, 143, 0.12); color: #f6e7c1; }

/* ---------------- Pill / Badge ---------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
  white-space: nowrap;
}
.pill.gold { border-color: rgba(217, 182, 92, 0.5); background: linear-gradient(180deg, rgba(217, 182, 92, 0.2), rgba(217, 182, 92, 0.08)); color: var(--gold-2); }
.pill.belum { color: var(--muted); }
.pill.proses { border-color: rgba(230, 205, 143, 0.5); background: rgba(230, 205, 143, 0.14); color: #f6e7c1; }
.pill.lulus { border-color: rgba(126, 217, 168, 0.5); background: rgba(126, 217, 168, 0.14); color: #cdf3e1; }
.pill.gold { border-color: rgba(200, 169, 81, 0.5); background: rgba(200, 169, 81, 0.16); color: var(--gold-2); }
.pill.batal { border-color: rgba(229, 115, 115, 0.45); background: rgba(229, 115, 115, 0.12); color: #ffd6d6; }

/* ---------------- Progress bar ---------------- */

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(217, 182, 92, 0.18);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  box-shadow: 0 0 12px rgba(217, 182, 92, 0.45);
}
.bar.sm { height: 6px; }

.ring {
  --val: 0;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--g800) 79%, transparent 80% 100%),
    conic-gradient(var(--gold) calc(var(--val) * 1%), rgba(255, 255, 255, 0.12) 0);
  border: 1px solid var(--line);
}
.ring b { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: #fff; }
.ring span { font-size: 0.62rem; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.ring.sm { width: 66px; height: 66px; flex-basis: 66px; }
.ring.sm b { font-size: 1.1rem; }

/* ---------------- Stat ---------------- */

.stat { display: flex; flex-direction: column; gap: 4px; position: relative; }
.stat b {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  color: #fff;
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(217, 182, 92, 0.22);
}
/* hanya label langsung, supaya angka tambahan di dalam <b> tidak ikut bergaya label */
.stat > span { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.stat b .stat-unit {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 2px;
}

/* ---------------- Kartu member ---------------- */

.member-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 26px;
  border: 1px solid rgba(200, 169, 81, 0.45);
  background: linear-gradient(135deg, rgba(20, 80, 60, 0.92), rgba(6, 35, 26, 0.96));
  box-shadow: var(--shadow);
}
.member-card::after {
  content: '';
  position: absolute;
  right: -48px;
  bottom: -56px;
  width: 260px;
  height: 260px;
  background: var(--pattern) center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}
/* tepi kulit halus di sisi atas kartu member */
.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--leather), var(--gold) 50%, var(--leather-2));
  opacity: 0.85;
}
.member-card .code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  letter-spacing: 3px;
  color: var(--gold-2);
  font-size: 0.95rem;
}
/* Kepala kartu member: foto profil member (bukan logo). */
.member-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }

/* Foto profil member di kartu: bulat, rapi, tidak terpotong aneh (object-fit: cover). */
.card-photo {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(200, 169, 81, 0.75);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: block;
}
.card-photo.is-inisial {
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-2);
  line-height: 1;
}
.card-photo.is-logo { object-fit: contain; padding: 8px; background: #000; }

@media (max-width: 420px) {
  .card-photo { width: 76px; height: 76px; flex-basis: 76px; }
  .card-photo.is-inisial { font-size: 1.7rem; }
}

/* ---------------- Ornamen kuda & panahan ---------------- */

/* Deret ikon tema di header */
.theme-icons { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.theme-icons img {
  width: 22px;
  height: 22px;
  opacity: 0.72;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.theme-icons img:hover { opacity: 1; transform: translateY(-1px); }
@media (max-width: 900px) { .theme-icons { display: none; } }

/* Ikon pada kartu statistik */
.stat-ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(217, 182, 92, 0.34);
  background: linear-gradient(150deg, rgba(217, 182, 92, 0.2), rgba(138, 90, 56, 0.14));
  flex: 0 0 40px;
  box-shadow: 0 6px 16px rgba(1, 10, 6, 0.3);
}
.stat-ico img { width: 22px; height: 22px; display: block; }
.stat-ico.big { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
.stat-ico.big img { width: 27px; height: 27px; }

/* Kartu statistik dengan ikon di samping angka */
.stat-card { display: flex; align-items: center; gap: 14px; }
.stat-card .stat { flex: 1; min-width: 0; }

/* Judul seksi dengan ikon */
.section-head h1, .section-head h2, .section-head h3 { position: relative; }
.section-head .head-ico {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin-right: 10px;
  vertical-align: middle;
  border: 1px solid rgba(217, 182, 92, 0.36);
  background: linear-gradient(150deg, rgba(217, 182, 92, 0.22), rgba(138, 90, 56, 0.16));
}
.section-head .head-ico img { width: 21px; height: 21px; display: block; }

/* Pembatas ornamen (tapal kuda + bulu panah) */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 30px 0;
  opacity: 0.62;
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-line), transparent); }
.ornament img { width: 26px; height: 26px; }

/* Pita aksen kulit di atas panel tertentu */
.leather-band {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leather), var(--leather-2) 50%, var(--leather));
  opacity: 0.75;
}

/* ---------------- Tabel ---------------- */

.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
table.tbl th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* ---------------- Daftar skill ---------------- */

.skill-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.skill {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.skill .mark {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}
.skill.lulus .mark { border-color: rgba(126, 217, 168, 0.6); background: rgba(126, 217, 168, 0.18); color: #cdf3e1; }
.skill.proses .mark { border-color: rgba(230, 205, 143, 0.6); background: rgba(230, 205, 143, 0.16); color: #f6e7c1; }
.skill .body { flex: 1; min-width: 0; }
.skill .body strong { display: block; font-weight: 600; color: #fff; font-size: 0.95rem; }
.skill .body .note {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--gold-2);
  border-left: 2px solid var(--line);
  padding-left: 10px;
}

/* ---------------- Jadwal ---------------- */

.jadwal-item { display: flex; gap: 18px; align-items: flex-start; }
.jadwal-date {
  flex: 0 0 76px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 6px;
}
.jadwal-date b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: #fff; line-height: 1; }
.jadwal-date span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.jadwal-date em { display: block; font-style: normal; font-size: 0.68rem; color: var(--muted); margin-top: 3px; }
.jadwal-body { flex: 1; min-width: 0; }
.jadwal-body h4 { margin-bottom: 4px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- Tabs ---------------- */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs a {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}
.tabs a.on { background: rgba(200, 169, 81, 0.18); color: var(--gold-2); border-color: rgba(200, 169, 81, 0.55); }

/* ---------------- Hero (landing) ---------------- */

.hero { position: relative; padding: 60px 0 20px; }
.hero-grid { display: grid; gap: 44px; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero-lead { font-size: 1.03rem; color: var(--muted); max-width: 56ch; }
.hero-art {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
}
/* object-fit: contain supaya logo penuh selalu tampil utuh, tidak di-stretch */
.hero-art img {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.login-box { margin-top: 28px; }
.login-box form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.login-box .field { flex: 1 1 240px; min-width: 0; margin-bottom: 0; }
.login-box input { letter-spacing: 2px; text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ico {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(200, 169, 81, 0.12);
}
.feature h4 { margin-bottom: 2px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------------- Ilustrasi & materi ---------------- */

.illus {
  width: 100%;
  height: 168px;
  object-fit: contain;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, rgba(200, 169, 81, 0.13), rgba(0, 0, 0, 0.2) 70%);
  padding: 14px;
  margin-bottom: 16px;
}
.illus.wide { height: 260px; }

.mat-card { display: flex; flex-direction: column; }
.mat-card h4 { margin-bottom: 6px; }
.mat-card p { color: var(--muted); font-size: 0.88rem; flex: 1; }
.mat-card .mat-foot { margin-top: 14px; }

.materi-isi h3 { margin-top: 26px; }
.materi-isi h2 { margin-top: 30px; }
.materi-isi table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.86rem; }
.materi-isi th, .materi-isi td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.materi-isi th { background: rgba(0, 0, 0, 0.25); color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.materi-isi blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(200, 169, 81, 0.1);
  border-radius: 0 12px 12px 0;
  color: var(--gold-2);
}
.materi-isi ol, .materi-isi ul { padding-left: 22px; }
.materi-isi li { margin-bottom: 6px; }
.materi-isi strong { color: #fff; }

/* ---------------- Kuis / level ---------------- */

.level-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.level-head .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
}
.level-head .titles { flex: 1; min-width: 180px; }
.level-head .titles h3 { margin: 0; }
.level-head .titles p { margin: 2px 0 0; font-size: 0.84rem; color: var(--muted); }

/* ---------------- Footer ---------------- */

.site-foot { border-top: 1px solid var(--line); background: rgba(4, 25, 15, 0.7); margin-top: 40px; }
.foot-inner { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; padding-top: 26px; padding-bottom: 30px; }
.foot-inner strong { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; letter-spacing: 1px; }
.foot-inner p { margin: 2px 0 0; color: var(--muted); font-size: 0.84rem; }
.foot-meta { display: flex; flex-direction: column; gap: 5px; font-size: 0.84rem; color: var(--muted); }

/* ---------------- Utilitas ---------------- */

.divider { height: 1px; background: var(--line); margin: 26px 0; border: 0; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .ico { font-size: 2rem; display: block; margin-bottom: 10px; }

details.box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: rgba(255, 255, 255, 0.03); }
details.box summary { cursor: pointer; font-weight: 600; color: var(--gold-2); }
details.box[open] summary { margin-bottom: 12px; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 20px; }
.filters .field { margin-bottom: 0; min-width: 170px; }

.scroll-list { display: flex; flex-direction: column; gap: 14px; }

@media print {
  .site-head, .site-foot, .tabs, .no-print { display: none !important; }
  body { background: #fff; color: #111; }
  .card { border-color: #ccc; background: #fff; box-shadow: none; }
  h1, h2, h3, h4, .skill .body strong { color: #111; }
  .muted, .skill .body .note { color: #444; }
}
