:root {
  --bg: #070b12;
  --bg2: #0c1220;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eef7;
  --muted: #9aa7bd;
  --accent: #2dd4bf;
  --accent2: #38bdf8;
  --danger: #fb7185;
  --ok: #4ade80;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(45, 212, 191, 0.12), transparent),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 189, 248, 0.12), transparent), var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 11, 18, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  flex-wrap: wrap;
  row-gap: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
}

.brand-text {
  white-space: nowrap;
}

.brand-mark-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.15);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-left: 4px;
}

.nav-link {
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link.nav-user {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-wa {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 4px;
}

.header-wa .wa {
  font-weight: 600;
}

.nav-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-xs {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.wa {
  color: var(--accent);
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 22px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.section {
  padding: 56px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.kicker {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  color: #041016;
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.input,
select,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
}

label span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.form {
  display: grid;
  gap: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge.ok {
  border-color: rgba(74, 222, 128, 0.35);
  color: var(--ok);
}

.badge.bad {
  border-color: rgba(251, 113, 133, 0.35);
  color: var(--danger);
}

.notice {
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.08);
  padding: 14px;
  border-radius: var(--radius);
}

.receipt {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.receipt-row:last-child {
  border-bottom: 0;
}

.receipt-row .label {
  color: var(--muted);
  flex-shrink: 0;
}

.receipt-row .value {
  font-weight: 600;
  text-align: right;
}

.receipt-total .value {
  font-size: 1.25rem;
  font-weight: 700;
}

.receipt-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ok);
}

.statement-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    width: 100%;
    margin: 0;
    padding: 10px 0 0;
  }
  .nav-links.open {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .header-wa {
    margin-left: 0;
    font-size: 0.6875rem;
  }
  .nav-auth {
    width: auto;
    margin-left: auto;
  }
}

.checkout-prepare {
  padding: 22px 8px 18px;
  text-align: center;
}

.checkout-prepare-bar {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  max-width: 220px;
  margin: 0 auto 16px;
  animation: checkout-prepare-pulse 1.1s ease-in-out infinite;
}

.checkout-prepare-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@keyframes checkout-prepare-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.footer-support {
  padding: 16px 0 10px;
  max-width: 72ch;
}

.footer-support-line {
  margin: 0 0 0.25rem;
  line-height: 1.55;
}

.footer-support-sub {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.footer-support-compact {
  padding: 14px 0 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.nowrap {
  white-space: nowrap;
}

.header-wa .wa {
  font-weight: 600;
}
