/* Raifast Live Studio - website. Tema gelap yang sama dengan aplikasi. */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --accent: #ff7a1a;
  --accent-2: #ffb46b;
  --accent-ink: #1a0f05;
  --bg: #0e0d12;
  --bg-2: #13121a;
  --panel: #1b1a22;
  --panel-2: #23212c;
  --line: #2e2c38;
  --text: #f1eff6;
  --muted: #9b98a8;
  --ok: #3ddc84;
  --warn: #ffc24b;
  --err: #ff5c6c;
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .err-text { color: var(--err); }
.grad { background: linear-gradient(90deg, var(--accent-2), var(--accent) 60%, #ff3b4e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .72em 1.25em; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none !important; transition: transform .12s, background .12s, border-color .12s; white-space: nowrap;
}
.btn:hover { border-color: #46434f; background: #2a2834; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 24px -10px rgba(255, 122, 26, .8); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ffd3d8; border-color: #5a2630; background: #2a1419; }
.btn.danger:hover { background: #3a1820; }
.btn.sm { padding: .45em .85em; font-size: .85rem; border-radius: 10px; }
.btn.lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn.block { width: 100%; }
.link { background: none; border: 0; color: var(--accent-2); font: inherit; cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------ header */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 13, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); min-height: 64px; }
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.02rem; white-space: nowrap; text-decoration: none !important; }
.brand img { border-radius: 9px; }
.brand b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .93rem; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.usermenu { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 4px 12px 4px 4px; font: inherit; font-weight: 600; cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); font-weight: 800; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.4rem; }
.usermenu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.usermenu-pop[hidden] { display: none; }
.usermenu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.usermenu-head small { color: var(--muted); }
.usermenu-pop a, .usermenu-pop button { text-align: left; padding: 9px 10px; border-radius: 9px; color: var(--text); background: none; border: 0; font: inherit; font-size: .93rem; cursor: pointer; text-decoration: none; }
.usermenu-pop a:hover, .usermenu-pop button:hover { background: rgba(255, 255, 255, .06); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; display: none; }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px; font-size: 1rem; }
  .uname { display: none; }
  .avatar-btn { padding: 4px 10px 4px 4px; }
}
@media (max-width: 420px) {
  .brand span { font-size: .92rem; }
  .brand span b { display: none; }
  .nav-actions .btn.ghost { display: none; }
}

/* ------------------------------------------------------------ section umum */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, .04); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { font-size: 1.25rem; }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(255, 255, 255, .08); color: var(--text); white-space: nowrap; }
.pill.accent { background: rgba(255, 122, 26, .16); color: var(--accent-2); }
.pill.ok { background: rgba(61, 220, 132, .14); color: var(--ok); }
.pill.warn { background: rgba(255, 194, 75, .14); color: var(--warn); }
.pill.err { background: rgba(255, 92, 108, .14); color: var(--err); }
.notice { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px 14px; font-size: .93rem; }
.notice.warn { border-color: #5a4720; background: #241d0f; color: #ffe2a6; }
.notice.err { border-color: #5a2630; background: #2a1419; color: #ffd3d8; }
.notice.ok { border-color: #1f5136; background: #0f2219; color: #c4f5d8; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 640px; background: radial-gradient(closest-side, rgba(255, 122, 26, .28), transparent 70%), radial-gradient(closest-side at 80% 40%, rgba(255, 59, 78, .18), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: #cfcbdc; max-width: 560px; }
.hero .row { margin-top: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: .9rem; padding: 0; list-style: none; }
.hero-points li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.mock { position: relative; border-radius: 18px; border: 1px solid var(--line); background: #0b0a10; box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 16 / 10; }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3844; }
.mock-bar .live { margin-left: auto; color: #fff; background: #ff3b4e; border-radius: 6px; padding: 1px 8px; font-weight: 800; font-style: normal; }
.mock img { width: 100%; height: calc(100% - 37px); object-fit: cover; }
.mock-fallback { height: calc(100% - 37px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.mock-fallback div { border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center; font-size: 2rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* ------------------------------------------------------------ fitur */
.feature { display: flex; flex-direction: column; gap: 6px; }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255, 122, 26, .12); border: 1px solid rgba(255, 122, 26, .25); margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature ul { margin: 8px 0 0; padding-left: 18px; color: #cfcbdc; font-size: .9rem; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }
.mode-tag { font-weight: 900; font-size: .8rem; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 2px 8px; display: inline-block; margin-bottom: 8px; }

/* ------------------------------------------------------------ langkah */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { position: relative; padding-top: 54px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 900; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ------------------------------------------------------------ galeri pratinjau */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.tab { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.gcard .thumb { aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 20%, #2b2433, #121118 70%); display: grid; place-items: center; font-size: 3rem; position: relative; }
.gcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gcard .thumb .tag { position: absolute; right: 8px; top: 8px; font-size: .7rem; background: rgba(14, 13, 18, .75); }
.gcard .body { padding: 14px 16px 16px; }
.gcard h3 { font-size: 1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.gcard p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ------------------------------------------------------------ FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #cfcbdc; padding-bottom: 6px; }

.cta-band { text-align: center; background: linear-gradient(135deg, rgba(255, 180, 107, .14), rgba(255, 59, 78, .1)); border: 1px solid rgba(255, 122, 26, .3); border-radius: 22px; padding: 44px 20px; }
.cta-band .row { justify-content: center; }

/* ------------------------------------------------------------ paket */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 40px -24px rgba(255, 122, 26, .7); }
.plan header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price .price { font-size: 1.7rem; font-weight: 900; }
.plan-price .per { color: var(--muted); font-size: .9rem; }
.plan-cta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: .93rem; color: #d9d6e3; }
.checks li { padding-left: 24px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 900; }
.plans-cat { margin: 36px 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plans-cat h2 { font-size: 1.4rem; margin: 0; }
.plans-cat p { margin: 0; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--panel) 0, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 18px; min-height: 260px; border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare { min-width: 640px; }
.yes { color: var(--ok); font-weight: 800; } .no { color: #6d6a78; }

.pay-methods { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: .8rem; font-weight: 600; }

/* ------------------------------------------------------------ unduh */
.dl { display: flex; flex-direction: column; gap: 12px; }
.dl .big-ic { font-size: 2.6rem; }
.dl ol { margin: 0; padding-left: 20px; color: #cfcbdc; font-size: .93rem; }

/* ------------------------------------------------------------ form & auth */
.auth-wrap { display: grid; place-items: center; padding: 48px 0 72px; }
.auth { width: 100%; max-width: 440px; }
.auth h1 { font-size: 1.8rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: .9rem; }
.field small { color: var(--muted); font-size: .8rem; }
.input, select.input, textarea.input {
  width: 100%; background: #121118; color: var(--text); border: 1px solid var(--line); border-radius: 11px;
  padding: .72em .9em; font: inherit; font-size: .95rem; min-width: 0;
}
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 26, .2); }
.input:disabled { opacity: .6; }
.pw { position: relative; }
.pw .input { padding-right: 70px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 6px 8px; }
.form-msg { min-height: 1.2em; font-size: .9rem; margin: 4px 0 12px; }
.form-msg.err { color: var(--err); } .form-msg.ok { color: var(--ok); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.code-input { text-align: center; font-size: 1.5rem; letter-spacing: .5em; font-weight: 800; }
.auth-foot { margin-top: 16px; text-align: center; color: var(--muted); font-size: .92rem; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ------------------------------------------------------------ akun & admin */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 36px 0 20px; }
.page-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.profile { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.profile b { font-size: 1.15rem; display: block; }
.profile small { color: var(--muted); display: block; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; flex-wrap: wrap; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); }
.plan-now { display: flex; gap: 12px; align-items: center; margin: 6px 0 8px; }
.plan-now .ic { font-size: 1.8rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--panel-2); border-radius: 14px; }
.plan-now b { font-size: 1.2rem; }
.span-all { grid-column: 1 / -1; }
.orders { display: flex; flex-direction: column; gap: 10px; }
.order { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #16151c; }
.order.hl { border-color: var(--accent); }
.order .meta { color: var(--muted); font-size: .85rem; display: block; word-break: break-word; }
.order .main { min-width: 0; flex: 1 1 260px; }
.order .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.paynum { font-family: ui-monospace, Consolas, monospace; color: var(--text); font-weight: 700; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { max-width: 340px; flex: 1 1 200px; }
.groups { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.groups button { background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .83rem; font-weight: 700; cursor: pointer; }
.groups button.on { background: rgba(255, 122, 26, .16); color: var(--accent-2); border-color: rgba(255, 122, 26, .45); }
.groups em { font-style: normal; opacity: .75; margin-left: 4px; }
.users td .sub { color: var(--muted); font-size: .8rem; display: block; }
.users td.acts { white-space: nowrap; }
.users .btn { margin: 2px; }
.users { min-width: 860px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: 1.6rem; font-weight: 900; }
.stat small { color: var(--muted); }
.online-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; margin-top: 10px; }
.online-list div { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; padding: 6px 8px; border-radius: 8px; background: var(--panel-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 6px; }
.dot.on { background: var(--ok); }

/* ------------------------------------------------------------ modal & toast */
dialog.modal { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 18px; padding: 24px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow); }
dialog.modal.wide { width: min(720px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(5, 4, 8, .7); backdrop-filter: blur(3px); }
dialog.modal h2 { font-size: 1.3rem; padding-right: 30px; }
.modal-x { position: absolute; right: 14px; top: 14px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.boxed { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 14px; background: #16151c; }
#toasts { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { background: #2a2834; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .93rem; animation: tin .2s ease-out; }
.toast.ok { border-color: #1f5136; } .toast.err { border-color: #5a2630; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------ legal */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 0 72px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal p, .legal li { color: #d6d3df; }

/* ------------------------------------------------------------ footer */
#site-footer { border-top: 1px solid var(--line); background: #0b0a0f; padding: 44px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: #cfcbdc; font-size: .92rem; padding: 3px 0; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Integrasi donasi */
.don-list { margin-top: 12px; }
.don { border-top: 1px solid var(--line); }
.don-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.don-title { flex: 1; min-width: 0; }
.don-title b, .don-title small { display: block; }
.don-title small { color: var(--muted); font-size: .82rem; }
.don-logo { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem; }
.don-body { display: flex; flex-direction: column; gap: 10px; padding: 0 0 16px; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 12px; border-radius: 10px; background: var(--panel-2); font-size: .8rem; }
.don-logs { display: flex; flex-direction: column; gap: 12px; }
