/* MTOKO design tokens + shared components (taken from the Figma design) */
:root {
  --green: #80b746;
  --green-dark: #6a9c36;
  --green-soft: rgba(128, 183, 70, .14);
  --black: #000;
  --surface: #0d0d0d;
  --surface-2: #161616;
  --surface-3: #1f1f1f;
  --line: #2a2a2a;
  --white: #fff;
  --text: #fff;
  --muted: #8a8a8a;
  --dim: #5c5c5c;
  --card-gray: #d5d8de;
  --card-gray-line: #b9bcc2;
  --blue: #1d8cd8;
  --red: #e5383b;
  --amber: #f5a524;
  --radius: 14px;
  --pill: 999px;
  --font: 'Montserrat', 'Gotham', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--black); color: var(--text); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.green { color: var(--green); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

/* Section heading: "Upcoming events / in October" */
.sec-title { font-weight: 700; font-size: 15px; line-height: 1.15; margin: 0; }
.sec-title span { display: block; color: var(--green); }
.view-all { font-size: 11px; color: var(--white); display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; }
.view-all b { font-weight: 700; }

/* Pill buttons (View Event / Buy Ticket / Confirm / Cart) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--pill); background: var(--green); color: #000; font-weight: 600; font-size: 13px; padding: 8px 18px; line-height: 1; transition: background .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: #8fc556; }
.btn:active { transform: translateY(1px); }
.btn.sm { font-size: 11px; padding: 5px 12px; }
.btn.xs { font-size: 10px; padding: 4px 9px; }
.btn.lg { font-size: 15px; padding: 11px 26px; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.dark { background: var(--surface-3); color: var(--white); }
.btn.dark:hover { background: #2a2a2a; }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { background: #f04e51; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.icon { padding: 7px; }

/* Price chip "(10,000tsh)" — outlined pill */
.chip { display: inline-flex; align-items: center; border: 1.2px solid var(--white); border-radius: var(--pill); padding: 2px 10px; font-size: 11px; }

/* Round +/- stepper */
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--green); color: #000; display: grid; place-items: center; padding: 0; }
.stepper span { min-width: 10px; text-align: center; font-size: 12px; }

/* Green category badge (circle icon above a label) */
.cat-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--white); }
.cat-badge i { width: 46px; height: 46px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 0 0 3px #fff inset, 0 0 0 0 #000; color: #1b2a0d; }
.cat-badge.lg i { width: 64px; height: 64px; box-shadow: 0 0 0 4px #fff inset; }

/* Rating stars */
.stars { display: inline-flex; gap: 1px; color: var(--amber); }
.stars .ic { fill: currentColor; stroke: none; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--white); }

/* Info rows: icon + text (END: 15:30pm / date / location) */
.info { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--white); }
.info .ic { color: var(--white); }
.info.loc { color: var(--dim); }
.info.loc .ic { color: var(--green); }

/* Light-gray payment card with radio rows */
.pay-card { background: var(--card-gray); color: #111; border-radius: 22px; padding: 10px 22px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--card-gray-line); font-size: 14px; cursor: pointer; }
.pay-row:last-child { border-bottom: 0; }
.radio { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.radio.on::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }

/* Pill inputs from the sign-up screen */
.field { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--green); border-radius: 16px; padding: 0 16px; height: 46px; color: #333; }
.field .ic { color: var(--green); }
.field input, .field select, .field textarea { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font: inherit; font-size: 14px; color: #222; height: 100%; }
.field input::placeholder { color: #9a9a9a; }
.field:focus-within { box-shadow: 0 0 0 3px var(--green-soft); }

/* Badges ("New" blue pill from menu drawer) */
.badge { display: inline-flex; align-items: center; border-radius: var(--pill); font-size: 10px; font-weight: 600; padding: 3px 9px; line-height: 1.2; }
.badge.new { background: var(--blue); color: #fff; }
.badge.paid, .badge.published, .badge.active, .badge.available, .badge.now, .badge.visible { background: var(--green-soft); color: var(--green); }
.badge.unpaid, .badge.draft, .badge.soon { background: rgba(245, 165, 36, .14); color: var(--amber); }
.badge.cancelled, .badge.blocked, .badge.inactive, .badge.sold-out, .badge.hidden { background: rgba(229, 56, 59, .14); color: #ff6b6e; }
.badge.organizer { background: rgba(29, 140, 216, .16); color: #5bb3f0; }
.badge.customer { background: var(--surface-3); color: var(--muted); }
.badge.admin { background: var(--green); color: #000; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 6px; }
.logo img { height: 30px; width: auto; }
.logo b { font-weight: 800; font-size: 20px; letter-spacing: .5px; line-height: 1; }
.logo small { display: block; font-size: 6px; letter-spacing: 3px; color: var(--muted); margin-top: 2px; }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--green); color: #000; font-weight: 600; font-size: 13px; padding: 10px 18px; border-radius: var(--pill); box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: toastIn .25s ease; }
.toast.err { background: var(--red); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2b2b2b; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
