@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #070b18;
  --card: #1b2436;
  --card-2: #151c2c;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --blue: #60a5fa;
  --amber: #fbbf24;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
}

button, input { font-family: inherit; }

.tp-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 28px 14px;
}

.tp-card {
  background: linear-gradient(180deg, #243044 0%, #1a2333 40px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  max-width: 440px;
  overflow: hidden;
  width: 100%;
}

.tp-head, .tp-foot {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
}

.tp-head { background: rgba(30, 41, 59, 0.55); }
.tp-foot {
  background: rgba(15, 23, 42, 0.45);
  border-top: 1px solid var(--line);
  color: #cbd5e1;
  font-size: 12px;
}

.tp-brand { align-items: center; display: flex; gap: 10px; }
.tp-brand img { height: 20px; width: auto; }
.tp-brand span {
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding-left: 10px;
  text-transform: uppercase;
}

.tp-langs { display: flex; gap: 6px; }
.tp-lang, .tp-timer {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
}
.tp-lang.is-on { background: #334155; color: #fff; }
.tp-timer {
  background: rgba(120, 53, 15, 0.55);
  color: #fbbf24;
  margin-left: 6px;
}

.tp-banner {
  background: linear-gradient(90deg, #2563eb, #4f46e5 55%, #7c3aed);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px 16px;
}
.tp-name { color: #bfdbfe; font-size: 11px; margin: 0 0 2px; }
.tp-try { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.tp-try small { color: #bfdbfe; font-size: 16px; font-weight: 400; margin-left: 6px; }
.tp-step { color: #bfdbfe; font-size: 10px; margin: 0 0 6px; text-align: right; }
.tp-bars { display: flex; gap: 4px; width: 74px; }
.tp-bars i {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  display: block;
  height: 4px;
  width: 22px;
}
.tp-bars i.is-on { background: #fff; }

.tp-jackpot { background: linear-gradient(90deg, #0f172a, #1e293b); border-bottom: 1px solid rgba(255,255,255,.06); }
.tp-jack-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  width: 100%;
}
.tp-live {
  background: rgba(34, 197, 94, 0.2);
  border-radius: 99px;
  color: #4ade80;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
}
.tp-live i {
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  margin-right: 4px;
  width: 6px;
}
.tp-slogan { color: #fcd34d; font-size: 11px; font-weight: 700; margin-left: 8px; }
.tp-jack-body { border-top: 1px solid rgba(255,255,255,.08); padding: 0 12px 10px; }
.tp-jack-body[hidden] { display: none; }
.tp-pools {
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  display: flex;
  margin-top: 8px;
  padding: 8px 4px;
}
.tp-pools div { flex: 1; text-align: center; }
.tp-pools p { margin: 0; }
.tp-pools .k { color: var(--muted); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }
.tp-pools .v { font-size: 12px; font-weight: 700; }
.tp-pools .grand { color: #fbbf24; }
.tp-pools .major { color: #34d399; }
.tp-pools .minor { color: #60a5fa; }
.tp-pools .mini { color: #a78bfa; }
.tp-rules { display: grid; gap: 4px 12px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.tp-rules p { color: #cbd5e1; font-size: 9px; margin: 0; }
.tp-rules b { color: #fbbf24; }

.tp-body { padding: 16px; }
.tp-label { color: #cbd5e1; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.tp-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.tp-grid:has(> :only-child) { margin: 0 auto; max-width: 210px; grid-template-columns: 1fr; }
.tp-coin {
  background: transparent;
  border: 2px solid #334155;
  border-radius: 14px;
  color: inherit;
  cursor: pointer;
  padding: 14px 10px;
  position: relative;
}
.tp-coin.is-on {
  background: rgba(23, 37, 84, 0.45);
  border-color: #3b82f6;
}
.tp-coin img { display: block; height: 42px; margin: 0 auto 8px; width: 42px; }
.tp-coin strong { display: block; font-size: 12px; }
.tp-coin span { color: var(--muted); font-size: 10px; }
.tp-coin .tick {
  align-items: center;
  background: #3b82f6;
  border-radius: 50%;
  color: #fff;
  display: none;
  font-size: 11px;
  height: 18px;
  justify-content: center;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 18px;
}
.tp-coin.is-on .tick { display: flex; }

.tp-actions { display: flex; gap: 10px; margin-top: 14px; }
.tp-go {
  background: linear-gradient(90deg, #2563eb, #4f46e5 50%, #7c3aed);
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
}
.tp-go:disabled { cursor: default; opacity: 0.55; }
.tp-x, .tp-cancel {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}
.tp-x { padding: 0 14px; }
.tp-cancel {
  background: transparent;
  display: block;
  margin-top: 10px;
  padding: 12px;
  text-align: center;
  width: 100%;
}

.tp-warn {
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 8px;
  padding: 10px 12px;
  text-align: center;
}
.tp-warn.red { background: rgba(127, 29, 29, 0.35); color: #fca5a5; }
.tp-warn.amber { background: rgba(120, 53, 15, 0.45); color: #fdba74; }

.tp-pay { display: flex; gap: 10px; margin-top: 8px; }
.tp-qr {
  background: #fff;
  border-radius: 12px;
  height: 112px;
  object-fit: contain;
  width: 112px;
}
.tp-qr-missing {
  align-items: center;
  background: #0f172a;
  border: 1px dashed #334155;
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  height: 112px;
  justify-content: center;
  text-align: center;
  width: 112px;
}
.tp-amount-box {
  background: #121a2b;
  border: 1px solid #334155;
  border-radius: 14px;
  flex: 1;
  padding: 12px;
}
.tp-amount-box p { color: var(--blue); font-size: 11px; letter-spacing: 0.04em; margin: 0 0 6px; }
.tp-amount-box strong { font-size: 22px; }
.tp-amount-box strong small { color: #cbd5e1; font-size: 14px; font-weight: 500; margin-left: 4px; }
.tp-net { align-items: center; display: flex; gap: 8px; margin-top: 8px; }
.tp-pill { background: #14532d; border-radius: 99px; color: #86efac; font-size: 11px; font-weight: 700; padding: 3px 8px; }
.tp-net em { color: #f87171; font-size: 11px; font-style: normal; font-weight: 600; }

.tp-addr { margin-top: 12px; }
.tp-addr-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 6px; }
.tp-addr-top span { color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }
.tp-copy {
  background: #2563eb;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
}
.tp-addr code {
  background: #121a2b;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #fff;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.tp-note { color: #cbd5e1; font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.tp-back {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 12px;
  color: #fff;
  display: block;
  font-weight: 600;
  padding: 12px;
  text-align: center;
  text-decoration: none;
}
.tp-lock { margin-right: 6px; }
.tp-mail { color: #cbd5e1; text-decoration: none; }
