:root {
  --bg: #05070d;
  --bg-soft: #0b1019;
  --panel: #0f1522;
  --panel-2: #111827;
  --panel-3: #131d2c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(84, 255, 112, 0.22);

  --text: #f8fafc;
  --text-soft: #b7c0cf;
  --text-muted: #8c96a8;

  --green: #39ff63;
  --green-2: #1fd14f;
  --green-dark: #0d7d2f;
  --purple: #7c3aed;
  --purple-2: #9333ea;
  --blue: #2563eb;
  --orange: #f59e0b;
  --red: #ef4444;

  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 10px;

  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.22s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top center, rgba(57, 255, 99, 0.08), transparent 26%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.12), transparent 30%),
    linear-gradient(180deg, #06080f 0%, #03050a 100%);
  color: var(--text);
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
}

input {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.mobile-app-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 14px 12px 92px;
  position: relative;
}

.mobile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 19px;
  display: grid;
  place-items: center;
  position: relative;
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 15%, rgba(57, 255, 99, 0.9), transparent 35%),
    linear-gradient(135deg, #0d121d, #172133);
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  border: 1px solid rgba(57, 255, 99, 0.25);
  box-shadow: 0 8px 20px rgba(57, 255, 99, 0.12);
}

.brand-title-wrap h1 {
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #8dff69;
}

.brand-title-wrap span {
  font-size: 10px;
  color: var(--text-muted);
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #101827, #0b1220);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.wallet-pill span {
  font-size: 13px;
  font-weight: 600;
}

.wallet-icon,
.wallet-plus {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(57, 255, 99, 0.14);
}

.wallet-plus {
  background: linear-gradient(180deg, #39ff63, #18c548);
  color: #07210d;
  font-weight: 800;
}

.notify-btn {
  font-size: 17px;
}

.notify-dot {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff2d55;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #05070d;
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-banner,
.section-block,
.quick-actions,
.invite-banner,
.auth-panel {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 15, 24, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.promo-banner {
  border-radius: 24px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 38%, rgba(57, 255, 99, 0.14), transparent 26%),
    radial-gradient(circle at 20% 15%, rgba(57, 255, 99, 0.08), transparent 22%),
    radial-gradient(circle at 88% 82%, rgba(57, 255, 99, 0.08), transparent 28%);
  pointer-events: none;
}

.promo-copy {
  position: relative;
  z-index: 2;
  width: 56%;
}

.promo-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(57, 255, 99, 0.12);
  border: 1px solid rgba(57, 255, 99, 0.2);
  color: #88ff7d;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}

.promo-copy h2 {
  font-size: 22px;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 12px;
}

.promo-copy h2 span {
  color: var(--green);
}

.promo-copy p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.primary-cta,
.play-btn,
.app-primary-btn {
  border-radius: 12px;
  background: linear-gradient(180deg, #2bff61, #14c848);
  color: #04110a;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(57, 255, 99, 0.2);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.primary-cta {
  min-width: 124px;
  min-height: 46px;
  padding: 0 18px;
  font-size: 15px;
}

.primary-cta:hover,
.play-btn:hover,
.app-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(57, 255, 99, 0.24);
}

.promo-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 56%;
  height: 100%;
  pointer-events: none;
}

.trophy-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  right: 6px;
  top: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(57, 255, 99, 0.16) 0%, rgba(57, 255, 99, 0.08) 32%, transparent 68%);
  filter: blur(3px);
}

.trophy-cup {
  position: absolute;
  right: 68px;
  top: 72px;
  width: 116px;
  height: 116px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(57, 255, 99, 0.28), transparent 35%),
    linear-gradient(180deg, #162317, #0a150d);
  border: 1px solid rgba(57, 255, 99, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  font-size: 58px;
}

.floating-card,
.floating-dice,
.coin {
  position: absolute;
  display: grid;
  place-items: center;
}

.floating-card {
  width: 54px;
  height: 72px;
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
  font-size: 24px;
  font-weight: 800;
}

.card-a {
  right: 154px;
  top: 118px;
  transform: rotate(-18deg);
}

.card-b {
  right: 18px;
  top: 110px;
  transform: rotate(14deg);
}

.floating-dice {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1f2937, #0f172a);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
  font-size: 30px;
}

.dice-a {
  right: 136px;
  bottom: 48px;
  transform: rotate(-12deg);
}

.dice-b {
  right: 34px;
  bottom: 40px;
  transform: rotate(12deg);
}

.coin {
  font-size: 20px;
  animation: floatCoin 3.2s ease-in-out infinite;
}

.coin-1 {
  right: 34px;
  top: 46px;
}

.coin-2 {
  right: 160px;
  top: 50px;
  animation-delay: 0.6s;
}

.coin-3 {
  right: 88px;
  bottom: 22px;
  animation-delay: 1.2s;
}

@keyframes floatCoin {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(8deg);
  }
}

.promo-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.promo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.promo-dots span.active {
  width: 24px;
  background: var(--green);
}

.quick-actions {
  border-radius: 22px;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-card {
  min-height: 122px;
  border-radius: 16px;
  padding: 12px 10px;
  color: #fff;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-card:last-child {
  border-right: none;
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 4px;
  box-shadow: var(--shadow-md);
}

.quick-icon.green {
  background: linear-gradient(180deg, #0d9b31, #0a6d22);
}

.quick-icon.purple {
  background: linear-gradient(180deg, #9333ea, #6d28d9);
}

.quick-icon.blue {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.quick-icon.orange {
  background: linear-gradient(180deg, #f59e0b, #ea580c);
}

.quick-card strong {
  font-size: 14px;
  font-weight: 600;
}

.quick-card small {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}

.section-block {
  border-radius: 20px;
  padding: 14px 14px 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h3 {
  font-size: 17px;
  font-weight: 700;
}

.view-all-btn {
  color: #6dff7d;
  font-size: 14px;
  font-weight: 600;
}

.games-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.games-scroll::-webkit-scrollbar {
  display: none;
}

.game-app-card {
  min-width: 118px;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, #121a2a, #0d1321);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-thumb {
  height: 104px;
  border-radius: 14px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  font-size: 44px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.purple-thumb {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #381058, #15051f);
}

.orange-thumb {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #4a2204, #121720);
}

.blue-thumb {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #0f2d67, #121720);
}

.violet-thumb {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #381058, #121720);
}

.game-app-card h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.game-app-card p {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
  min-height: 31px;
  margin-bottom: 10px;
}

.play-btn {
  width: 100%;
  min-height: 38px;
  font-size: 14px;
  border-radius: 10px;
}

.winners-block {
  padding-top: 12px;
}

.winner-list {
  display: flex;
  flex-direction: column;
}

.winner-row {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.8fr;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.winner-row:last-child {
  border-bottom: none;
}

.winner-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.winner-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #263341, #0f172a);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.winner-user span {
  font-size: 14px;
  color: #dbe3ef;
}

.winner-status {
  color: #56f672;
  font-size: 14px;
}

.winner-row strong {
  color: #56f672;
  text-align: right;
  font-size: 14px;
}

.invite-banner {
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  background:
    radial-gradient(circle at left center, rgba(124, 58, 237, 0.22), transparent 30%),
    linear-gradient(90deg, #251037, #101522);
}

.invite-gift {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #4c1d95, #2e1065);
  font-size: 34px;
}

.invite-copy h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.invite-copy p {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}

.invite-btn {
  min-width: 110px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #7c3aed, #6d28d9);
  color: #fff;
  font-weight: 700;
}

.auth-panel {
  border-radius: 20px;
  padding: 16px 14px;
}

.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-toggle button {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: #fff;
  background: #111827;
  font-weight: 600;
}

.auth-toggle button.active {
  background: linear-gradient(180deg, #2bff61, #14c848);
  color: #06140b;
  border-color: transparent;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1320;
  color: #fff;
}

.form-group input:focus {
  border-color: rgba(57, 255, 99, 0.36);
  box-shadow: 0 0 0 3px rgba(57, 255, 99, 0.08);
}

.app-primary-btn {
  width: 100%;
  min-height: 46px;
  font-size: 15px;
  border-radius: 12px;
}

.auth-message {
  min-height: 42px;
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
}

.auth-message.success {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}

.auth-message.error {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  min-height: 74px;
  background: rgba(10, 15, 24, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px 10px;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #98a2b3;
  border-radius: 12px;
}

.nav-item span {
  font-size: 20px;
}

.nav-item small {
  font-size: 11px;
}

.nav-item.active {
  color: var(--green);
}

.nav-item.active::after {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  margin-top: 1px;
}

@media (max-width: 390px) {
  .promo-copy {
    width: 60%;
  }

  .promo-copy h2 {
    font-size: 20px;
  }

  .brand-title-wrap h1 {
    font-size: 14px;
  }

  .wallet-pill span {
    font-size: 12px;
  }

  .invite-banner {
    grid-template-columns: 54px 1fr;
  }

  .invite-btn {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
  }
}

/* ===== COLOR PREDICTION PAGE ===== */

.color-page-shell {
  max-width: 430px;
}

.color-topbar .icon-btn:first-child {
  font-size: 26px;
  line-height: 1;
}

.compact-head {
  margin-bottom: -4px;
}

.compact-head h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.prediction-panel,
.bet-panel,
.multiplier-panel,
.history-panel,
.predict-section {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 15, 24, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
}

.period-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.muted-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.period-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.period-row strong {
  font-size: 15px;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.copy-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(57, 255, 99, 0.08);
  border: 1px solid rgba(57, 255, 99, 0.18);
  color: #71ff81;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.timer-box {
  text-align: right;
}

.timer-box strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.result-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recent-dots {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.dot.lg {
  width: 18px;
  height: 18px;
}

.dot.orange {
  background: linear-gradient(180deg, #ff8c1a, #ff6a00);
  box-shadow: 0 0 14px rgba(255, 115, 0, 0.28);
}

.dot.white {
  background: linear-gradient(180deg, #ffffff, #e5e7eb);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.15);
}

.dot.green {
  background: linear-gradient(180deg, #42ff74, #0fcf41);
  box-shadow: 0 0 14px rgba(57, 255, 99, 0.28);
}

.predict-section h4,
.section-mini-head {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 16px;
}

.predict-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.predict-color-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.predict-orb {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  position: relative;
  display: block;
}

.predict-color-card.orange .predict-orb {
  background: radial-gradient(circle at 30% 30%, #ffb347, #ff6a00 70%);
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(255, 106, 0, 0.3);
}

.predict-color-card.white .predict-orb {
  background: radial-gradient(circle at 30% 30%, #ffffff, #d1d5db 70%);
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.4),
    0 0 24px rgba(255, 255, 255, 0.18);
}

.predict-color-card.green .predict-orb {
  background: radial-gradient(circle at 30% 30%, #71ff81, #10c943 70%);
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(57, 255, 99, 0.32);
}

.predict-orb::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.predict-label {
  min-width: 86px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.predict-color-card.orange .predict-label {
  background: linear-gradient(180deg, #ff8d1b, #ff6a00);
  color: #fff;
}

.predict-color-card.white .predict-label {
  background: linear-gradient(180deg, #ffffff, #e5e7eb);
  color: #111827;
}

.predict-color-card.green .predict-label {
  background: linear-gradient(180deg, #2fff63, #11c845);
  color: #06200c;
}

.predict-color-card.active .predict-orb {
  transform: scale(1.05);
}

.bet-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.available-balance {
  font-size: 13px;
  color: var(--text-soft);
}

.available-balance strong {
  color: #56f672;
}

.bet-controls {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.amount-input-wrap {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 12px;
  background: #0d1320;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.amount-input-wrap span {
  font-size: 20px;
  color: #ffffff;
}

.amount-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
}

.amount-chip {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(57, 255, 99, 0.2);
  background: rgba(57, 255, 99, 0.05);
  color: #56f672;
  font-weight: 700;
  font-size: 14px;
}

.amount-chip.dark {
  background: #131b28;
  color: #d9e1ee;
  border-color: rgba(255, 255, 255, 0.08);
}

.multiplier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.multiplier-box {
  text-align: center;
  padding: 8px 6px;
  position: relative;
}

.multiplier-box:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 16%;
  width: 1px;
  height: 68%;
  background: rgba(255, 255, 255, 0.08);
}

.multiplier-box small {
  display: block;
  font-size: 14px;
  color: #dbe3ef;
  margin: 8px 0 6px;
}

.multiplier-box strong {
  font-size: 20px;
  font-weight: 800;
}

.multiplier-box:nth-child(1) strong {
  color: #ff8d1b;
}

.multiplier-box:nth-child(2) strong {
  color: #ffffff;
}

.multiplier-box:nth-child(3) strong {
  color: #2fff63;
}

.place-bet-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2bff61, #14c848);
  color: #04110a;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(57, 255, 99, 0.2);
}

.secure-line {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #9fb0c5;
}

.secure-line.success {
  color: #86efac;
}

.secure-line.warning {
  color: #fbbf24;
}

.small-section-head {
  margin-bottom: 12px;
}

.recent-result-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}

.result-ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.result-ball-wrap small {
  color: #8c96a8;
  font-size: 12px;
}

.history-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-tab {
  min-height: 44px;
  color: #8c96a8;
  font-weight: 600;
  position: relative;
}

.history-tab.active {
  color: #56f672;
}

.history-tab.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: #2fff63;
}

.history-table-wrap {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}

.history-table th,
.history-table td {
  padding: 12px 8px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table th {
  color: #94a3b8;
  font-weight: 500;
}

.history-table td {
  color: #e5edf8;
}

.won-text {
  color: #56f672 !important;
  font-weight: 600;
}

.lost-text {
  color: #ff5a6e !important;
  font-weight: 600;
}

@media (max-width: 390px) {
  .predict-orb {
    width: 82px;
    height: 82px;
  }

  .predict-label {
    min-width: 78px;
    font-size: 14px;
  }

  .bet-controls {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .amount-input-wrap {
    grid-column: 1 / -1;
  }

  .recent-result-row {
    gap: 6px;
  }

  .history-table th,
  .history-table td {
    font-size: 12px;
    padding: 10px 6px;
  }
}
