/* ================================================================
   PCSOBall — Main Stylesheet
   Adapted from Quixly design system
   ================================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --purple:        #6d28d9;
  --purple-dark:   #5b21b6;
  --purple-light:  #7c3aed;
  --purple-50:     #f5f3ff;
  --purple-100:    #ede9fe;
  --red:           #dc2626;
  --red-light:     #f87171;
  --white:         #ffffff;
  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-700:      #374151;
  --gray-800:      #1f2937;
  --gray-900:      #111827;
  --text-dark:     #1a1a1a;
  --nav-bg:        rgba(255,255,255,0.93);
  --font:          'Nunito', sans-serif;
  --transition:    0.3s ease;
  --radius:        16px;
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.14);
  --shadow-purple: 0 8px 30px rgba(109,40,217,0.25);
  --shadow-red:    0 8px 30px rgba(220,38,38,0.30);
}

/* ===== BASE OVERRIDES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font) !important;
  color: var(--text-dark);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

canvas { display: none !important; }

img { max-width: 100%; height: auto; }
a  { text-decoration: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--purple-light); border-radius: 4px; }

/* ===== UTILITIES ===== */
.gradient-text {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--purple);
  background: var(--purple-50); border: 1.5px solid var(--purple-100);
  padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
}

.btn-pcso {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
  color: var(--white);
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 0.95rem; font-weight: 800;
  font-family: var(--font);
  box-shadow: var(--shadow-purple);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer; border: none;
}
.btn-pcso:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 36px rgba(109,40,217,0.35); color: #fff; }

.btn-pcso-red {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 0.95rem; font-weight: 800;
  font-family: var(--font);
  box-shadow: var(--shadow-red);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-pcso-red:hover { transform: translateY(-2px) scale(1.03); color: #fff; }

/* ===== SITE NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(1060px, 94vw);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.15rem; font-weight: 900; color: var(--text-dark);
  white-space: nowrap;
}
.nav-logo img { height: 32px; width: auto; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a {
  font-size: 0.82rem; font-weight: 700; color: var(--gray-700);
  padding: 6px 11px; border-radius: 20px;
  transition: color var(--transition), background var(--transition);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--purple); background: var(--purple-100); }
.nav-links > li > a i { font-size: 0.55rem; color: var(--gray-400); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-nav-live {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: var(--white) !important;
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 800;
  display: flex; align-items: center; gap: 6px;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-nav-live:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
  color: #fff !important;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fca5a5;
  animation: livePulse 1.5s infinite;
  flex-shrink: 0;
}
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-600); border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== NAV DROPDOWNS ===== */
.nav-has-dropdown { position: relative; }

/* Invisible bridge fills the gap between the link and dropdown so
   diagonal cursor movement doesn't accidentally close the menu */
.nav-has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -20px;
  right: -20px;
  height: 14px;
  background: transparent;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  /* Delay the hide so diagonal cursor movement doesn't close it instantly */
  transition: opacity .18s .15s, transform .18s .15s;
  z-index: 99;
}
.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  /* Show instantly, no delay */
  transition: opacity .15s 0s, transform .15s 0s;
}
.nav-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: .84rem; font-weight: 700; color: var(--gray-700);
  transition: background .15s, color .15s;
}
.nav-dd-item:hover { background: var(--purple-50); color: var(--purple); }
.nav-dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; flex-shrink: 0;
}
.nav-dd-sep { height: 1px; background: var(--gray-100); margin: 4px 8px; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0; right: 0;
  z-index: 98;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  padding: 8px;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  display: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu.open {
  opacity: 1; pointer-events: all;
  transform: translateY(0);
}
.mobile-menu > a {
  font-size: 0.95rem; font-weight: 700; color: var(--text-dark);
  padding: 11px 16px; border-radius: 12px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu > a:hover { background: var(--purple-100); color: var(--purple); }
.mobile-menu .btn-nav-live {
  margin: 6px 0 2px;
  justify-content: center;
}
.mobile-expand-toggle {
  cursor: pointer;
  display: flex !important; align-items: center;
  justify-content: space-between;
}
.mobile-expand-toggle .mobile-chevron { font-size: 0.7rem; color: var(--gray-400); transition: transform .2s; }
.mobile-expand-toggle.open .mobile-chevron { transform: rotate(180deg); }
.mobile-sub-links { padding-left: 12px; display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.mobile-sub-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 10px;
  font-size: .84rem; font-weight: 700; color: var(--gray-600);
  transition: background .15s; white-space: nowrap;
}
.mobile-sub-link:hover { background: var(--purple-50); color: var(--purple); }
.mobile-sub-link i { font-size: .65rem; width: 14px; text-align: center; }

/* ===== PAGE CONTENT SPACING ===== */
.page-content {
  padding-top: 80px;
}


/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a001e 0%, #1e0550 45%, #0d1b40 100%);
  /* Pull hero up to offset .page-content padding-top so it fills edge-to-edge */
  margin-top: -80px;
}
.hero-blobs {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-blobs span {
  position: absolute; border-radius: 50%;
  background: rgba(109,40,217,0.20);
  filter: blur(60px);
}
.hero-blobs span:nth-child(1) { width: 500px; height: 500px; top: -120px; left: -100px; }
.hero-blobs span:nth-child(2) { width: 600px; height: 600px; bottom: -200px; right: -120px; background: rgba(220,38,38,0.15); }
.hero-blobs span:nth-child(3) { width: 250px; height: 250px; top: 30%; left: 45%; background: rgba(255,255,255,0.05); }

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1060px;
  margin: 0 auto;
  padding: 110px 24px 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

/* Hero badge */
.hero-badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50px;
  padding: 6px 14px 6px 8px;
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.7s 0.1s forwards;
}
.hero-badge-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.hero-badge-pill span { font-size: 0.76rem; font-weight: 800; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; }

/* Hero heading row */
.hero-app-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-app-row img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.hero-app-row h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 12px;
  opacity: 0; animation: fadeUp 0.8s 0.35s forwards;
}
.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 26px;
  opacity: 0; animation: fadeUp 0.8s 0.45s forwards;
}

/* Lotto game type chips */
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.8s 0.55s forwards;
}
.hero-chip {
  padding: 5px 13px; border-radius: 50px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.78rem; font-weight: 800; color: #fff;
  letter-spacing: 0.03em;
  transition: background var(--transition);
}
.hero-chip:hover { background: rgba(255,255,255,0.22); }

/* App store badges */
.hero-badges {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  opacity: 0; animation: fadeUp 0.8s 0.65s forwards;
}
.badge-link { display: block; flex-shrink: 0; transition: transform var(--transition), filter var(--transition); }
.badge-link:hover { transform: translateY(-3px); filter: brightness(1.08); }
.badge-link img { height: 44px; width: auto; border-radius: 8px; }

/* Hero right — floating lotto ball graphic */
.hero-visual {
  flex-shrink: 0;
  text-align: center;
  opacity: 0; animation: heroReveal 1s 0.5s forwards;
}
.hero-visual img {
  width: 280px; height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 32px 60px rgba(0,0,0,0.5));
  animation: floatAnim 7s ease-in-out infinite;
}
.hero-visual .hero-stat-chips {
  display: flex; flex-direction: column; gap: 10px; margin-top: 20px;
}
.hero-stat-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 10px 18px;
  display: flex; align-items: center; gap: 10px;
  text-align: left;
}
.hero-stat-chip i { font-size: 1.2rem; color: #a78bfa; }
.hero-stat-chip strong { display: block; font-size: 1rem; font-weight: 900; color: #fff; line-height: 1; }
.hero-stat-chip span { font-size: 0.72rem; color: rgba(255,255,255,0.65); }

@keyframes heroReveal { to { opacity: 1; } }
@keyframes floatAnim { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Hero wave */
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; z-index: 3; }
.hero-wave svg { display: block; width: 100%; }

/* ===== RESULTS SECTION ===== */
.results-section {
  padding: 52px 20px 80px;
  background: var(--gray-50);
}
.results-inner {
  max-width: 1060px;
  margin: 0 auto;
}
.results-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: flex-start;
}
.results-main { min-width: 0; }
.results-sidebar { position: sticky; top: 60px; padding-top: 20px; }

/* Sidebar card */
.sidebar-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sidebar-card-header {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
  padding: 16px 20px;
}
.sidebar-card-header h3 {
  font-size: 0.95rem; font-weight: 900; color: #fff;
  margin: 0;
}
.sidebar-card-header p {
  font-size: 0.78rem; color: rgba(255,255,255,0.8);
  margin: 3px 0 0;
}
.sidebar-card-body { padding: 14px; }
.sidebar-app-badges { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-bottom: 1px solid var(--gray-100); }
.sidebar-app-badges a { display: block; }
.sidebar-app-badges a img { display: block; width: 100%; height: auto; border-radius: 7px; transition: transform var(--transition); }
.sidebar-app-badges a:hover img { transform: scale(1.04); }

/* Recent draws list */
.sidebar-nav-list { list-style: none; padding: 12px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav-list li a {
  display: block; padding: 8px 14px; border-radius: 10px;
  font-size: 0.84rem; font-weight: 700; color: var(--gray-700);
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.sidebar-nav-list li a:hover {
  background: var(--purple-50); color: var(--purple); border-left-color: var(--purple);
}
.sidebar-viewall {
  display: block; margin: 8px 12px 12px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
  color: #fff !important; text-align: center;
  padding: 10px; border-radius: 12px;
  font-size: 0.88rem; font-weight: 800;
  transition: opacity var(--transition);
}
.sidebar-viewall:hover { opacity: 0.9; color: #fff !important; }

/* Quick links card */
.sidebar-quick-links { margin-top: 20px; }
.quick-link-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  font-size: 0.88rem; font-weight: 700; color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
  margin-bottom: 4px;
}
.quick-link-item:hover { background: var(--purple-50); color: var(--purple); }
.quick-link-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}

/* ===== RESULT CARDS (view_inc_result overrides) ===== */
.results-main h1 {
  font-size: 1.6rem; font-weight: 900;
  color: var(--gray-900); margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 2px solid var(--gray-100);
}

.results-main .card {
  background: var(--white) !important;
  border-radius: 20px !important;
  border: 2px solid var(--gray-100) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  margin-bottom: 0 !important;
}
.results-main .card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-3px);
  border-color: var(--purple-100) !important;
}

.results-main section { margin-bottom: 16px; }
.results-main hr {
  border: none;
  border-top: 1px solid var(--gray-100);
  margin: 4px 0 16px;
}

/* Game title inside cards */
.results-main .game-title {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
}
.results-main .draw-date { font-size: 1rem !important; }

/* Lotto digit balls */
.digitball {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 900 !important;
  font-family: var(--font) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
  margin: 3px !important;
  font-size: 1rem !important;
}
.digitball .digit { font-size: 1rem; font-weight: 900; color: #fff; line-height: 1; }
.digitball .digitmd { font-size: 1.2rem; font-weight: 900; color: #fff; line-height: 1; }

/* Jackpot amount */
.results-main .text-danger {
  color: var(--red) !important;
  font-weight: 900 !important;
}

/* Ad slot between cards */
.results-main .adsbygoogle { border-radius: 12px; overflow: hidden; }

/* No results */
.results-main .bg-white { border-radius: 20px !important; }

/* ===== GAME SCHEDULE SECTION ===== */
.games-section {
  padding: 72px 20px;
  background: var(--white);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 1060px;
  margin: 0 auto;
}
.game-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.game-card:hover {
  border-color: var(--purple-100);
  box-shadow: 0 8px 24px rgba(109,40,217,0.12);
  transform: translateY(-4px);
  color: inherit;
}
.game-card img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 12px; }
.game-card h4 { font-size: 0.88rem; font-weight: 900; margin-bottom: 4px; }
.game-card span { font-size: 0.75rem; color: var(--gray-400); }

/* ===== APP DOWNLOAD CTA ===== */
.cta-download {
  padding: 90px 20px;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-blobs { position: absolute; inset: 0; pointer-events: none; }
.cta-blobs span {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.07); filter: blur(50px);
}
.cta-blobs span:nth-child(1) { width: 350px; height: 350px; top: -100px; left: -80px; }
.cta-blobs span:nth-child(2) { width: 450px; height: 450px; bottom: -120px; right: -80px; }
.cta-download h2 {
  position: relative; z-index: 1;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
  color: var(--white); margin-bottom: 14px;
}
.cta-download p {
  position: relative; z-index: 1;
  font-size: 1rem; color: rgba(255,255,255,0.85);
  max-width: 520px; margin: 0 auto 40px; line-height: 1.7;
}
.cta-badges {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.cta-badge-link { display: block; transition: transform var(--transition), filter var(--transition); }
.cta-badge-link:hover { transform: translateY(-4px) scale(1.04); }
.cta-badge-link img { height: 52px; width: auto; border-radius: 10px; }

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--gray-900) !important;
  color: var(--white);
  padding: 64px 20px 32px;
}
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; color: var(--gray-400); line-height: 1.7; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-row img { height: 36px; width: auto; border-radius: 9px; }
.footer-brand .brand-row h3 { font-size: 1.3rem; font-weight: 900; color: #a78bfa; margin: 0; }
.footer-col h4 { font-size: 0.88rem; font-weight: 800; color: #a78bfa; margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--gray-400); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.footer-bottom .copy { font-size: 0.83rem; color: var(--gray-400); margin: 0; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { font-size: 1.2rem; color: var(--gray-400); transition: color var(--transition), transform var(--transition); }
.footer-social a:hover { color: var(--white); transform: translateY(-2px); }
.footer-legal { display: flex; gap: 14px; }
.footer-legal a { font-size: 0.83rem; color: var(--gray-400); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
  .results-layout { grid-template-columns: 1fr 270px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-live-desktop { display: none; }
  .mobile-menu { display: flex; }

  .hero-inner { flex-direction: column; text-align: center; padding: 100px 20px 72px; gap: 36px; }
  .hero-app-row { justify-content: center; }
  .hero-desc { margin: 0 auto 26px; }
  .hero-chips { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual img { width: 200px; }
  .hero-stat-chips { flex-direction: row; justify-content: center; }

  .results-layout { grid-template-columns: 1fr; }
  .results-sidebar { position: static; }
  .sidebar-quick-links { display: none; }
}

@media (max-width: 640px) {
  .site-nav { padding: 10px 16px; top: 10px; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .digitball { width: 40px !important; height: 40px !important; }
  .digitball .digit { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badges { flex-wrap: wrap; }
  .badge-link img { height: 38px; }
}

/* ===== PAGE-SPECIFIC: non-home pages ===== */
.inner-page-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px 10px 10px;
}

/* Result game page header */
.result-page-hero {
  border-radius: 20px;
  padding: 32px 28px;
  color: #fff;
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.result-page-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; margin: 0 0 6px; }
.result-page-hero p { font-size: 0.9rem; opacity: 0.85; margin: 0; }

/* Schedule, search, other bootstrap pages - add top padding */
.container { padding-top: 0; }
body > .container:first-of-type,
.page-content > .container { padding-top: 0; }

/* Ensure Bootstrap rows still work */
.row { display: flex; flex-wrap: wrap; }

/* ===== LIVE PAGE ===== */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(239,68,68,0.12); color: var(--red);
  border: 1.5px solid rgba(239,68,68,0.3);
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  animation: livePulse 1.5s infinite;
}

/* ===== FEATURE CARDS (used on various pages) ===== */
.info-card {
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.info-card:hover {
  border-color: var(--purple-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.info-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.info-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.info-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.65; margin: 0; }

/* ===== RESULT CARDS (view_inc_result redesign) ===== */
.result-card {
  background: var(--white);
  border-radius: 20px;
  border: 2px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  margin-bottom: 16px;
}
.result-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--purple-100);
}
.result-card-body {
  display: flex;
  align-items: center;
  gap: 0;
}
.result-card-main {
  flex: 1;
  min-width: 0;
  padding: 22px 22px 18px;
  border-left: 5px solid var(--game-color, var(--purple));
}
.result-card-img {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.result-card-img img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  transition: transform .3s;
}
.result-card:hover .result-card-img img { transform: scale(1.06) rotate(-3deg); }

.result-game-name {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  margin: 0 0 4px !important;
  line-height: 1.2 !important;
}
.result-game-date {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.result-game-date a {
  color: inherit;
  transition: color .2s;
}
.result-game-date a:hover { color: var(--purple); }
.result-game-date i { margin-right: 5px; font-size: .75rem; }

/* Lotto number balls */
.lotto-balls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.lotto-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  font-family: var(--font);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.20);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .2s;
}
.result-card:hover .lotto-ball { transform: scale(1.07); }

/* Emoji / no-results balls */
.lotto-ball-emoji {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fee2e2; display: inline-flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}

/* Prize row */
.result-prize-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.result-jackpot-amount {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.result-jackpot-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: block;
  margin-bottom: 2px;
}
.result-winners-badge {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 50px;
  display: inline-block;
}
.result-winners-badge.has-winner {
  background: #d1fae5; color: #065f46;
}
.result-winners-badge.no-winner {
  background: #f3f4f6; color: var(--gray-600);
}
.result-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff !important;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  transition: opacity .2s, transform .2s;
}
.result-video-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff !important; }

/* No results card */
.no-results-card {
  background: var(--white);
  border-radius: 20px;
  border: 2px solid #fee2e2;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 20px;
}
.no-results-card h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gray-800);
  margin-bottom: 20px;
}
.no-results-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn-outline-pcso {
  padding: 10px 22px;
  border: 2px solid var(--purple);
  border-radius: 50px;
  color: var(--purple);
  font-weight: 800;
  font-size: .88rem;
  transition: background .2s, color .2s;
}
.btn-outline-pcso:hover { background: var(--purple); color: #fff; }
.btn-outline-red {
  padding: 10px 22px;
  border: 2px solid var(--red);
  border-radius: 50px;
  color: var(--red);
  font-weight: 800;
  font-size: .88rem;
  transition: background .2s, color .2s;
}
.btn-outline-red:hover { background: var(--red); color: #fff; }

@media (max-width: 640px) {
  .result-card-body { flex-direction: column; align-items: flex-start; }
  .result-card-img { display: none; }
  .result-card-main { border-left-width: 4px; padding: 16px; }
  .lotto-ball { width: 38px; height: 38px; font-size: .85rem; }
}

/* ===== HERO RESULTS PANEL ===== */
.hero-results-panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 22px;
  overflow: hidden;
  width: 310px;
  flex-shrink: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; animation: heroReveal 1s 0.5s forwards;
}
.hero-results-panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-results-panel-header i { font-size: 1rem; color: #fde68a; }
.hero-results-panel-header strong { font-size: 0.9rem; font-weight: 900; color: #fff; display: block; }
.hero-results-panel-header span { font-size: 0.72rem; color: rgba(255,255,255,0.65); }
.hero-results-list {
  max-height: 290px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.hero-results-list::-webkit-scrollbar { width: 4px; }
.hero-results-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.hero-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 10px;
  transition: background .15s;
}
.hero-result-row:last-child { border-bottom: none; }
.hero-result-row:hover { background: rgba(255,255,255,0.07); }
.hero-result-left { flex: 1; min-width: 0; }
.hero-result-name {
  font-size: 0.78rem;
  font-weight: 900;
  color: rgba(255,255,255,0.9);
  display: block;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-result-nums {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  letter-spacing: .04em;
}
.hero-result-jackpot {
  font-size: 0.78rem;
  font-weight: 900;
  color: #fde68a;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-results-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85) !important;
  border-top: 1px solid rgba(255,255,255,0.12);
  transition: background .15s, color .15s;
}
.hero-results-link:hover { background: rgba(255,255,255,0.08); color: #fff !important; }

@media (max-width: 900px) {
  .hero-results-panel { width: 100%; max-width: 400px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero-results-panel { display: none; }
}


/* ================================================================
   INNER PAGES — Shared layout for non-home pages
   ================================================================ */

/* ===== PAGE HERO BANNER (result/game, luckypick, etc.) ===== */
.page-hero-banner {
  border-radius: 20px;
  padding: 26px 28px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.page-hero-banner::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  top: -80px; right: -60px;
  pointer-events: none;
}
.page-hero-banner img {
  width: 72px; height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.3));
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.page-hero-banner-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.page-hero-banner h1 {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
}
.page-hero-banner p { font-size: 0.88rem; opacity: 0.82; margin: 0; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 800;
  color: #fff; margin-top: 8px;
}

/* ===== DATE NAVIGATION BAR ===== */
.date-nav-bar {
  background: var(--white);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}
.date-nav-bar h2 {
  font-size: 1rem; font-weight: 800;
  color: var(--gray-900); margin: 0;
  text-align: center; flex: 1;
}
.date-nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 50px;
  background: var(--purple-50); color: var(--purple);
  font-size: 0.8rem; font-weight: 800;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.date-nav-btn:hover { background: var(--purple); color: #fff; }

/* ===== INNER PAGE LAYOUT ===== */
.inner-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: flex-start;
}
.inner-main { min-width: 0; }
.inner-sidebar { position: sticky; top: 90px; }

/* ===== CONTENT CARD ===== */
.content-card {
  background: var(--white);
  border-radius: 20px;
  border: 2px solid var(--gray-100);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.content-card h2 { font-size: 1.15rem; font-weight: 900; margin-bottom: 14px; color: var(--gray-900); }
.content-card h3 { font-size: 1rem; font-weight: 800; margin: 20px 0 8px; color: var(--gray-800); }
.content-card h4 { font-size: 0.92rem; font-weight: 800; margin: 16px 0 6px; color: var(--gray-800); }
.content-card p { font-size: 0.9rem; line-height: 1.72; color: var(--gray-700); margin-bottom: 10px; }
.content-card ul, .content-card ol { font-size: 0.9rem; line-height: 1.72; color: var(--gray-700); padding-left: 20px; margin-bottom: 12px; }
.content-card ul li, .content-card ol li { margin-bottom: 6px; }
.content-card table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; min-width: 0; border-collapse: collapse; font-size: 0.88rem; margin: 12px 0; }
.content-card table th { background: var(--purple); color: #fff; padding: 10px 14px; text-align: left; font-weight: 800; }
.content-card table td { padding: 9px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); font-weight: 600; }
.content-card table tr:last-child td { border-bottom: none; }
.content-card table th:first-child { border-radius: 8px 0 0 0; }
.content-card table th:last-child { border-radius: 0 8px 0 0; }

/* ===== RESULT DETAIL TABLE ===== */
.result-detail-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0; }
.result-detail-table th, .result-detail-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--gray-100); }
.result-detail-table th { font-weight: 800; color: var(--gray-600); background: var(--gray-50); width: 38%; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; }
.result-detail-table td { color: var(--gray-800); font-weight: 700; }
.result-detail-table tr:last-child th, .result-detail-table tr:last-child td { border-bottom: none; }

/* ===== DRAWS LIST TABLE (related draws) ===== */
.draws-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.draws-table th { background: var(--gray-50); color: var(--gray-600); font-weight: 800; padding: 10px 14px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--gray-100); }
.draws-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-800); font-weight: 600; vertical-align: middle; }
.draws-table tr:last-child td { border-bottom: none; }
.draws-table tr:hover td { background: var(--purple-50); }
.draws-table a { color: var(--purple); font-weight: 800; }
.draws-table a:hover { text-decoration: underline; }

/* ===== PENDING RESULT NOTICE ===== */
.pending-notice {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.pending-notice i { color: #3b82f6; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.pending-notice h4 { font-size: 0.95rem; font-weight: 800; color: #1e40af; margin-bottom: 4px; }
.pending-notice p { font-size: 0.85rem; color: #1e3a8a; margin: 0; line-height: 1.6; }

/* ===== LUCKY PICK HERO ===== */
.luckypick-hero {
  background: linear-gradient(135deg, #0a001e 0%, #1e0550 45%, #0d1b40 100%);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.luckypick-hero::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(109,40,217,0.2);
  border-radius: 50%; filter: blur(60px);
  top: -80px; left: -80px; pointer-events: none;
}
.luckypick-hero::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(220,38,38,0.15);
  border-radius: 50%; filter: blur(50px);
  bottom: -60px; right: -40px; pointer-events: none;
}
.luckypick-hero img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 16px; position: relative; z-index: 1; }
.luckypick-hero h1 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 900; color: #fff; margin-bottom: 8px; position: relative; z-index: 1; }
.luckypick-hero p { font-size: 0.9rem; color: rgba(255,255,255,0.72); margin: 0; position: relative; z-index: 1; }
.luckypick-balls {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin: 28px 0 24px; position: relative; z-index: 1;
}
.luckypick-ball {
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 900; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.luckypick-generate-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 30px; border-radius: 50px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff !important; font-size: 0.95rem; font-weight: 800;
  cursor: pointer; border: none; font-family: var(--font);
  transition: opacity .2s, transform .2s;
  position: relative; z-index: 1;
}
.luckypick-generate-btn:hover { opacity: .9; transform: translateY(-2px); color: #fff !important; }

/* ===== LUCKY PICK INDEX GRID ===== */
.lp-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.lp-game-card {
  background: var(--white);
  border-radius: 18px;
  border: 2px solid var(--gray-100);
  overflow: hidden;
  transition: all .3s;
  display: block;
  text-decoration: none;
}
.lp-game-card:hover {
  border-color: var(--purple-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.lp-game-card-top {
  height: 90px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.lp-game-card-top img { height: 60px; width: auto; object-fit: contain; transition: transform .3s; }
.lp-game-card:hover .lp-game-card-top img { transform: scale(1.1); }
.lp-game-card-body { padding: 14px 16px 16px; text-align: center; }
.lp-game-card-body h3 { font-size: 0.9rem; font-weight: 900; color: var(--gray-900); margin-bottom: 10px; }
.lp-generate-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 50px;
  color: #fff !important; font-size: 0.8rem; font-weight: 800;
  transition: opacity .2s;
}
.lp-generate-link:hover { opacity: .88; color: #fff !important; }

/* ===== SEARCH FORM ===== */
.search-form-card {
  background: var(--white);
  border-radius: 20px;
  border: 2px solid var(--gray-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 90px;
}
.search-form-header {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
  padding: 16px 20px;
}
.search-form-header h2 { font-size: 1rem; font-weight: 900; color: #fff; margin: 0; }
.search-form-body { padding: 18px; }
.search-form-field { margin-bottom: 14px; }
.search-form-field label { display: block; font-size: 0.78rem; font-weight: 800; color: var(--gray-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.search-form-field input[type="date"] {
  width: 100%; padding: 9px 12px;
  border: 2px solid var(--gray-100); border-radius: 10px;
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  color: var(--gray-800); outline: none;
  transition: border-color .2s;
}
.search-form-field input[type="date"]:focus { border-color: var(--purple); }
.search-games-sep { height: 1px; background: var(--gray-100); margin: 14px 0; }
.search-game-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid var(--gray-100);
}
.search-game-row:last-child { border-bottom: none; }
.search-game-row label { font-size: 0.86rem; font-weight: 700; color: var(--gray-700); cursor: pointer; }
.search-game-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--purple); cursor: pointer; flex-shrink: 0; }
.search-submit-btn {
  width: 100%; padding: 11px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
  color: #fff; border: none; border-radius: 50px;
  font-size: 0.92rem; font-weight: 800; font-family: var(--font);
  cursor: pointer; margin-top: 14px;
  transition: opacity .2s;
}
.search-submit-btn:hover { opacity: .9; }

/* ===== SCHEDULE TABLE ===== */
.schedule-wrap {
  background: var(--white);
  border-radius: 20px;
  border: 2px solid var(--gray-100);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.schedule-wrap h1 { font-size: 1.6rem; font-weight: 900; margin-bottom: 4px; }
.schedule-wrap > p { font-size: 0.9rem; color: var(--purple); font-weight: 700; margin-bottom: 20px; }
.sched-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.sched-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--gray-600); font-weight: 700; }
.sched-legend-dot { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.sched-table { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 600px; }
.sched-table th {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-dark));
  color: #fff; padding: 11px 8px; text-align: center;
  font-size: 0.78rem; font-weight: 900; letter-spacing: .05em;
  border-radius: 10px;
}
.sched-table td {
  background: var(--gray-50); border-radius: 12px;
  padding: 14px 8px; text-align: center; vertical-align: middle;
  transition: background .2s, transform .15s;
}
.sched-table td:hover { background: var(--purple-50); transform: translateY(-2px); }
.sched-table td.today-col {
  background: var(--purple-100);
  border: 2px solid var(--purple);
  position: relative;
}
.sched-table td.today-col::before {
  content: "Today";
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff;
  font-size: 0.62rem; font-weight: 900; padding: 2px 8px; border-radius: 20px;
}
.sched-table img { width: 44px; height: 44px; object-fit: contain; display: block; margin: 0 auto 6px; transition: transform .3s; }
.sched-table td:hover img { transform: scale(1.12); }
.sched-game-name { font-weight: 800; color: var(--gray-800); font-size: 0.76rem; display: block; }
.sched-draw-time { font-size: 0.68rem; color: var(--gray-400); display: block; margin-top: 2px; }
.schedule-note { margin-top: 20px; font-size: 0.82rem; color: var(--gray-500); line-height: 1.65; border-top: 1px solid var(--gray-100); padding-top: 16px; }

/* ===== RESPONSIVE TABLES (Bootstrap .table override) ===== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem; font-family: var(--font);
}
.table th {
  background: var(--gray-50); color: var(--gray-600);
  font-weight: 800; padding: 10px 14px;
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 2px solid var(--gray-100);
  white-space: nowrap;
}
.table td {
  padding: 10px 14px; border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800); font-weight: 600; vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--purple-50); }
.table-striped tbody tr:nth-child(odd) td { background: var(--gray-50); }
.table-striped tbody tr:nth-child(odd):hover td { background: var(--purple-50); }
.thead-dark th {
  background: var(--gray-800) !important; color: #fff !important;
  border-bottom-color: var(--gray-700) !important;
}

/* ===== RESULT DATE STICKY HEADER ===== */
.result-date-header {
  position: sticky;
  top: 80px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 10px;
  margin: 20px 0 8px;
  isolation: isolate;
  letter-spacing: 0.01em;
}
.result-date-header i { font-size: 0.72rem; opacity: 0.8; }
.result-date-header-link {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.15s;
}
.result-date-header-link:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ===== DATE TREE SIDEBAR ===== */
.dt-wrap { padding: 8px 6px; }

.dt-yr-btn, .dt-mo-btn {
  display: flex; align-items: center; gap: 6px;
  width: 100%; background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left;
  padding: 6px 8px; border-radius: 8px;
  transition: background 0.15s;
}
.dt-yr-btn { font-size: 0.88rem; font-weight: 800; color: var(--gray-800); }
.dt-yr-btn:hover { background: var(--purple-50); color: var(--purple); }
.dt-yr-btn.open { color: var(--purple); }

.dt-mo-btn { font-size: 0.82rem; font-weight: 700; color: var(--gray-600); padding-left: 20px; }
.dt-mo-btn:hover { background: var(--purple-50); color: var(--purple); }
.dt-mo-btn.open { color: var(--purple); }

.dt-chevron {
  font-size: 0.6rem; color: var(--gray-400);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.dt-yr-btn.open .dt-chevron,
.dt-mo-btn.open .dt-chevron { transform: rotate(90deg); }

.dt-months { padding-left: 4px; }
.dt-days { display: flex; flex-direction: column; padding-left: 28px; gap: 1px; }
.dt-day-link {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; border-radius: 7px;
  font-size: 0.77rem; font-weight: 700; color: var(--gray-600);
  text-decoration: none; transition: background 0.12s, color 0.12s;
}
.dt-day-link i { font-size: 0.65rem; color: var(--gray-400); }
.dt-day-link:hover { background: var(--purple-50); color: var(--purple); }
.dt-day-link:hover i { color: var(--purple); }
.dt-day-link.active { background: var(--purple); color: #fff; font-weight: 800; }
.dt-day-link.active i { color: rgba(255,255,255,0.7); }
.dt-days-loading { padding: 6px 8px 6px 28px; font-size: 0.75rem; color: var(--gray-400); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== INNER PAGE RESPONSIVE ===== */
@media (max-width: 900px) {
  .inner-with-sidebar { grid-template-columns: 1fr; }
  .inner-sidebar { position: static; }
  .search-form-card { position: static; }
  .lp-games-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .page-hero-banner { flex-direction: column; text-align: center; padding: 22px; }
  .page-hero-banner img { width: 60px; height: 60px; }
  .date-nav-bar h2 { font-size: 0.88rem; }
  .date-nav-btn { font-size: 0.75rem; padding: 6px 10px; }
  .content-card { padding: 18px; }
  .schedule-wrap { padding: 18px; }
}
