/* app.css — SB1 Official
   Dark warm palette, gold accent, serif display. No framework, no build step. */

:root {
  --ink-950: #08070c;
  --ink-900: #0b0a11;
  --ink-850: #0f0d15;
  --ink-800: #131119;
  --ink-700: #1a1722;
  --ink-600: #221e2b;
  --line: rgba(233, 189, 109, 0.13);
  --line-soft: rgba(244, 239, 230, 0.07);
  --gold: #e9bd6d;
  --gold-lite: #f2cf85;
  --gold-2: #d99a45;
  --gold-deep: #b9762c;
  --cream: #f4efe6;
  --muted: #a9a196;
  --dim: #7c7468;
  --green: #6ec99a;
  --red: #e2705f;
  --amber: #e5b458;
  --blue: #7fa8d8;

  --display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(680px 420px at 78% -8%, rgba(217, 154, 69, 0.13), transparent 70%),
    radial-gradient(560px 460px at 8% 4%, rgba(120, 92, 200, 0.09), transparent 72%);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding-block: 92px; }
.section-sm { padding-block: 56px; }
.center { text-align: center; }

.ico { width: 22px; height: 22px; flex: none; }
.ico-lg { width: 34px; height: 34px; }

/* ---------- typography bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.h-xl { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.h-lg { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.h-md { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.lead { color: var(--muted); font-size: 1.03rem; max-width: 56ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.gold { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: .93rem; font-weight: 600; cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap; background: none; color: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-lite), var(--gold-2) 55%, var(--gold-deep));
  color: #241703;
  box-shadow: 0 14px 34px -16px rgba(217, 154, 69, 0.85);
}
.btn-primary:hover { box-shadow: 0 18px 44px -16px rgba(217, 154, 69, 0.95); }
.btn-ghost { border-color: var(--line); color: var(--cream); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(233, 189, 109, .45); background: rgba(233, 189, 109, .06); }
.btn-sm { padding: 9px 16px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn-danger { border: 1px solid rgba(226, 112, 95, .4); color: #f0a193; background: rgba(226, 112, 95, .08); }
.btn-danger:hover { background: rgba(226, 112, 95, .16); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(8, 7, 12, .72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: var(--gold); border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 30% 10%, rgba(233,189,109,.18), rgba(233,189,109,.02));
}
.brand-mark .ico { width: 24px; height: 24px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-family: var(--display); font-size: 1.16rem; font-weight: 600; }
.brand-txt span { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: .89rem; color: var(--muted);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--cream); background: rgba(255,255,255,.04); }
.nav-links a.on { color: var(--gold); background: rgba(233,189,109,.09); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: 8px; }

/* link login admin khusus menu mobile */
.nav-admin-mobile { display: none; }
@media (max-width: 1060px) {
  .nav-admin-mobile {
    display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 12px 14px !important;
    border-top: 1px solid var(--line-soft); color: var(--gold) !important;
  }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 74px 0 46px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { margin-top: 20px; font-size: 1.06rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.hero-stats div b { font-family: var(--display); font-size: 1.6rem; font-weight: 600; display: block; line-height: 1; }
.hero-stats div span { font-size: .74rem; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }

/* hero art: layered emoji-free instrument collage built from CSS */
.hero-art { position: relative; aspect-ratio: 1 / .92; }
.hero-disc {
  position: absolute; inset: 8% 6% 8% 10%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--ink-700) 0 28%, transparent 28.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(233,189,109,.09) 0 1px, transparent 1px 9px),
    conic-gradient(from 210deg, rgba(217,154,69,.22), rgba(120,92,200,.14), rgba(233,189,109,.22));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 90px rgba(0,0,0,.75), var(--shadow);
  animation: spin 46s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-glyph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold);
}
.hero-glyph .ico { width: 30%; height: 30%; opacity: .22; }
.hero-card {
  position: absolute; background: rgba(19, 17, 25, .92); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow); animation: floaty 7s ease-in-out infinite;
}
.hero-card small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.hero-card b { font-family: var(--display); font-size: 1.02rem; font-weight: 600; }
.hc-1 { top: 4%; right: 0; animation-delay: -1s; }
.hc-2 { bottom: 12%; left: -2%; animation-delay: -3.4s; }
.hc-3 { bottom: 0; right: 8%; animation-delay: -5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* instrument ticker */
.ticker {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.012); overflow: hidden;
}
.ticker-in { display: flex; gap: 46px; padding: 16px 0; width: max-content; animation: slide 34s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ticker span::after { content: "·"; color: var(--gold-deep); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
/* two-column splits: minmax(0,..) prevents min-content from blowing the track */
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.95fr); }
.split-narrow { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.gap-lg { gap: 52px; }
.gap-md { gap: 32px; }
.gap-sm { gap: 16px; }
.align-start { align-items: start; }
@media (max-width: 900px) {
  .split, .split-wide, .split-narrow { grid-template-columns: minmax(0, 1fr); }
  .gap-lg { gap: 32px; }
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.section-head .lead { max-width: 46ch; }

.card {
  position: relative; background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow); }

.program-card { display: flex; flex-direction: column; }
.pc-art {
  position: relative; height: 148px; display: grid; place-items: center; color: var(--gold);
  background:
    radial-gradient(120% 130% at 20% 0%, rgba(233,189,109,.16), transparent 62%),
    radial-gradient(90% 110% at 90% 100%, rgba(120,92,200,.16), transparent 60%),
    var(--ink-700);
  border-bottom: 1px solid var(--line-soft);
}
.pc-art .ico { width: 62px; height: 62px; opacity: .82; transition: transform .35s; }
.program-card:hover .pc-art .ico { transform: scale(1.08) rotate(-3deg); }
.pc-badge {
  position: absolute; top: 12px; left: 12px; font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  background: rgba(8,7,12,.72); border: 1px solid var(--line); color: var(--gold);
}
.pc-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-body h3 { font-size: 1.22rem; }
.pc-body .tagline { color: var(--muted); font-size: .89rem; min-height: 2.6em; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.price { font-family: var(--display); font-size: 1.18rem; font-weight: 600; }
.price small { font-family: var(--sans); font-size: .7rem; color: var(--dim); font-weight: 500; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; border: 1px solid var(--line-soft); color: var(--muted); background: rgba(255,255,255,.02);
  white-space: nowrap;
}
.pill.gold { color: var(--gold); border-color: var(--line); background: rgba(233,189,109,.07); }
.pill.green { color: var(--green); border-color: rgba(110,201,154,.3); background: rgba(110,201,154,.08); }
.pill.red { color: var(--red); border-color: rgba(226,112,95,.3); background: rgba(226,112,95,.08); }
.pill.amber { color: var(--amber); border-color: rgba(229,180,88,.3); background: rgba(229,180,88,.08); }
.pill.blue { color: var(--blue); border-color: rgba(127,168,216,.3); background: rgba(127,168,216,.08); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.02); color: var(--muted); cursor: pointer; font-size: .85rem;
  transition: all .2s;
}
.chip:hover { color: var(--cream); border-color: var(--line); }
.chip.on { color: #241703; background: linear-gradient(135deg, var(--gold-lite), var(--gold-2)); border-color: transparent; font-weight: 600; }

/* feature cards */
.feat { display: flex; gap: 16px; padding: 24px; background: linear-gradient(180deg, var(--ink-800), transparent); border: 1px solid var(--line-soft); border-radius: var(--r); }
.feat-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: rgba(233,189,109,.09); border: 1px solid var(--line); }
.feat h3 { font-size: 1.04rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.feat p { color: var(--muted); font-size: .88rem; margin-top: 6px; }

/* instructors */
.inst { text-align: left; padding: 22px; background: linear-gradient(180deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--line-soft); border-radius: var(--r); transition: border-color .3s, transform .3s; }
.inst:hover { border-color: var(--line); transform: translateY(-3px); }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.2rem; color: #241703; font-weight: 600;
  background: linear-gradient(135deg, var(--gold-lite), var(--gold-deep)); margin-bottom: 14px;
}
.inst h3 { font-size: 1.06rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.inst .spec { color: var(--gold); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.inst p { color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* testimonials */
.quote { padding: 26px; background: linear-gradient(160deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--line-soft); border-radius: var(--r); display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars .ico { width: 15px; height: 15px; }
.quote p { font-size: .95rem; color: #e6dfd4; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar { width: 38px; height: 38px; font-size: .9rem; margin: 0; }
.quote b { font-size: .88rem; font-weight: 600; display: block; }
.quote small { color: var(--dim); font-size: .75rem; }

/* faq */
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; background: none; border: 0; color: var(--cream); cursor: pointer;
  font-size: 1rem; text-align: left; font-weight: 550;
}
.faq-q .plus { color: var(--gold); font-size: 1.3rem; transition: transform .3s; flex: none; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s; opacity: 0; }
.faq-item.open .faq-a { max-height: 400px; opacity: 1; }
.faq-a p { color: var(--muted); padding: 0 4px 22px; font-size: .93rem; max-width: 72ch; }

/* CTA band */
.band {
  position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 52px;
  background: linear-gradient(120deg, rgba(217,154,69,.16), rgba(120,92,200,.12)), var(--ink-800);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.band::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,189,109,.18), transparent 65%);
}

/* footer */
.footer { border-top: 1px solid var(--line-soft); padding: 60px 0 34px; background: var(--ink-950); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; font-weight: 600; }
.footer a { color: var(--muted); font-size: .89rem; display: block; padding: 5px 0; transition: color .18s; }
.footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--dim); }

/* floating WA */
.float-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2fbe6a, #1f9a52); color: #06130a;
  box-shadow: 0 16px 40px -14px rgba(47,190,106,.8); transition: transform .2s;
}
.float-wa:hover { transform: scale(1.06); }
.float-wa .ico { width: 27px; height: 27px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: .79rem; color: var(--muted); letter-spacing: .02em; font-weight: 550; }
.field .req { color: var(--red); }
input, select, textarea {
  width: 100%; background: var(--ink-850); border: 1px solid var(--line-soft); color: var(--cream);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: .92rem; font-family: var(--sans);
  transition: border-color .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: #6b6459; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(233,189,109,.5); background: var(--ink-800); }
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a9a196' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: .76rem; color: var(--dim); }
.err { font-size: .78rem; color: #f0a193; }

/* wizard */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 32px; }
.step { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: .82rem; }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-soft); font-size: .74rem; flex: none; }
.step.on { color: var(--gold); }
.step.on .step-n { border-color: var(--gold); background: rgba(233,189,109,.12); color: var(--gold); }
.step.done .step-n { background: var(--gold); color: #241703; border-color: transparent; }
.step-line { flex: 1; height: 1px; background: var(--line-soft); margin: 0 12px; }

/* detail page */
.detail-grid { display: grid; grid-template-columns: 1.55fr .95fr; gap: 44px; align-items: start; }
.side-card { position: sticky; top: 96px; background: linear-gradient(180deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.curriculum { display: grid; gap: 2px; margin-top: 18px; }
.cur-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.cur-item .n { font-family: var(--display); color: var(--gold-deep); font-size: .95rem; width: 22px; flex: none; }
.cur-item p { font-size: .93rem; color: #e6dfd4; }

.sched-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); margin-bottom: 8px; }
.sched-row.full { opacity: .55; }

/* page header */
.page-head { padding-block: 56px 12px; }
.crumb { font-size: .78rem; color: var(--dim); display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.crumb a:hover { color: var(--gold); }

/* toast */
#toasts { position: fixed; top: 84px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink-700); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  padding: 13px 18px; border-radius: 10px; font-size: .86rem; box-shadow: var(--shadow);
  animation: toastIn .3s ease; max-width: 340px;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }

/* empty / loading */
.empty { text-align: center; padding: 60px 20px; color: var(--dim); }
.skeleton { background: linear-gradient(90deg, var(--ink-700) 25%, var(--ink-600) 50%, var(--ink-700) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- admin ---------- */
.admin-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.admin-side {
  border-right: 1px solid var(--line-soft); padding: 22px 16px; background: var(--ink-950);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
}
.admin-side .brand { padding: 6px 8px 20px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav button {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 10px 12px;
  border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .87rem;
  transition: background .18s, color .18s;
}
.admin-nav button:hover { background: rgba(255,255,255,.04); color: var(--cream); }
.admin-nav button.on { background: rgba(233,189,109,.1); color: var(--gold); font-weight: 600; }
.admin-nav .ico { width: 18px; height: 18px; }
.admin-main { padding: 28px 32px 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.5rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--r); background: linear-gradient(180deg, var(--ink-800), var(--ink-850)); }
.stat small { font-size: .72rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.stat b { display: block; font-family: var(--display); font-size: 1.72rem; font-weight: 600; margin-top: 6px; line-height: 1.1; }
.stat span { font-size: .74rem; color: var(--muted); }

.panel { border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--ink-850); overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-head h2 { font-size: 1rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
.panel-body { padding: 20px; }

table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { text-align: left; padding: 11px 14px; font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); font-weight: 600; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid rgba(244,239,230,.045); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.017); }
.table-wrap { overflow-x: auto; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-soft); background: none; color: var(--muted); cursor: pointer; transition: all .18s; }
.icon-btn:hover { color: var(--gold); border-color: var(--line); background: rgba(233,189,109,.07); }
.icon-btn .ico { width: 15px; height: 15px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; padding: 9px 12px; font-size: .85rem; }
.search { flex: 1; min-width: 200px; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(4,3,8,.72); backdrop-filter: blur(6px); z-index: 150; display: grid; place-items: center; padding: 24px; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; background: var(--ink-800);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  animation: modalIn .26s cubic-bezier(.2,.7,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--ink-800); z-index: 2; }
.modal-head h3 { font-size: 1.15rem; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: var(--ink-800); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; padding: 34px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--ink-800), var(--ink-850)); box-shadow: var(--shadow); }
.pin-input { text-align: center; letter-spacing: .5em; font-size: 1.3rem; font-family: ui-monospace, monospace; padding: 14px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; overflow-x: auto; }
.tabs button { padding: 10px 16px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; font-size: .87rem; white-space: nowrap; }
.tabs button.on { color: var(--gold); border-bottom-color: var(--gold); }

.kv { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 8px 16px; font-size: .87rem; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 420px; margin: 0 auto; width: 100%; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side .brand { padding: 0 12px 0 0; flex: none; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .admin-main { padding: 20px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-logout { margin: 0 !important; }
}

@media (max-width: 1060px) {
  .nav-cta { display: none; }
  .nav-burger { display: grid; place-items: center; margin-left: auto; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ink-850); border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: 0 24px 40px -30px #000;
  }
  .nav-links.open a { padding: 12px 14px; }
}

@media (max-width: 760px) {
  .section { padding-block: 62px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .band { padding: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .admin-nav button span { display: none; }
  .admin-nav button { padding: 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hc-1 { display: block; top: 0; right: 0; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* rows editor (konten dinamis di admin) */
.rows { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px; background: rgba(255,255,255,.012); }
.rows-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rows-head > span { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.rows-body { display: flex; flex-direction: column; gap: 8px; }
.rowedit { display: flex; gap: 8px; align-items: center; }
.rowedit input { padding: 9px 11px; font-size: .84rem; }
.rowedit input[data-k="value"], .rowedit input[data-k="label"] { min-width: 0; }
.rowedit .icon-btn { flex: none; }
.chk { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.chk input { width: auto; }
.fullrow { flex: 1; }
.color-input { display: flex; gap: 10px; align-items: center; }
.color-input input[type="color"] { width: 46px; height: 38px; padding: 3px; background: var(--ink-850); }
.color-input input[type="text"] { font-family: ui-monospace, monospace; text-transform: uppercase; }

/* toolbar konten */
.ctabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.ctab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); color: var(--muted); font-size: .82rem; cursor: pointer; }
.ctab:hover { color: var(--cream); border-color: var(--line); }
.ctab.on { color: #241703; background: linear-gradient(135deg, var(--gold-lite), var(--gold-2)); border-color: transparent; font-weight: 600; }

/* admin body mode: hide public chrome */
body.is-admin #nav, body.is-admin #foot, body.is-admin .float-wa { display: none !important; }
body.is-admin { background: var(--ink-900); }

/* print */
@media print {
  .nav, .float-wa, .footer, .band { display: none; }
  body { background: #fff; color: #000; }
}
