/* ==========================================================================
   GesFast — gaya aplikasi (dashboard, CMS, form, tabel)
   Palet: ivory hangat + aksen emas, kartu kaca lembut.
   ========================================================================== */

:root {
  /* Palet diturunkan dari logo GesFast: indigo #241B4E + putih,
     dengan tangga tint/shade dari hue yang sama. */
  --brand-950: #150F33;
  --brand-900: #241B4E;   /* warna latar logo */
  --brand-800: #322666;
  --brand-700: #3D3180;
  --brand-600: #4F3FA6;
  --brand-500: #6353C9;
  --brand-400: #8A7CE0;
  --brand-300: #B4AAF0;
  --brand-200: #D5CFF7;
  --brand-100: #EAE7FB;
  --brand-050: #F5F4FC;

  --bg: #F5F4FB;
  --bg-2: #EDEBF7;
  --ink: #1C1636;
  --ink-2: #5A5478;
  --ink-3: #8B87A6;
  --brand: #3D3180;
  --brand-2: #241B4E;
  --brand-3: #6353C9;
  --brand-soft: rgba(79, 63, 166, .12);
  --line: rgba(28, 22, 54, .13);
  --line-soft: rgba(28, 22, 54, .075);
  --card: rgba(255, 255, 255, .8);
  --ok: #2F7D5B;
  --ok-soft: rgba(47, 125, 91, .12);
  --err: #B4463C;
  --err-soft: rgba(180, 70, 60, .1);
  --warn: #A9721B;
  --warn-soft: rgba(169, 114, 27, .12);
  --shadow: 0 20px 44px -26px rgba(28, 22, 54, .45), 0 2px 6px -2px rgba(28, 22, 54, .1);
  --shadow-sm: 0 10px 24px -18px rgba(28, 22, 54, .5);
  --radius: 16px;
  --radius-sm: 10px;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Great Vibes", "Cormorant Garamond", cursive;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 10% -10%, rgba(99, 83, 201, .20), transparent 62%),
    radial-gradient(900px 520px at 94% 2%, rgba(138, 124, 224, .16), transparent 62%),
    radial-gradient(800px 520px at 50% 112%, rgba(36, 27, 78, .10), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--brand-soft); padding: .12em .4em; border-radius: 5px; }
kbd { font-family: ui-monospace, monospace; font-size: .75em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .1em .35em; background: #fff; }
.script { font-family: var(--script); }
.muted { color: var(--ink-2); }
.small { font-size: .82rem; }
.hidden { display: none !important; }
.mt-2 { margin-top: 24px; }

/* -------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(90deg, var(--brand-900), var(--brand-800));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 30px -22px rgba(21, 15, 51, .8);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-tag {
  padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .22);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .65);
  white-space: nowrap;
}
.topnav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topnav a { color: rgba(255, 255, 255, .76); font-weight: 500; font-size: .9rem; }
.topnav a.active, .topnav a:hover { color: #fff; text-decoration: none; }
.user-chip {
  font-size: .8rem; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18); padding: 5px 12px; border-radius: 999px;
}
.topbar .btn-primary { background: #fff; color: var(--brand-900); }
.topbar .btn-primary:hover { background: rgba(255, 255, 255, .9); }
.topbar .btn-ghost { color: rgba(255, 255, 255, .82); }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* -------------------------------------------------------------- layout */

.wrap { max-width: 1000px; margin: 0 auto; padding: 28px 24px 96px; }
.wrap-wide { max-width: 1280px; }
.page-plain { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.site-footer {
  max-width: 1280px; margin: 0 auto; padding: 24px;
  color: var(--ink-3); font-size: .8rem; border-top: 1px solid var(--line-soft);
}

.card {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(213, 207, 247, .9);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-top: 0; }
.danger-card { border-color: rgba(180, 70, 60, .28); background: rgba(255, 250, 249, .8); }
.note-card ul { margin: 0; padding-left: 20px; }
.note-card li { margin-bottom: 8px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }

.stat {
  background: var(--card); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { font-family: var(--serif); font-size: 1.75rem; }
.stat-sub { font-size: .82rem; color: var(--ink-2); }
.stat-ok { border-left: 3px solid var(--ok); }
.stat-brand { border-left: 3px solid var(--brand-500); }
.stat-warn { border-left: 3px solid var(--warn); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h2 { margin: 0; font-size: 1.7rem; }
.page-head p { margin: 4px 0 0; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.row-gap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.inline-form { display: flex; gap: 8px; }

/* -------------------------------------------------------------- tombol */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  padding: 10px 18px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); color: #fff; box-shadow: 0 12px 26px -16px rgba(79, 63, 166, .95); }
.btn-outline { background: rgba(255, 255, 255, .7); border-color: var(--brand-200); color: var(--brand-800); }
.btn-outline:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--ink); }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: .82rem; border-radius: 9px; }
.btn-xs { padding: 4px 9px; font-size: .76rem; border-radius: 7px; }
.btn-lg { padding: 13px 26px; font-size: 1rem; border-radius: 13px; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------- badge & flash */

.badge { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; letter-spacing: .03em; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-err { background: var(--err-soft); color: var(--err); }
.badge-muted { background: rgba(44, 38, 32, .07); color: var(--ink-2); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: .9rem; border: 1px solid transparent; }
.flash-ok { background: var(--ok-soft); border-color: rgba(63, 125, 88, .3); color: #2f6045; }
.flash-err { background: var(--err-soft); border-color: rgba(180, 70, 60, .28); color: #8f382f; }

/* -------------------------------------------------------------- daftar acara */

.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 20px; }
.event-card { display: flex; flex-direction: column; margin: 0; }
.event-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.event-card-head h3 { margin: 0; font-size: 1.25rem; }
.event-card-head p { margin: 4px 0 0; font-size: .85rem; }
.event-card-stats {
  display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; padding: 14px 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  font-size: .85rem; color: var(--ink-2);
}
.event-card-stats strong { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.event-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* -------------------------------------------------------------- event tabs */

.event-bar { margin-bottom: 24px; }
.event-bar-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.event-bar-title h1 { font-size: 1.9rem; margin: 0; }
.tabs { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.tabs a {
  padding: 9px 14px; border-radius: 10px 10px 0 0; color: var(--ink-2); font-size: .88rem; font-weight: 500; white-space: nowrap;
}
.tabs a:hover { background: var(--brand-soft); color: var(--ink); text-decoration: none; }
.tabs a.active { background: var(--card); border: 1px solid var(--line-soft); border-bottom-color: transparent; color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------- tabel */

.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.table tbody tr:hover { background: rgba(255, 255, 255, .5); }
.table-compact td, .table-compact th { padding: 7px 10px; }
.table-scroll { overflow-x: auto; margin: 0 -4px; }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.table-head h3 { margin: 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.list-plain { list-style: none; padding: 0; margin: 0 0 1em; }
.list-plain li { padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: .88rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 18px; border-left: 2px solid var(--brand-soft); position: relative; font-size: .88rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-500); }
.timeline span.muted { display: block; font-size: .8rem; }

.bar-list { list-style: none; padding: 0; margin: 0 0 20px; }
.bar-list li { display: grid; grid-template-columns: 130px 1fr 48px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: .85rem; }
.bar-track { height: 8px; background: rgba(44, 38, 32, .08); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-700), var(--brand-400)); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- form */

.form-card { max-width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time],
input[type=number], input[type=url], input[type=search], textarea, select {
  font-family: var(--sans); font-size: .92rem; color: var(--ink);
  padding: 10px 13px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .8); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea { resize: vertical; }
.input-sm { padding: 7px 10px; font-size: .84rem; max-width: 260px; }
.input-xs { padding: 4px 8px; font-size: .8rem; width: 110px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.field-switches { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.switch input { width: 18px; height: 18px; accent-color: var(--brand); }
.hint { font-size: .82rem; color: var(--ink-3); margin: 8px 0 0; }
.hint-list { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .84rem; }
.hint-list li { margin-bottom: 6px; }
.help-list { list-style: none; counter-reset: h; padding: 0; margin: 0; display: grid; gap: 18px; }
.help-list li { counter-increment: h; padding-left: 48px; position: relative; }
.help-list li::before {
  content: counter(h); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-500)); color: #fff; font-weight: 700; font-size: .9rem;
}
.help-list li strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.help-list li p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.copy-row, .upload-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.copy-row input { flex: 1; }
.upload-row input { flex: 1; }
.thumb { max-width: 180px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; margin-top: 8px; }

/* -------------------------------------------------------------- auth & landing */

.auth-wrap { display: grid; place-items: center; padding: 40px 0; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { margin-bottom: 6px; }
.auth-alt { margin: 18px 0 0; font-size: .88rem; color: var(--ink-2); text-align: center; }

.hero {
  max-width: 1280px; margin: 0 auto; padding: 56px 24px 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-logo { height: 52px; width: auto; display: block; margin-bottom: 22px; }
.pill {
  display: inline-block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand-700); padding: 6px 14px; border-radius: 999px; font-weight: 600;
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin: 18px 0 14px; }
.hero-lead { font-size: 1.05rem; color: var(--ink-2); max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-note { font-size: .85rem; color: var(--ink-3); max-width: 56ch; }

.hero-visual { display: grid; place-items: center; }
.phone {
  width: 320px; padding: 14px; border-radius: 42px; background: linear-gradient(160deg, var(--brand-200), var(--brand-100));
  box-shadow: 0 40px 70px -46px rgba(21, 15, 51, .75), inset 0 0 0 2px rgba(255, 255, 255, .7);
  transform: rotate(-2deg);
}
.phone-screen {
  border-radius: 30px; padding: 34px 22px; text-align: center;
  background:
    radial-gradient(300px 180px at 50% 0%, rgba(216, 178, 106, .25), transparent 70%),
    linear-gradient(180deg, #FFFDF8, #F7F1E6);
  border: 1px solid rgba(255, 255, 255, .8);
}
.phone-overline { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); margin: 0; }
.phone-names { font-family: var(--script); font-size: 2.3rem; margin: 6px 0; color: var(--ink); line-height: 1.1; }
.phone-date { font-size: .85rem; color: var(--ink-2); margin: 0 0 18px; }
.phone-qr {
  width: 132px; height: 132px; margin: 0 auto 12px; border-radius: 14px;
  background: repeating-conic-gradient(var(--brand-900) 0 25%, #fff 0 50%) 50% / 12px 12px;
  border: 8px solid #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center;
}
.phone-qr span { background: var(--bg); padding: 4px 6px; border-radius: 6px; font-size: 1.1rem; }
.phone-code { font-size: .76rem; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 14px; }
.phone-actions { display: flex; gap: 8px; justify-content: center; font-size: .72rem; color: var(--ink-2); }
.phone-actions span { background: rgba(180, 136, 77, .1); padding: 6px 10px; border-radius: 999px; }

.section { max-width: 1280px; margin: 0 auto; padding: 48px 24px 0; }
.section-title { font-size: 1.9rem; margin-bottom: 6px; }
.section-sub { color: var(--ink-2); margin-bottom: 28px; }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.flow-card {
  background: var(--card); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.flow-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-500)); color: #fff; font-weight: 700; font-size: .9rem;
}
.flow-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.flow-card p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius); padding: 22px; }
.feature-ic { font-size: 1.5rem; display: block; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.cta-band {
  max-width: 1280px; margin: 48px auto 0; padding: 44px 32px; text-align: center;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px;
  color: #fff;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: .82; }
.cta-band .btn-primary { background: #fff; color: var(--brand-900); }
.cta-band h2 { font-size: 2rem; }
.cta-band p { color: var(--ink-2); margin-bottom: 22px; }

.empty-state { text-align: center; padding: 56px 24px; }
.empty-code { font-family: var(--serif); font-size: 2.6rem; color: var(--brand); }

/* -------------------------------------------------------------- status pendaftaran */

.pending-wrap { display: grid; place-items: center; padding: 32px 16px 56px; }
.pending-card { width: min(680px, 100%); padding: 30px; }
.pending-head { text-align: center; margin-bottom: 20px; }
.pending-head h1 { margin: 12px 0 6px; }
.pending-head p { margin: 0 auto; max-width: 46ch; }
.ref-box {
  text-align: center; background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.ref-box span { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.ref-box strong { display: block; font-family: ui-monospace, monospace; font-size: 1.9rem; letter-spacing: .12em; margin: 6px 0; }
.ref-box small { color: rgba(255, 255, 255, .72); font-size: .78rem; }
.bank-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; background: rgba(255, 255, 255, .6); }
.bank-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: .92rem; }
.bank-row:last-of-type { border-bottom: none; }
.bank-row span { color: var(--ink-2); }
.bank-actions { margin-top: 14px; }
.mono { font-family: ui-monospace, monospace; letter-spacing: .04em; }
.pending-steps { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: .9rem; }
.pending-steps li { margin-bottom: 6px; }
.pending-claimed {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--warn-soft); border: 1px solid rgba(169, 114, 27, .3);
}
.pending-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.price-note {
  display: flex; flex-direction: column; gap: 2px; text-align: center; margin: 6px 0 18px;
  padding: 16px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid rgba(213, 207, 247, .9);
}
.price-note span { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.price-note strong { font-family: var(--serif); font-size: 1.8rem; color: var(--brand-800); }
.price-note small { color: var(--ink-2); font-size: .8rem; }

.notice-warn {
  border-color: rgba(169, 114, 27, .35); background: rgba(255, 251, 240, .9);
}
.notice-warn .small { margin-top: 8px; }

.email-row { padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.email-row:last-child { border-bottom: none; }
.email-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.email-detail { border-bottom: 1px dashed var(--line-soft); padding: 10px 0; }
.email-detail summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: .9rem; }
.email-body {
  white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, monospace; font-size: .78rem;
  background: rgba(28, 22, 54, .05); border-radius: var(--radius-sm); padding: 14px; margin: 12px 0;
  max-height: 320px; overflow: auto;
}

/* -------------------------------------------------------------- tombol WA melayang */

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .6), 0 4px 12px -4px rgba(28, 22, 54, .25);
  transition: transform .15s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); text-decoration: none; box-shadow: 0 18px 36px -10px rgba(37, 211, 102, .7); }
.wa-float-ic { position: relative; display: grid; place-items: center; }
.wa-float-ring {
  position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: .45;
  animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .5; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-float-ring { animation: none; } }

/* -------------------------------------------------------------- halaman sewa tablet */

.rental-hero { max-width: 900px; margin: 0 auto; padding: 44px 24px 8px; text-align: center; }
.rental-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 16px 0 14px; }
.rental-lead { color: var(--ink-2); font-size: 1.02rem; max-width: 62ch; margin: 0 auto 26px; }
.rental-price {
  display: inline-flex; flex-direction: column; gap: 2px; align-items: center;
  padding: 22px 42px; border-radius: 20px; margin-bottom: 24px;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700)); color: #fff;
  box-shadow: 0 24px 50px -30px rgba(21, 15, 51, .8);
}
.rental-price-label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.rental-price strong { font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; }
.rental-price-unit { font-size: .86rem; color: rgba(255, 255, 255, .8); }
.rental-wa { margin-top: 14px; font-size: .9rem; color: var(--ink-2); }
.btn-wa { background: #25D366; color: #fff; box-shadow: 0 12px 26px -16px rgba(37, 211, 102, .9); }
.btn-wa:hover { background: #1FBE5B; color: #fff; }
.btn-wa svg { flex: none; }
.rental-list { margin: 0; padding-left: 20px; color: var(--ink-2); }
.rental-list li { margin-bottom: 10px; }
.rental-list strong { color: var(--ink); }

.email-tabs { margin: 12px 0; }
.email-frame {
  width: 100%; height: 620px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; display: block;
}
.email-plain { margin-top: 10px; }
.email-plain summary { cursor: pointer; font-size: .84rem; color: var(--ink-2); }

/* -------------------------------------------------------------- foto */

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.photo-grid-lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.photo-grid figcaption { font-size: .78rem; margin-top: 6px; }

/* -------------------------------------------------------------- CMS desain */

.cms-page .wrap { padding-top: 18px; }
.cms { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cms-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; padding-right: 4px; }
.cms-side-block {
  background: var(--card); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
}
.cms-side-block h3 { font-size: .95rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-family: var(--sans); font-weight: 600; }
.tpl-list { display: flex; flex-direction: column; gap: 8px; }
.tpl-item {
  display: flex; gap: 10px; align-items: center; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--brand-200); border-radius: 12px; padding: 9px 11px;
  font-family: var(--sans); color: var(--ink); transition: border-color .15s, background .15s;
}
.tpl-item:hover { border-color: var(--brand); background: #fff; }
.tpl-item strong { display: block; font-size: .86rem; }
.tpl-item small { color: var(--ink-3); font-size: .74rem; }
.tpl-swatch { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 1px rgba(28, 22, 54, .12); }
.el-list { display: flex; flex-direction: column; gap: 12px; }
.el-group > p { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 6px; }
.el-group-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.el-btn {
  display: flex; align-items: center; gap: 7px; cursor: grab; font-size: .78rem; font-family: var(--sans);
  background: rgba(255, 255, 255, .65); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; color: var(--ink);
}
.el-btn:hover { border-color: var(--brand); background: #fff; }
.el-btn span:first-child { font-size: .95rem; width: 16px; text-align: center; }

.cms-canvas { min-width: 0; }
.cms-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow-sm);
}
.cms-toolbar-left, .cms-toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: flex; background: rgba(44, 38, 32, .06); border-radius: 10px; padding: 3px; }
.seg-btn { border: none; background: transparent; font-family: var(--sans); font-size: .82rem; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.seg-btn.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.save-state { font-size: .8rem; color: var(--ink-3); }
.save-state.dirty { color: var(--warn); font-weight: 600; }

.cms-stage {
  background: linear-gradient(160deg, #E9E6F7, #DDD8F0);
  border-radius: 20px; padding: 26px; display: flex; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  min-height: 520px;
}
.preview-frame { width: 390px; max-width: 100%; transition: width .2s ease; }
.cms-stage[data-viewport="desktop"] .preview-frame { width: 100%; max-width: 1080px; }
.preview-frame .invite-root {
  border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(64, 50, 34, .8);
  border: 1px solid rgba(255, 255, 255, .5);
  max-height: 74vh; overflow-y: auto;
}

.cms-node { position: relative; }
.cms-node:hover { outline: 2px dashed rgba(99, 83, 201, .7); outline-offset: -2px; }
.cms-node.active { outline: 2px solid var(--brand-500); outline-offset: -2px; }
.cms-node.drag-over-top { box-shadow: inset 0 4px 0 var(--brand); }
.cms-node.drag-over-bottom { box-shadow: inset 0 -4px 0 var(--brand); }
.cms-node.dragging { opacity: .4; }
.cms-blockbar {
  position: absolute; top: 6px; right: 6px; z-index: 5;
  display: flex; gap: 4px; align-items: center;
  background: rgba(21, 15, 51, .86); color: #fff; border-radius: 9px; padding: 4px 6px;
  opacity: 0; transition: opacity .15s;
}
.cms-node:hover .cms-blockbar, .cms-node.active .cms-blockbar { opacity: 1; }
.cms-blockbar button {
  border: none; background: transparent; color: #fff; cursor: pointer; font-size: .8rem;
  padding: 2px 5px; border-radius: 6px; font-family: var(--sans);
}
.cms-blockbar button:hover { background: rgba(255, 255, 255, .2); }
.cms-blockbar .cms-handle { cursor: grab; }
.cms-blockbar .cms-type { font-size: .7rem; opacity: .75; padding-right: 4px; }

.prop-block { margin-bottom: 16px; }
.prop-block > span { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.prop-block textarea { min-height: 74px; }
.prop-image-row { display: flex; gap: 6px; }
.prop-image-preview { margin-top: 8px; border-radius: 8px; max-width: 100%; display: block; }
.prop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.prop-empty { color: var(--ink-3); font-size: .85rem; }
.prop-title { font-size: .95rem; margin: 0 0 12px; font-family: var(--serif); }

/* -------------------------------------------------------------- cetak */

.print-toolbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 20px; background: rgba(251, 248, 242, .95); border-bottom: 1px solid var(--line);
}
.qr-sheet, .sticker-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding: 24px; }
.qr-card, .sticker {
  border: 1px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; background: #fff;
  break-inside: avoid;
}
.qr-card-event { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 8px; }
.qr-card-name { font-family: var(--serif); font-size: 1.05rem; margin: 8px 0 2px; }
.qr-card-code { font-size: .76rem; color: var(--ink-3); letter-spacing: .08em; margin: 0; }

@media print {
  .no-print, .topbar, .site-footer, .event-bar, .tabs { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ddd; background: #fff; }
  .qr-sheet, .sticker-sheet { padding: 0; gap: 10px; }
  .cms-side, .cms-toolbar { display: none; }
}

/* -------------------------------------------------------------- responsif */

@media (max-width: 520px) {
  .topnav a:not(.btn) { font-size: .82rem; }
  .brand-logo { height: 23px; }
  .hero-logo { height: 40px; }
}
@media (max-width: 1080px) {
  .cms { grid-template-columns: 220px minmax(0, 1fr); }
  .cms-props { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 860px) {
  .topbar-inner { padding: 9px 16px; gap: 10px; }
  .brand-tag { display: none; }
  .brand-logo { height: 26px; }
  .topnav { gap: 12px; }
  .topnav a { font-size: .86rem; }
  .user-chip { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 34px; text-align: left; }
  .hero-visual { order: -1; }
  .phone { width: 270px; }
  .cms { grid-template-columns: 1fr; }
  .cms-side { position: static; max-height: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .wrap { padding: 20px 16px 64px; }
  .topnav { gap: 10px; }
  .event-card-stats { gap: 10px; }
  .bar-list li { grid-template-columns: 100px 1fr 40px; }
}
