:root {
  --bg: #00033D;
  --font-protest: 'Protest Strike', sans-serif;
  /* deep indigo */
  --panel: #001A5F;
  /* panel blue */
  --text: #ffffff;
  --muted: #A3D1FF;
  /* light sky */
  --accent: #0074FF;
  /* primary blue */
  --accent-soft: #24AAFF;
  --subaccent: #AF71FF;
  /* violet for subtabs */
  --positive: #19c37d;
  --negative: #ff5d5d;
  --rail: 360px;
  --rail-gap: 0px;
  /* remove extra bottom gap so rails fill height */
  --subtab-h: 44px;
  /* mobile subtab bar height */
  --bet-gap: 12px;
  /* keep gaps consistent between chips and panels */
  --coin-size: 82px;
  /* default coin size, scales down on mobile */
  --coin-gap: 12px;
  /* spacing between coins */
  --board-max: 880px;
  /* max canvas width on desktop */
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  overflow: auto;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* background-image:url('./bg.png'); */
  /* background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed; */
}

.muted {
  color: var(--muted)
}

.font-protest {
  font-family: var(--font-protest);
}

.app {
  min-height: 100vh;
  /* Use dynamic viewport height where supported to avoid browser UI issues */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Media should not cause horizontal overflow */
img,
video {
  max-width: 100%;
  height: auto
}

canvas {
  max-width: 100%
}

/* Header */
.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #004DA9;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 116, 255, .35)
}

.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  width: 100%;
  margin: 0
}

.brand {
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase
}

.hamb {
  width: 40px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  cursor: pointer
}

.hamb:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.hamb-lines {
  display: grid;
  gap: 4px
}

.hamb-lines span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--panel);
  border-radius: 10px
}

/* Dropdown */
.dd {
  position: fixed;
  right: 16px;
  top: 56px;
  z-index: 50;
  background: var(--panel);
  border: 1px solid rgba(0, 116, 255, .35);
  border-radius: 10px;
  min-width: 220px;
  max-width: 92vw;
  box-shadow: 0 10px 30px rgba(0, 104, 225, .35);
  padding: 6px
}

.dd a:last-child {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.dd[hidden] {
  display: none
}

.dd a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none
}

.dd a:hover,
.dd a:focus {
  background: rgba(255, 255, 255, .06);
  outline: none
}

/* Main layout */
.main {
  margin: 0 auto;
  padding: 12px;
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: calc(100dvh - var(--hdr-offset, 72px));
  height: auto;
  overflow: visible;
}

.main {
  /* padding-top: calc(var(--hdr-offset, 72px) + 12px); */
}

.main>* {
  min-width: 0
}

@media (min-width:1200px) {
  :root {
    --rail: 300px
  }

  .main {
    grid-template-columns: 65fr 35fr;
    grid-template-rows: 1fr;
    grid-template-areas: "left right";
    /* Single row, two columns */
    gap: 20px;
    padding: 16px 20px;
    /* height: calc(100dvh - var(--hdr-offset, 72px)); */
  }

  .main {
    /* padding-top: calc(var(--hdr-offset, 72px) + 16px); */
  }

  /* compact top gaps on desktop */
  .hdr {
    margin-top: 0
  }

  .left {
    grid-area: left;
    height: auto;
    margin-top: 0;
    order: initial;
  }

  .rail-host {
    grid-area: right;
    margin-top: 0;
    min-width: 0;
    order: initial;
  }

  /* Rail sticky positioning */
  .rail {
    position: relative;
    padding: 0;
    overflow: visible;
  }

  .rail-sticky {
    position: sticky;
    top: var(--hdr-offset, 72px);
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100dvh - var(--hdr-offset, 72px) - var(--main-pad-b, 16px));
  }

  /* Make board consume available vertical space and scale canvas to fit */
  .board {
    height: 100%;
    min-height: 0
  }

  .roulette-canvas-wrap {
    /* Constrain canvas size on desktop */
    max-width: 880px;
    max-height: 320px;
    /* Shorter on desktop */
    /* aspect-ratio: 2.5 / 1; Wider ratio */
    height: auto;
    width: 100%;
  }

  .betting-panel {
    margin-top: 16px;
  }

  /* Ensure bet panel container doesn't get cut off */
  .bet-panel-container {
    margin-top: 16px;
  }
}

/* Left column layout: status, then board, then bet panel */
.left {
  display: grid;
  min-height: 0;
  min-width: 0;
  gap: 4px;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "board"
    "bet";
  height: auto;
}

.left .top-row {
  display: none;
}

.left .left-board {
  grid-area: board;
}

.left .bet-panel-container {
  grid-area: bet;
}

.rail-host {
  grid-area: right;
  min-width: 0;
}

@media (min-width: 1400px) {
  .main {
    max-width: auto;
    /* Optional max width */
    margin: 0 auto;
  }
}

/* Mobile Reordering Logic */
@media (max-width: 1199px) {
  .left {
    display: flex;
    flex-direction: column;
  }

  .left .bets-section {
    order: 10;
  }

  .left .leaderboard-host {
    order: 20;
  }

  .left.phase-betting .leaderboard-host {
    order: 10 !important;
  }

  .left.phase-betting .bets-section {
    order: 20 !important;
  }
}

/* Top status and stocks */
/* Top Bar */
.top-bar-host {
  width: 100%;
  z-index: 20;
  position: relative;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #001A5F;
  border-bottom: 3px solid #005bb5;
  padding: 0 10px;
  height: 64px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.game-name {
  font-family: var(--font-protest);
  font-weight: 900;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  /* fallback */
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: #D32D2F;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(211, 45, 47, 0.4);
}

.live-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.4s ease-in-out infinite;
}

.top-center {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  /* Let clicks pass through to balance/menu if overlap */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.status-pill {
  pointer-events: auto;
  background: #19C37D;
  padding: 6px 40px;
  border-radius: 0 0 24px 24px;
  /* Half-pill look attached to top? Screenshot looks distinct. Let's do distinct pill. */
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  height: 44px;
  /* Specific height adjustment */
}

/* Phase Colors */
.status-pill.phase-locked {
  /* background: #FF5D5D; */
  background: #1B52D8;
  border: 1px solid #2A76FF
}

.status-pill.phase-betting {
  background: #2B9D06BF;
  border: 1px solid #00BF16
    /* requested: #2B9D06BF */
}

.status-pill.phase-reveal {
  background: #1B52D8;
  /* requested: #1B52D8 */
}

.status-pill.phase-payout {
  background: #E5CC39;
  border: 1px solid #F5EBB0
    /* requested: #E5CC39 */
}

.menu-popup[hidden] {
  display: none !important;
}

.status-phase {
  font-size: 13px;
  text-transform: uppercase;
  line-height: 1.1;
  opacity: 0.9;
}

.status-eta {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.status-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  order: -1;
  /* Place before hamburger on desktop */
}

.balance-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

.status-wallet-bal {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.hamburger-btn:hover {
  opacity: 1;
}

.hamburger-btn .bar {
  width: 24px;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
}

.menu-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #001A5F;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.menu-item-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.2s;
}

.menu-item-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Responsive Top Bar Layout */
/* Default (Desktop) behavior */
.mobile-only {
  display: none !important;
}

.tr-top-row {
  display: contents;
  /* On desktop, let children participate in flex container naturally */
}

/* Mobile overrides (less than 900px or so) */
@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: inline-flex !important;
  }

  .top-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    /* Very tight vertical gap */
  }

  /* Right side top row: Live + Hamburger */
  .tr-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Tighter gap */
  }

  /* Smaller Hamburger */
  .hamburger-btn {
    padding: 4px;
    gap: 3px;
  }

  .hamburger-btn .bar {
    width: 18px;
    height: 2px;
  }

  /* Smaller Live Badge */
  .live-pill {
    padding: 3px 6px;
    gap: 4px;
    font-size: 10px;
  }

  .live-pill .dot {
    width: 6px;
    height: 6px;
  }

  /* Balance inline and smaller */
  .status-balance {
    flex-direction: row;
    /* One line */
    align-items: center;
    gap: 6px;
    order: initial;
    /* Reset order to follow DOM (below top row) */
  }

  .balance-label {
    font-size: 10px;
  }

  .status-wallet-bal {
    font-size: 12px;
  }

  .status-pill {
    min-width: 120px;
    padding: 6px 12px;
  }

  .status-phase,
  .status-eta {
    font-size: 12px !important;
  }

  .game-name {
    font-size: 16px;
    /* Smaller name */
  }
}


/* stocks UI removed */

/* Board container */
.board {
  position: relative;
  display: grid;
  gap: 0;
  min-height: 0;
  height: auto;
  grid-template-rows: auto;
}

.board>* {
  min-height: 0
}

/* Leaderboard (right panel + mobile) */
.lb-panel {
  background: linear-gradient(121.52deg, #00366F 10.44%, #00123A 50.05%);
  border-radius: 16px;
  border: 1px solid rgba(41, 254, 254, 0.4);
  box-shadow:
    0 0 0 1px rgba(36, 170, 255, 0.55) inset,
    0 18px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.lb-header {
  position: relative;
  text-align: center;
  padding: 10px 14px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* background: radial-gradient(circle at 0 0, rgba(41, 254, 254, 0.45), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(175, 113, 255, 0.45), transparent 55%),
    #001A5F; */
  background: linear-gradient(121.52deg, #00366F 10.44%, #00123A 50.05%);
}

.lb-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px;
  border: 1px solid #0B6CCB;
  border-radius: 10px;
  text-transform: capitalize;
  background: linear-gradient(121.52deg, #00366F 10.44%, #00123A 50.05%);
  /* text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); */
  /* display: flex; */
  align-items: center;
  gap: 8px;
}

/* .lb-title::before {
  content: "\1F451";
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7));
} */

.leaderboard-host {
  margin-top: 6px;
  margin-bottom: 6px;
}

@media (min-width: 1200px) {
  .leaderboard-host {
    display: none;
  }
}

.lb-table-wrap {
  padding: 4px 6px 8px;
}

.lb-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 6px !important;
  /* Force vertical gap */
  font-size: 12px;
}

.lb-table th,
.lb-table td {
  padding: 10px 8px;
  white-space: nowrap;
}

.lb-table th {
  font-size: 13px;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  color: #cfe6ff;
  padding-bottom: 8px;
}

/* Row Styling */
.lb-table tbody tr {
  background: #011945;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); Removed to ensure gap is clean */
}

/* First & Last cells get radius */
.lb-table tbody tr td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.lb-table tbody tr td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Remove alternating background */
.lb-table tbody tr:nth-child(even) {
  background: #011945;
}

.lb-table tbody tr:hover {
  background: #002266;
  /* Slight lighten */
}

.lb-table td {
  font-variant-numeric: tabular-nums;
}

/* Crown badge over rank one */
.winning-badge {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 35px;
  /* font-size: 16px; */
  /* text-shadow: 0 0 6px rgba(0, 0, 0, 0.9); */
  pointer-events: none;
  margin-left: 1px;
}

/* Roulette canvas */
/* .roulette-canvas-wrap{width:100%;height:100%;aspect-ratio:16/9;display:block;min-width:0;margin:0 auto} */
.roulette-canvas-wrap {
  width: 100%;
  height: auto;
  max-width: none;
  /* Remove width constraint to prevent cutoff */
  /* Use a shorter aspect ratio for better desktop fit */
  aspect-ratio: 2.5 / 1;
  /* Wider, shorter canvas */
  display: block;
  min-width: 0;
  margin: 0;
  min-height: 240px;
  max-height: 400px;
  /* Fixed: was 100px, now allows proper height */
}

.roulette-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #00184f;
  border: 1px solid #0B4A8F;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(36, 170, 255, .35) inset,
    inset 0 8px 12px -10px rgba(0, 0, 0, .6),
    inset 0 -8px 12px -10px rgba(0, 0, 0, .6);
}

/* Table overlay removed */

/* Center result panel over the board */
.result-panel {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 999
}

.result-panel__inner {
  position: relative;
  pointer-events: auto
}

.rp-box {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 560px);
  max-width: 560px;
  border-radius: 12px;
  border: 2px solid #ff2a2a;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px 1px rgba(222, 0, 0, 1)
}

.rp-title {
  margin: 0 0 8px 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  font-size: clamp(22px, 3vw, 32px)
}

.rp-sub {
  margin: 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 24px)
}

.result-panel.up .rp-box {
  background: linear-gradient(108.92deg, rgba(25, 195, 125, 1) 29.33%, rgba(5, 66, 39, 1) 114.8%);
  border-color: #1bcc8a;
  box-shadow: 0 0 15px 1px rgba(25, 195, 125, 1)
}

.result-panel.down .rp-box {
  background: linear-gradient(108.92deg, rgb(224, 44, 12) 29.33%, rgb(56, 1, 4) 114.8%);
  border-color: rgb(219, 15, 0);
  box-shadow: 0 0 15px 1px rgb(222, 0, 0)
}

.result-panel[hidden] {
  display: none
}

.result-panel--show {
  animation: popfade .35s ease
}

@keyframes popfade {
  0% {
    transform: scale(.96);
    opacity: 0
  }

  100% {
    transform: scale(1);
    opacity: 1
  }
}

/* Stock grid strips removed */

/* Grid strip scrollbar styles removed */



/* Betting panel */
.betting-panel {
  background: #000E37;
  border: 1px solid transparent;
  background:
    linear-gradient(#000E37, #000E37) padding-box,
    linear-gradient(105.57deg, #29FEFE 0.62%, #013169 100%) border-box;
  border-radius: 12px;
  padding: 16px 5px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bp-left-section-header {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(#000e37, #000e37) padding-box, linear-gradient(90.84deg, #29FEFE 0.72%, #000e37 53.07%) border-box;
}

/* Section Headers */
.bp-right-section-header {
  text-align: center;
  /* margin-bottom: 12px; */
  /* padding-bottom: 8px; */
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.bp-left .bp-section-header {
  text-align: center;
}

.bp-right .bp-section-header {
  text-align: center;
}

.bp-title {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}

.bp-bet-status {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.bp-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .left {
    /* Don't force 100% height */
    height: auto;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  .board {
    height: 100%;
    min-height: 0;
  }

  .roulette-canvas-wrap {
    height: 100%;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/5;
    margin: 0 auto;
  }

  .bp-inner {
    flex-direction: row;
    align-items: flex-start;
  }
}

.bp-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .bp-left {
    width: 65%;
    padding-right: 12px;
  }

  .bp-right {
    max-width: 340px;
  }
}

@media (max-width: 1199px) {
  .bp-right {
    max-width: auto;
  }
}

@media(max-width:442px) {

  /* Stack betting panel vertically on very narrow screens */
  .bp-inner {
    flex-direction: column !important;
    gap: 6px;
  }

  .bp-left,
  .bp-right {
    width: 100% !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  /* Reduce padding in betting controls */
  .bp-controls {
    padding: 6px;
    gap: 6px;
  }

  /* Make amount control smaller */
  .amt-ctrl {
    max-width: 140px;
    padding: 2px 4px;
  }

  .amt-ctrl button {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .amt-ctrl .val {
    font-size: 14px;
    min-width: 40px;
  }

  /* Make coins much smaller */
  :root {
    --coin-size: clamp(32px, calc((100vw - 16px - 3 * var(--coin-gap)) / 4), 50px);
    --coin-gap: 4px;
  }

  .roulette-canvas-wrap {
    min-height: auto;
  }

  /* Reduce button sizes */
  .bet-btn {
    min-height: 40px;
    font-size: 11px;
    padding: 6px 2px;
  }

  /* Reduce panel padding */
  .betting-panel {
    padding: 6px;
  }

  .bp-left,
  .bp-right {
    padding: 1px;
  }

  .bp-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  /* Adjust timer and status text */
  .bp-timer-section {
    padding: 6px 8px;
  }

  .bp-timer-value {
    font-size: 14px;
  }

  .bp-bet-status {
    font-size: 10px;
  }

  /* Reduce gaps between sections */
  .bp-inner {
    gap: 2px;
  }

  .bp-groups {
    margin-top: 6px;
  }

  /* Make timer section more compact */
  .bp-timer {
    gap: 2px;
  }
}

/* Right Panel */
.bp-right {
  width: 100%;
  box-sizing: border-box;
  /* background: #0A0F2B; */
  border-radius: 12px;
  padding: 16px 0px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}

/* Timer Section */
.bp-timer-section {
  /* background: #0C1124;
  border: 1px solid #1E2947; */
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  margin: 0;
}

.bp-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.bp-timer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(21, 255, 254, 0.1);
  border-radius: 8px;
  z-index: -1;
  box-shadow: 0 0 70px 0 rgba(21, 255, 254, 0.5);
  opacity: 0.7;
}

.bp-timer-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: 'DIN Next', Arial, sans-serif;
  letter-spacing: 1px;
}

/* Tabs */
.bp-tabs {
  display: flex;
  /* background: #0C1124; */
  border-radius: 36px;
  padding: 0px;
  margin: 4px 0;
  border: 1px solid #0B5AB6;
}

.bp-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.2s ease;
}

.bp-tab.active {
  background: #1A3A8F;
  color: white;
}

/* Coin Grid */
.bp-coin-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px;
}

.bp-coin-row {
  display: flex;
  gap: 0px;
  justify-content: space-between;
}

.bp-coin {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: none;
  padding: 1px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.bp-coin:hover {
  transform: translateY(-2px);
}

.bp-coin.active {
  transform: translateY(-2px);
}

.bp-coin-amount {
  position: absolute;
  top: 30px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 2;
  pointer-events: none;
}

.bp-coin-img {
  width: 100%;
  height: auto;
  max-width: 75px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Bet Controls */
.bp-bet-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.bp-amount-control {
  display: flex;
  align-items: center;
  background: #01326A;
  border-radius: 8px;
  border: 1px solid #0B5AB6;
  overflow: hidden;
  height: 48px;
}

.bp-amount-btn {
  background: transparent;
  border: none;
  color: #5B7FFF;
  font-size: 20px;
  font-weight: 700;
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bp-amount-btn:hover {
  background: rgba(91, 127, 255, 0.1);
}

.bp-amount-display {
  flex: 1;
  text-align: center;
  padding: 0 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-amount {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.bp-bet-btn {
  width: 100%;
  height: 48px;
  padding: 0;
  background: #01326A;
  border: 1px solid #0B5AB6;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 4px 0 #D97A00; */
}

.bp-bet-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #D97A00;
}

.bp-bet-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #D97A00;
}

.bp-tiles-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.bp-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.bp-groups {
  width: 100%;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0px;
  box-sizing: border-box;
}

.canvas-container {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

.bp-tile {
  position: relative;
  height: 40px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 2px 4px;
  cursor: pointer;
  transition: transform .12s ease, filter .18s ease
}

.bp-tile:hover {
  transform: translateY(-1px);
  filter: saturate(1.1)
}

.bp-tile:active {
  transform: scale(.98)
}

.bp-tile-sym {
  position: absolute;
  left: 4px;
  bottom: 3px;
  font-size: 10px;
  color: #cfe6ff;
  font-weight: 600
}

.bp-tile-num {
  position: absolute;
  right: 6px;
  top: 2px;
  font-size: 16px;
  color: #fff;
  font-weight: 800
}

.rp-red {
  background: linear-gradient(90deg, #9E252E 0%, #000E37 100%);
  border: 1px solid;
  /* border-image:linear-gradient(270deg, rgba(2, 58, 120, 1), rgba(146, 35, 46, 1)) 1; */
  box-sizing: border-box
}

.rp-black {
  background: linear-gradient(97.42deg, #151D24 38.64%, #4D5155 54.57%, #02172B 61.06%);
  border: 1px solid rgba(2, 23, 43, 1);
  box-sizing: border-box
}

.bp-zero-col {
  display: grid;
  align-items: stretch
}

.bp-zero {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  background: linear-gradient(177deg, #FFC857 -0.32%, #7F5E1B 50.24%, #FFC857 100.79%);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-weight: 700
}

.rotate-text {
  transform: rotate(180deg);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.bp-zero-num {
  transform: translateY(-20px);
  /* Move 0 slightly left (Screen Left = Local Right in rotated frame) */
}

.bp-zero-name {
  transform: translateY(-15px);
  /* Offset slightly to 'y side' (Visual Y = Local X in this rotation) */
}



.bp-groups {
  display: grid;
  gap: 8px
}

.bp-groups .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.bp-groups .row.wide .bp-btn {
  height: 40px
}

.bp-btn {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #0053B7;
  background: #0B4A8F;
  color: #fff;
  font-size: 16px;
  position: relative;
  font-weight: 500
}

.bp-btn.primary {
  background: #010e37
}

.bp-btn.blue {
  background: #00214E;
  border: 1px solid #0053B7
}

.bp-diamond {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #a3d1ff;
  transform: rotate(45deg)
}

.bp-right {
  display: grid;
  gap: 14px;
  align-content: start
}

.bp-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-width: 0
}

.amt-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #0B5AB6;
  border-radius: 999px;
  padding: 4px 6px;
  width: auto;
  max-width: 200px;
  margin: 0
}

.amt-ctrl button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #011039;
  background: #A3EBEB;
  color: #001b44;
  font-weight: 800
}

.amt-ctrl .val {
  min-width: 60px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px
}

.coins-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--coin-gap);
  justify-content: center;
  align-items: center;
  flex: 1;
  min-width: 0
}

.amt-ctrl {
  flex: 0 0 auto
}

.coin {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--coin-size);
  height: var(--coin-size);
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer
}

.coin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35)
}

.coin:hover {
  filter: saturate(1.08);
  transform: translateY(-1px)
}

.coin:active {
  transform: scale(.98)
}

.coin-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(12px, calc(var(--coin-size) * 0.22), 16px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .75)
}

/* Right rail */
.rail {
  position: relative;
  padding: 0 2px;
  overflow: visible
}

/* Make the right panel fill the available viewport height below the header
   so inner content (like Last Game Results) scrolls instead of stretching layout */
.rail-sticky {
  position: sticky;
  top: var(--hdr-offset, 72px);
  display: flex;
  flex-direction: column;
  gap: 0;
  height: calc(108dvh - var(--hdr-offset, 8px));
  max-height: calc(108dvh - var(--hdr-offset, 8px));
  overflow: auto;
  background: linear-gradient(121.52deg, #00366F 10.44%, #00123A 50.05%);
  border-radius: 15px;
}

/* Cleaned up tab styles to match My Bet Tabs */
.tabs,
.subtabs {
  display: flex;
  background: transparent;
  border: 1px solid #0B6CCB;
  border-radius: 20px;
  padding: 4px;
  gap: 4px;
  font-weight: 600;
  margin-bottom: 10px;
}

.subtabs {
  /* Override specific subtab margin/border if needed, but My Bet style is cleaner */
}

.subtabs[hidden] {
  display: none !important;
}

.tabs button,
.subtabs button {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  /* Keep flex for alignment */
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  opacity: 0.8;
  /* Inactive state default */
}

.tabs button[aria-selected="true"],
.subtabs button[aria-selected="true"] {
  background: #000E37;
  /* Darker background for active, same as my-bet-panel */
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 1;
  border: none;
  z-index: 1;
}

/* Ensure right alignment is strict */
.text-right {
  text-align: right !important;
  justify-content: flex-end;
  /* for flex children */
}



@media (prefers-reduced-motion: reduce) {

  .tabs button,
  .subtabs button {
    transition: none
  }

  .tabs button::after,
  .subtabs button::after {
    transition: none
  }
}

.panel {
  margin-top: 0;
  /* background: var(--panel); */
  /* border: 1px solid var(--accent); */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(36, 170, 255, .45) inset, inset 0 8px 12px -10px rgba(0, 0, 0, .6), inset 0 -8px 12px -10px rgba(0, 0, 0, .6), inset 0 0 8px rgba(0, 92, 164, 1);
  flex: 1;
  min-height: 0;
  will-change: transform;
  scrollbar-gutter: stable both-edges;
  display: flex;
  flex-direction: column
}

/* Make subpanel a flex container and list the scrollable child */
.panel>#subpanel {
  display: flex;
  flex-direction: column;
  min-height: 0
}

.panel .list {
  flex: 1;
  overflow: auto
}

/* Custom thin blue scrollbar (apply to inner scrolling list) */
.panel,
.panel .list {
  scrollbar-width: thin;
  scrollbar-color: #2a78ff #1a2340
}

.panel::-webkit-scrollbar,
.panel .list::-webkit-scrollbar {
  width: 6px
}

.panel::-webkit-scrollbar-track,
.panel .list::-webkit-scrollbar-track {
  background: #10182c
}

.panel::-webkit-scrollbar-thumb,
.panel .list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a78ff, #9a66ff);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12)
}

.panel::-webkit-scrollbar-thumb:hover,
.panel .list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4990ff, #b480ff)
}

.list {
  display: grid;
  gap: 8px;
  padding: 10px
}

.card {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
  transition: transform .12s ease, border-color .2s ease, background .2s ease;
  font-weight: 400
}

.card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015))
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px
}

.mono {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums
}

.pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px
}

.pill.win {
  color: var(--positive);
  border-color: var(--positive)
}

.pill.lose {
  color: var(--negative);
  border-color: var(--negative)
}

.pill.open {
  color: #a6d4ff;
  border-color: var(--accent-soft)
}

.pill.void {
  color: #aab3c2;
  border-color: rgba(255, 255, 255, .18)
}

.pill.heads {
  color: #9ed5ff;
  border-color: var(--accent-soft)
}

.pill.tails {
  color: #e3d0ff;
  border-color: rgba(175, 113, 255, .6)
}

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

.mono.payout {
  color: var(--positive)
}

/* Tab and subtab count badges */
.count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0d2a57;
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  line-height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  font-weight: 500
}

.count[data-empty="true"] {
  opacity: .55
}

/* Empty state inside lists */
.empty {
  padding: 18px 14px;
  text-align: center;
  color: var(--muted);
  /* border:1px dashed rgba(255,255,255,.12);
  border-radius:10px */
}

/* Bottom bar */
.bbar {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  background: #004DA9;
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 116, 255, .35)
}

.bbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: center
}

.home-btn {
  padding: 10px 14px;
  border-radius: 10px;
  background: #182233;
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
  cursor: pointer
}

.home-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.home-panel {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 64px;
  z-index: 30;
  width: min(720px, 92vw);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5)
}

.home-panel[hidden] {
  display: none
}

/* Loading overlay */
.loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0b0f14;
  z-index: 100
}

.loading .box {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center
}

.loading .logo {
  width: 96px;
  height: 96px;
  background: radial-gradient(circle at 30% 30%, #1bb0ff, #0877c8);
  border-radius: 50%;
  filter: drop-shadow(0 0 24px rgba(10, 162, 255, .6))
}

.loading .pct {
  font-variant-numeric: tabular-nums;
  font-family: "Roboto Mono", ui-monospace, monospace;
  color: #d7e8ff
}

/* Responsive stacking */
@media (max-width:1199px) {
  .main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "left"
      "right";
  }

  .left {
    grid-area: left;
    order: 1;
    /* Ensure left is first */
  }

  .rail-host {
    grid-area: right;
    order: 2;
    /* Ensure right is second */
  }

  .rail-sticky {
    position: static;
    height: auto;
  }

  .left {
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .board {
    height: auto;
  }

  .lb-sticky {
    position: static;
    height: auto
  }

  /* Let panels size naturally to avoid overlap */
  .panel {
    min-height: 0;
    height: auto;
    max-height: none
  }

  /* When subtabs are aria-hidden on mobile, hide them without shifting the panel to avoid overlap */
  .subtabs[aria-hidden="true"] {
    display: none;
    visibility: hidden;
    height: 0;
    margin: 0;
    border: 0
  }

  .subtabs[aria-hidden="true"]+.panel {
    margin-top: 0
  }

  /* Allow the main grid to grow and stack content vertically on mobile */
  .main {
    min-height: auto;
    height: auto
  }

  /* Let the board take natural height so the betting panel sits strictly below */
  .left {
    grid-template-rows: auto auto auto
  }

  .board {
    height: auto;
  }

  .roulette-canvas-wrap {
    aspect-ratio: 16 / 7;
    /* Taller on mobile */
    max-height: none;
    /* No height restriction on mobile */
    margin: 0;
    /* Ensure no margin on mobile */
    padding: 0;
    /* Ensure no padding on mobile */
  }

  .bp-left {
    width: 100%;
    max-width: 100%;
    ;
  }
}

@media (max-width:749px) {
  .hdr-inner {
    padding: 10px 12px
  }

  .rail-host {
    display: none;
  }

  .main {
    padding: 2px;
    /* padding-top:calc(var(--hdr-offset, 72px) + 8px) */
  }

  /* Reduced padding */
  /* Allow tight rows to wrap on very narrow screens */
  .bp-controls {
    flex-wrap: wrap;
    justify-content: flex-start
  }

  /* Center amount control on its own line */
  .amt-ctrl {
    margin: 0 auto 8px
  }

  /* Keep coins in one horizontal row by shrinking them to fit */
  :root {
    --coin-size: clamp(44px, calc((100vw - 32px - 3 * var(--coin-gap)) / 4), 82px)
  }

  .coins-grid {
    flex: 1 1 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: var(--coin-gap)
  }

  /* Let canvas fill mobile width; height via aspect ratio */
  :root {
    --board-max: 100%
  }

  .roulette-canvas-wrap {
    aspect-ratio: 16 / 9;
    /* Even wider ratio for very narrow screens */
    margin: 0;
    padding: 0;
    min-height: auto
  }
}

/* Extra small screens (very narrow mobile) */
@media (max-width: 375px) {
  .main {
    padding: 4px;
    /* padding-top:calc(var(--hdr-offset, 72px) + 4px) */
  }

  /* Further reduced padding */
  .roulette-canvas-wrap {
    aspect-ratio: 16 / 9;
    /* Even wider ratio for very narrow screens */
    margin: 0;
    padding: 0;
    min-height: auto
  }

  .status-badge .live-pill {
    gap: 5px;
    padding: 6px 5px;
  }

  .status-badge .live-pill .dot {
    width: 5px;
    height: 5px;
  }

  .status-badge .live-pill .txt {
    font-size: 12px;
  }

  .phase-time {
    gap: 5px;
    font-size: 12px !important;
  }

  .live-section {
    gap: 7px !important;
  }

  .status-balance {
    gap: 6px !important;
  }

  .status-wallet-bal {
    font-size: 12px;
    ;
  }

  /* Additional adjustments for very narrow screens */
  .betting-panel {
    padding: 6px;
  }

  .bp-left,
  .bp-right {
    padding: 6px;
  }

  .bp-controls {
    padding: 4px;
    gap: 4px;
  }

  .amt-ctrl {
    max-width: 120px;
    padding: 2px 3px;
  }

  .amt-ctrl button {
    width: 20px;
    height: 20px;
  }

  .amt-ctrl .val {
    font-size: 12px;
    min-width: 35px;
  }

  .bp-title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .bp-timer-value {
    font-size: 12px;
  }

  .bp-bet-status {
    font-size: 9px;
  }

  .bet-btn {
    min-height: 36px;
    font-size: 10px;
    padding: 4px 1px;
  }

  .winning-badge {
    position: absolute;
    top: -4px;
    left: -2px;
    /* Positioned above the number */
    /* left: 0%; */
    transform: translateX(-50%);
    font-size: 18px;
    /* Larger size */
    color: #ffd700;
    /* Golden color */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    /* Better visibility */
    z-index: 10;
  }

  .roulette-canvas-wrap {
    min-height: auto;
  }

  :root {
    --coin-size: clamp(28px, calc((100vw - 12px - 3 * var(--coin-gap)) / 4), 45px);
  }
}

/* Ultra small screens (320px and below) */
@media (max-width: 320px) {
  .main {
    padding: 3px;
    /* padding-top:calc(var(--hdr-offset, 72px) + 3px) */
  }

  .betting-panel {
    padding: 4px;
  }

  .bp-left,
  .bp-right {
    padding: 4px;
  }

  .bp-title {
    font-size: 12px;
  }

  .bp-timer-value {
    font-size: 11px;
  }

  .bp-bet-status {
    font-size: 8px;
  }

  .bet-btn {
    min-height: 32px;
    font-size: 9px;
  }

  .roulette-canvas-wrap {
    min-height: auto;
  }

  :root {
    --coin-size: clamp(24px, calc((100vw - 8px - 3 * var(--coin-gap)) / 4), 40px);
  }

  .roulette-canvas-wrap {
    aspect-ratio: 16 / 9;
    /* Even wider ratio for very narrow screens */
    margin: 0;
    padding: 0;
    min-height: auto
  }
}

/* Bet Panel Container */
.bet-panel-container {
  width: 100%;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* --- Bets Panels --- */
.bets-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* margin-top: 20px; */
  width: 100%;
}

.current-bets-panel,
.top-bets-panel {
  width: 100%;
  background: linear-gradient(121.52deg, #00366F 5.3%, #00123A 97.36%);
  border-radius: 10px;
  /* padding: 16px; */
  color: #fff;
  border: 1px solid rgba(0, 200, 255, 0.2);
  min-height: 160px;
  box-sizing: border-box;
}

.current-bets-panel h3,
.top-bets-panel h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
}

/* Bet Panel Styling */
.betting-panel {
  width: 100%;
  margin-bottom: 5px;
}

/* Panel Body */
.panel-body {
  padding: 5px 0;
  overflow-y: scroll;
}

/* Empty State Styling */
.empty {
  /* display: flex; */
  /* flex-direction: column; */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
  color: #8b9cb5;
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.empty-text {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 4px 0;
  color: #e0e6f0;
}

.empty-subtext {
  font-size: 0.875rem;
  margin: 0;
  color: #8b9cb5;
}

/* Table Styling */
.bets-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.bets-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 500;
  color: #a9d4ff;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bets-table td {
  padding: 8px 12px;
  color: #fff;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bets-table tr:last-child td {
  border-bottom: none;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .bets-section {
    flex-direction: row;
  }

  .current-bets-panel,
  .top-bets-panel,
  .my-bet-panel {
    flex: 1;
    min-width: 0;
  }

  .current-bets-panel {
    margin-right: 10px;
  }

  .top-bets-panel {
    margin-left: 10px;
  }
}

/* Chip display on betting buttons */
.chip-display {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
  z-index: 10;
}

.placed-chip {
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.chip-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff5d5d;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chip-amount {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Alert animation */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Disabled button states */
.bp-tile:disabled,
.bp-zero:disabled,
.bp-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  filter: grayscale(0.3);
}

.bp-tile:disabled:hover,
/* .bp-zero:disabled:hover, */
.bp-btn:disabled:hover {
  transform: none !important;
  filter: grayscale(0.3);
}

/* Betting button positioning for chips */
.bp-tile,
.bp-zero,
.bp-btn {
  position: relative;
}

/* Larger chip display for group buttons */
.bp-btn .chip-display .placed-chip {
  width: 36px;
  height: 36px;
}

/* Zero button chip display */
.bp-zero .chip-display {
  transform: translate(-50%, -50%) rotate(180deg);
  top: 50%
}

.bp-zero .chip-display .chip-amount {
  bottom: 10px;
}

.bp-zero .chip-display .placed-chip {
  transform: rotate(90deg);
}

/* Bet status enhanced styling */
.bp-bet-status {
  font-size: 14px;
  letter-spacing: 0.5px;
  /* padding: 8px 12px;
  background: rgba(25, 195, 125, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(25, 195, 125, 0.3); */
}

/* Pulsing effect for active betting phase */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(25, 195, 125, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(25, 195, 125, 0);
  }
}

.bp-tile:not(:disabled):hover,
.bp-zero:not(:disabled):hover,
.bp-btn:not(:disabled):hover {
  animation: pulse 1.5s infinite;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .placed-chip {
    width: 35px;
    height: 35px;
  }

  .chip-amount {
    font-size: 9px;
    bottom: 15px;
  }

  .chip-count {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .bet-alert {
    top: 60px !important;
    right: 10px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
  }
}


/* Leaderboard Table Styling */
.lb-table-wrap {
  width: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scroll on mobile */
  /* background: var(--panel); */
  border-radius: 8px;
  padding: 4px;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  /* background: var(--panel); */
}

.lb-table th {
  padding: 10px 6px;
  text-align: center;
  font-weight: 600;
  color: #8b92a8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lb-table td {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 12px;
}

.lb-table tr:last-child td {
  border-bottom: none;
}

.lb-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.lb-table td:nth-child(1) {
  font-weight: 500;
  color: #8b92a8;
  width: 35px;
  /* Reduced width for mobile */
}

.lb-table td:nth-child(2) {
  font-size: 13px;
  text-align: center;
  width: 25px;
  /* Reduced width for mobile */
}

.lb-table td:nth-child(3) {
  font-weight: 500;
  color: #ffffff;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.lb-table td:nth-child(4),
.lb-table td:nth-child(5) {
  text-align: right;
  font-family: 'Roboto Mono', monospace;
  min-width: 60px;
  /* Ensure numbers have enough space */
}

.lb-table td:nth-child(4) {
  color: #8b92a8;
  text-align: center;
}

.lb-table td:nth-child(5) {
  font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .lb-table {
    font-size: 11px;
    table-layout: fixed;
    /* Force fixed layout for better mobile control */
  }

  .lb-table th {
    padding: 4px 2px;
    font-size: 10px;
  }

  .lb-table td {
    padding: 4px 2px;
    font-size: 11px;
  }

  .lb-table td:nth-child(1) {
    width: 30px;
  }

  .lb-table td:nth-child(2) {
    width: 20px;
    font-size: 12px;
  }

  .lb-table td:nth-child(3) {
    max-width: 60px;
  }

  .lb-table td:nth-child(4),
  .lb-table td:nth-child(5) {
    min-width: 50px;
    font-size: 10px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .lb-table th {
    font-size: 9px;
    padding: 8px 4px;
  }

  .lb-table td {
    font-size: 10px;
    padding: 7px 2px;
  }

  .lb-table td:nth-child(3) {
    max-width: 50px;
  }

  .lb-table td:nth-child(4),
  .lb-table td:nth-child(5) {
    min-width: 45px;
    font-size: 9px;
  }

  .status-badge .live-pill {
    gap: 5px;
    padding: 6px 5px;
  }

  .status-badge .live-pill .dot {
    width: 5px;
    height: 5px;
  }

  .status-badge .live-pill .txt {
    font-size: 12px;
  }

  .phase-time {
    gap: 5px;
    font-size: 12px !important;
  }

  .live-section {
    gap: 7px !important;
  }

  .status-balance {
    gap: 6px !important;
  }

  .status-wallet-bal {
    font-size: 12px;
    ;
  }

  /* Fix zero button display on mobile */
  .bp-tiles-wrap {
    grid-template-columns: 1fr 40px;
    /* Fixed width for zero column */
    gap: 6px;
  }

  .bp-zero-col {
    width: 40px;
    min-width: 40px;
  }

  .bp-zero {
    width: 100%;
    min-height: 200px;
    /* Ensure enough height for vertical text */
    padding: 6px 4px;
    font-size: 14px;
  }

  .bp-tiles {
    gap: 6px;
    /* Reduce gap on mobile */
  }

  .bp-tile {
    height: 45px;
    /* Slightly smaller on mobile */
  }

  .roulette-canvas-wrap {
    aspect-ratio: 16 / 9;
    /* Even wider ratio for very narrow screens */
    margin: 0;
    padding: 0;
    min-height: auto
  }
}

/* Winning crown animation */
@keyframes crown-bounce {
  0% {
    transform: translateX(-50%) translateY(0px);
  }

  100% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Winning badge styling */
/* .winning-badge {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: #ffd700;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  z-index: 10;
} */
.winning-badge {
  position: absolute;
  top: 0px;
  /* Positioned above the number */
  left: 23%;
  transform: translateX(-50%);
  /* Golden color */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  /* Better visibility */
  z-index: 10;
}

.live-section {
  display: flex;
  gap: 15px;
}

.status-actions {
  display: flex;
  gap: 15px;
}

.status-balance {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== Modal Styles ===== */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.modal-layer.active {
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 0;
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-height: 80vh;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: #001a51;
  color: #fff;
  padding: 20px;
  z-index: 1;
}

.modal-panel--normal {
  max-width: min(92vw, 520px);
  width: min(92vw, 520px);
}

.modal-panel--wide {
  max-width: min(92vw, 800px);
  width: min(92vw, 700px);
}

.modal-panel--fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  transform: none;
  border-radius: 0;
  margin: 0;
  padding: 20px;
  background: #000E37;
  /* Ensure bg covers everything */
  display: flex;
  flex-direction: column;
}

.modal-panel--fullscreen .modal-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
}

.modal-close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}

.modal-close-btn:hover {
  opacity: 1;
}

.modal-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffffff
}

.modal-body {
  /* Content area */
}

/* Result Modal Styles */
.modal-result-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 24px;
}

.modal-result-emoji {
  font-size: 80px;
  line-height: 1;
}

.modal-result-subtitle {
  font-size: 22px;
  font-weight: 700;
}

.modal-result-subtitle.win {
  color: #4CAF50;
}

.modal-result-subtitle.loss {
  color: #FF5252;
}

.modal-result-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(8, 22, 60, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  align-items: center;
}

.modal-result-row-label {
  opacity: 0.9;
}

.modal-result-row-value {
  font-weight: 600;
}

.modal-result-row-value.positive {
  color: #4CAF50;
}

.modal-result-row-value.negative {
  color: #FF5252;
}

.modal-result-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* Modal Buttons */
.modal-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  margin-top: 8px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-btn:active {
  transform: translateY(0);
}

.modal-btn--primary {
  background: linear-gradient(90deg, #1bb0ff, #0877c8);
  color: #fff;
}

.modal-btn--success {
  background: #4CAF50;
  color: white;
}

/* Bet History Table */
.bet-history-table {
  width: 100%;
  border-collapse: collapse;
}

.bet-history-table thead tr {
  border-bottom: 1px solid #2A3A5F;
}

.bet-history-table th {
  text-align: left;
  padding: 8px 4px;
  font-size: 12px;
  color: #8A9BB8;
  font-weight: 600;
}

.bet-history-table th.right {
  text-align: right;
}

.bet-history-table tbody tr {
  border-bottom: 1px solid #2A3A5F;
}

.bet-history-table td {
  padding: 8px 4px;
}

.bet-history-table td.right {
  text-align: right;
}

.bet-status-won {
  color: #4CAF50;
}

.bet-status-lost {
  color: #FF5252;
}

.bet-status-pending {
  color: #FFC107;
}

/* Error Modal */
.modal-error-message {
  text-align: center;
  margin: 20px 0;
}

.modal-error-title {
  color: #FF5252;
  text-align: center;
  font-size: 28px;
}

/* Empty State */
.modal-empty-state {
  text-align: center;
  padding: 16px 0;
  opacity: 0.8;
}

/* ===== Bet History Round Cards ===== */
.bet-history-round-card {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid;
  background: rgba(8, 22, 60, 0.6);
}

.bet-history-round-card.win {
  border-color: #4CAF50;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
}

.bet-history-round-card.loss {
  border-color: #FF5252;
  box-shadow: 0 0 12px rgba(255, 82, 82, 0.3);
}

.round-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.round-status-badge {
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
}

.round-status-badge.win {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

.round-status-badge.loss {
  background: rgba(255, 82, 82, 0.2);
  color: #FF5252;
}

.round-timestamp {
  font-size: 12px;
  color: #8A9BB8;
}

.round-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.round-detail {
  font-size: 14px;
  color: #fff;
}

.round-detail.win-amount {
  color: #4CAF50;
  font-weight: 600;
}

.revealed-bets-section {
  margin-top: 12px;
}

.revealed-bets-label {
  font-size: 13px;
  color: #8A9BB8;
  margin-bottom: 8px;
  font-weight: 500;
}

.bets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bet-chip {
  display: inline-block;
  padding: 6px 12px;
  min-width: 120px;
  text-align: center;
  background: rgba(27, 176, 255, 0.2);
  border: 1px solid rgba(27, 176, 255, 0.4);
  border-radius: 6px;
  font-size: 13px;
  color: #1BB0FF;
  font-weight: 500;
}

/* Pending state styling */
.bet-history-round-card.pending {
  border-color: #FFC107;
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.3);
}

.round-status-badge.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #FFC107;
}

/* Winning bet chip styling */
.bet-chip.won {
  background: #4CAF50;
  border-color: #4CAF50;
  color: #ffffff;
  font-weight: 600;
}

/* Row and Column Bet Overlay Buttons */
.bp-row-bet {
  position: absolute;
  width: 6px;
  height: 40px;
  background: transparent;
  border: transparent;
  left: 0px;
  border-radius: 2px;
  cursor: pointer;
  transition: width 0.2s ease;
  z-index: 10;
  padding: 0;
}

.bp-row-bet:hover {
  width: 8px;
}

.bp-col-bet {
  position: absolute;
  width: 25%;
  height: 6px;
  background: transparent;
  border: transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: height 0.2s ease;
  z-index: 10;
  padding: 0;
}

.bp-col-bet:hover {
  height: 8px;
}

/* Game Rules Modal */
.game-rules-content {
  padding: 0 4px;
}

.gr-intro {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  opacity: 0.9;
}

.gr-heading {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
}

.gr-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.gr-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.gr-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  margin-top: 6px;
  flex-shrink: 0;
}

.gr-text {
  flex: 1;
}

.gr-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gr-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.gr-odds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Force 2 columns */
  gap: 24px 20px;
  /* More vertical gap */
}

.gr-odd-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.gr-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Game History Modal */
.gh-container {
  width: 100%;
  overflow-x: auto;
}

.gh-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: 1px solid #1e3a8a;
  /* Blue border */
  color: #fff;
  font-size: 14px;
}

.gh-table th,
.gh-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(30, 58, 138, 0.5);
}

.gh-table th {
  background: rgba(30, 58, 138, 0.3);
  font-weight: 700;
  border-top: 1px solid #1e3a8a;
  border-bottom: 2px solid #1e3a8a;
}

.gh-table tr:last-child td {
  border-bottom: none;
}

.gh-table .win-num {
  color: #ef4444;
  /* Red for winner */
  font-weight: bold;
}

.gh-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.gh-page-btn {
  background: #1e3a8a;
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.gh-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gh-page-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.gh-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* How to Play Modal */
.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lang-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.lang-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.lang-tab.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Bet History Revamp Styles */
.bh-container {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 10px;
}

/* Tools / Filters */
.bh-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.bh-date-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000E37;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bh-date-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.bh-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.bh-date-sep {
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
}

.bh-page-size {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bh-select {
  background: #000E37;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
}

/* Table */
.bh-table-wrap {
  overflow-x: auto;
  background: #000E37;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bh-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.bh-table th,
.bh-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bh-table th {
  font-size: 13px;
  font-weight: 600;
  color: #8fa3cc;
  text-transform: uppercase;
}

.bh-table td {
  font-size: 14px;
  font-weight: 500;
}

.bh-round-id {
  font-family: monospace;
  color: #fff;
  font-weight: 700 !important;
}

.bh-winner {
  font-weight: 700;
  text-transform: uppercase;
}

/* Profit / Loss Colors */
.bh-pos,
.bh-pos-text {
  color: #00ff88;
}

.bh-neg,
.bh-neg-text {
  color: #ff5d5d;
}

.bh-neu,
.bh-neu-text {
  color: #fff;
}

.bh-view-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.bh-view-btn:hover {
  opacity: 1;
  color: var(--accent);
}

/* Pagination */
.bh-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 10px;
  background: #000E37;
  border-radius: 8px;
}

.bh-showing {
  font-size: 13px;
  color: #8fa3cc;
}

.bh-pag-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bh-pag-btn {
  background: #001A5F;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.bh-pag-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bh-pag-current {
  background: #fff;
  color: #000;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
}

/* Detail View Layout */
.bh-summary-container {
  max-width: 800px;
  margin: 0 auto 20px auto;
}

/* Detail View */
.bh-top-bar {
  margin-bottom: 20px;
}

.bh-back-btn {
  background: #001A5F;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.bh-back-btn:hover {
  background: #002685;
}

.bh-card {
  background: linear-gradient(180deg, #001A5F 0%, #000E37 100%);
  border: 1px solid rgba(41, 169, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.bh-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.bh-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.bh-info-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.bh-label-icon {
  font-size: 20px;
  opacity: 0.7;
}

.bh-label {
  font-size: 12px;
  color: #8fa3cc;
  margin-bottom: 4px;
}

.bh-val {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* Results Card */
.bh-res-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #cbdcf7;
}

.bh-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
}

/* Bets Grid */
.bh-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bh-bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.bh-bet-card {
  background: radial-gradient(circle at top right, rgba(0, 116, 255, 0.15), transparent 60%), #000E37;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
}

.bh-bet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.bh-bet-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.bh-bet-label {
  color: #8fa3cc;
  font-size: 12px;
}

.bh-bet-val {
  color: #fff;
  font-weight: 600;
  text-transform: capitalize;
}

.bh-bet-val.bold {
  font-size: 15px;
}

.bh-bet-status {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bh-win {
  color: #00ff88;
}

.bh-loss {
  color: #ff5d5d;
}

.bh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bh-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 768px) {
  .bh-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .bh-date-group {
    width: 100%;
    justify-content: space-between;
  }

  .bh-pagination {
    flex-direction: column;
    gap: 10px;
  }
}

/* Multiplier Styles */
.bp-tile-mult {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  z-index: 5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
}

.zero-mult {
  top: 6px;
  left: 33%;
  transform: rotate(180deg);
}

.bp-group-mult {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.9;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Ensure buttons are flex containers to support multiplier positioning */
.bp-btn {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 12px !important;
}

.bet-amount-value {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 1px 1px 2px #000;
  pointer-events: none;
}

/* Menu Modal Styles */
.modal-header-hidden .modal-title,
.modal-header-hidden .modal-close-btn {
  display: none;
}

.modal-header-hidden {
  padding: 0 !important;
  border: none !important;
}

.menu-modal-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #001A5F 0%, #00033D 100%);
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.menu-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #120035;
  /* Dark purple/black header from design */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-user-avatar {
  width: 32px;
  height: 32px;
  background: #D9D9D9;
  /* Placeholder grey circle */
  border-radius: 50%;
}

.menu-username {
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: #fff;
}

.menu-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex: 1;
  /* Pushes footer down? or just takes space */
}

/* .menu-btn {
  background: linear-gradient(90deg, #0b348f 0%, #1545aa 100%);
  border: 1px solid #205bc7;
  border-radius: 24px;
  /* Pill shapeish */
/* padding: 14px 20px; */
/* color: #fff; */
/* font-size: 15px; */
/* font-weight: 600; */
/* cursor: pointer; */
/* text-align: center; */
/* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */
/* transition: transform 0.1s; */
/* }  */

.menu-btn:active {
  transform: scale(0.98);
}

.menu-footer {
  padding: 20px;
  margin-top: auto;
  /* Push to bottom if container has height */
}

.menu-btn-home {
  width: 100%;
  background: #1B52D8;
}

/* Modal Panel Menu Variant: Right Sidebar */
.modal-panel--menu {
  position: fixed;
  /* Override absolute from base .modal-panel */
  top: 12%;
  right: 0;
  bottom: 0;
  left: auto;
  /* Override left: 50% */
  transform: none;
  /* Override translate */
  width: 85%;
  max-width: 300px;
  height: 100dvh;
  /* Full height */
  padding: 0;
  background: transparent;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  border-radius: 20px 0 0 20px;
  /* Only round left corners */
  overflow: hidden;
  filter: none;
  /* remove drop-shadow filter, use box-shadow */
}

.menu-modal-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #033FAA 0%, #011944 100%);
  color: #fff;
  border-radius: 20px 0 0 20px;
  border: 1px solid #4467CC;
  border-right: none;
  /* No border on edge */
  overflow-y: auto;
  /* Allow internal scrolling if needed */
}

.menu-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #0D0029;
  /* Very deep purple/black */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-user-avatar {
  width: 42px;
  height: 42px;
  background: #E0E0E0;
  border-radius: 50%;
  border: 2px solid #fff;
}

.menu-username {
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
}

.menu-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.menu-close-btn:hover {
  opacity: 1;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
  flex: 1;
}

.menu-btn {
  /* Gradient Button */
  background: #0C309E;
  box-shadow: 0px 2px 3px 6px #00000040 inset, 0px 6px 4px 2px #170640;
  /* Darker bottom border */
  border-radius: 12px;
  padding: 16px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  /* 3D depth */
  transition: transform 0.1s, box-shadow 0.1s;
}

.menu-btn:hover {
  filter: brightness(1.1);
}

.menu-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0px #0A225A, 0 4px 5px rgba(0, 0, 0, 0.3);
}

/* Home Button */
.menu-footer {
  padding: 20px;
  margin-top: auto;
  padding-bottom: 24px;
}

.menu-btn-home {
  width: 100%;
  /* Slightly different blue for home? Or same? */
  background: linear-gradient(180deg, #1C4CB2 0%, #103380 100%);
  /* Matches other buttons */
}

/* Update groups layout for Grid */
.bp-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Default Desktop: 2 columns */
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border-radius: 8px;
  padding: 0px;
  box-sizing: border-box;
}

/* Make wide buttons span 1 col on desktop (default) */
.bp-groups .bp-btn {
  grid-column: span 1;
}

.bp-controls-wrapper {
  display: block;
  /* Default Desktop: Stacked */
}

.bp-coin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.bp-bet-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-amount-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* New Amount Display styling */
.bp-amount-display {
  flex: 1;
  background: #01326A;
  border-radius: 6px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center content */
  position: relative;
  padding: 0 10px;
}

.bp-amount {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.bp-amount-arrows {
  position: absolute;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Mobile Overrides */
@media screen and (max-width: 768px) {

  /* Groups: 4 columns for first 4 items */
  .bp-groups {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  /* 1-8, 9-16, RED, BLACK span 1 column each -> 4 in a row */
  .bp-groups .bp-btn:nth-child(-n+4) {
    grid-column: span 1;
    font-size: 11px;
    /* Smaller font for 4-col */
    padding: 2px;
  }

  /* Multiplier text smaller */
  .bp-group-mult {
    font-size: 9px;
  }

  /* EVEN, ODD span 2 columns each -> 2 in a row */
  .bp-groups .bp-btn.group-wide {
    grid-column: span 2;
  }

  /* Side-by-side Controls Layout */
  .bp-controls-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Chips larger than controls */
    gap: 10px;
    margin-top: 10px;
  }

  .bp-coin-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 chips per row */
    gap: 6px;
    margin-bottom: 0;
  }

  .bp-coin {
    height: 45px;
    /* Taller touch targets */
  }

  .bp-coin-img {
    width: 60px;
    height: 60px;
  }

  .bp-bet-controls {
    justify-content: space-between;
    /* Space out Input and Button */
    height: 100%;
  }

  .bp-amount-control {
    height: 48%;
    /* Top half */
  }

  .bp-amount-display {
    width: 100%;
    height: 100%;
    background: #01326A;
    border-radius: 8px;
  }

  .bp-bet-btn {
    height: 48%;
    /* Bottom half */
    font-size: 14px;
    background: #01326A;
    border-radius: 8px;
  }
}

/* My Bet Panel Redesign */
.my-bet-panel {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 0;
  gap: 12px;
  background: linear-gradient(121.52deg, #00366F 5.3%, #00123A 97.36%);
  border: 1px solid #4467CC80
}

.my-bet-header {
  border: 1px solid #0B6CCB;
  background: linear-gradient(121.52deg, #00366F 10.44%, #00123A 50.05%);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 116, 255, 0.2);
}

.my-bet-header h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: capitalize;
}

.my-bet-tabs {
  display: flex;
  background: transparent;
  border: 1px solid #0B6CCB;
  border-radius: 20px;
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: #000E37;
  /* Darker background for active */
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.tab-btn:not(.active) {
  opacity: 0.8;
}

.tab-btn:hover:not(.active) {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.my-bet-content {
  border: 1px solid rgba(0, 116, 255, 0.3);
  border-radius: 8px;
  padding: 0 10px;
  min-height: 160px;
  max-height: 200px;
  overflow-y: auto;
  position: relative;
  /* For sticky header context */
  /* Cross-browser custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #2a78ff #001533;
}

/* Chrome / Edge / Safari (webkit) */
.my-bet-content::-webkit-scrollbar {
  width: 6px;
}

.my-bet-content::-webkit-scrollbar-track {
  background: #001533;
  border-radius: 3px;
}

.my-bet-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a78ff, #9a66ff);
  border-radius: 3px;
}

.my-bet-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4990ff, #b480ff);
}

.mb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #fff;
  /* min-height: 160px; Removed to let content dictate up to max-height */
}

.mb-table thead th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 500;
  color: #fff;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
  position: sticky;
  top: 0;
  /* Match panel bg for opacity */
  z-index: 10;
}

.mb-table tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mb-table tbody tr:last-child td {
  border-bottom: none;
}

.mb-empty {
  text-align: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Result Popup Redesign */
.result-popup-card {
  background: linear-gradient(180deg, #001f4d 0%, #000a1f 100%);
  border: 2px solid #0088cc;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.5), inset 0 0 20px rgba(0, 136, 204, 0.2);
  padding: 2px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.rp-header-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 136, 204, 0.3);
}

.calc-gold {
  color: #FFC107;
}

.calc-white {
  color: #ffffff;
  font-weight: bold;
}

.rp-table-header {
  display: flex;
  padding: 10px 20px;
  color: #8b92a8;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rp-table-header span {
  flex: 1;
}

.rp-table-body {
  min-height: 150px;
  max-height: 250px;
  overflow-y: auto;
  padding: 0 10px;
  /* Cross-browser custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #2a78ff #001533;
}

/* Chrome / Edge / Safari (webkit) */
.rp-table-body::-webkit-scrollbar {
  width: 6px;
}

.rp-table-body::-webkit-scrollbar-track {
  background: #001533;
  border-radius: 3px;
}

.rp-table-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2a78ff, #9a66ff);
  border-radius: 3px;
}

.rp-table-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4990ff, #b480ff);
}

.rp-table-row {
  display: flex;
  padding: 10px 10px;
  color: #fff;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

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

.rp-cell-placement {
  flex: 1;
}

.rp-cell-bet {
  flex: 1;
  color: #fff;
}

.rp-cell-cashout {
  flex: 1;
  color: #4CAF50;
  font-weight: bold;
}

.rp-footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.rp-net-result {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}

.rp-timer {
  font-size: 14px;
  color: #FFC107;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.rp-play-again-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(180deg, #0B6CCB 0%, #00366F 100%);
  border: 1px solid #4467CC;
  border-radius: 25px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s;
}

.rp-play-again-btn:active {
  transform: scale(0.98);
}

.rp-no-bets {
  text-align: center;
  padding: 20px;
  color: #8b92a8;
  font-style: italic;
}

/* Leaderboard Redesign (Matches My Bet Panel) */
.lb-redesign-panel {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 12px;
  gap: 12px;
  background: linear-gradient(121.52deg, #00366F 5.3%, #00123A 97.36%);
  border: 1px solid rgba(68, 103, 204, 0.5);
  border-radius: 16px;
  height: 100%;
  overflow: hidden;
}



.lb-redesign-tabs {
  display: flex;
  background: transparent;
  border: 1px solid #0B6CCB;
  border-radius: 20px;
  padding: 4px;
  gap: 4px;
  flex-shrink: 0;
}

.lb-redesign-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lb-redesign-tab-btn.active {
  background: #000E37;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.lb-redesign-tab-btn:not(.active) {
  opacity: 0.8;
}

.lb-redesign-tab-btn:hover:not(.active) {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.lb-redesign-content {
  border: 2px solid rgba(0, 116, 255, 0.3);
  border-radius: 8px;
  padding: 0 0px;
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: #3b82f6 #00123A;
}

/* Custom Scrollbar for Leaderboard */
.lb-redesign-content::-webkit-scrollbar {
  width: 8px;
}

.lb-redesign-content::-webkit-scrollbar-track {
  background: #00123A;
  border-radius: 4px;
}

.lb-redesign-content::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 4px;
}

.lb-redesign-content::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

.lb-redesign-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  /* Gap between rows */
  font-size: 13px;
  color: #fff;
}

.lb-redesign-table a {
  color: #fff;
  text-decoration: none;
}

.lb-redesign-table a:hover {
  text-decoration: underline;
}

.lb-redesign-table thead th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-redesign-table tbody tr {
  background: rgba(1, 25, 69, 1);
  transition: background 0.2s;
}

.lb-redesign-table tbody tr:hover {
  background: rgba(0, 40, 140, 0.8);
}

.lb-redesign-table tbody td {
  padding: 8px 10px;
  vertical-align: middle;
  border-bottom: none;
}

.lb-redesign-table tbody tr td:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.lb-redesign-table tbody tr td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.lb-count-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 4px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  pointer-events: all;
  cursor: default;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* Start invisible + shifted up */
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  min-width: 220px;
  max-width: 360px;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--hiding {
  opacity: 0;
  transform: translateY(-12px);
}

/* Severity variants */
.toast--error {
  background: linear-gradient(135deg, rgba(180, 30, 30, 0.92), rgba(120, 10, 10, 0.88));
  border-color: rgba(255, 93, 93, 0.4);
}

.toast--warning {
  background: linear-gradient(135deg, rgba(160, 100, 0, 0.92), rgba(100, 60, 0, 0.88));
  border-color: rgba(255, 180, 0, 0.4);
}

.toast--info {
  background: linear-gradient(135deg, rgba(0, 80, 180, 0.92), rgba(0, 40, 120, 0.88));
  border-color: rgba(0, 116, 255, 0.4);
}

.toast--success {
  background: linear-gradient(135deg, rgba(10, 130, 80, 0.92), rgba(5, 80, 50, 0.88));
  border-color: rgba(25, 195, 125, 0.4);
}

.toast__icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.toast__message {
  flex: 1;
  line-height: 1.4;
}

.toast__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}

.toast__close:hover {
  color: #ffffff;
}
