:root {
  --bg: #070914;
  --panel: #11162a;
  --panel-2: #171d35;
  --text: #f7f8ff;
  --muted: #aab2cf;
  --line: rgba(255,255,255,.12);
  --brand: #f7c948;
  --brand-2: #ff8a3d;
  --danger: #ff5d6c;
  --success: #44d07b;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(247,201,72,.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(255,138,61,.15), transparent 24rem),
    var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 12px clamp(14px, 4vw, 42px);
  background: rgba(7,9,20,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.container { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 56px; }
.narrow { width: min(620px, calc(100% - 28px)); }

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .15s ease, border .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #191000; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 12px 30px rgba(247,201,72,.18); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.06); }
.btn-danger { background: var(--danger); color: white; }
.btn-large { min-height: 52px; padding-inline: 22px; }
.w-full { width: 100%; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.ad-slot { min-height: 0; width: 100%; margin: 12px 0; overflow: hidden; border-radius: 16px; }
.ad-header { margin-top: 0; }
.banner-slider { margin: 0 0 18px; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.banner-track { position: relative; aspect-ratio: 16 / 6; min-height: 120px; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 8px; }
.banner-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; opacity: .5; }
.banner-dots button.active { opacity: 1; background: var(--brand); }

.hero-card, .card, .auth-card, .result-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: clamp(28px, 7vw, 70px); }
.hero-card h1 { font-size: clamp(2rem, 8vw, 4.7rem); line-height: .95; margin: 12px 0 16px; letter-spacing: -.07em; max-width: 860px; }
.hero-card p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 720px; }
.eyebrow { display: inline-flex; color: var(--brand); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.grid { display: grid; gap: 18px; margin-top: 18px; }
.two-col { grid-template-columns: 1fr 1fr; }
.card { padding: 22px; }
.card h1, .card h2, .auth-card h1 { margin-top: 0; letter-spacing: -.04em; }
.check-list { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.check-list li::before { content: '✓'; color: var(--success); font-weight: 900; margin-right: 10px; }

.auth-shell { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 24px 14px 60px; }
.auth-card { width: min(440px, 100%); padding: 26px; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}
select option { background: #11162a; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: rgba(247,201,72,.8); box-shadow: 0 0 0 4px rgba(247,201,72,.1); }
.alert { padding: 13px 14px; border-radius: 16px; margin: 12px 0; line-height: 1.5; }
.alert-error { background: rgba(255,93,108,.12); border: 1px solid rgba(255,93,108,.3); }
.alert-success { background: rgba(68,208,123,.12); border: 1px solid rgba(68,208,123,.3); }

.price-box { display: flex; align-items: baseline; gap: 6px; padding: 18px; border-radius: 18px; background: rgba(247,201,72,.1); margin: 16px 0; }
.price-box strong { font-size: 2.5rem; letter-spacing: -.05em; }
.mini-info { color: var(--muted); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 12px; overflow-x: auto; }
.badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(247,201,72,.13); color: var(--brand); font-weight: 900; font-size: .82rem; }

.premium-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 18px; align-items: start; }
.result-panel { display: grid; gap: 12px; }
.result-card pre { white-space: pre-wrap; word-break: break-word; padding: 16px; border-radius: 16px; background: #060812; border: 1px solid var(--line); line-height: 1.55; font-size: .95rem; }
.debug-box { margin-top: 12px; color: var(--muted); }
.muted-card { color: var(--muted); }

.sidebar { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.sidebar.open { opacity: 1; pointer-events: auto; }
.sidebar-panel { position: absolute; top: 0; right: 0; width: min(360px, 86vw); height: 100%; padding: 18px; background: #0d1224; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 12px; transform: translateX(100%); transition: transform .2s ease; }
.sidebar.open .sidebar-panel { transform: translateX(0); }
.sidebar-panel a, .sidebar-panel form { display: block; }
.sidebar-panel a { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.sidebar-close { margin-left: auto; background: transparent; color: white; border: 0; font-size: 2rem; }
.profile-card, .countdown-card { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); }
.profile-card span, .countdown-card span, .countdown-card small { color: var(--muted); }

.admin-shell { width: min(1280px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 60px; display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 18px; }
.admin-nav { position: sticky; top: 86px; align-self: start; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--panel); }
.admin-nav a, .admin-nav button { text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; width: 100%; }
.admin-content { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.04); padding: 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat-card { padding: 18px; border-radius: 18px; background: rgba(255,255,255,.06); display: grid; gap: 6px; }
.stat-card span { color: var(--muted); }
.stat-card strong { font-size: 2rem; }
.wide-form h2 { margin: 16px 0 0; color: var(--brand); }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 14px 0; }
.inline-form.compact input { width: 90px; padding: 9px; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--brand); }
.actions-cell, .actions-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions-cell button, .actions-row button, .inline-form button { border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.danger-link { color: var(--danger) !important; }
.banner-admin-list { display: grid; gap: 12px; margin-top: 16px; }
.banner-admin-card { display: grid; grid-template-columns: 180px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 12px; background: rgba(255,255,255,.04); }
.banner-admin-card img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 12px; }

.site-footer { text-align: center; color: var(--muted); padding: 24px 14px 40px; border-top: 1px solid var(--line); }
code { color: var(--brand); }

@media (max-width: 860px) {
  .two-col, .premium-layout, .admin-shell, .stats-grid { grid-template-columns: 1fr; }
  .admin-nav { position: static; }
  .hero-actions .btn, .header-actions .btn { flex: 1; }
  .site-header { padding-inline: 12px; }
  .brand span:last-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-card { padding: 26px 20px; }
  .banner-track { aspect-ratio: 16 / 8; }
  .banner-admin-card { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; align-items: stretch; }
}

.custom-created-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(68,208,123,.35);
  background: rgba(68,208,123,.1);
  border-radius: 18px;
  padding: 16px;
  margin: 16px 0;
}
.copy-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.copy-grid input { font-size: .92rem; }
.payment-summary { display: grid; gap: 10px; margin: 16px 0; }
.payment-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.payment-row span { color: var(--muted); }
.payment-row strong { text-align: right; }
.qris-panel { text-align: center; display: grid; gap: 14px; }
.qris-placeholder { border: 1px dashed rgba(247,201,72,.45); border-radius: 22px; padding: 22px; background: rgba(247,201,72,.07); }
.custom-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.custom-form-grid .full-span { grid-column: 1 / -1; }
.status-paid { color: var(--success); }
.status-failed, .status-expired, .status-cancelled { color: var(--danger); }
@media (max-width: 860px) {
  .copy-grid, .custom-form-grid { grid-template-columns: 1fr; }
  .custom-form-grid .full-span { grid-column: auto; }
  .payment-row { display: grid; }
  .payment-row strong { text-align: left; }
}

.section-heading { margin: 28px 0 14px; }
.section-heading h2 { margin: 8px 0 6px; font-size: clamp(1.6rem, 5vw, 2.5rem); letter-spacing: -.05em; }
.section-heading p { color: var(--muted); max-width: 760px; line-height: 1.6; }
.pricing-preview { margin-top: 18px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.pricing-grid.compact-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pricing-card { position: relative; display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); overflow: hidden; }
.pricing-card.featured { border-color: rgba(247,201,72,.65); box-shadow: 0 22px 70px rgba(247,201,72,.11); }
.pricing-card.compact { min-height: 230px; }
.pricing-card h2, .pricing-card h3 { margin: 0; letter-spacing: -.04em; }
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.plan-badge { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(247,201,72,.13); color: var(--brand); font-weight: 900; font-size: .82rem; white-space: nowrap; }
.tone-gold { background: rgba(247,201,72,.17); color: #ffd86b; }
.tone-purple { background: rgba(168,85,247,.18); color: #d8b4fe; }
.tone-green { background: rgba(68,208,123,.16); color: #76f0a2; }
.tone-cyan { background: rgba(34,211,238,.16); color: #80f4ff; }
.tone-orange { background: rgba(255,138,61,.17); color: #ffb077; }
.ribbon { position: absolute; top: 12px; right: -34px; transform: rotate(35deg); width: 142px; text-align: center; padding: 5px 8px; color: #1d1300; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: .72rem; font-weight: 950; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.compact-price { margin: 0; }
.compact-price strong { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.marketing-text { color: var(--brand); font-weight: 900; line-height: 1.45; margin: 0; }
.home-price { font-size: 1.35rem; letter-spacing: -.03em; }
.promo-strip { display: grid; gap: 4px; border: 1px solid rgba(247,201,72,.32); background: rgba(247,201,72,.08); border-radius: 18px; padding: 14px; margin-top: 12px; }
.promo-strip span { color: var(--muted); }
.lifetime-strip { border-color: rgba(168,85,247,.32); background: rgba(168,85,247,.08); }
.access-card { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(255,255,255,.055); margin: 12px 0 16px; }
.access-card small { color: var(--muted); }
.plan-admin-grid { display: grid; gap: 16px; }
.plan-admin-card { box-shadow: none; }
.plan-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.checkbox-line { display: flex !important; grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: center; gap: 10px !important; color: var(--text) !important; }
.checkbox-line input { width: auto; }
@media (max-width: 1100px) {
  .pricing-grid, .pricing-grid.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pricing-grid, .pricing-grid.compact-grid { grid-template-columns: 1fr; }
  .pricing-card.compact { min-height: auto; }
  .plan-badge { white-space: normal; }
}

.header-link {
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.header-link:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.045); }
.wa-link { color: #76f0a2; }
.footer-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 12px; }
.footer-links a { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.floating-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 75;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #44d07b, #22c55e);
  color: white;
  box-shadow: 0 18px 45px rgba(34,197,94,.28);
  font-size: 1.5rem;
}
.content-page { display: grid; gap: 16px; }
.rich-text {
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--text);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.content-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.info-links-grid { margin-top: 18px; }
.guest-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guest-checkout-form { margin-top: 8px; }
.guest-checkout-form label { font-size: .9rem; }

@media (max-width: 1120px) {
  .header-link { display: none; }
}
@media (max-width: 640px) {
  .floating-wa { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .content-actions .btn { width: 100%; }
  .guest-pricing-grid { grid-template-columns: 1fr; }
}

.section-filter {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.admin-content .btn {
  min-height: 38px;
  padding: 8px 13px;
}
.actions-cell form { margin: 0; }
.actions-cell .inline-form.compact { margin: 0; flex-direction: row; }
.actions-cell .inline-form.compact input { width: 76px; }
@media (max-width: 860px) {
  .actions-cell, .actions-cell .inline-form.compact { flex-direction: column; align-items: stretch; }
  .actions-cell .inline-form.compact input { width: 100%; }
}
