/* =====================================================
   DESIGN SYSTEM — Inter font, kırmızı-beyaz brand, koyu arka plan
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0B0F14;
  --surface: #121824;
  --surface2: #0F1520;
  --border: #1F2A3A;
  --text: #E7EEF9;
  --muted: #9AA7B8;
  --danger: #FF3B30;
  --success: #22C55E;
  --warning: #F59E0B;
  --brandRed: #E11D2E;
  --brandRed2: #B81220;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-btn: 10px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: var(--font);
}

img {
  max-width: 100%;
  display: block;
}

/* =================== SCROLLBAR =================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2a3344;
  border-radius: 99px;
}

/* =================== TYPOGRAPHY =================== */
.text-xs {
  font-size: 12px;
}

.text-sm {
  font-size: 14px;
}

.text-base {
  font-size: 16px;
}

.text-lg {
  font-size: 18px;
}

.text-xl {
  font-size: 20px;
}

.text-2xl {
  font-size: 24px;
}

.text-3xl {
  font-size: 32px;
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

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

/* =================== ANNOUNCEMENT BAR =================== */
.announcement-bar {
  background: linear-gradient(90deg, var(--brandRed), var(--brandRed2));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 100;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-bar.hidden {
  display: none;
}

.announcement-bar a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
}

.announcement-bar .social-icons {
  display: flex;
  gap: 10px;
  margin-left: 12px;
}

.announcement-bar .social-icons a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.announcement-bar .social-icons a:hover {
  opacity: 1;
}

.announcement-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--transition);
}

.announcement-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* =================== HEADER =================== */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  flex-shrink: 0;
}

.header-logo span {
  color: var(--brandRed);
}

.header-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}

.header-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.header-nav a.active {
  color: var(--white);
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--brandRed);
  border-radius: 2px;
}

.header-nav .live-dot {
  width: 6px;
  height: 6px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.header-actions .icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: all var(--transition);
  font-size: 18px;
  position: relative;
}

.header-actions .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.header-actions .icon-btn .badge-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--brandRed);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.header-action-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--transition);
}

.icon-btn:hover .header-action-icon,
.btn-secondary:hover .header-action-icon {
  opacity: 1;
}

.btn-primary {
  background: var(--brandRed);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 13px;
  min-height: 40px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--brandRed2);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 13px;
  min-height: 40px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  border-color: var(--muted);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

/* =================== MAIN LAYOUT =================== */
.main-layout {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 16px;
  padding: 16px 24px 100px;
  max-width: 1600px;
  margin: 0 auto;
}

/* =================== LEFT SIDEBAR =================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.sidebar-search {
  position: relative;
}

.sidebar-search input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px 10px 36px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  transition: border-color var(--transition);
}

.sidebar-search input:focus {
  outline: none;
  border-color: var(--brandRed);
}

.sidebar-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
}

.filter-chip.active {
  border-color: var(--brandRed);
  color: var(--white);
  background: rgba(225, 29, 46, 0.1);
}

.filter-chip:hover {
  border-color: var(--muted);
  color: var(--white);
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
  margin-bottom: 4px;
}

.league-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.league-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.league-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.league-item.active {
  border-color: var(--brandRed);
  background: rgba(225, 29, 46, 0.08);
}

.league-item .count {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}

.sport-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sport-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--transition);
}

.sport-nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.sport-nav-item.active {
  color: var(--white);
  background: rgba(225, 29, 46, 0.08);
}

.sport-nav-item .icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sport-nav-item .badge-sm {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}

/* =================== CENTER CONTENT =================== */
.content-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Banner Slider --- */
.banner-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3.2 / 1;
  margin-bottom: 14px;
}

.banner-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-placeholder {
  position: absolute;
  inset: 0;
  background: var(--surface2);
  filter: blur(20px);
  transform: scale(1.1);
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition);
}

.banner-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 99px;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 5;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}

.banner-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.banner-arrow.prev {
  left: 12px;
}

.banner-arrow.next {
  right: 12px;
}

/* --- Section Header --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.section-title-main {
  font-size: 18px;
  font-weight: 700;
}

.section-link {
  font-size: 13px;
  color: var(--brandRed);
  font-weight: 500;
}

/* --- Sport Category Tabs --- */
.sport-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 10px;
}

.sport-tabs::-webkit-scrollbar {
  display: none;
}

.sport-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all var(--transition);
}

.sport-tab .tab-count {
  background: var(--surface2);
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sport-tab.active {
  color: var(--white);
  border-color: var(--brandRed);
  background: rgba(225, 29, 46, 0.1);
}

.sport-tab:hover {
  border-color: var(--muted);
  color: var(--white);
}

/* =================== MATCH CARD =================== */
.match-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.match-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface2);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.match-group-header .flag {
  font-size: 16px;
}

.match-group-header .chevron {
  margin-left: auto;
  transition: transform var(--transition);
}

.match-group-header.collapsed .chevron {
  transform: rotate(-90deg);
}

.match-card {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.match-card:last-child {
  border-bottom: none;
}

.match-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.match-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.match-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.match-live-badge {
  background: rgba(255, 59, 48, 0.15);
  color: var(--danger);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.3);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0);
  }
}

.match-live-badge .dot {
  width: 5px;
  height: 5px;
  background: var(--danger);
  border-radius: 50%;
}

.match-league {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.match-extra-count {
  font-size: 11px;
  color: var(--brandRed);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.match-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
}

.match-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  min-width: 20px;
  text-align: center;
}

/* --- Market Carousel --- */
.market-carousel {
  position: relative;
  overflow: hidden;
}

.market-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.market-tabs::-webkit-scrollbar {
  display: none;
}

.market-tab {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px;
  white-space: nowrap;
  transition: all var(--transition);
  background: transparent;
}

.market-tab.active {
  color: var(--white);
  background: rgba(225, 29, 46, 0.12);
}

.market-tab:hover {
  color: var(--white);
}

.market-slide-container {
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.market-slide-container:active {
  cursor: grabbing;
}

.market-slide-track {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.market-slide {
  min-width: 100%;
  display: grid;
  gap: 6px;
  flex-shrink: 0;
}

.market-slide.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.market-slide.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.odd-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  justify-content: center;
}

.odd-btn:hover {
  border-color: var(--brandRed);
  background: rgba(225, 29, 46, 0.06);
}

.odd-btn.selected {
  border-color: var(--brandRed);
  background: rgba(225, 29, 46, 0.15);
}

.odd-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.odd-btn .odd-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.odd-btn .odd-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.odd-btn .odd-value.up {
  color: var(--success);
}

.odd-btn .odd-value.down {
  color: var(--danger);
}

/* =================== BETSLIP (RIGHT PANEL) =================== */
.betslip-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
}

.betslip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.betslip-header h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.betslip-badge {
  background: var(--brandRed);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.betslip-reservation {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.betslip-reservation input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.betslip-reservation input:focus {
  outline: none;
  border-color: var(--brandRed);
}

.betslip-reservation button {
  background: var(--brandRed);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.betslip-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.betslip-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  color: var(--muted);
  text-align: center;
  gap: 12px;
}

.betslip-empty .icon {
  font-size: 40px;
  opacity: 0.3;
}

.betslip-empty p {
  font-size: 13px;
  line-height: 1.5;
}

.slip-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  position: relative;
}

.slip-item-remove {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.slip-item-remove:hover {
  color: var(--danger);
  background: rgba(255, 59, 48, 0.1);
}

.slip-item-match {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
  padding-right: 20px;
}

.slip-item-market {
  font-size: 11px;
  color: var(--muted);
}

.slip-item-odds {
  font-size: 15px;
  font-weight: 700;
  color: var(--brandRed);
  margin-top: 4px;
}

.slip-item-odds.changed {
  animation: odds-flash 0.6s ease;
}

@keyframes odds-flash {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.betslip-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.stake-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.stake-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  transition: border-color var(--transition);
}

.stake-input:focus {
  outline: none;
  border-color: var(--brandRed);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.summary-row .label {
  color: var(--muted);
}

.summary-row .value {
  font-weight: 700;
}

.summary-row .value.big {
  font-size: 18px;
  color: var(--success);
}

.betslip-actions {
  display: flex;
  gap: 8px;
}

.betslip-actions .btn-place {
  flex: 1;
  background: var(--brandRed);
  color: var(--white);
  padding: 12px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  transition: background var(--transition);
}

.betslip-actions .btn-place:hover {
  background: var(--brandRed2);
}

.betslip-actions .btn-place:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.betslip-actions .btn-clear {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  min-height: 44px;
  transition: all var(--transition);
}

.betslip-actions .btn-clear:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* =================== CHATBOT =================== */
.chatbot-trigger {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brandRed);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(225, 29, 46, 0.4);
  transition: all var(--transition);
}

.chatbot-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.chatbot-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(225, 29, 46, 0.5);
}

.chatbot-drawer {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 200;
  width: 360px;
  max-height: 500px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: chatSlideIn 0.3s ease;
}

.chatbot-drawer.open {
  display: flex;
}

@keyframes chatSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--brandRed);
  color: #fff;
}

.chatbot-header h4 {
  font-size: 14px;
  font-weight: 700;
}

.chatbot-close {
  font-size: 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
}

.chatbot-close:hover {
  color: #fff;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-msg.bot {
  background: var(--surface2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  background: var(--brandRed);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}

.chat-chip {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.chat-chip:hover {
  border-color: var(--brandRed);
}

.chatbot-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.chatbot-input-area input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.chatbot-input-area input:focus {
  outline: none;
  border-color: var(--brandRed);
}

.chatbot-input-area button {
  background: var(--brandRed);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}

/* =================== MOBILE BOTTOM NAV =================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 80;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.mobile-bottom-nav .nav-items {
  display: flex;
  justify-content: space-around;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  text-decoration: none;
  min-width: 56px;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--brandRed);
}

.mobile-bottom-nav .nav-item .mob-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--brandRed);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =================== MODAL =================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-box.wide {
  max-width: 960px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 59, 48, 0.1);
  color: var(--danger);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* =================== AUTH FORMS =================== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.form-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  transition: border-color var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--brandRed);
}

.form-input.error {
  border-color: var(--danger);
}

.form-error {
  font-size: 11px;
  color: var(--danger);
}

.password-toggle {
  position: relative;
}

.password-toggle input {
  padding-right: 44px;
  width: 100%;
}

.password-toggle .toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.strength-bar {
  height: 3px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  margin-top: 4px;
}

.strength-bar .fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s;
}

.strength-bar .fill.weak {
  width: 25%;
  background: var(--danger);
}

.strength-bar .fill.fair {
  width: 50%;
  background: var(--warning);
}

.strength-bar .fill.good {
  width: 75%;
  background: #4ade80;
}

.strength-bar .fill.strong {
  width: 100%;
  background: var(--success);
}

.form-footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.form-footer a {
  color: var(--brandRed);
  font-weight: 600;
}

/* =================== TOAST =================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 400px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.3s ease;
  transition: all 0.3s;
}

.toast.hide {
  opacity: 0;
  transform: translateX(100px);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

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

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

.toast.info {
  border-left: 3px solid var(--brandRed);
}

.toast .toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: var(--success);
}

.toast.error .toast-icon {
  color: var(--danger);
}

.toast.info .toast-icon {
  color: var(--brandRed);
}

/* =================== PAGE-SPECIFIC STYLES =================== */
/* Casino / Promo / Wallet / Profile / Help */
.page-container {
  display: none;
}

.page-container.active {
  display: block;
}

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

.promo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.promo-card:hover {
  border-color: var(--brandRed);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.promo-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.promo-card-body {
  padding: 16px;
}

.promo-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-box .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.stat-box .stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.wallet-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.wallet-btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: all var(--transition);
}

.wallet-btn.deposit {
  background: var(--success);
  color: #fff;
}

.wallet-btn.deposit:hover {
  background: #16a34a;
}

.wallet-btn.withdraw {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}

.wallet-btn.withdraw:hover {
  border-color: var(--muted);
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tx-item .tx-type {
  font-size: 13px;
  font-weight: 600;
}

.tx-item .tx-amount {
  font-size: 14px;
  font-weight: 700;
}

.tx-item .tx-amount.plus {
  color: var(--success);
}

.tx-item .tx-amount.minus {
  color: var(--danger);
}

.tx-item .tx-date {
  font-size: 11px;
  color: var(--muted);
}

.tx-item .tx-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 99px;
  font-weight: 600;
}

.tx-item .tx-status.completed {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.tx-item .tx-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  padding: 0 16px 14px;
  max-height: 300px;
}

/* =================== MATCH DETAIL (Full Page) =================== */
.detail-hero {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 255, 255, 0.03) 50%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 16px;
}

.detail-hero-league {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-league-name {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 65%;
}

.detail-match-time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.detail-hero-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.detail-team {
  flex: 1;
  min-width: 0;
}

.detail-team-home {
  text-align: right;
}

.detail-team-away {
  text-align: left;
}

.detail-team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  word-break: break-word;
}

.detail-score-center {
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}

.detail-score {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1;
}

.detail-score-sep {
  color: var(--muted);
  margin: 0 4px;
}

.detail-vs {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .detail-hero {
    padding: 16px 12px;
  }

  .detail-team-name {
    font-size: 14px;
  }

  .detail-score {
    font-size: 28px;
  }

  .detail-score-center {
    min-width: 64px;
  }

  .detail-hero-teams {
    gap: 8px;
  }
}

.detail-widget {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.detail-widget iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.detail-markets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-market-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-market-title {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-market-odds {
  padding: 10px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
}

.detail-odd-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.detail-odd-btn:hover {
  border-color: var(--brandRed);
}

.detail-odd-btn.selected {
  border-color: var(--brandRed);
  background: rgba(225, 29, 46, 0.15);
}

.detail-odd-btn .odd-name {
  font-size: 10px;
  color: var(--muted);
}

.detail-odd-btn .odd-val {
  font-size: 14px;
  font-weight: 700;
}

/* =================== SKELETON LOADING =================== */
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius);
}

.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-line:last-child {
  width: 60%;
}

/* =================== EMPTY & ERROR STATES =================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state .icon {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
  max-width: 320px;
  line-height: 1.6;
}

/* =================== MOBILE SIDEBAR OVERLAY =================== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.open {
  display: block;
}

/* =================== BETSLIP MOBILE DRAWER =================== */
.betslip-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.betslip-mobile-overlay.open {
  display: block;
}

.betslip-mobile-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  z-index: 160;
  max-height: 80vh;
  display: none;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.betslip-mobile-drawer.open {
  display: flex;
  transform: translateY(0);
}

.betslip-drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  margin: 8px auto;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 220px 1fr;
    padding: 16px 16px 100px;
  }

  .betslip-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding: 12px 12px 80px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    z-index: 110;
    background: var(--bg);
    padding: 16px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 1px solid var(--border);
    border-radius: 0;
    max-height: 100vh;
    top: 0;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .betslip-panel {
    display: none;
  }

  .header {
    padding: 0 12px;
    gap: 10px;
    height: 56px;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-logo {
    font-size: 22px;
  }

  .header-actions .btn-primary,
  .header-actions .btn-secondary {
    padding: 8px 12px;
    font-size: 12px;
  }

  .mobile-bottom-nav {
    display: block;
  }

  .announcement-bar {
    font-size: 11px;
    gap: 8px;
    padding: 6px 40px 6px 12px;
  }

  .announcement-bar .social-icons {
    display: none;
  }

  .banner-slider {
    aspect-ratio: 2.2 / 1;
  }

  .chatbot-trigger {
    bottom: 90px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .chatbot-drawer {
    bottom: 130px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: 360px;
  }

  .toast-container {
    right: 12px;
    left: 12px;
    top: 64px;
  }

  .toast {
    min-width: auto;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .header-actions .btn-secondary {
    display: none;
  }

  .banner-slider {
    aspect-ratio: 1.8 / 1;
  }
}

/* =================== UTILITIES =================== */
.hidden {
  display: none !important;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-8 {
  gap: 8px;
}

.gap-16 {
  gap: 16px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.p-16 {
  padding: 16px;
}

.w-full {
  width: 100%;
}

/* =================== SIDEBAR GAMES =================== */
.sidebar-games {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-game-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-game-item:hover {
  background: rgba(225, 29, 46, 0.08);
  color: var(--text);
}

.sidebar-game-item.active {
  background: rgba(225, 29, 46, 0.15);
  color: var(--brandRed);
  font-weight: 600;
}

.sidebar-game-item .icon {
  font-size: 16px;
}

/* =================== LEAGUE COUNTRY GROUPS =================== */
.league-country-group {
  margin-bottom: 4px;
}

.league-country-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 4px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

/* =================== GAME CARDS =================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brandRed);
}

.game-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface2);
}

.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-img img {
  transform: scale(1.08);
}

.game-card-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover .game-card-hover {
  opacity: 1;
}

.game-play-btn,
.game-demo-btn {
  min-width: 100px;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-weight: 600;
}

.game-card-info {
  padding: 10px 12px;
}

.game-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-provider {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* =================== DETAIL BACK BUTTON =================== */
.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: var(--transition);
  font-family: var(--font);
}

.detail-back-btn:hover {
  background: var(--brandRed);
  border-color: var(--brandRed);
  color: var(--white);
}

/* =================== DETAIL MARKET CATEGORIES =================== */
.detail-market-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-category {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-category-title {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.detail-category-title:hover {
  background: rgba(225, 29, 46, 0.08);
}

.detail-category-title .cat-count {
  margin-left: 8px;
  font-size: 11px;
  color: var(--muted);
  background: var(--border);
  padding: 2px 8px;
  border-radius: 10px;
}

.detail-category-title .chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.detail-category.collapsed .detail-category-title .chevron {
  transform: rotate(-90deg);
}

.detail-category-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-category.collapsed .detail-category-body {
  display: none;
}

/* =================== MOBILE NAV ICONS =================== */
.nav-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.6;
  transition: var(--transition);
}

.nav-item.active .nav-icon {
  opacity: 1;
  filter: brightness(1.2);
}

/* =================== SPORT & SIDEBAR PNG ICONS =================== */
.sport-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.sidebar-game-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.8;
  transition: var(--transition);
}

.sidebar-game-item:hover .sidebar-game-icon,
.sidebar-game-item.active .sidebar-game-icon {
  opacity: 1;
}

@media (max-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
}

/* =================== HORIZONTAL ICON MENU (Tipico-style) =================== */
.horizontal-menu {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 85;
  overflow: hidden;
}

.horizontal-menu-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

.horizontal-menu-inner::-webkit-scrollbar {
  display: none;
}

.hmenu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
  min-width: 70px;
  text-align: center;
}

.hmenu-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.hmenu-item.active {
  color: var(--white);
}

.hmenu-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--brandRed);
  border-radius: 2px;
}

.hmenu-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--transition);
}

.hmenu-item:hover .hmenu-icon,
.hmenu-item.active .hmenu-icon {
  opacity: 1;
}

@media (max-width: 768px) {
  .horizontal-menu {
    top: 56px;
  }

  .horizontal-menu-inner {
    padding: 0 8px;
  }

  .hmenu-item {
    padding: 8px 12px;
    min-width: 60px;
    font-size: 10px;
  }

  .hmenu-icon {
    width: 20px;
    height: 20px;
  }
}

/* =================== NO-SIDEBAR LAYOUT =================== */
.main-layout.no-sidebar {
  grid-template-columns: 1fr 320px;
  max-width: 1400px;
}

@media (max-width: 1200px) {
  .main-layout.no-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-layout.no-sidebar {
    grid-template-columns: 1fr;
    padding: 12px 12px 80px;
  }
}

/* =================== EVENT CARDS =================== */
.event-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.event-card.tipclub::before {
  background: linear-gradient(90deg, var(--brandRed), #FF6B35);
}

.event-card.million::before {
  background: linear-gradient(90deg, #F59E0B, #22C55E);
}

.event-card:hover {
  border-color: var(--brandRed);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.event-card-icon {
  flex-shrink: 0;
}

.event-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
}

.event-card-body {
  flex: 1;
  min-width: 0;
}

.event-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.event-card-body p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.event-card-cta {
  background: var(--brandRed);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}

.event-card-cta:hover {
  background: var(--brandRed2);
}

@media (max-width: 520px) {
  .event-cards {
    grid-template-columns: 1fr;
  }
}

/* =================== INLINE SEARCH BAR =================== */
.inline-search-bar {
  position: relative;
  margin-bottom: 12px;
}

.inline-search-bar input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px 10px 36px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  transition: border-color var(--transition);
}

.inline-search-bar input:focus {
  outline: none;
  border-color: var(--brandRed);
}

.search-icon-inline {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

/* =================== ADMIN / DEALER PANEL =================== */
.admin-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tab {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all var(--transition);
}

.admin-tab.active {
  color: var(--white);
  border-color: var(--brandRed);
  background: rgba(225, 29, 46, 0.1);
}

.admin-tab:hover {
  color: var(--white);
  border-color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.admin-stat-card .stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.admin-stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
}

.admin-stat-card .stat-value.green {
  color: var(--success);
}

.admin-stat-card .stat-value.red {
  color: var(--danger);
}

.admin-stat-card .stat-value.yellow {
  color: var(--warning);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13px;
}

.admin-table th {
  background: var(--surface2);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

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

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.admin-form h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-form .form-input {
  font-size: 13px;
  padding: 10px 12px;
}

.badge-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-status.won {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-status.lost {
  background: rgba(255, 59, 48, 0.15);
  color: var(--danger);
}

.badge-status.cancelled {
  background: rgba(156, 163, 175, 0.15);
  color: var(--muted);
}

.badge-status.refunded {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.badge-status.active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-status.suspended {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-status.banned {
  background: rgba(255, 59, 48, 0.15);
  color: var(--danger);
}

.admin-actions {
  display: flex;
  gap: 6px;
}

.admin-actions button {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.admin-actions button:hover {
  border-color: var(--brandRed);
  color: var(--brandRed);
}

.admin-actions button.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

@media (max-width: 768px) {
  .admin-table {
    font-size: 11px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 8px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =================== HAMBURGER - HIDE =================== */
.hamburger {
  display: none !important;
}

/* =================== SPORT FILTER TOGGLE (Live / Today) =================== */
.sport-filter-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.filter-toggle-btn:hover {
  border-color: var(--muted);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.filter-toggle-btn.active {
  color: var(--white);
  border-color: var(--brandRed);
  background: rgba(225, 29, 46, 0.15);
}

.filter-toggle-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: invert(0.6);
  transition: filter var(--transition);
}

.filter-toggle-btn.active .filter-toggle-icon {
  filter: invert(1);
}

/* =================== SPORT PAGE BANNERS =================== */
.sport-banner {
  aspect-ratio: 3.2 / 1;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.sport-banner .banner-track {
  display: flex;
  height: 100%;
}

.sport-banner .banner-slide {
  min-width: 100%;
  height: 100%;
}

.sport-banner .banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* =================== PROFILE PAGE REDESIGN =================== */
.profile-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brandRed), var(--brandRed2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.profile-header-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.profile-badge.dealer {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.profile-badge.admin {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.profile-balance-card {
  background: linear-gradient(135deg, #1a1f2e, #0f1520);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}

.profile-balance-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-balance-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 16px;
}

.profile-balance-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.profile-balance-actions .btn-primary,
.profile-balance-actions .btn-secondary {
  flex: 1;
  max-width: 200px;
  justify-content: center;
}

.profile-section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.profile-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.profile-info-label {
  font-size: 13px;
  color: var(--muted);
}

.profile-info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: right;
  word-break: break-all;
  max-width: 60%;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-form .form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  font-size: 14px;
}

.profile-form .form-input:focus {
  outline: none;
  border-color: var(--brandRed);
}

.profile-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}

.profile-action-btn:hover {
  border-color: var(--brandRed);
  background: rgba(225, 29, 46, 0.06);
}

.profile-action-btn.admin-action {
  border-color: rgba(245, 158, 11, 0.3);
}

.profile-action-btn.dealer-action {
  border-color: rgba(34, 197, 94, 0.3);
}

.btn-logout {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-btn);
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-logout:hover {
  background: rgba(255, 59, 48, 0.2);
}

/* =================== RESPONSIVE TABLES (Admin/Dealer) =================== */
.admin-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .admin-table {
    min-width: 600px;
    font-size: 12px;
  }

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

  .admin-form-row {
    flex-direction: column;
    gap: 8px;
  }

  .admin-form-row .form-input,
  .admin-form-row .btn-primary {
    width: 100%;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .admin-stat-card {
    padding: 12px;
  }

  /* Make all admin tables scroll horizontally */
  #dealerContent table,
  #adminContent table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 100%;
  }

  #dealerContent table thead,
  #adminContent table thead,
  #dealerContent table tbody,
  #adminContent table tbody {
    display: table;
    width: 100%;
    min-width: 550px;
  }

  /* Profile responsive */
  .profile-balance-value {
    font-size: 28px;
  }

  .profile-avatar {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .profile-actions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .profile-action-btn {
    padding: 12px 10px;
    font-size: 12px;
  }
}

/* =================== BANNER FIT FIX =================== */
.banner-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .banner-slider {
    aspect-ratio: 2.5 / 1;
    border-radius: var(--radius-sm);
  }

  .sport-banner {
    aspect-ratio: 2.5 / 1;
  }
}