/* Bonda Meet — tema gelap gaya komuniti (ungu Bonda Digital) */
:root {
  --bg: #16141f; --bg2: #1e1b2e; --panel: #252238; --panel2: #2e2a45; --line: #39345a;
  --text: #ecebf5; --muted: #a7a3c2; --dim: #7d7899;
  --brand: #7c5cff; --brand2: #9b82ff; --ok: #2fbf71; --warn: #f5b041; --bad: #ef5350;
  --radius: 14px; --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: 1.35rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--brand2); outline-offset: 2px; }

/* Rangka */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 32px); background: rgba(22, 20, 31, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a, .nav button { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav button:hover, .nav a.on { color: var(--text); background: var(--panel); }
.nav a.btn { color: #fff; background: var(--brand); padding: 6px 12px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 64px; }
.wrap.narrow { max-width: 460px; }

/* Komponen */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); }
.card + .card { margin-top: 16px; }
.grid > .card, .feat > .card, .price > .card, .stats > .card, .quota > * { margin-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 12px; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: .98rem; text-decoration: none;
  color: #fff; background: var(--brand); transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: var(--panel2); color: var(--text); }
.btn.ok { background: var(--ok); }
.btn.bad { background: var(--bad); }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: .88rem; border-radius: 9px; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label { display: block; font-weight: 700; font-size: .92rem; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { color: var(--dim); font-size: .84rem; margin-top: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
input[type=checkbox] { width: auto; min-height: 0; accent-color: var(--brand); }

.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600; border: 1px solid; }
.alert.err { background: rgba(239, 83, 80, .12); border-color: rgba(239, 83, 80, .4); color: #ffb4b2; }
.alert.ok { background: rgba(47, 191, 113, .12); border-color: rgba(47, 191, 113, .4); color: #9ff0c4; }
.alert.warn { background: rgba(245, 176, 65, .12); border-color: rgba(245, 176, 65, .4); color: #ffd99a; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--panel2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: rgba(47, 191, 113, .18); color: #7fe3ad; }
.pill.warn { background: rgba(245, 176, 65, .18); color: #ffcf7a; }
.pill.bad { background: rgba(239, 83, 80, .18); color: #ff9e9b; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(92vw, 460px);
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); font-weight: 600;
}

/* Laman utama */
.hero { display: grid; gap: 28px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); padding: 24px 0 40px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand2), #4fd1ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: var(--muted); }
.mock { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: 56px 150px 1fr; min-height: 300px; overflow: hidden; }
.mock .s1 { background: #13111b; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 12px 0; }
.mock .s1 i { width: 36px; height: 36px; border-radius: 12px; background: var(--panel2); display: block; }
.mock .s1 i:first-child { background: var(--brand); border-radius: 50%; }
.mock .s2 { background: var(--panel); padding: 12px; font-size: .82rem; color: var(--muted); }
.mock .s2 b { display: block; color: var(--text); margin-bottom: 8px; }
.mock .s2 span { display: block; padding: 4px 6px; border-radius: 6px; }
.mock .s2 span.on { background: var(--panel2); color: var(--text); }
.mock .s3 { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.mock .s3 div { aspect-ratio: 4/3; border-radius: 10px; background: linear-gradient(135deg, #3b3260, #22304d); display: flex; align-items: flex-end; padding: 6px; font-size: .72rem; }
.feat { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 10px 0 36px; }
.feat .card h3 { font-size: 1.05rem; }
.price { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; }
.plan.best { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan .amt { font-size: 2.2rem; font-weight: 800; }
.plan .amt small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.plan ul { margin: 4px 0 12px; padding-left: 18px; color: var(--muted); }
.plan .tag { position: absolute; top: -12px; right: 16px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

/* Utama (log masuk) */
.quota { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.meter { height: 10px; border-radius: 999px; background: var(--bg2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: none; }
.c-ungu { background: #7c5cff; } .c-biru { background: #3b82f6; } .c-hijau { background: #22a565; } .c-kuning { background: #d4a017; }
.c-oren { background: #f07b2e; } .c-merah { background: #e5484d; } .c-merah_jambu { background: #e0569b; } .c-kelabu { background: #6b6885; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches label { margin: 0; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { width: 38px; height: 38px; border-radius: 50%; display: block; border: 3px solid transparent; }
.swatches input:checked + span { border-color: #fff; }
.swatches input:focus-visible + span { outline: 2px solid var(--brand2); outline-offset: 2px; }

/* Bayaran */
.ref { font: 800 1.3rem ui-monospace, Consolas, monospace; letter-spacing: 1px; background: var(--bg2); border: 1px dashed var(--brand2); border-radius: 10px; padding: 8px 14px; display: inline-block; }
.qr { max-width: 240px; border-radius: 12px; background: #fff; padding: 8px; }
.steps { padding-left: 20px; } .steps li { margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; }

/* Jadual */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-size: .76rem; text-transform: uppercase; letter-spacing: .5px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; background: var(--panel); }
.tabs a.on { background: var(--brand); color: #fff; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: 18px; }
.stats .card b { display: block; font-size: 1.8rem; }

@media (max-width: 640px) {
  .top { flex-wrap: wrap; row-gap: 6px; }
  .brand { white-space: nowrap; }
  .nav { width: 100%; justify-content: space-between; }
  .mock { grid-template-columns: 44px 1fr; } .mock .s2 { display: none; }
  .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; }
  .nav a, .nav button { padding: 7px 9px; font-size: .88rem; }
}
