/* ===================================================
   NEW DESIGN - ì–´ëŠë‚  (White/Blue Theme)
   =================================================== */

:root {
  --nd-header-bg: rgb(53, 63, 75);
  --nd-primary: #4A7BF7;
  --nd-primary-dark: #2D5BD0;
  --nd-blue-btn: #5B8DEF;
  --nd-text-dark: #333;
  --nd-text-gray: #888;
  --nd-bg-white: #fff;
  --nd-bg-light: #f5f7fb;
  --nd-content-width: 1440px;
}

/* ===== GLOBAL OVERRIDES ===== */
body {
  background: var(--nd-bg-light) !important;
  font-family: 'Noto Sans KR', Pretendard, sans-serif !important;
  color: var(--nd-text-dark);
}

body, body * {
  font-family: 'Noto Sans KR', Pretendard, sans-serif;
}

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

/* Hide old header/footer */
#Header { display: none !important; }
#Footer { display: none !important; }

/* Fix layout - override old absolute positioning */
#App,
#App #Page {
  position: static !important;
  display: block !important;
  min-width: auto !important;
}

#App #Page {
  min-height: auto !important;
}

#App #Page,
#App #Page #Container {
  position: static !important;
  min-width: auto !important;
  width: 100% !important;
}

#App #Page #Container {
  top: auto !important;
  bottom: auto !important;
  overflow-y: visible !important;
  overflow-x: visible !important;
  padding-top: 0 !important;
  color: var(--nd-text-dark) !important;
}

/* ===== TOP BAR ===== */
.hd-topbar {
  background: var(--nd-header-bg);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-topbar-inner {
  max-width: var(--nd-content-width);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.hd-topbar-left ul {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hd-topbar-left li a {
  color: #b0b8c4;
  font-size: 12px;
  padding: 0 10px;
  transition: color 0.2s;
  border-right: 1px solid #4a5568;
}

.hd-topbar-left li:last-child a { border-right: none; }
.hd-topbar-left li a:hover { color: #fff; }

.hd-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hd-btn-blue {
  background: var(--nd-blue-btn);
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.hd-btn-blue:hover { background: var(--nd-primary-dark); }

.hd-btn-outline {
  background: transparent;
  color: var(--nd-blue-btn) !important;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--nd-blue-btn);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.hd-btn-outline:hover { background: var(--nd-blue-btn); color: #fff !important; }

.hd-btn-gray {
  background: transparent;
  color: #b0b8c4 !important;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #5a6577;
  cursor: pointer;
  display: inline-block;
}
.hd-btn-gray:hover { color: #fff !important; border-color: #8a95a7; }

.hd-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
}

.hd-nickname { font-weight: 700; }

.hd-cash-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.hd-cash-label { color: #b0b8c4; margin-right: 2px; }

.hd-lang-select {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #b0b8c4;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #4a5568;
  border-radius: 4px;
  margin-left: 4px;
}

.hd-refresh-icon {
  font-size: 10px;
  cursor: pointer;
  margin-left: 4px;
  color: #b0b8c4;
  transition: color 0.2s;
}
.hd-refresh-icon:hover { color: #fff; }

/* ===== MAIN HEADER ===== */
.hd-main {
  background: var(--nd-bg-white);
  border-bottom: 1px solid #e8ecf1;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hd-main-inner {
  max-width: var(--nd-content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 20px;
}

.hd-logo {
  margin-right: 30px;
  flex-shrink: 0;
  text-decoration: none;
}

.hd-logo-img {
  height: 36px;
  display: block;
}

.hd-logo-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--nd-primary);
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -1px;
}

.hd-nav {
  display: flex !important;
}

#MainNav.hd-nav {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
}

.hd-nav .menuGroup {
  display: flex !important;
  gap: 0;
  align-items: center;
}

.hd-nav .menuItem {
  position: relative !important;
  display: block;
}

.hd-nav .menuItem a {
  padding: 18px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #555 !important;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
  display: block;
}

.hd-nav .menuItem a:hover {
  color: var(--nd-primary) !important;
  text-shadow: none !important;
  background: transparent !important;
}

.hd-nav .menuItem.active a,
.hd-nav .menuItem:hover a {
  color: var(--nd-primary) !important;
  text-shadow: none !important;
  background: transparent !important;
}

.hd-nav .menuItem:hover,
.hd-nav .menuItem.active {
  background: transparent !important;
}

.hd-nav .menuItem.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--nd-primary);
}

/* ===== FOOTER ===== */
.ft-wrap {
  background: var(--nd-header-bg);
  color: #b0b8c4;
  padding: 40px 0 0;
  margin-top: 4px;
}

.ft-top {
  max-width: var(--nd-content-width);
  margin: 0 auto;
  display: flex;
  padding: 0 20px 30px;
  gap: 40px;
}

.ft-brand { flex: 1; }

.ft-logo-img {
  height: 32px;
  margin-bottom: 12px;
  display: block;
}

.ft-logo-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--nd-primary);
  font-family: 'Noto Sans KR', sans-serif;
  margin-bottom: 12px;
}

.ft-brand-info {
  font-size: 11px;
  color: #8a95a7;
  line-height: 1.7;
}

.ft-contact {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.ft-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #b0b8c4;
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid #4a5568;
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}
.ft-contact-item:hover { border-color: var(--nd-primary); color: #fff; }

.ft-links-grid {
  display: flex;
  gap: 48px;
  flex-shrink: 0;
}

.ft-link-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ddd;
  margin-bottom: 12px;
}

.ft-link-col a {
  display: block;
  font-size: 12px;
  color: #8a95a7;
  padding: 3px 0;
  transition: color 0.2s;
}
.ft-link-col a:hover { color: var(--nd-primary); }

.ft-bottom {
  border-top: 1px solid #4a5568;
  padding: 16px 20px;
  max-width: var(--nd-content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ft-copyright { font-size: 11px; color: #666; }

/* ===== PAGE CONTENT AREA ===== */
#Container {
  background: var(--nd-bg-light);
  min-height: calc(100vh - 100px);
}

/* Page banner override (old dark banners -> new light style) */
#Container > div > .relative.min-h-\[150px\] {
  background: linear-gradient(135deg, #e8f0fe 0%, #dde6f8 50%, #f0f4ff 100%) !important;
  border-bottom: 1px solid #dde4ef;
  position: relative;
  overflow: hidden;
}

#Container > div > .relative.min-h-\[150px\] > img {
  display: none !important;
}

#Container > div > .relative.min-h-\[150px\] .text-yellow-300 {
  color: var(--nd-primary) !important;
}

#Container > div > .relative.min-h-\[150px\] .text-white {
  color: var(--nd-text-dark) !important;
}

#Container > div > .relative.min-h-\[150px\] .text-gray-300 {
  color: var(--nd-text-gray) !important;
  font-style: normal !important;
}

/* Override text-white on Container for new theme */
#Container.text-white {
  color: var(--nd-text-dark) !important;
}

/* Content area */
#Content {
  color: var(--nd-text-dark);
  max-width: var(--nd-content-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Page banner - full width, constrained inner text */
#Container > div > .relative.min-h-\[150px\] > div {
  min-width: auto !important;
  max-width: var(--nd-content-width) !important;
  margin: 0 auto;
  padding: 0 20px;
}

/* Keep white text inside dark-background elements */
.hd-topbar [class*="text-white"],
.ft-wrap [class*="text-white"] {
  color: #fff !important;
}

/* Form inputs - override dark theme styles */
#Content input[type="text"],
#Content input[type="password"],
#Content input[type="number"],
#Content input[type="tel"],
#Content select,
#Content textarea {
  background: #fff !important;
  color: var(--nd-text-dark) !important;
  border: 1px solid #d8dfe8 !important;
  border-radius: 8px !important;
}

#Content input:focus,
#Content select:focus,
#Content textarea:focus {
  border-color: var(--nd-primary) !important;
  outline: none !important;
}

/* Buttons - override dark theme */
#Content .btn-primary,
#Content [class*="bg-blue"],
#Content [class*="bg-\\[\\#"] {
  border-radius: 8px;
}

/* Table styles for light theme */
#Content table {
  width: 100%;
  border-collapse: collapse;
}

#Content table th {
  background: #f0f4fb !important;
  color: var(--nd-text-dark) !important;
  border-bottom: 2px solid #dde4ef !important;
  padding: 12px !important;
  font-weight: 600;
}

#Content table td {
  border-bottom: 1px solid #eef1f6 !important;
  padding: 10px 12px !important;
  color: var(--nd-text-dark) !important;
}

#Content table tr:hover td {
  background: #f8fafd;
}

/* Buttons - override dark gradient to new theme */
.primary-btn {
  background: linear-gradient(135deg, #4A7BF7, #5B8DEF) !important;
  background-image: linear-gradient(135deg, #4A7BF7, #5B8DEF) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(74,123,247,0.3) !important;
  border-radius: 8px !important;
}

.primary-btn::before {
  background: linear-gradient(135deg, #2D5BD0, #4A7BF7) !important;
  background-image: linear-gradient(135deg, #2D5BD0, #4A7BF7) !important;
  box-shadow: none !important;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #3a6be7, #4b7ddf) !important;
  background-image: linear-gradient(135deg, #3a6be7, #4b7ddf) !important;
}

/* Input fields - override dark theme */
.primary-input {
  border: 1px solid #d8dfe8 !important;
  color: var(--nd-text-dark) !important;
  background: #fff !important;
  border-radius: 8px !important;
}

.primary-input:focus {
  border-color: var(--nd-primary) !important;
}

/* ===== Betting page extra overrides ===== */
#div_betting .border-\[\#0078ff\] {
  border-color: var(--nd-primary) !important;
}

/* ===== Customer / Common dark bg overrides ===== */
#Content .bg-\[\#0b0e1b\],
#Content .bg-\[\#0d0d0d\],
#Content .bg-\[\#000000\],
#Content .bg-\[\#0a0a0a\],
#Content .bg-\[\#111\],
#Content .bg-\[\#121212\],
#Content .bg-\[\#1a1a2e\],
#Content .bg-\[\#0f1324\],
#Content .bg-black {
  background-color: #fff !important;
  border: 1px solid #e8ecf1 !important;
  color: var(--nd-text-dark) !important;
}

#Content .text-white {
  /* color: var(--nd-text-dark) !important; */
}

#Content .text-gray-300,
#Content .text-gray-400 {
  color: #777 !important;
}

#Content .text-gray-500 {
  color: #999 !important;
}

#Content .border-\[\#363f49\],
#Content .border-\[\#1b222c\],
#Content .border-\[\#2a2a2a\],
#Content .border-gray-600,
#Content .border-gray-700,
#Content .border-gray-800 {
  border-color: #e0e5ee !important;
}

#Content .divide-gray-600 > :not(:last-child),
#Content .divide-gray-700 > :not(:last-child),
#Content .divide-gray-800 > :not(:last-child) {
  border-color: #e0e5ee !important;
}

/* Keep white text on dark/colored backgrounds */
#Content .bg-\[\#0078ff\] .text-white,
#Content .bg-\[\#0078ff\],
#Content .bg-\[\#363f49\] .text-white,
#Content .bg-\[\#363f49\],
#Content .bg-\[\#414c58\] .text-white,
#Content [class*="bg-blue"] .text-white,
#Content .primary-btn,
.hd-topbar .text-white,
.ft-wrap .text-white {
  color: #fff !important;
}

#Content .bg-\[\#363f49\] {
  background-color: #4a5568 !important;
  color: #fff !important;
}

#Content .bg-\[\#0078ff\] {
  background-color: var(--nd-primary) !important;
  color: #fff !important;
}

/* Select/input overrides */
#Content select {
  background: #fff !important;
  color: var(--nd-text-dark) !important;
  border: 1px solid #d8dfe8 !important;
  border-radius: 8px !important;
}

/* text-yellow for status labels */
#Content .text-yellow-400,
#Content .text-yellow-300 {
  color: #d97706 !important;
}

#Content .text-green-400,
#Content .text-green-500 {
  color: #22c55e !important;
}

#Content .text-red-400,
#Content .text-red-500 {
  color: #ef4444 !important;
}

#Content .text-blue-400,
#Content .text-blue-500 {
  color: var(--nd-primary) !important;
}

/* ===== Game list page overrides ===== */
#div_game_list {
  background: #fff !important;
  border: 1px solid #e8ecf1 !important;
  border-radius: 10px !important;
  color: var(--nd-text-dark) !important;
}

#div_game_list table {
  width: 100%;
}

#div_game_list td {
  color: var(--nd-text-dark) !important;
}

#div_game_list td.normal,
#div_game_list td.tie {
  background: #eef2fa !important;
  color: var(--nd-text-dark) !important;
  cursor: pointer;
  border-radius: 6px;
  text-align: center;
  padding: 8px 4px;
  border: 1px solid #dde4ef;
  transition: all 0.15s;
}

#div_game_list td.normal:hover,
#div_game_list td.tie:hover {
  background: var(--nd-primary) !important;
  color: #fff !important;
  border-color: var(--nd-primary);
}

#div_game_list td.disable {
  background: #f5f5f5 !important;
  color: #bbb !important;
  cursor: not-allowed;
  border-radius: 6px;
  text-align: center;
  padding: 8px 4px;
  border: 1px solid #e8ecf1;
}

#div_game_list td.selected,
#div_game_list td.normal.selected,
#div_game_list td.tie.selected {
  background: var(--nd-primary) !important;
  color: #fff !important;
  border-color: var(--nd-primary) !important;
}

#div_game_list .home_nm,
#div_game_list .home_odd,
#div_game_list .away_nm,
#div_game_list .away_odd {
  color: var(--nd-text-dark) !important;
}

#div_game_list .bet_date {
  color: var(--nd-text-gray) !important;
  font-size: 12px;
}

#div_game_list .bet_leag {
  color: var(--nd-text-dark) !important;
}

#div_game_list .bet_day {
  color: var(--nd-text-gray) !important;
}

/* Game page sidebar (betting cart) */
#Content .bg-\[\#000000\].rounded-\[10px\] {
  background: #fff !important;
  border: 1px solid #e8ecf1 !important;
  color: var(--nd-text-dark) !important;
}

/* Sport submenu text fix */
.sport-submenu.text-white {
  color: #555 !important;
}

.sport-submenu.text-white:hover,
.sport-submenu.text-\[\#0078ff\] {
  color: var(--nd-primary) !important;
}

/* Betting cart */
#Content .bg-black.border-\[\#433f41\] {
  background: #fff !important;
  border-color: #e8ecf1 !important;
  color: var(--nd-text-dark) !important;
}

/* ===== Inplay page CSS overrides ===== */
.match-list-section { background: #fff !important; border: 1px solid #e8ecf1 !important; border-radius: 10px !important; }
.match-list-header { background: #f0f4fb !important; color: #333 !important; border-bottom: 1px solid #dde4ef !important; }
.match-list-title { color: #333 !important; }
.match-list-container { background: #fff !important; }
.match-item { background: #f8f9fc !important; border: 1px solid #eaecf2 !important; color: #333 !important; }
.match-item:hover, .match-item.selected { border-color: #4A7BF7 !important; background: #eef2fa !important; }
.match-item .match-league { color: #888 !important; }
.match-item .match-time { color: #4A7BF7 !important; }
.match-item .match-score { color: #333 !important; }
.match-header { background: #f0f4fb !important; color: #333 !important; border-radius: 10px !important; }
.betting-board-section { color: #333 !important; }
.stats-toggle { background: #eef2fa !important; color: #333 !important; border: 1px solid #dde4ef !important; }
.stats-container { background: #fff !important; color: #333 !important; }
.stats-content { background: #fff !important; color: #333 !important; }
.market-group { background: #fff !important; border: 1px solid #e8ecf1 !important; border-radius: 8px !important; overflow: hidden; }
.market-group-header, .market-header { background: #eef2fa !important; color: #333 !important; border-bottom: 1px solid #dde4ef !important; }
.selection-btn { background: #f0f4fb !important; color: #333 !important; border: 1px solid #dde4ef !important; border-radius: 6px !important; }
.selection-btn:hover { background: #d8e4fc !important; border-color: #4A7BF7 !important; }
.selection-btn.selected { background: #4A7BF7 !important; color: #fff !important; border-color: #4A7BF7 !important; }
.selection-btn:disabled { background: #f5f5f5 !important; color: #bbb !important; }
.odds-cell, .line-cell { background: #f0f4fb !important; color: #333 !important; }

/* Scrollbar for light theme */
body .scrollbox::-webkit-scrollbar-track {
  background: #f0f0f0 !important;
}

body .scrollbox::-webkit-scrollbar-thumb {
  background: #c0c8d4 !important;
}

/* Checkbox override for light theme */
input[type='checkbox'] {
  background-color: #fff !important;
  border: 1px solid #d0d5dd !important;
}

input[type='checkbox']:checked {
  background-color: var(--nd-primary) !important;
  border-color: var(--nd-primary) !important;
}

/* ===== HAMBURGER BUTTON ===== */
.hd-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  padding: 4px;
  margin-right: 8px;
}

/* Mobile header buttons */
.hd-mobile-btns {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.hd-mobile-btns .hd-m-login {
  color: var(--nd-primary);
  font-size: 13px;
  font-weight: 700;
}
.hd-mobile-btns .hd-m-signup {
  background: var(--nd-primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.hd-mobile-btns .hd-m-user-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.hd-mobile-btns .hd-m-grid-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.hd-mobile-btns .hd-m-grid-label {
  color: #333;
  font-size: 14px;
  font-weight: 700;
}
.hd-mobile-btns .hd-m-grid-val {
  color: var(--nd-primary);
  font-size: 14px;
  font-weight: 700;
}
.hd-mobile-btns .hd-m-grid-sub {
  color: #777;
  font-size: 14px;
  font-weight: 400;
}
.hd-mobile-btns .hd-m-badge {
  background: rgba(0,0,0,0.06);
  padding: 3px 10px;
  border-radius: 4px;
}
.hd-mobile-btns .hd-m-comp-convert {
  background: #165b96;
  color: #fff;
  font-size: 10px;
  padding: 1px 8px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.4;
  margin-left: 2px;
  vertical-align: middle;
}
.hd-mobile-btns .hd-m-comp-convert:hover {
  background: #1a6db5;
}

/* ===== MOBILE SIDEBAR ===== */
.mob-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
}
.mob-sidebar-overlay.open { display: block; }
.mob-sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 2001;
  transition: left .3s;
  overflow-y: auto;
}
.mob-sidebar.open { left: 0; }
.mob-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.mob-sidebar-header .mob-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}
.mob-sidebar-header img { height: 28px; }
.mob-sidebar .mob-section { padding: 8px 12px; }
.mob-sidebar .mob-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  border-radius: 10px;
  transition: background .15s;
  text-decoration: none;
}
.mob-sidebar .mob-item:hover { background: #f5f7fb; }
.mob-sidebar .mob-item .mob-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--nd-primary);
}
.mob-sidebar .mob-divider { height: 1px; background: #eee; margin: 4px 16px; }

/* ===== BOTTOM NAV (Mobile) ===== */
.mob-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  z-index: 1500;
  padding: 10px 0 6px;
  padding-bottom: env(safe-area-inset-bottom, 8px);
}
.mob-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}
.mob-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: none;
}
.mob-bnav-item .mob-bnav-icon {
  font-size: 22px;
  color: #aab2c0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mob-bnav-item.home-btn { margin-top: -30px; }
.mob-bnav-item.home-btn .mob-bnav-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #5B8DEF, #4A7BF7);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(74,123,247,.4);
}
.mob-bnav-item.home-btn span { color: #4A7BF7; font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .ft-links-grid { gap: 32px; }
}

/* Tablet / Mobile */
@media (max-width: 960px) {
  /* Hide PC elements */
  .hd-topbar { display: none !important; }
  .hd-nav { display: none !important; }

  /* Show mobile elements */
  .hd-hamburger { display: block; }
  .hd-mobile-btns { display: flex; }
  .mob-bottom-nav { display: block; }

  /* Header adjustments */
  .hd-main-inner { height: auto !important; min-height: 70px; padding: 6px 16px !important; align-items: center; }
  .hd-logo { margin-right: 0; }
  .hd-logo-img { height: 28px; }

  /* Footer */
  .ft-wrap {margin-bottom: 60px;}
  .ft-top { flex-direction: column; gap: 24px; }

  /* Content area */
  #Content { padding-left: 12px; padding-right: 12px; }

  /* Add bottom padding for bottom nav */
  body { padding-bottom: 66px; }

  /* Casino grid */
  .CasinoCardList {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    padding: 0 10px 20px;
  }
}

/* Mobile Small */
@media (max-width: 600px) {
  .ft-links-grid { flex-wrap: wrap; gap: 20px; }
  .ft-contact { flex-wrap: wrap; }
  .hd-main-inner { height: auto !important; min-height: 70px; padding: 4px 12px !important; }
  .hd-logo-img { height: 24px; }
  #Content { padding-left: 8px; padding-right: 8px; }

  .CasinoCardList {
    grid-template-columns: 1fr !important;
  }
}

/* ===== CASINO PAGE OVERRIDES ===== */
.CasinoCardList {
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 0 25px;
  max-width: none;
}

.CasinoCard {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.CasinoCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(74,123,247,0.18);
}

.CasinoCard .card-upper {
  border: none !important;
  filter: none !important;
  border-radius: 12px;
  background-size: cover !important;
}

.CasinoCard:hover .card-upper {
  border: none !important;
  filter: none !important;
  background-size: cover !important;
}

.CasinoCard .card-upper .card-contents {
  bottom: 0;
  top: auto;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.CasinoCard .card-upper .card-contents .card-header .card-title-kor {
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.CasinoCard .card-upper .card-contents .card-header .card-title-en {
  font-size: 12px;
  opacity: 0.8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.CasinoCard .card-footer {
  display: none !important;
}

.casino_visual_section {
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0 20px;
  width: 100% !important;
}

.CasinoTab {
  padding: 0 0 20px;
}

.CasinoTab .tab-box .primary-btn {
  background: var(--nd-primary) !important;
  border-radius: 8px !important;
  border: none !important;
}

.CasinoTab .balance {
  /* color: var(--nd-text-dark) !important; */
}

.CasinoTab .balance .number {
  color: var(--nd-primary) !important;
}

@media (max-width: 768px) {
  .CasinoCardList {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px 20px;
  }
  .CasinoCard .card-upper .card-contents .card-header .card-title-kor {
    font-size: 14px;
  }
}

/* ===== BETTING PANEL - blue theme ===== */
.betting-list {
  color: var(--nd-text-dark) !important;
}

.betting-list .bg-\[\#000000\] {
  background-color: #fff !important;
  border: 1px solid #dde4ef !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.betting-list .bg-\[\#0d0d0d\] {
  background-color: #eef2fa !important;
  color: var(--nd-text-dark) !important;
}

.betting-list .text-white {
  color: var(--nd-text-dark) !important;
}

.betting-list .border-\[\#363f49\] {
  border-color: #dde4ef !important;
}

.betting-list .divide-\[\#363f49\] > :not(:last-child) {
  border-color: #dde4ef !important;
}

.betting-list .g-btn-left,
.betting-list .g-btn-right {
  flex: 1;
  background-color: #eef2fa;
  color: var(--nd-text-dark) !important;
  border: 1px solid #dde4ef;
  transition: all 0.2s;
}

.betting-list .g-btn-left:hover,
.betting-list .g-btn-right:hover {
  background-color: var(--nd-primary);
  color: #fff !important;
  border-color: var(--nd-primary);
}

.betting-list .g-btn-left.selected,
.betting-list .g-btn-right.selected {
  background-color: var(--nd-primary) !important;
  color: #fff !important;
  border-color: var(--nd-primary) !important;
}

.betting-list .bg-\[\#741640\] {
  background-color: #eef2fa !important;
  color: var(--nd-text-dark) !important;
  border: 1px solid #dde4ef;
}

.betting-list .bg-\[\#741640\]:hover {
  background-color: var(--nd-primary) !important;
  color: #fff !important;
  border-color: var(--nd-primary) !important;
}

.betting-list .stop-control {
  background: rgba(255,255,255,0.85) !important;
}

.betting-list .stop-control-text {
  color: var(--nd-text-dark) !important;
}

.betting-list .bg-\[\#741640\].selected {
  background-color: var(--nd-primary) !important;
  color: #fff !important;
  border-color: var(--nd-primary) !important;
}

