:root {
  --yellow: #f8d848;
  --gold: #ffd700;
  --ink: #101010;
  --muted: #706f69;
  --line: #e7e0cc;
  --paper: #fffdf5;
  --soft: #f5f0df;
  --green: #b7e117;
  --red: #e60026;
  --blue: #1a1aff;
  --radius: 18px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: #efede6;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
button, input { font: inherit; }
button { cursor: pointer; }

.splash {
  align-items: center;
  background: var(--yellow);
  display: grid;
  inset: 0;
  justify-items: center;
  position: fixed;
  z-index: 50;
  transition: opacity .35s ease, visibility .35s ease;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash p { font-weight: 900; margin-top: 20px; }

.zongo-logo {
  align-items: flex-end;
  display: flex;
  gap: 4px;
}
.zongo-logo span {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  height: 50px;
  justify-content: space-between;
  padding: 4px;
  width: 23px;
}
.zongo-logo b, .zongo-logo i {
  align-items: center;
  background: #101010;
  border-radius: 50%;
  color: var(--yellow);
  display: flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  height: 16px;
  justify-content: center;
  width: 16px;
}
.zongo-logo i { visibility: hidden; }
.zongo-logo.big { animation: logoPop .8s cubic-bezier(.2,.8,.2,1) both; transform: scale(2.2); }
.zongo-logo.big span { animation: logoBounce 1.2s ease-in-out infinite alternate; }
.zongo-logo.big span:nth-child(2) { animation-delay: .08s; }
.zongo-logo.big span:nth-child(3) { animation-delay: .16s; }
.zongo-logo.big span:nth-child(4) { animation-delay: .24s; }
@keyframes logoPop { from { opacity: 0; transform: scale(1.4) translateY(18px); } to { opacity: 1; transform: scale(2.2) translateY(0); } }
@keyframes logoBounce { from { transform: translateY(0); } to { transform: translateY(-8px); } }

.app-shell {
  margin: 0 auto;
  max-width: 980px;
  min-height: 100vh;
  padding: 18px clamp(14px, 3vw, 26px) 96px;
}
.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.icon-btn, .profile-dot {
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  color: #111;
  font-weight: 950;
  height: 44px;
  width: 44px;
}
.icon-btn { font-size: 28px; line-height: 1; }
.profile-dot { font-size: 12px; }

.hero {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 28px 0 18px;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(30px, 6vw, 58px);
  letter-spacing: 0;
  line-height: .98;
  margin: 0;
  max-width: 680px;
}
.wallet-pill {
  background: #101010;
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-weight: 900;
  padding: 12px 16px;
}

.section-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  margin: 18px 0;
}
.tab {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  padding: 12px 8px;
}
.tab.active {
  background: #101010;
  border-color: #101010;
  color: #fff;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  padding: 16px;
}
.action-card {
  border: 0;
  color: #fff;
  min-height: 150px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}
.action-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}
.action-card::after {
  background: var(--overlay, rgba(0,0,0,.45));
  content: "";
  inset: 0;
  position: absolute;
}
.action-content {
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: flex-end;
  padding: 16px;
  position: absolute;
  z-index: 1;
}
.action-content strong { font-size: 22px; font-weight: 950; }
.action-content span { font-size: 13px; font-weight: 800; margin-top: 4px; }

.network-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}
.network-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 14px;
}
.network-tab.active { background: var(--gold); border-color: var(--gold); }
.bundle-list { display: grid; gap: 10px; }
.bundle-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  padding: 14px;
  text-align: left;
  width: 100%;
}
.bundle-card[disabled] { opacity: .52; }
.gb { font-size: 22px; font-weight: 950; }
.price { color: #1b7f5a; font-weight: 950; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.45; }

.primary, .ghost {
  border: 0;
  border-radius: 999px;
  font-weight: 950;
  min-height: 48px;
  padding: 13px 16px;
  width: 100%;
}
.primary { background: var(--gold); color: #111; }
.ghost { background: transparent; color: var(--muted); }
.input {
  background: #fff;
  border: 1px solid #d9d2bd;
  border-radius: 15px;
  color: #111;
  margin-bottom: 12px;
  outline: 0;
  padding: 14px;
  width: 100%;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,215,0,.18); }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin: 10px 0 6px;
}

.sheet-backdrop {
  background: rgba(0,0,0,.42);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .25s ease;
  z-index: 20;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.bottom-sheet {
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  bottom: 0;
  box-shadow: 0 -20px 40px rgba(0,0,0,.2);
  left: 50%;
  max-width: 520px;
  padding: 12px 18px 26px;
  position: fixed;
  transform: translate(-50%, 105%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  width: 100%;
  z-index: 21;
}
.bottom-sheet.show { transform: translate(-50%, 0); }
.sheet-handle {
  background: #d8cfb7;
  border-radius: 999px;
  height: 5px;
  margin: 0 auto 14px;
  width: 54px;
}
.bottom-sheet h2 { margin: 4px 0; }
.segmented {
  background: #eee6d2;
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 6px 0 14px;
  padding: 4px;
}
.segment {
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  padding: 10px;
}
.segment.active { background: #fff; }

.auth-dialog {
  border: 0;
  border-radius: 24px;
  max-width: 430px;
  padding: 0;
  width: calc(100% - 28px);
}
.auth-dialog::backdrop { background: rgba(0,0,0,.5); }
.auth-card { padding: 18px; position: relative; }
.close-x {
  background: #f0ead8;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  height: 36px;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
}
.auth-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin: 34px 0 16px;
}
.auth-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  padding: 11px;
}
.auth-tab.active { background: #101010; border-color: #101010; color: #fff; }

.row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.history-item {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.history-item:last-child { border-bottom: 0; }
.status {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}
.status.success { background: #eafff1; color: #14794d; }
.status.failed { background: #fff0ec; color: #d44920; }
.status.pending { background: #fff8d9; color: #8b6100; }

.whatsapp {
  background: #25d366;
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  color: #05180c;
  font-size: 13px;
  font-weight: 950;
  padding: 13px 16px;
  position: fixed;
  right: 16px;
  text-decoration: none;
  z-index: 10;
}
.toast {
  background: #111;
  border-radius: 16px;
  bottom: 18px;
  color: #fff;
  font-weight: 800;
  left: 50%;
  max-width: 420px;
  opacity: 0;
  padding: 13px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 20px);
  transition: opacity .25s, transform .25s;
  width: calc(100% - 32px);
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .hero { align-items: start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .section-tabs { bottom: 0; left: 0; margin: 0; padding: 10px; position: fixed; right: 0; z-index: 8; background: rgba(239,237,230,.94); backdrop-filter: blur(10px); }
  .tab { font-size: 12px; padding: 10px 4px; }
}
