/* 
 * BETFLIX SEO Landing Page - Premium Stylesheet
 * Custom Dark-Gold Theme with Neon Accents
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Sarabun:wght@200;300;400;600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Lotto443 Variables */
  --bg-surface: rgba(255,255,255,0.04);
  --bg-glass: rgba(255,255,255,0.05);
  --bg-glass-hover: rgba(255,255,255,0.08);
  --bg-glass-strong: rgba(255,255,255,0.1);
  --accent: #D4AF37; /* Match current gold theme */
  --accent-light: #FFE066;
  --accent-glow: rgba(212,175,55,0.25);
  --green: #00cec9;
  --green-soft: rgba(0,206,201,0.15);
  --red: #ff6b6b;
  --orange: #ffa502;
  --gold: #ffd32a;
  --text-primary: #f1f2f6;
  --text-secondary: rgba(241,242,246,0.5);
  --text-muted: rgba(241,242,246,0.25);
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font-num: 'Inter', monospace;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 40px rgba(212,175,55,0.06);
  --accent-gradient: linear-gradient(135deg, #FFE066 0%, #D4AF37 50%, #8A6D1C 100%);
  --bg-tabs-wrap: rgba(13,13,13,0.5);
    
  --font-thai: 'Sarabun', sans-serif;
  --font-eng: 'Inter', sans-serif;

  /* Colors */
  --bg-darker: #050505;
  --bg-dark: #0D0D0D;
  --bg-card: #161616;
  --bg-card-hover: #222222;
  
  --gold-primary: #D4AF37;
  --gold-secondary: #FFCC00;
  --gold-light: #FFE066;
  --gold-gradient: linear-gradient(135deg, #FFE066 0%, #D4AF37 50%, #8A6D1C 100%);
  --red-primary: #E50914;
  --red-hover: #B80710;
  --red-gradient: linear-gradient(135deg, #FF3333 0%, #E50914 100%);
  
  --text-white: #FFFFFF;
  --text-gray: #A0A0A0;
  --text-dark: #121212;
  
  --border-color: rgba(212, 175, 55, 0.15);
  --border-hover: rgba(212, 175, 55, 0.4);
  --glass-bg: rgba(22, 22, 22, 0.65);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* Shadow */
  --theme-bg-glow: #1b1605;
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(212, 175, 55, 0.3);
  --shadow-neon: 0 0 15px rgba(229, 9, 20, 0.4);
}

/* --- Reset & Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-thai);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-secondary);
}

/* --- Layout Container --- */
.container, .ast-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header & Navigation --- */
header {
  height: var(--header-height);
  background-color: rgba(5, 5, 5, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-link img {
  display: none !important;
}

.logo-text {
  font-family: var(--font-eng);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.logo-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-white);
  background-color: var(--red-primary);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-normal);
}

.nav-links a:hover {
  color: var(--gold-secondary);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-size: 16px;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--text-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
  filter: brightness(1.1);
}

.btn-danger {
  background: var(--red-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-neon);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.6);
  filter: brightness(1.15);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-secondary);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 24px;
  cursor: pointer;
}

/* --- Hero Banner Section --- */
.hero-section {
  margin-top: var(--header-height);
  padding: 40px 0;
  position: relative;
  background: radial-gradient(circle at center, var(--theme-bg-glow) 0%, var(--bg-dark) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-media {
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-gold-hover);
  transition: var(--transition-normal);
}

.hero-img:hover {
  transform: scale(1.02);
}

/* --- Jackpot Ticker --- */
.jackpot-ticker {
  background: rgba(13, 13, 13, 0.85);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-gold);
  margin-top: 20px;
  backdrop-filter: blur(10px);
}

.jackpot-title {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-secondary);
  font-size: 14px;
  letter-spacing: 1px;
}

.jackpot-amount {
  font-family: var(--font-eng);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 1px;
}

/* --- Games Grid Section --- */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 45px;
}

.games-section {
  padding: 60px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-secondary);
  box-shadow: var(--shadow-gold-hover);
}

.game-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red-gradient);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.game-info {
  padding: 15px;
  text-align: center;
}

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

.game-btn {
  background: var(--gold-gradient);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  display: inline-block;
  transition: var(--transition-fast);
}

.game-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* --- Providers section --- */
.providers-section {
  padding: 40px 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.provider-item {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1/1;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: all var(--transition-fast);
}

.provider-item:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
  transform: scale(1.05);
}

.provider-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: all var(--transition-fast);
}

.provider-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* --- Content SEO Blocks --- */
.seo-section {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.seo-block {
  margin-bottom: 50px;
}

.seo-block:last-child {
  margin-bottom: 0;
}

.seo-block h2 {
  font-size: 1.8rem;
  color: var(--gold-secondary);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.seo-block p {
  color: var(--text-gray);
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 16px;
  text-align: justify;
}

.seo-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.seo-block li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text-gray);
}

.seo-block li::before {
  content: "✓";
  color: var(--gold-primary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.seo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.seo-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: all var(--transition-normal);
}

.seo-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
}

.seo-card-icon {
  font-size: 32px;
  color: var(--gold-secondary);
  margin-bottom: 15px;
}

.seo-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 10px;
}

.seo-card-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* --- FAQ Accordion --- */
.faq-section {
  padding: 60px 0;
  background: var(--bg-dark);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--gold-primary);
}

.faq-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  user-select: none;
  transition: background-color var(--transition-fast);
}

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

.faq-header span {
  color: var(--text-white);
}

.faq-icon {
  font-size: 20px;
  color: var(--gold-primary);
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active {
  border-color: var(--gold-primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  background-color: var(--bg-darker);
}

.faq-content {
  padding: 20px;
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Footer --- */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 100px 0; /* extra bottom padding for mobile navigation */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-desc h3 {
  font-family: var(--font-eng);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-logo-desc p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links-col h4 {
  font-size: 16px;
  color: var(--gold-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col li {
  margin-bottom: 12px;
}

.footer-links-col a {
  color: var(--text-gray);
  font-size: 14px;
}

.footer-links-col a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-social-col h4 {
  font-size: 16px;
  color: var(--gold-secondary);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  border-color: var(--gold-primary);
  color: var(--gold-secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  text-align: center;
  color: var(--text-gray);
  font-size: 13px;
}

/* Curacao certificate styling */
.license-logos {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.license-logos img {
  height: 35px;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.license-logos img:hover {
  opacity: 1;
}

/* --- Floating widgets --- */
.floating-support {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 999;
}

.support-btn {
  width: 60px;
  height: 60px;
  background: #00B900; /* Line green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 185, 0, 0.4);
  color: white;
  font-size: 32px;
  transition: all var(--transition-normal);
}

.support-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 185, 0, 0.6);
}

.support-btn i {
  font-size: 30px;
  line-height: 60px;
}

/* --- Mobile Bottom Nav Menu --- */
.mobile-bottom-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--text-gray);
  font-weight: 600;
  gap: 4px;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: var(--gold-secondary);
}

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

/* --- Subpages Specific Styling (Login, Register, Promo) --- */
.subpage-hero {
  margin-top: var(--header-height);
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.9) 0%, var(--bg-dark) 100%);
}

.subpage-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-secondary);
  margin-bottom: 10px;
}

.auth-container {
  max-width: 480px;
  margin: -30px auto 60px auto;
  padding: 35px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-gold);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--gold-primary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-darker);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-gray);
}

.auth-footer a {
  color: var(--gold-secondary);
  font-weight: 600;
}

/* --- Elementor Promotions Page Styles --- */
.site-content {
  margin-top: var(--header-height);
  padding: 60px 0;
  background: var(--bg-dark);
}

.elementor-heading-title.elementor-size-default {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-secondary);
  text-align: center;
  margin-bottom: 40px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 100%;
  display: block;
}

/* Inner promotion section row */
.elementor-inner-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 40px;
  padding: 30px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-gold);
}

.elementor-inner-section:hover {
  transform: translateY(-5px);
  border-color: var(--gold-secondary);
  box-shadow: var(--shadow-gold-hover);
}

/* Row container */
.elementor-inner-section .elementor-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Column (Image and text columns) */
.elementor-inner-section .elementor-column {
  flex: 1 1 400px;
}

/* Image styling */
.elementor-inner-section img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Promo Title in each column */
.elementor-inner-section .elementor-widget-heading .elementor-heading-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-secondary);
  margin-bottom: 15px;
  text-align: left;
  background: none;
  -webkit-text-fill-color: initial;
  display: block;
}

/* Bullet list */
.elementor-inner-section ul {
  list-style: none;
  padding-left: 0;
}

.elementor-inner-section li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: var(--text-gray);
  font-size: 15px;
}

.elementor-inner-section li::before {
  content: "✓";
  color: var(--gold-primary);
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 16px;
}

/* Spacer & Bottom warning text */
.elementor-top-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Bottom note block */
.elementor-section:last-of-type {
  background: rgba(229, 9, 20, 0.05);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-top: 40px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.elementor-section:last-of-type p {
  color: var(--text-white);
  font-size: 15px;
  line-height: 1.7;
}

.elementor-section:last-of-type p strong {
  color: var(--red-primary);
}

/* --- Contact support details --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0 60px 0;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--gold-secondary);
  margin-bottom: 20px;
}

.contact-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-card-desc {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 25px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none; /* hidden on mobile, replaced by bottom bar */
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    gap: 15px;
    align-items: center;
    box-shadow: var(--shadow-gold);
    z-index: 999;
    backdrop-filter: blur(10px);
  }
  
  .header-actions {
    display: none; /* hide standard login buttons, will appear in bottom bar / menu */
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .mobile-bottom-menu {
    display: grid;
  }
  
  .floating-support {
    bottom: 85px; /* offset to not block mobile bottom menu */
    right: 15px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .jackpot-ticker {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --- Promotions Page Premium Styling --- */
.promo-page-hero {
  padding: 140px 0 60px;
  background: radial-gradient(circle at center, #1E1E26 0%, var(--bg-dark) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.promo-page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}
.promo-page-hero p {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.promotions-section {
  padding: 60px 0;
}

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

.promo-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.promo-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold-hover), 0 15px 40px rgba(0, 0, 0, 0.7);
}

.promo-img-wrapper {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.promo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.promo-card:hover .promo-img-wrapper img {
  transform: scale(1.05);
}

.promo-info {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.promo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--gold-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.promo-btn-container {
  margin-top: auto;
}

/* Helper class for mobile menu links that shouldn't display in horizontal desktop view */
@media (min-width: 1025px) {
  .desktop-hide {
    display: none !important;
  }
}

/* Elementor Grid Responsiveness for Reviews */
.elementor-top-section .elementor-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.elementor-top-section .elementor-column.elementor-col-33 {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 14px);
}
.elementor-top-section .elementor-column.elementor-col-100 {
  flex: 1 1 100%;
}
.elementor-top-section img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal);
}
.elementor-top-section img:hover {
  transform: scale(1.02);
}
@media (max-width: 992px) {
  .elementor-top-section .elementor-column.elementor-col-33 {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 10px);
  }
}
@media (max-width: 480px) {
  .elementor-top-section .elementor-column.elementor-col-33 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Predefined SEO Grid & Cards */
.seo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.seo-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 12px;
  transition: border-color var(--transition-normal), transform var(--transition-normal);
}
.seo-feature-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
}
.seo-feature-card h3 {
  color: var(--gold-primary);
  font-size: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}
.seo-feature-card h3 i {
  margin-right: 8px;
  color: var(--gold-secondary);
}
.seo-feature-card p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.8;
  text-align: justify;
}

/* Logo scaling for header responsiveness */
@media (max-width: 1200px) {
  .logo-text {
    font-size: 22px;
  }
}
@media (max-width: 1024px) {
  .logo-text {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .logo-text {
    font-size: 18px;
  }
  .logo-sub {
    font-size: 9px;
    padding: 1px 4px;
    margin-left: 1px;
  }
}

/* --- Dynamic Slot Themes Override System --- */

/* Gold (Default / Luxury Gold-Dark Theme) */
body.theme-gold {
  --gold-primary: #D4AF37;
  --gold-secondary: #FFCC00;
  --gold-light: #FFE066;
  --gold-gradient: linear-gradient(135deg, #FFE066 0%, #D4AF37 50%, #8A6D1C 100%);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(212, 175, 55, 0.3);
  --border-color: rgba(212, 175, 55, 0.15);
  --border-hover: rgba(212, 175, 55, 0.4);
  --theme-bg-glow: #1b1605;
  
  /* Lotto variables override */
  --accent: #D4AF37;
  --accent-light: #FFE066;
  --accent-glow: rgba(212, 175, 55, 0.25);
  --accent-gradient: linear-gradient(135deg, #FFE066 0%, #D4AF37 50%, #8A6D1C 100%);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.06);
}

/* Red (Neon Red-Dark / High Intensity Slot Theme) */
body.theme-red {
  --gold-primary: #E50914;
  --gold-secondary: #FF3333;
  --gold-light: #FF8888;
  --gold-gradient: linear-gradient(135deg, #FF8888 0%, #E50914 50%, #800000 100%);
  --shadow-gold: 0 4px 20px rgba(229, 9, 20, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(229, 9, 20, 0.3);
  --border-color: rgba(229, 9, 20, 0.15);
  --border-hover: rgba(229, 9, 20, 0.4);
  --theme-bg-glow: #200405;
  
  /* Lotto variables override */
  --accent: #E50914;
  --accent-light: #FF8888;
  --accent-glow: rgba(229, 9, 20, 0.25);
  --accent-gradient: linear-gradient(135deg, #FF8888 0%, #E50914 50%, #800000 100%);
  --shadow-glow: 0 0 40px rgba(229, 9, 20, 0.06);
}

/* Purple (Amethyst / Mysterious Purple Glow Slot Theme) */
body.theme-purple {
  --gold-primary: #8A2BE2;
  --gold-secondary: #DA70D6;
  --gold-light: #E0B0FF;
  --gold-gradient: linear-gradient(135deg, #E0B0FF 0%, #8A2BE2 50%, #4B0082 100%);
  --shadow-gold: 0 4px 20px rgba(138, 43, 226, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(138, 43, 226, 0.3);
  --border-color: rgba(138, 43, 226, 0.15);
  --border-hover: rgba(138, 43, 226, 0.4);
  --theme-bg-glow: #150522;
  
  /* Lotto variables override */
  --accent: #8A2BE2;
  --accent-light: #E0B0FF;
  --accent-glow: rgba(138, 43, 226, 0.25);
  --accent-gradient: linear-gradient(135deg, #E0B0FF 0%, #8A2BE2 50%, #4B0082 100%);
  --shadow-glow: 0 0 40px rgba(138, 43, 226, 0.06);
}

/* Blue (Cyber Ocean / Modern Blue Neon Slot Theme) */
body.theme-blue {
  --gold-primary: #00BFFF;
  --gold-secondary: #00F5FF;
  --gold-light: #E0FFFF;
  --gold-gradient: linear-gradient(135deg, #E0FFFF 0%, #00BFFF 50%, #00008B 100%);
  --shadow-gold: 0 4px 20px rgba(0, 191, 255, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(0, 191, 255, 0.3);
  --border-color: rgba(0, 191, 255, 0.15);
  --border-hover: rgba(0, 191, 255, 0.4);
  --theme-bg-glow: #021220;
  
  /* Lotto variables override */
  --accent: #00BFFF;
  --accent-light: #E0FFFF;
  --accent-glow: rgba(0, 191, 255, 0.25);
  --accent-gradient: linear-gradient(135deg, #E0FFFF 0%, #00BFFF 50%, #00008B 100%);
  --shadow-glow: 0 0 40px rgba(0, 191, 255, 0.06);
}

/* Green (Emerald Dragon / Lucky Green Slot Theme) */
body.theme-green {
  --gold-primary: #00FF66;
  --gold-secondary: #00E676;
  --gold-light: #A9FFC2;
  --gold-gradient: linear-gradient(135deg, #A9FFC2 0%, #00FF66 50%, #004D1A 100%);
  --shadow-gold: 0 4px 20px rgba(0, 255, 102, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(0, 255, 102, 0.3);
  --border-color: rgba(0, 255, 102, 0.15);
  --border-hover: rgba(0, 255, 102, 0.4);
  --theme-bg-glow: #021a0a;
  
  /* Lotto variables override */
  --accent: #00FF66;
  --accent-light: #A9FFC2;
  --accent-glow: rgba(0, 255, 102, 0.25);
  --accent-gradient: linear-gradient(135deg, #A9FFC2 0%, #00FF66 50%, #004D1A 100%);
  --shadow-glow: 0 0 40px rgba(0, 255, 102, 0.06);
}

/* Orange (Flashing Lava / Sunset Orange Slot Theme) */
body.theme-orange {
  --gold-primary: #FF5722;
  --gold-secondary: #FF9800;
  --gold-light: #FFCC80;
  --gold-gradient: linear-gradient(135deg, #FFCC80 0%, #FF5722 50%, #801300 100%);
  --shadow-gold: 0 4px 20px rgba(255, 87, 34, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(255, 87, 34, 0.3);
  --border-color: rgba(255, 87, 34, 0.15);
  --border-hover: rgba(255, 87, 34, 0.4);
  --theme-bg-glow: #1a0a02;
  
  /* Lotto variables override */
  --accent: #FF5722;
  --accent-light: #FFCC80;
  --accent-glow: rgba(255, 87, 34, 0.25);
  --accent-gradient: linear-gradient(135deg, #FFCC80 0%, #FF5722 50%, #801300 100%);
  --shadow-glow: 0 0 40px rgba(255, 87, 34, 0.06);
}

/* Pink (Bubblegum / Sweet Pink Slot Theme) */
body.theme-pink {
  --gold-primary: #FF527B;
  --gold-secondary: #FF8FA9;
  --gold-light: #FFE0E6;
  --gold-gradient: linear-gradient(135deg, #FFE0E6 0%, #FF527B 50%, #800F2F 100%);
  --shadow-gold: 0 4px 20px rgba(255, 82, 123, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(255, 82, 123, 0.3);
  --border-color: rgba(255, 82, 123, 0.15);
  --border-hover: rgba(255, 82, 123, 0.4);
  --theme-bg-glow: #20050c;
  
  /* Lotto variables override */
  --accent: #FF527B;
  --accent-light: #FFE0E6;
  --accent-glow: rgba(255, 82, 123, 0.25);
  --accent-gradient: linear-gradient(135deg, #FFE0E6 0%, #FF527B 50%, #800F2F 100%);
  --shadow-glow: 0 0 40px rgba(255, 82, 123, 0.06);
}

/* Relax (Sage Green / Calm Mint Slot Theme) */
body.theme-relax-dark {
  --gold-primary: #2ECC71;
  --gold-secondary: #1E824C;
  --gold-light: #D2EBDF;
  --gold-gradient: linear-gradient(135deg, #D2EBDF 0%, #2ECC71 50%, #0F4021 100%);
  --shadow-gold: 0 4px 20px rgba(46, 204, 113, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(46, 204, 113, 0.3);
  --border-color: rgba(46, 204, 113, 0.15);
  --border-hover: rgba(46, 204, 113, 0.4);
  --theme-bg-glow: #051a0f;
  
  /* Lotto variables override */
  --accent: #2ECC71;
  --accent-light: #D2EBDF;
  --accent-glow: rgba(46, 204, 113, 0.25);
  --accent-gradient: linear-gradient(135deg, #D2EBDF 0%, #2ECC71 50%, #0F4021 100%);
  --shadow-glow: 0 0 40px rgba(46, 204, 113, 0.06);
}


/* --- Lottery Section Styles --- */
.lotto-section {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-color);
}

.lotto-top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.lotto-top-actions h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0;
  position: relative;
  padding-bottom: 10px;
}

.lotto-top-actions h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

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

.lotto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.lotto-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.lotto-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold-hover);
}

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

.lotto-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lotto-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

.lotto-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.lotto-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 185, 0, 0.1);
  color: #00E676;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lotto-status-badge.closed {
  background: rgba(229, 9, 20, 0.1);
  color: #FF1744;
}

.lotto-status-dot {
  width: 6px;
  height: 6px;
  background-color: #00E676;
  border-radius: 50%;
  animation: lotto-blink 1.5s infinite;
}

.lotto-status-badge.closed .lotto-status-dot {
  background-color: #FF1744;
  animation: none;
}

.lotto-body {
  margin-bottom: 20px;
}

.lotto-timer-wrapper {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.02);
}

.lotto-timer-label {
  font-size: 11px;
  color: var(--text-gray);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lotto-timer-val {
  font-family: var(--font-eng);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-secondary);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.lotto-results-wrapper {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 12px;
}

.lotto-results-label {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
}

.lotto-numbers-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
}

.lotto-number-block {
  text-align: center;
  flex: 1;
}

.lotto-number-label {
  font-size: 11px;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.lotto-balls {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.lotto-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-dark);
  font-family: var(--font-eng);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  text-shadow: none;
}

.lotto-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.lotto-actions .btn {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
}

/* Animations */
@keyframes lotto-blink {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Drawing loader animation */
.lotto-drawing-txt {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 14px;
  animation: lotto-blink 1s infinite;
}

@media (max-width: 768px) {
  .lotto-top-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
  }
  .lotto-top-actions h2 {
    font-size: 1.8rem;
  }
}



/* ==========================================================================
   LOTTERY DASHBOARD ADDITIONS (FROM LOTTO443)
   ========================================================================== */
/* ---------- CATEGORY TABS ---------- */
.category-tabs-wrap {
  margin-top: var(--header-height);
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: sticky;
  top: var(--header-height);
  z-index: 99;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.category-tabs-wrap::-webkit-scrollbar { height: 0; }
.category-tabs {
  max-width: 1120px; margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex; gap: 0.5rem;
  min-width: max-content;
}
.cat-tab {
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  background: rgba(255, 255, 255, 0.04);
  color: #A0A0AB;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; gap: 0.4rem;
  cursor: pointer;
}
.cat-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.3);
}
.cat-tab.active {
  background: var(--gold-gradient);
  color: #121212; font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}
.tab-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cat-tab.active .tab-dot { background: #121212 !important; }

/* ---------- PAGE HERO ---------- */
.page-hero { padding: 2rem 0 1.5rem; text-align: center; }
.page-hero h1 {
  font-size: 2.2rem; font-weight: 800;
  color: var(--gold-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(255, 204, 0, 0.15);
}
.page-hero .subtitle {
  font-size: 0.95rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- LOADING ---------- */
.loading-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 5rem 0; gap: 1rem;
}
.loading-ring {
  width: 40px; height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { color: var(--text-secondary); font-size: 0.85rem; }

/* ---------- CATEGORY SECTION ---------- */
.category-section {
  margin-bottom: 1.8rem;
  animation: fadeUp 0.45s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0;
  margin-bottom: 0.4rem;
}
.cat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.category-header h2 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.cat-count {
  font-family: var(--font-num);
  font-size: 0.68rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ---------- LOTTERY GRID ---------- */
.lotto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
}

/* ---------- LOTTERY CARD ---------- */
.lotto-card {
  background: rgba(22, 22, 28, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.lotto-card:hover {
  background: rgba(30, 30, 40, 0.95);
  border-color: rgba(212, 175, 55, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.12);
}
.lotto-card:active { transform: translateY(-1px); }

.card-flag {
  width: 44px; height: 32px;
  border-radius: 6px;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.card-flag img { width: 100%; height: 100%; object-fit: cover; }
.flag-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.card-info { flex: 1; min-width: 0; }
.card-name {
  font-size: 1.1rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #ffffff; line-height: 1.3;
}
.card-meta {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.25rem;
}
.card-time {
  font-family: var(--font-num);
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-gray);
}
.card-divider {
  width: 1px; height: 12px;
  background: rgba(255,255,255,0.15);
}
.card-status {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 600;
}
.card-status .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.card-status.drawn .status-dot { background: var(--green); box-shadow: 0 0 6px rgba(0,206,201,0.6); }
.card-status.drawn { color: var(--green); }
.card-status.pending .status-dot { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.card-status.pending { color: var(--orange); }

/* Card: Numbers */
.card-numbers {
  display: flex; gap: 0.5rem;
  flex-shrink: 0;
}
.num-box {
  min-width: 70px;
  text-align: center;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
}
.num-box .label {
  display: block;
  font-size: 0.55rem; font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.2rem;
}
.num-box .value {
  display: block;
  font-family: var(--font-num);
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-gray);
  line-height: 1.2;
}

.lotto-card.has-result .num-box.up {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.03) 100%);
  border-color: rgba(212, 175, 55, 0.35);
}
.lotto-card.has-result .num-box.up .value { color: var(--gold-secondary); }
.lotto-card.has-result .num-box.down {
  background: linear-gradient(135deg, rgba(0, 206, 201, 0.15) 0%, rgba(0, 206, 201, 0.03) 100%);
  border-color: rgba(0, 206, 201, 0.35);
}
.lotto-card.has-result .num-box.down .value { color: var(--green); }

.lotto-card:not(.has-result) { border-color: rgba(255, 255, 255, 0.06); }
.lotto-card:not(.has-result) .num-box .value { color: rgba(255, 255, 255, 0.2); }

.shimmer-bar {
  display: block;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}
.lotto-card:hover .card-arrow {
  color: var(--gold-primary);
  transform: translateX(2px);
}

/* ========================================================================
   RESULT DETAIL PAGE
   ======================================================================== */
.result-page { min-height: 70vh; padding-bottom: 2rem; }

.breadcrumb {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-gray);
  margin-bottom: 1.2rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--gold-secondary); }

.result-hero {
  padding: 2rem 0 1.5rem;
}
.result-hero-main {
  display: flex; align-items: center; gap: 1.2rem;
}
.result-hero-flag {
  width: 64px; height: 46px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.result-hero-flag img { width: 100%; height: 100%; object-fit: cover; }
.result-hero-info h1 {
  font-size: 2rem; font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.result-hero-date {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-top: 0.25rem;
}

/* Result Display */
.result-display { margin-bottom: 2.5rem; }

.result-main-card {
  background: linear-gradient(135deg, rgba(212,175,55,0.12) 0%, rgba(138,109,28,0.03) 100%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 20px rgba(212,175,55,0.05);
}
.result-main-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.1) 0%, transparent 60%);
}
.result-main-label {
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  position: relative;
}
.result-main-digits {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  position: relative;
}
.digit-box {
  font-family: var(--font-num);
  font-size: 3.8rem; font-weight: 900;
  width: 80px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, #252530, #14141a);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: var(--radius-md);
  color: var(--gold-secondary);
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.05);
  text-shadow: 0 0 10px rgba(255,204,0,0.4);
}
.result-main-date {
  font-size: 0.85rem;
  color: var(--text-gray);
  position: relative;
}

.result-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.result-sub-card {
  background: rgba(22,22,28,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}
.sub-card-label {
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}
.sub-card-digits {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.digit-sm {
  font-family: var(--font-num);
  font-size: 2.2rem; font-weight: 800;
  width: 55px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to bottom, #252530, #14141a);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.digit-sm.green {
  border-color: rgba(0, 206, 201, 0.4);
  color: #00cec9;
  text-shadow: 0 0 10px rgba(0,206,201,0.3);
}
.digit-sm:not(.green) {
  border-color: rgba(255, 224, 102, 0.4);
  color: var(--gold-secondary);
  text-shadow: 0 0 10px rgba(255,204,0,0.3);
}

/* Pending result */
.result-pending-card {
  background: rgba(22,22,28,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 3.5rem 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
}
.pending-icon {
  color: var(--orange);
  margin-bottom: 1.2rem;
  display: flex; justify-content: center;
}
.pending-icon svg { animation: spin 3s linear infinite; }
.result-pending-card h3 {
  font-size: 1.3rem; font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.result-pending-card p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.result-error {
  text-align: center; padding: 4rem 0;
  color: var(--red);
}
.result-error a {
  display: inline-block; margin-top: 1rem;
  color: var(--accent-light);
}

/* ========================================================================
   BACKWARD HISTORY
   ======================================================================== */
.history-section { margin-top: 0.5rem; }
.history-header {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.history-header h2 {
  font-size: 1.05rem; font-weight: 700;
  flex: 1;
}
.history-count {
  font-family: var(--font-num);
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
}
.history-card {
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: background 0.2s;
}
.history-card:hover { background: var(--bg-glass-hover); }

.history-card-date {
  display: flex; flex-direction: column;
  min-width: 70px;
  flex-shrink: 0;
}
.history-date-day {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-primary);
}
.history-date-year {
  font-size: 0.65rem; font-weight: 400;
  color: var(--text-muted);
}

.history-card-numbers {
  flex: 1;
  display: flex; align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}
.history-num-group { text-align: center; }
.history-num-label {
  display: block;
  font-size: 0.55rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.1rem;
}
.history-num-value {
  font-family: var(--font-num);
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
}
.history-num-value.green { color: var(--green); }
.history-divider {
  width: 1px; height: 24px;
  background: var(--border-light);
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 2.5rem;
  background: rgba(6,8,15,0.8);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.footer-container {
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.5fr;
  gap: 2.5rem;
}
.footer-brand .logo { margin-bottom: 0.8rem; }
.footer-desc {
  font-size: 0.78rem; color: var(--text-secondary);
  line-height: 1.6; max-width: 320px;
  margin-bottom: 1.2rem;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
}
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.footer-social-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.footer-links-group h4 {
  font-size: 0.85rem; font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links button, .footer-links a {
  text-align: left; font-size: 0.78rem;
  color: var(--text-secondary); transition: color 0.2s; padding: 0.12rem 0;
  text-decoration: none;
}
.footer-links button:hover, .footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 0.8rem;
}
.footer-bottom-container { text-align: center; }
.footer-bottom p { font-size: 0.7rem; color: var(--text-muted); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .lotto-grid { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.2rem; }
  .footer-container { grid-template-columns: 1fr; }
  .result-hero-info h1 { font-size: 1.3rem; }
  .digit-box {
    font-size: 2.5rem;
    width: 56px; height: 68px;
  }
  .digit-sm {
    font-size: 1.4rem;
    width: 36px; height: 44px;
  }
  .result-sub-grid { gap: 0.5rem; }
}

@media (max-width: 480px) {
  .lotto-card { padding: 0.7rem 0.8rem; gap: 0.6rem; }
  .card-flag { width: 30px; height: 22px; }
  .card-name { font-size: 0.78rem; }
  .num-box { min-width: 42px; padding: 0.3rem; }
  .num-box .value { font-size: 0.95rem; }
  .num-box .label { font-size: 0.45rem; }
  .card-arrow { display: none; }
  .digit-box {
    font-size: 2rem;
    width: 48px; height: 58px;
  }
  .digit-sm {
    font-size: 1.2rem;
    width: 32px; height: 38px;
  }
  .calc-grid { grid-template-columns: 1fr !important; }
  .backward-summary { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ========================================================================
   CALCULATE PAGE
   ======================================================================== */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.calc-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}
.calc-card.wide {
  grid-column: 1 / -1;
}
.calc-card-title {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.calc-card-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

/* Digit Chips */
.digit-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.digit-chip {
  display: flex; flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  min-width: 52px;
}
.digit-chips.hot .digit-chip {
  background: rgba(255,107,107,0.08);
  border-color: rgba(255,107,107,0.12);
}
.digit-chips.cold .digit-chip {
  background: rgba(0,206,201,0.08);
  border-color: rgba(0,206,201,0.12);
}
.chip-num {
  font-family: var(--font-num);
  font-size: 1.3rem; font-weight: 800;
  color: var(--text-primary);
}
.digit-chips.hot .chip-num { color: var(--red); }
.digit-chips.cold .chip-num { color: var(--green); }
.chip-count {
  font-size: 0.6rem; font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Frequency Bars */
.freq-bars {
  display: flex; flex-direction: column; gap: 0.35rem;
}
.freq-bar-item {
  display: flex; align-items: center; gap: 0.5rem;
}
.freq-label {
  font-family: var(--font-num);
  font-size: 0.82rem; font-weight: 700;
  width: 18px; text-align: center;
  color: var(--text-secondary);
}
.freq-track {
  flex: 1; height: 20px;
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
}
.freq-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 2px;
}
.freq-count {
  font-family: var(--font-num);
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted);
  width: 24px; text-align: right;
}

/* Top 2-Digit */
.top2-list {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.top2-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}
.top2-item:hover { background: var(--bg-glass); }
.top2-rank {
  font-family: var(--font-num);
  font-size: 0.65rem; font-weight: 600;
  color: var(--text-muted);
  width: 20px;
}
.top2-num {
  font-family: var(--font-num);
  font-size: 1rem; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
  flex: 1;
}
.top2-count {
  font-size: 0.68rem; font-weight: 500;
  color: var(--text-muted);
}

/* Stats List */
.stats-list {
  display: flex; flex-direction: column; gap: 0.3rem;
}
.stat-row {
  display: flex; justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }
.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.stat-value {
  font-family: var(--font-num);
  font-size: 0.88rem; font-weight: 700;
  color: var(--text-primary);
}

/* ========================================================================
   BACKWARD PAGE
   ======================================================================== */
.backward-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.summary-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.summary-value {
  display: block;
  font-family: var(--font-num);
  font-size: 1.3rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.summary-label {
  font-size: 0.7rem; font-weight: 500;
  color: var(--text-muted);
}

/* Backward Full Table */
.backward-table-full {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.btf-head {
  display: grid;
  grid-template-columns: 50px 1fr 120px 120px;
  padding: 0.5rem 1rem;
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btf-row {
  display: grid;
  grid-template-columns: 50px 1fr 120px 120px;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  align-items: center;
  transition: background 0.15s;
}
.btf-row:last-child { border-bottom: none; }
.btf-row:hover { background: var(--bg-glass); }
.btf-col-idx {
  font-family: var(--font-num);
  font-size: 0.7rem; font-weight: 500;
  color: var(--text-muted);
}
.btf-col-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.btf-col-num { text-align: center; }
.btf-num {
  font-family: var(--font-num);
  font-size: 1rem; font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-primary);
}
.btf-num.green { color: var(--green); }

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
  .backward-summary { grid-template-columns: repeat(2, 1fr); }
  .btf-head, .btf-row {
    grid-template-columns: 35px 1fr 80px 80px;
    padding: 0.4rem 0.6rem;
  }
  .btf-num { font-size: 0.88rem; }
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }
}

/* ==========================================================================
   MULTI-THEME STYLING
   ========================================================================== */

/* 1. Cute/Kawaii Theme (Soft Pink/Pastel) */
body.theme-cute {
  --bg-base: #fff5f7;
  --bg-surface: rgba(255, 255, 255, 0.7);
  --bg-glass: rgba(255, 230, 235, 0.65);
  --bg-glass-hover: rgba(255, 205, 215, 0.8);
  --bg-glass-strong: rgba(255, 185, 200, 0.9);
  
  --accent: #ff527b;
  --accent-light: #ff8fa9;
  --accent-glow: rgba(255, 82, 123, 0.22);
  --green: #2ecc71;
  --green-soft: rgba(46, 204, 113, 0.15);
  --red: #e74c3c;
  --orange: #e67e22;
  --gold: #f1c40f;
  
  --text-primary: #4a2831;
  --text-secondary: rgba(74, 40, 49, 0.75);
  --text-muted: rgba(74, 40, 49, 0.5);
  
  --border: rgba(255, 82, 123, 0.25);
  --border-light: rgba(255, 82, 123, 0.4);
  
  --shadow-card: 0 8px 32px rgba(255, 182, 193, 0.25);
  --shadow-glow: 0 0 40px rgba(255, 182, 193, 0.12);

  --bg-tabs-wrap: rgba(255, 240, 243, 0.85);
  --accent-gradient: linear-gradient(135deg, #ff527b, #ff8fa9);
}
body.theme-cute::before {
  background: 
    radial-gradient(circle at 80% 20%, rgba(255, 182, 193, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255, 218, 224, 0.3) 0%, transparent 50%);
}
body.theme-cute .lotto-header {
  background: rgba(255, 245, 247, 0.85);
  border-bottom: 1px solid rgba(255, 117, 151, 0.15);
}
body.theme-cute .footer {
  background: rgba(255, 240, 243, 0.9);
  border-top: 1px solid rgba(255, 117, 151, 0.15);
}
body.theme-cute .logo-text span {
  color: var(--accent);
}

/* 2. Relax Theme (Calming Mint/Sage Green) */
body.theme-relax {
  --bg-base: #f3f7f5;
  --bg-surface: rgba(255, 255, 255, 0.75);
  --bg-glass: rgba(230, 243, 237, 0.65);
  --bg-glass-hover: rgba(210, 235, 223, 0.8);
  --bg-glass-strong: rgba(190, 227, 209, 0.9);
  
  --accent: #1e824c;
  --accent-light: #2ecc71;
  --accent-glow: rgba(30, 130, 76, 0.22);
  --green: #2980b9;
  --green-soft: rgba(41, 128, 185, 0.15);
  --red: #c0392b;
  --orange: #d35400;
  --gold: #f39c12;
  
  --text-primary: #1e272c;
  --text-secondary: rgba(30, 39, 44, 0.75);
  --text-muted: rgba(30, 39, 44, 0.5);
  
  --border: rgba(30, 130, 76, 0.25);
  --border-light: rgba(30, 130, 76, 0.4);
  
  --shadow-card: 0 8px 32px rgba(39, 174, 96, 0.08);
  --shadow-glow: 0 0 40px rgba(39, 174, 96, 0.05);

  --bg-tabs-wrap: rgba(240, 247, 244, 0.85);
  --accent-gradient: linear-gradient(135deg, #1e824c, #2ecc71);
}
body.theme-relax::before {
  background: 
    radial-gradient(circle at 80% 20%, rgba(39, 174, 96, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
}
body.theme-relax .lotto-header {
  background: rgba(244, 248, 246, 0.85);
  border-bottom: 1px solid rgba(39, 174, 96, 0.15);
}
body.theme-relax .footer {
  background: rgba(235, 242, 238, 0.9);
  border-top: 1px solid rgba(39, 174, 96, 0.15);
}
body.theme-relax .logo-text span {
  color: var(--accent);
}

/* 3. Cyberpunk Theme (Deep Neon Cyber Cyan-Magenta) */
body.theme-cyber {
  --bg-base: #030408;
  --bg-surface: rgba(0, 0, 0, 0.65);
  --bg-glass: rgba(4, 9, 19, 0.7);
  --bg-glass-hover: rgba(8, 18, 38, 0.8);
  --bg-glass-strong: rgba(12, 27, 57, 0.95);
  
  --accent: #00f0ff;
  --accent-light: #ff007f;
  --accent-glow: rgba(0, 240, 255, 0.3);
  --green: #00ff66;
  --green-soft: rgba(0, 255, 102, 0.2);
  --red: #ff3333;
  --orange: #ff9900;
  --gold: #ffff00;
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);
  
  --border: rgba(0, 240, 255, 0.3);
  --border-light: rgba(255, 0, 127, 0.35);
  
  --shadow-card: 0 8px 32px rgba(0, 240, 255, 0.15);
  --shadow-glow: 0 0 45px rgba(255, 0, 127, 0.12);

  --bg-tabs-wrap: rgba(2, 3, 6, 0.75);
  --accent-gradient: linear-gradient(135deg, #00f0ff, #ff007f);

  /* Slot variables override */
  --gold-primary: #00F0FF;
  --gold-secondary: #FF007F;
  --gold-light: #E0FFFF;
  --gold-gradient: linear-gradient(135deg, #E0FFFF 0%, #00F0FF 50%, #800080 100%);
  --shadow-gold: 0 4px 20px rgba(0, 240, 255, 0.15);
  --shadow-gold-hover: 0 10px 30px rgba(0, 240, 255, 0.3);
  --border-color: rgba(0, 240, 255, 0.15);
  --border-hover: rgba(255, 0, 127, 0.4);
  --theme-bg-glow: #05101a;
}
body.theme-cyber::before {
  background: 
    radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255, 0, 127, 0.12) 0%, transparent 50%);
}
body.theme-cyber .lotto-header {
  background: rgba(2, 3, 6, 0.85);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
body.theme-cyber .footer {
  background: rgba(3, 5, 10, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.2);
}
body.theme-cyber .logo-text span {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}
body.theme-cyber .back-btn {
  border: 1px solid var(--border);
}
body.theme-cyber .back-btn:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 10px var(--accent);
}

/* Global input focus styles */
input[type="text"]:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 12px var(--accent-glow) !important;
}

/* Card Icon Containers for themes */
.card-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.calc-card:hover .card-icon-container {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.card-icon-container.luxury {
  background: rgba(255, 211, 42, 0.05);
  border-color: rgba(255, 211, 42, 0.15);
}
.card-icon-container.cute {
  background: rgba(255, 117, 151, 0.08);
  border-color: rgba(255, 117, 151, 0.25);
}
.card-icon-container.relax {
  background: rgba(30, 130, 76, 0.08);
  border-color: rgba(30, 130, 76, 0.25);
}
.card-icon-container.cyber {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   THEME SWITCHER COMPONENT STYLING
   ========================================================================== */
.theme-switcher-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle-btn:hover {
  transform: rotate(30deg) scale(1.08);
  border-color: var(--accent);
  color: var(--accent);
}
.theme-dropdown-menu {
  position: absolute;
  bottom: 3.5rem;
  right: 0;
  width: 190px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  animation: themeSlideUp 0.2s ease;
}
.theme-dropdown-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.theme-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-menu-item:hover, .theme-menu-item.active {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}
.theme-color-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes themeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   LOTTO ICON STYLING
   ========================================================================== */
.lotto-icon-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.7rem;
}
.lotto-icon-md {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.82rem;
}
.lotto-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.25rem;
}

.lotto-icon-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.lotto-icon-emoji.lotto-icon-sm { font-size: 1rem; }
.lotto-icon-emoji.lotto-icon-md { font-size: 1.3rem; }
.lotto-icon-emoji.lotto-icon-lg { font-size: 2.2rem; }

.lotto-icon-flag-img {
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.lotto-icon-flag-img.lotto-icon-sm { width: 30px; height: 22px; border-radius: 3px; }
.lotto-icon-flag-img.lotto-icon-md { width: 36px; height: 26px; border-radius: 4px; }
.lotto-icon-flag-img.lotto-icon-lg { width: 56px; height: 40px; border-radius: 6px; }
.lotto-icon-flag-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lotto-icon-auto {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  letter-spacing: -0.5px;
}
.lotto-icon-auto span {
  font-family: var(--font-thai);
}

/* ==========================================================================
   RESPONSIVE ADMIN GRID CLASSES
   ========================================================================== */
.admin-grid-2col {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.admin-grid-equal-2col {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.admin-form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 992px) {
  .admin-grid-2col, 
  .admin-grid-equal-2col {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .admin-form-grid-2col {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS FOR LOTTERY CATEGORY TABS AND CARDS
   ========================================================================== */
@media (max-width: 768px) {
  .category-tabs-wrap {
    position: relative;
    top: 0;
    overflow-x: visible;
  }
  .category-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 6px;
    padding: 12px;
    min-width: auto;
  }
  .cat-tab {
    padding: 10px 4px;
    font-size: 0.8rem;
    font-weight: 700;
    justify-content: center;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    gap: 0.25rem;
  }
  .tab-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .lotto-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .lotto-card {
    padding: 0.9rem;
    gap: 0.75rem;
  }
  .card-flag {
    width: 36px; height: 26px;
    border-radius: 4px;
  }
  .card-name {
    font-size: 0.95rem;
  }
  .card-time, .card-status {
    font-size: 0.7rem;
  }
  .card-meta {
    gap: 0.35rem;
    margin-top: 0.15rem;
  }
  .card-divider {
    height: 10px;
  }
  .num-box {
    min-width: 62px;
    padding: 0.35rem 0.4rem;
    border-radius: 6px;
  }
  .num-box .label {
    font-size: 0.5rem;
    margin-bottom: 0.1rem;
  }
  .num-box .value {
    font-size: 1.05rem;
  }
  .card-arrow {
    display: none;
  }
}

/* --- Domain Keyword Links Grid --- */
.domain-keywords-section {
  margin-top: 30px;
  padding: 30px;
  background: rgba(214, 175, 55, 0.03);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
}

.domain-keywords-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.domain-keyword-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.domain-keyword-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.domain-keyword-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.domain-keyword-card:hover::before {
  opacity: 1;
}

.domain-keyword-name {
  color: var(--text-white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.domain-keyword-url {
  color: var(--text-gray);
  font-size: 11px;
  opacity: 0.6;
  margin-left: auto;
  font-family: var(--font-eng);
}

@media (max-width: 768px) {
  .domain-keywords-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }
  .domain-keyword-card {
    padding: 10px 14px;
  }
  .domain-keyword-name {
    font-size: 12px;
  }
  .domain-keyword-url {
    font-size: 10px;
  }
  .domain-keywords-section {
    padding: 20px;
  }
}
