:root {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-active-tab: #eff6ff;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --theme-primary: #3b82f6;
  --theme-accent: #4f46e5;
  --theme-green: #10b981;
  --theme-green-bg: #ecfdf5;
  --theme-red: #ef4444;
  --theme-red-bg: #fef2f2;
  --theme-warning: #f59e0b;
  
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  --gradient-success: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --gradient-spotlight: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  
  --shadow-premium: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 20px 35px -5px rgba(15, 23, 42, 0.08), 0 10px 15px -6px rgba(15, 23, 42, 0.06);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --sidebar-width: 260px;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Space for mobile bottom-nav */
}

a {
  color: inherit;
  text-decoration: none;
}

/* APP SHELL STRUCTURE */
.app-shell {
  display: block;
  min-height: 100vh;
}

/* SITE HEADER NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  width: 100%;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  width: 24px;
  height: 24px;
}

.logo span {
  letter-spacing: 0.5px;
}

/* Header actions & hamburger menu button */
.quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 12px;
}

.quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s;
}

.quick-icon:hover {
  transform: scale(1.08);
}

.quick-icon.wa {
  background: #25D366;
}

.quick-icon.tele {
  background: #0088cc;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-body);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.menu-toggle:hover {
  background: var(--border-color);
}

.menu-toggle svg {
  transition: transform 0.2s;
}

.menu-toggle.active svg {
  transform: rotate(90deg);
}

/* Nav Menu (Mobile Default: Dropdown) */
.nav-menu {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 2px solid var(--border-color);
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.nav-menu.open {
  display: flex;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.nav-item:hover {
  background: var(--bg-body);
  color: var(--theme-primary);
}

.nav-item.active {
  background: var(--bg-active-tab);
  color: var(--theme-primary);
}

.nav-item.nav-wa {
  color: #25D366;
}

.nav-item.nav-tele {
  color: #0088cc;
}

.nav-item.nav-play {
  background: var(--gradient-primary);
  color: #ffffff;
  justify-content: center;
  margin-top: 6px;
}

/* MAIN CONTENT CONTAINER */
.main-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 14px 12px 80px 12px; /* Bottom padding for bottom navigation space */
}

.wrap {
  width: 100%;
}

/* BOTTOM NAVIGATION BAR (MOBILE) */
.bottom-nav {
  display: grid;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  height: 60px;
  z-index: 1000;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  gap: 3px;
  text-transform: uppercase;
  transition: color 0.15s;
}

.bottom-nav-item svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.bottom-nav-item.active {
  color: var(--theme-primary);
}

.bottom-nav-item.active svg {
  transform: translateY(-1px);
}

/* LIVE CLOCK / STATUS BAR */
.status-bar {
  display: flex;
  flex-direction: column; /* Mobile first: stacked layout */
  gap: 8px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-premium);
}

.status-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  font-size: 14px;
}

.status-live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--theme-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--theme-green);
  animation: blink 1.5s infinite;
}

.status-refresh {
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.status-refresh:hover {
  opacity: 0.8;
}

/* CARDS */
.premium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); /* Mobile first: smaller radius */
  padding: 14px 10px; /* Mobile first: compact padding */
  margin-bottom: 12px;
  box-shadow: var(--shadow-premium);
  transition: box-shadow 0.2s ease;
}

.premium-card:hover {
  box-shadow: var(--shadow-hover);
}

.sec-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.sec-title span.badge {
  font-size: 11px;
  background: var(--theme-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto;
}

/* SPOTLIGHT BOX */
.spl-box {
  background: var(--gradient-spotlight);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  margin-bottom: 20px;
}

.spl-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.spl-badge.coming {
  background: var(--theme-red);
  animation: pulse 1.5s infinite;
}

.spl-tagline {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
}

.spl-name {
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.spl-result {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(56px, 12vw, 84px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--theme-accent);
}

.spl-countdown {
  font-family: 'Rajdhani', sans-serif;
  color: var(--theme-red);
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 700;
  margin-top: 8px;
}

.spl-time {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
}

/* DISAWAR FEATURE CARD */
.dw-card {
  display: flex;
  flex-direction: column; /* Mobile first: stacked */
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 14px;
}

.dw-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dw-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dw-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 700;
  color: var(--text-main);
}

.dw-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.dw-res-box {
  text-align: center; /* Mobile first: centered */
  margin-top: 10px;
}

.dw-result {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(36px, 8vw, 48px);
  font-weight: 800;
  color: var(--theme-primary);
  line-height: 1;
}

.dw-wait {
  font-size: 11px;
  font-weight: 700;
  color: var(--theme-red);
  background: var(--theme-red-bg);
  padding: 4px 10px;
  border-radius: 20px;
  animation: pulse-border 1.5s infinite;
}

.dw-yday {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.dw-yday span {
  font-weight: 700;
  color: var(--text-main);
}

/* NOTICE BOARD */
.notice-board {
  background: #fdfdfd;
  border-left: 4px solid var(--theme-primary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-main);
  white-space: pre-line;
  box-shadow: var(--shadow-inner);
}

/* FILTER TABS & SEARCH */
.dashboard-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: var(--bg-card);
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-inner);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* SCORECARD GRID */
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
  gap: 8px;
  margin-bottom: 20px;
}

.scorecard {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--theme-primary); /* premium brand top accent border */
  border-radius: var(--radius-md);
  padding: 12px 10px; /* compact mobile padding */
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.scorecard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.2);
}

.scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  position: relative;
  padding-right: 18px; /* reserve space for absolute star button */
}

.scorecard-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.scorecard-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--theme-accent); /* Highlight game names with indigo */
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.scorecard-time {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-btn {
  position: absolute;
  top: -2px;
  right: -4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  transition: color 0.15s;
  z-index: 5;
}

.star-btn:hover {
  color: var(--theme-warning);
}

.star-btn.active {
  color: var(--theme-warning);
}

.star-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Results Content */
.scorecard-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px; /* compact height for mobile cards */
  margin-bottom: 8px;
}

.scorecard-waiting {
  display: flex;
  align-items: center;
  gap: 4px;
}

.waiting-spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--border-color);
  border-top-color: var(--theme-red);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.waiting-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--theme-red);
  text-transform: uppercase;
}

.scorecard-result-box {
  text-align: center;
}

.scorecard-result-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px; /* Scaled down from 36px to look clean on mobile */
  font-weight: 800;
  color: var(--theme-green);
  line-height: 1;
  background: var(--theme-green-bg);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  min-width: 52px;
}

.scorecard-yesterday {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.scorecard-yesterday span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-body);
  padding: 1px 4px;
  border-radius: 3px;
}

.scorecard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: auto;
}

.card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; /* Circular icon button on mobile */
  height: 26px;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.15s;
}

.card-action-btn span {
  display: none; /* Hide button text on mobile */
}

.card-action-btn:hover {
  color: var(--theme-primary);
  background: var(--bg-active-tab);
  border-color: var(--theme-primary);
}

.card-action-btn svg {
  width: 12px;
  height: 12px;
}

/* APP DOWNLOAD BANNER */
.app-banner-wrap {
  padding: 16px 0;
  display: flex;
  justify-content: center;
}

.app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
  transition: transform 0.2s ease;
}

.app-banner:hover {
  transform: translateY(-2px);
}

.app-banner-text strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.app-banner-text span {
  font-size: 11px;
  opacity: 0.9;
  display: block;
  margin-top: 4px;
}

.app-banner-btn {
  background: #fff;
  color: var(--theme-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* LUCKY NUMBER WIDGET */
.lucky-gen-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.lucky-display {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}

.lucky-slot-reel {
  width: 52px; /* Mobile first: compact reels */
  height: 68px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--theme-accent);
  box-shadow: var(--shadow-inner);
  position: relative;
  overflow: hidden;
}

.slot-spinning {
  animation: slot-roll 0.15s infinite linear;
}

.lucky-haruf-box {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.lucky-haruf-box span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--theme-primary);
  background: var(--bg-active-tab);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.neon-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.neon-btn:hover {
  box-shadow: 0 12px 20px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.neon-btn:active {
  transform: translateY(1px);
}

/* RATE LIST board */
.rate-list-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rate-item {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-inner);
}

.rate-item-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rate-item-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--theme-accent);
}

/* SEO CONTENT & ACCORDION */
.seo-block {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}

.seo-block h2 {
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.seo-block p {
  margin-bottom: 12px;
}

.seo-block strong {
  color: var(--theme-primary);
  font-weight: 600;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}

.accordion-header {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background: #fafafa;
}

.accordion-header:hover {
  background: #f5f5f5;
}

.accordion-header svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.accordion-item.active .accordion-header svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0, 1, 0, 1);
  padding: 0 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  background: var(--bg-card);
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 14px 16px;
}

/* LATEST NEWS POSTS */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  box-shadow: var(--shadow-inner);
}

.post-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: var(--bg-active-tab);
}

.post-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
}

.post-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* MONTHLY CHART SCROLL IN HOME */
.chart-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-primary) transparent;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 550px;
}

.chart-table th {
  background: var(--bg-body);
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  padding: 10px 8px;
  border: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.chart-table td {
  padding: 8px 6px;
  border: 1px solid var(--border-color);
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
}

.chart-table tr:nth-child(even) {
  background: #fafafa;
}

.chart-table td.empty {
  color: var(--text-muted);
  font-weight: 400;
}

.chart-table td.ch-date {
  background: var(--bg-body);
  color: var(--theme-primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

.chart-link-btn {
  display: block;
  text-align: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  transition: all 0.2s;
}

.chart-link-btn:hover {
  background: var(--bg-active-tab);
  border-color: var(--theme-primary);
}

/* WHATSAPP FLOAT BUTTON */
.wa-btn {
  position: fixed;
  bottom: 80px;
  right: 18px;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-btn:hover {
  transform: scale(1.08);
}

.wa-btn svg {
  width: 26px;
  height: 26px;
}

/* STATS / FOOTER */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 30px 16px;
  text-align: center;
  margin-top: 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background: var(--bg-body);
  transition: all 0.2s;
}

.footer-links a:hover {
  color: var(--theme-primary);
  border-color: var(--theme-primary);
  background: var(--bg-active-tab);
}

.footer-disc {
  font-size: 10px;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

/* CHART PAGE HIGHLIGHTER & MATRICES */
.chart-hdr {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--theme-accent);
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-premium);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.game-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.game-card-lnk {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.game-card-lnk:hover {
  border-color: var(--theme-primary);
  background: var(--bg-active-tab);
  transform: translateY(-2px);
}

.game-card-lnk strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.game-card-lnk span {
  display: block;
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.year-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.year-btn {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.year-btn:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
}

.year-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.yearly-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-primary) transparent;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.yearly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  min-width: 600px;
}

.yearly-table th {
  padding: 8px 4px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.yearly-table th.month {
  background: var(--bg-body);
  color: var(--text-main);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 9px;
  text-transform: uppercase;
}

.yearly-table th.day {
  background: var(--theme-primary);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 10px;
}

.yearly-table td {
  text-align: center;
  padding: 5px 3px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.yearly-table td.day-num {
  background: var(--bg-body);
  color: var(--text-main);
  font-weight: 700;
}

.yearly-table td.highlight {
  background: rgba(59, 130, 246, 0.15) !important;
  color: var(--theme-accent) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border: 2px solid var(--theme-primary) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.yearly-table .r-empty {
  color: var(--text-muted);
  font-weight: 400;
}

/* ANIMATIONS */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.9); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(0.98); }
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

@keyframes slot-roll {
  0% { transform: translateY(0); }
  50% { transform: translateY(-30%); opacity: 0.5; }
  100% { transform: translateY(-60%); opacity: 0.1; }
}

/* LUCKY SYSTEM UPGRADES */
.lucky-select-wrap {
  margin: 12px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lucky-select-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lucky-select {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  box-shadow: var(--shadow-inner);
  transition: border-color 0.2s;
}

.lucky-select:focus {
  border-color: var(--border-focus);
}

.lucky-chance-box {
  margin-top: 18px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-inner);
  text-align: left;
}

.lucky-chance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.lucky-chance-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lucky-chance-percent {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  color: var(--theme-green);
  font-weight: 800;
}

.lucky-chance-track {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.lucky-chance-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* TABLET VIEWPORT (min-width: 601px) */
@media (min-width: 601px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on tablets */
    gap: 12px;
  }
  
  .card-action-btn {
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 6px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
  }

  .card-action-btn span {
    display: inline; /* show text on tablet */
  }
}

/* DESKTOP VIEWPORT (min-width: 901px) */
@media (min-width: 901px) {
  .menu-toggle {
    display: none; /* Hide hamburger menu on desktop */
  }

  .nav-menu {
    display: flex !important; /* Always display menu on desktop */
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 8px;
    z-index: auto;
  }

  .nav-item {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
  }

  .nav-item:hover {
    background: var(--bg-body);
    color: var(--theme-primary);
  }

  .nav-item.active {
    background: var(--bg-active-tab);
    color: var(--theme-primary);
  }

  .nav-item.nav-play {
    margin-top: 0;
    padding: 6px 14px;
  }

  .main-content {
    padding: 24px 16px 40px 16px;
  }
  
  .bottom-nav {
    display: none; /* Hide mobile-only bottom nav */
  }
  
  .status-bar {
    flex-direction: row; /* Horizontal status clock bar */
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
  }
  
  .premium-card {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
  }
  
  .dw-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
  }
  
  .dw-res-box {
    text-align: right;
    margin-top: 0;
  }
  
  .game-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 16px;
  }
  
  .scorecard {
    padding: 16px;
  }
  
  .scorecard-header {
    padding-right: 0; /* reset mobile space */
  }

  .scorecard-name {
    font-size: 15px;
  }

  .scorecard-time {
    font-size: 10px;
  }
  
  .scorecard-body {
    min-height: 70px;
    margin-bottom: 12px;
  }
  
  .scorecard-result-num {
    font-size: 34px;
    padding: 4px 16px;
    min-width: 64px;
  }
  
  .scorecard-yesterday span {
    padding: 1px 6px;
  }
  
  .card-action-btn {
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 6px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
  }

  .card-action-btn span {
    display: inline;
  }
  
  .lucky-slot-reel {
    width: 64px;
    height: 80px;
    font-size: 48px;
  }
}



/* ============================================================
   SATTA DUNIA FEATURE PORT — NATIVE THEME STYLING
   ============================================================ */

.khaiwal-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.khaiwal-card-modern {
  background: var(--bg-surface-solid, var(--bg-card, rgba(15, 23, 42, 0.85)));
  border: 1px solid var(--border-color, var(--border-glow, rgba(255, 255, 255, 0.1)));
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-sm, 0 6px 18px rgba(0,0,0,0.25));
  display: flex;
  flex-direction: column;
}

.khaiwal-modern-header {
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  color: var(--theme-gold, var(--neon-mint, #fbbf24));
  padding: 12px 14px;
  text-align: center;
  border-bottom: 2px solid var(--theme-gold, var(--neon-mint, #fbbf24));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.khaiwal-modern-header .crown-icon { font-size: 16px; }

.khaiwal-modern-header .header-main {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted, rgba(255,255,255,0.7));
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.khaiwal-name-banner {
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 900;
  color: var(--theme-gold, var(--neon-mint, #fbbf24));
  text-transform: uppercase;
  letter-spacing: 1px;
}

.khaiwal-modern-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.khaiwal-timings-list {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--radius-md, 8px);
  padding: 10px;
}

.khaiwal-timings-list .timings-title {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--theme-gold, var(--neon-cyan, #fbbf24));
  margin-bottom: 6px;
  text-transform: uppercase;
}

.khaiwal-timings-list .timings-lines {
  font-family: inherit;
  font-size: 12px;
  color: var(--text-main, #f8fafc);
  line-height: 1.5;
  text-align: center;
}

.signal-app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(59,130,246,0.1);
  border: 1.5px dashed #3b82f6;
  border-radius: var(--radius-md, 8px);
  padding: 8px 10px;
  gap: 8px;
}

.signal-banner-left { display: flex; align-items: center; gap: 6px; }
.signal-logo { font-size: 18px; }
.signal-banner-txt { display: flex; flex-direction: column; line-height: 1.2; }
.signal-banner-txt strong { font-size: 10.5px; color: #60a5fa; }
.signal-banner-txt span { font-size: 9.5px; color: var(--text-muted, #94a3b8); }

.signal-dl-btn {
  background: #3b82f6;
  color: #fff;
  text-decoration: none;
  font-size: 9.5px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.khaiwal-qr-scan-title {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  margin-top: 4px;
}

.khaiwal-qr-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: 6px;
  padding: 6px 4px;
}

.qr-label {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  color: #fff;
  text-transform: uppercase;
}

.qr-label.gpay { background: #ea4335; }
.qr-label.phonepe { background: #5f259f; }
.qr-label.paytm { background: #00baf2; }

.qr-item img {
  width: 100%;
  max-width: 60px;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 4px;
}

.qr-upi-name {
  font-size: 8px;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  word-break: break-all;
}

.khaiwal-links-action-title {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-gold, var(--neon-mint, #fbbf24));
  text-transform: uppercase;
}

.khaiwal-links-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
}

.khaiwal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s;
}

.khaiwal-action-btn:hover { transform: translateY(-1px); }
.khaiwal-action-btn.whatsapp { background: #22c55e; color: #fff; }
.khaiwal-action-btn.telegram { background: #0ea5e9; color: #fff; }
.khaiwal-action-btn.signal { background: #3b82f6; color: #fff; }

.khaiwal-action-btn .btn-icon { font-size: 14px; }
.khaiwal-action-btn .btn-txt { display: flex; flex-direction: column; line-height: 1.1; font-size: 11px; font-weight: 800; }
.khaiwal-action-btn .btn-txt small { font-size: 8px; font-weight: 500; opacity: 0.85; }

.khaiwal-modern-footer {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.footer-trust-grid {
  display: flex;
  justify-content: space-around;
  width: 100%;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
}

.footer-bottom-txt {
  font-size: 11px;
  font-weight: 800;
  color: var(--theme-gold, var(--neon-mint, #fbbf24));
  text-transform: uppercase;
}

/* SOCIAL JOIN SECTION */
.social-join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.social-join-card {
  background: rgba(255,255,255,0.03); border-radius: 10px; border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; box-shadow: var(--shadow-sm, 0 4px 14px rgba(0,0,0,0.2));
}
.social-join-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.social-join-text { font-size: 12px; line-height: 1.5; color: var(--text-muted, #94a3b8); }
.social-join-right { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.social-qr-img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; border: 1.5px solid var(--border-color, rgba(255,255,255,0.1)); }
.social-join-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  border-radius: 24px; font-size: 13px; font-weight: 700; text-decoration: none;
  white-space: nowrap; transition: 0.2s;
}
.wa-btn-big { background: #25d366; color: #fff; }
.tele-btn-big { background: #2aabee; color: #fff; }

/* FAQ ACCORDION & BANNER */
.faq-header-banner {
  background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  border-radius: 10px; padding: 16px; margin-bottom: 12px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
}
.faq-header-content { display: flex; align-items: center; justify-content: center; gap: 14px; }
.faq-header-icon {
  width: 40px; height: 40px; background: rgba(59,130,246,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #3b82f6; flex-shrink: 0;
}
.faq-header-title { font-size: 16px; font-weight: 900; color: var(--text-main, #fff); letter-spacing: 1px; }
.faq-header-subtitle { font-size: 13px; font-weight: 700; color: var(--theme-gold, #fbbf24); letter-spacing: 0.5px; }

.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion-item {
  border: 1px solid var(--border-color, rgba(255,255,255,0.08)); border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.02); cursor: pointer;
}
.accordion-header {
  padding: 12px 14px; font-weight: 700; font-size: 13px; color: var(--text-main, #f8fafc);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.accordion-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--theme-gold, var(--neon-mint, #fbbf24));
  color: #000; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.accordion-content {
  display: none; padding: 12px 14px; border-top: 1px solid var(--border-color, rgba(255,255,255,0.08)); font-size: 12.5px; color: var(--text-muted, #94a3b8); line-height: 1.6; background: rgba(0,0,0,0.2);
}
.accordion-item.active .accordion-content { display: block; }
.accordion-item.active .accordion-header svg { transform: rotate(180deg); }

.faq-trust-badges {
  display: flex; margin-top: 16px; border: 1px solid var(--border-color, rgba(255,255,255,0.08)); border-radius: 8px; overflow: hidden; background: rgba(0,0,0,0.2);
}
.faq-trust-item {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 8px;
  border-right: 1px solid var(--border-color, rgba(255,255,255,0.08)); font-size: 11px; font-weight: 700; color: var(--text-main, #f8fafc);
}
.faq-trust-item:last-child { border-right: none; }
.faq-trust-item span { font-size: 16px; }

@media (max-width: 680px) {
  .khaiwal-grid-container { grid-template-columns: 1fr; }
  .faq-trust-badges { flex-direction: column; }
  .faq-trust-item { border-right: none; border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08)); }
  .faq-trust-item:last-child { border-bottom: none; }
}
