/* ============================================================
   Undangan Digital — Antarmuka aplikasi (landing + dashboard)
   ============================================================ */

:root {
  --bg:        #f7f7fb;
  --surface:   #ffffff;
  --surface-2: #f1f2f7;
  --ink:       #14141a;
  --muted:     #63636e;
  --line:      #e4e4ec;
  --primary:   #6d4bff;
  --primary-2: #8f76ff;
  --primary-ink:#ffffff;
  --accent:    #ff8a5b;
  --success:   #12855c;
  --danger:    #c62f45;
  --warning:   #9a6a00;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18,18,32,.06), 0 1px 3px rgba(18,18,32,.05);
  --shadow:    0 8px 24px -12px rgba(18,18,32,.22);
  --shadow-lg: 0 28px 60px -28px rgba(18,18,32,.4);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html[data-theme="dark"] {
  --bg:        #0d0d12;
  --surface:   #16161e;
  --surface-2: #1e1e28;
  --ink:       #f2f2f7;
  --muted:     #a0a0ae;
  --line:      #2a2a36;
  --primary:   #9b82ff;
  --primary-2: #b6a4ff;
  --primary-ink:#12101f;
  --accent:    #ffa87d;
  --success:   #46c191;
  --danger:    #ff7d90;
  --warning:   #ffc861;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow:    0 10px 30px -14px rgba(0,0,0,.75);
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,.85);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); font-family: var(--font-display); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-family: var(--font-display); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-sm);
  position: relative; flex: none;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 8px;
  border: 2px solid rgba(255,255,255,.85); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.topnav { display: flex; align-items: center; gap: 8px; }
.topnav > a {
  color: var(--muted); font-weight: 600; font-size: .93rem;
  padding: 8px 12px; border-radius: 10px; transition: .18s var(--ease);
}
.topnav > a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.inline-form { display: inline; }

.theme-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1rem;
}
.theme-toggle:hover { color: var(--ink); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
  .nav-burger { display: block; }
  .topnav {
    position: absolute; inset: 66px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 20px 20px;
    gap: 6px; display: none; box-shadow: var(--shadow);
  }
  .topnav.is-open { display: flex; }
  .topnav > a, .topnav .btn { width: 100%; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--ink); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: .95rem;
  padding: 11px 20px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .12s var(--ease), box-shadow .2s var(--ease), background .2s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: linear-gradient(135deg, var(--primary), var(--primary-2)); --btn-fg: var(--primary-ink); --btn-bd: transparent; box-shadow: var(--shadow-sm); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--ghost   { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--muted); }
.btn--danger  { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn--sm { padding: 8px 14px; font-size: .86rem; border-radius: 10px; }
.btn--lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 16px; display: grid; gap: 10px; }
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius); font-weight: 550; font-size: .94rem;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  animation: flashIn .3s var(--ease);
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } }
.flash--success { border-color: color-mix(in srgb, var(--success) 40%, transparent); color: var(--success); }
.flash--error   { border-color: color-mix(in srgb, var(--danger) 40%, transparent);  color: var(--danger); }
.flash--warning { border-color: color-mix(in srgb, var(--warning) 45%, transparent); color: var(--warning); }
.flash__close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }

/* ---------- Hero landing ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 90px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 620px; z-index: -1;
  background:
    radial-gradient(50% 55% at 20% 30%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%),
    radial-gradient(45% 50% at 82% 18%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
  filter: blur(18px);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero__lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.18rem); color: var(--muted); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; }
.hero__stat span { color: var(--muted); font-size: .86rem; }

/* Mockup ponsel */
.phone {
  width: min(300px, 78vw); margin-inline: auto; aspect-ratio: 9/18.5;
  background: var(--surface); border: 10px solid #16161e; border-radius: 42px;
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
  transform: rotate(-3deg);
}
html[data-theme="dark"] .phone { border-color: #33333f; }
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; background: #16161e; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 34px 20px;
  background: linear-gradient(180deg, #fdf6f3, #f6e7e2); color: #4a3630; }
.phone__screen .ps-script { font-family: var(--font-display); font-size: 2.1rem; font-style: italic; }
.phone__screen .ps-line { width: 40px; height: 1px; background: currentColor; opacity: .4; margin: 14px auto; }
.phone__screen small { letter-spacing: .3em; text-transform: uppercase; font-size: .62rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 90px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Galeri template ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.tpl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .22s var(--ease); display: flex; flex-direction: column;
}
.tpl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tpl-card__thumb {
  aspect-ratio: 3/4; position: relative; display: grid; place-items: center; text-align: center;
  padding: 26px 20px; overflow: hidden;
  background: var(--tp-bg, var(--surface-2));
  color: var(--tp-ink, var(--ink));
  font-family: var(--tp-display, var(--font-display));
}
.tpl-card__thumb::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid currentColor; opacity: .28;
}
.tpl-thumb__names {
  font-size: 1.8rem; line-height: 1.15;
  font-family: var(--tp-script, var(--font-display)); color: var(--tp-primary, var(--primary));
}
.tpl-thumb__rule { width: 46px; height: 1px; background: var(--tp-accent, currentColor); opacity: .7; margin: 12px auto; }
.tpl-thumb__meta { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }
.tpl-thumb__meta--top { color: var(--tp-primary, var(--primary)); opacity: 1; font-weight: 600; }
.tpl-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tpl-card__body h3 { margin: 0; font-size: 1.04rem; }
.tpl-card__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); font-weight: 700; }
.tpl-card__desc { color: var(--muted); font-size: .88rem; margin: 4px 0 12px; flex: 1; }
.tpl-card__actions { display: flex; gap: 8px; }
.tpl-card__actions .btn { flex: 1; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm);
}
.auth-wrap { max-width: 460px; margin: clamp(30px,6vw,70px) auto; }

.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 7px; }
.field small.hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 5px; }

input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel],
input[type=number], input[type=date], input[type=time], input[type=datetime-local],
select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; transition: border-color .18s, box-shadow .18s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}
input[type=file] { width: 100%; font-size: .88rem; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

.field-error { color: var(--danger); font-size: .82rem; margin: 6px 0 0; font-weight: 600; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }

.switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); margin-bottom: 12px; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.switch span { font-size: .92rem; font-weight: 600; }
.switch small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Dashboard ---------- */
.page-head { padding: 34px 0 8px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
.page-body { padding-bottom: 70px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 1.7rem; font-family: var(--font-display); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }

.inv-list { display: grid; gap: 14px; }
.inv-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; display: grid; grid-template-columns: 78px 1fr auto; gap: 18px; align-items: center;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) { .inv-item { grid-template-columns: 1fr; } .inv-item__actions { justify-content: flex-start !important; } }
.inv-item__thumb {
  aspect-ratio: 3/4; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  font-size: 1.1rem; text-align: center; padding: 6px;
  background: var(--tp-bg, var(--surface-2)); color: var(--tp-primary, var(--ink));
  font-family: var(--tp-script, var(--font-display));
}
.inv-item h3 { margin: 0 0 2px; font-size: 1.08rem; }
.inv-item__meta { color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.inv-item__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge--draft { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.badge--published { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.badge--muted { background: var(--surface-2); color: var(--muted); }

.empty-state { text-align: center; padding: 60px 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state p { color: var(--muted); max-width: 40ch; margin-inline: auto; }

/* ---------- Editor tabs ---------- */
.editor { display: grid; grid-template-columns: 232px 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } }
.editor__nav { display: grid; gap: 4px; position: sticky; top: 84px; }
@media (max-width: 900px) { .editor__nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 8px; } }
.editor__nav a {
  padding: 11px 15px; border-radius: 11px; color: var(--muted); font-weight: 650; font-size: .92rem; white-space: nowrap;
}
.editor__nav a:hover { background: var(--surface); text-decoration: none; color: var(--ink); }
.editor__nav a.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 20px; }
.panel__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.panel__title h2 { font-size: 1.25rem; margin: 0; }
.panel__desc { color: var(--muted); font-size: .9rem; margin: 0 0 22px; }

.divider { height: 1px; background: var(--line); border: 0; margin: 26px 0; }

.sticky-save {
  position: sticky; bottom: 16px; margin-top: 22px; display: flex; gap: 10px; justify-content: flex-end;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow);
}

/* Pemilih template dalam editor */
.tpl-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tpl-picker label { cursor: pointer; }
.tpl-picker input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-picker__box {
  border: 2px solid var(--line); border-radius: 14px; overflow: hidden; transition: .18s var(--ease);
}
.tpl-picker input:checked + .tpl-picker__box { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.tpl-picker input:focus-visible + .tpl-picker__box { outline: 3px solid var(--primary); outline-offset: 2px; }
.tpl-picker__prev {
  aspect-ratio: 3/4; display: grid; place-items: center; text-align: center; padding: 10px; font-size: 1.05rem;
  background: var(--tp-bg, var(--surface-2)); color: var(--tp-primary, var(--ink));
  font-family: var(--tp-script, var(--font-display));
}
.tpl-picker__name { padding: 8px 10px; font-size: .78rem; font-weight: 700; text-align: center; background: var(--surface); border-top: 1px solid var(--line); }

/* Galeri foto di editor */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photo-tile { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 1; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile form { position: absolute; top: 6px; right: 6px; }
.photo-tile button {
  border: 0; background: rgba(0,0,0,.66); color: #fff; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1;
}

/* Tabel */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }

.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84rem; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 30px; margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand { font-weight: 800; margin: 0; }
.footer__muted { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.footer__links { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.footer__links a { color: var(--muted); }
.footer__copy { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* Halaman error */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-page__code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); line-height: 1; color: var(--primary); margin: 0; }

.is-hidden { display: none !important; }

code {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; font-size: .84em; word-break: break-all;
}
.guest-link { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

.split { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Utilitas ----------
   Dipakai menggantikan atribut style inline agar CSP tetap ketat
   (style-src tanpa 'unsafe-inline'). */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-small { font-size: .88rem; }
.text-mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 26px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }
.hidden { display: none; }
.section__more { text-align: center; margin-top: 32px; }
.nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }

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