/* Plaza Kamera Member — mockup styles */
:root {
  --red: #e10600;
  --red-deep: #b80500;
  --red-soft: #fff1f0;
  --ink: #111111;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e6e4;
  --bg: #f4f3f0;
  --card: #ffffff;
  --gold: #c6a36a;
  --gold-2: #e8d5a8;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 24px 60px rgba(17, 17, 17, 0.14);
  --radius: 16px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }

.example-banner {
  background: #111;
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px 16px;
}
.example-banner strong { color: var(--gold-2); font-weight: 700; }

/* ---------- Registration layout ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img { height: 36px; width: auto; }
.brand-tag {
  border-left: 1px solid var(--line);
  padding-left: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-link:hover { color: var(--ink); background: var(--bg); }

.hero-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: start;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}
.hero-wrap h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lead { color: var(--muted); font-size: 16px; margin: 0 0 28px; max-width: 42ch; }

.benefits { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.benefits li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.icon-pill {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  display: grid; place-items: center;
}
.benefits h3 { margin: 0 0 2px; font-size: 15px; }
.benefits p { margin: 0; font-size: 13px; color: var(--muted); }

.showroom-note {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.showroom-note strong { color: var(--ink); }

.form-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 24px;
  border: 1px solid #eee;
}
.form-card h2 { margin: 0 0 4px; font-size: 22px; }
.form-card .sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

.form-grid { display: grid; gap: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.field { display: block; }
label.field span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}
label.field span em { font-style: normal; color: var(--muted); font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], select {
  width: 100%;
  border: 1px solid #dcdcd8;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}
.hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.error { color: var(--red); font-size: 12px; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field.invalid .error { display: block; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  margin-top: 4px;
}
.consent input { margin-top: 3px; accent-color: var(--red); }
.consent a { color: var(--red); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: #fff; width: 100%; margin-top: 8px; }
.btn-primary:hover { background: var(--red-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 8px 12px; font-size: 13px; width: auto; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: #fff;
}
.site-footer .jargon { color: var(--ink); font-weight: 700; margin-bottom: 4px; }

/* Success */
.success-wrap { display: none; }
.success-wrap.show { display: block; }
.register-view.hide { display: none; }

.success-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  text-align: center;
}
.check {
  width: 64px; height: 64px; border-radius: 50%;
  background: #e8f6ee; color: #0b6331;
  display: grid; place-items: center; margin: 0 auto 18px;
}
.success-inner h1 { font-family: var(--display); font-size: 40px; margin: 0 0 8px; }
.member-no {
  font-size: 15px; color: var(--muted); margin: 0 0 28px;
}
.member-no b { color: var(--ink); font-size: 18px; letter-spacing: 0.04em; }

.member-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto 24px;
  aspect-ratio: 1.62 / 1;
  border-radius: 18px;
  background:
    radial-gradient(1200px 200px at 110% -20%, rgba(225,6,0,0.45), transparent 50%),
    linear-gradient(145deg, #1a1a1a 0%, #0b0b0b 55%, #161010 100%);
  color: #fff;
  text-align: left;
  padding: 22px 24px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255,255,255,0.015) 10px 11px);
  pointer-events: none;
}
.card-top, .card-mid, .card-bot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.card-top img { height: 26px; width: auto; }
.card-chip {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gold-2);
  border: 1px solid rgba(232,213,168,0.4);
  padding: 4px 8px;
  border-radius: 4px;
}
.card-mid { margin-top: 36px; flex-direction: column; gap: 2px; }
.card-mid .lbl { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.card-mid .name { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.card-bot { margin-top: 22px; align-items: flex-end; }
.card-bot .no { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; font-weight: 700; }
.card-bot .meta { font-size: 11px; color: rgba(255,255,255,0.65); text-align: right; }
.qr-box {
  width: 52px; height: 52px; background: #fff; border-radius: 6px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 5px;
}
.qr-box i { background: #111; display: block; }
.qr-box i.off { background: transparent; }
.success-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Terms modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center;
  z-index: 40; padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; max-width: 520px; width: 100%;
  padding: 24px; max-height: 80vh; overflow: auto; box-shadow: var(--shadow-lg);
}
.modal h3 { margin: 0 0 12px; }
.modal p { font-size: 14px; color: #333; }
.modal .modal-actions { text-align: right; margin-top: 16px; }

/* ---------- Dashboard / login ---------- */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(225,6,0,0.12), transparent 50%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.login-card .logo { height: 32px; margin-bottom: 18px; }
.login-card h1 { margin: 0 0 6px; font-size: 24px; }
.demo-box {
  background: #fff8e8;
  border: 1px solid #efd9a0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 16px 0;
  color: #5c4400;
}
.demo-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.login-error { color: var(--red); font-size: 13px; display: none; margin: 0 0 8px; }

.app { display: none; min-height: 100vh; }
.app.show { display: grid; grid-template-columns: var(--sidebar) 1fr; }

.sidebar {
  background: #111;
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  align-self: start;
}
.sidebar .logo { height: 28px; margin: 0 12px 8px; width: auto; }
.sidebar .side-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 800; margin: 0 12px 24px;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a, .side-nav button.navbtn {
  background: transparent; border: 0; color: #d0d0d0;
  text-align: left; padding: 10px 12px; border-radius: 8px;
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
}
.side-nav a.active, .side-nav a:hover, .side-nav button.navbtn:hover {
  background: rgba(255,255,255,0.08); color: #fff;
}
.sidebar .spacer { flex: 1; }
.sidebar .who { font-size: 12px; color: #999; padding: 0 12px 8px; }

.main { padding: 28px 32px 48px; min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.main-head h1 { margin: 0; font-size: 28px; }
.main-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
}
.stat .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat .v { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.stat .s { font-size: 12px; color: #0b6331; margin-top: 4px; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px 12px;
  margin-bottom: 20px;
}
.panel h2 { margin: 0 0 14px; font-size: 16px; }
.chart { height: 220px; display: flex; align-items: flex-end; gap: 8px; padding: 8px 0 28px; position: relative; }
.bar {
  flex: 1;
  background: linear-gradient(180deg, #ff4a3a, var(--red));
  border-radius: 6px 6px 2px 2px;
  position: relative;
  min-height: 4px;
  transition: opacity .15s;
}
.bar:hover { opacity: 0.85; }
.bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.bar b {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--ink);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.toolbar input[type="search"], .toolbar select {
  min-width: 0;
  width: auto;
}
.toolbar input[type="search"] { flex: 1; min-width: 220px; width: auto; }
.toolbar select { min-width: 160px; }
.table-wrap { overflow: auto; }
table.members {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.members th, table.members td {
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.members th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
table.members th:hover { color: var(--ink); }
table.members tr:hover td { background: #fafafa; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f6ee;
  color: #0b6331;
}
.badge.off { background: #f3f3f3; color: #666; }
.badge.contoh { background: #f4f0e6; color: #7a5b20; }
.badge.baru { background: var(--red-soft); color: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 28px; }

.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  display: none; z-index: 30; justify-content: flex-end;
}
.drawer-backdrop.show { display: flex; }
.drawer {
  width: min(420px, 100%);
  background: #fff;
  height: 100%;
  padding: 24px;
  overflow: auto;
  box-shadow: var(--shadow-lg);
}
.drawer h2 { margin: 0 0 4px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: 14px; margin: 18px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

@media (max-width: 960px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .app.show { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; position: relative; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .sidebar .spacer { display: none; }
  .side-nav { flex-direction: row; }
  .stats { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .main { padding: 20px 16px 40px; }
}
@media print {
  .example-banner, .site-header, .site-footer, .success-actions, .register-view { display: none !important; }
  .success-wrap, .success-wrap.show { display: block !important; }
  body { background: #fff; }
  .member-card { box-shadow: none; }
}
