/* ================================================================
   THAILAND HAMSTER ASSOCIATION — PREMIUM DESIGN
   Color Palette: Black #0D0D0D | Orange #E8722A | Gold #C9A227
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --black:       #0D0D0D;
  --black-light: #1A1A1A;
  --black-card:  #141414;
  --black-hover: #222222;
  --orange:      #E8722A;
  --orange-light:#F08040;
  --orange-dark: #C45A15;
  --gold:        #C9A227;
  --gold-light:  #E0BC45;
  --gold-dark:   #A07B10;
  --white:       #FFFFFF;
  --gray-100:    #F5F5F5;
  --gray-300:    #AAAAAA;
  --gray-500:    #666666;
  --gray-700:    #333333;
  --gradient-hero:    linear-gradient(135deg, #0D0D0D 0%, #1a0a00 50%, #0D0D0D 100%);
  --gradient-gold:    linear-gradient(135deg, #C9A227, #E0BC45, #A07B10);
  --gradient-orange:  linear-gradient(135deg, #E8722A, #F08040, #C45A15);
  --gradient-card:    linear-gradient(145deg, #1A1A1A, #141414);
  --shadow-gold:      0 0 30px rgba(201,162,39,0.25);
  --shadow-orange:    0 0 30px rgba(232,114,42,0.25);
  --shadow-card:      0 8px 32px rgba(0,0,0,0.5);
  --border-gold:      1px solid rgba(201,162,39,0.3);
  --border-orange:    1px solid rgba(232,114,42,0.3);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Sarabun', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--black); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; color: var(--gray-300); }

.text-gold     { color: var(--gold); }
.text-orange   { color: var(--orange); }
.text-gradient-gold   { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-orange { background: var(--gradient-orange); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.4);
  color: var(--gold);
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p  { max-width: 560px; margin: 0 auto; }
.divider {
  width: 60px; height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.btn:hover::before { transform: translateX(0); }

.btn-gold {
  background: var(--gradient-gold);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(201,162,39,0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,162,39,0.5); }

.btn-orange {
  background: var(--gradient-orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232,114,42,0.35);
}
.btn-orange:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,114,42,0.5); }

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline-gold:hover { background: rgba(201,162,39,0.1); transform: translateY(-2px); }

.btn-outline-orange {
  border: 1px solid var(--orange);
  color: var(--orange);
  background: transparent;
}
.btn-outline-orange:hover { background: rgba(232,114,42,0.1); transform: translateY(-2px); }

.btn-lg { padding: 15px 36px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Cards ── */
.card {
  background: var(--gradient-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold), var(--shadow-card);
  border-color: var(--gold);
}
.card-orange { border: var(--border-orange); }
.card-orange:hover {
  box-shadow: var(--shadow-orange), var(--shadow-card);
  border-color: var(--orange);
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-gold   { background: rgba(201,162,39,0.15); color: var(--gold);   border: 1px solid rgba(201,162,39,0.4); }
.badge-orange { background: rgba(232,114,42,0.15); color: var(--orange); border: 1px solid rgba(232,114,42,0.4); }
.badge-green  { background: rgba(72,199,88,0.15);  color: #48C758;       border: 1px solid rgba(72,199,88,0.4); }
.badge-blue   { background: rgba(72,144,232,0.15); color: #4890E8;       border: 1px solid rgba(72,144,232,0.4); }

/* ============================
   NAVBAR
   ============================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo-icon {
  width: 46px; height: 46px;
  background: var(--gradient-gold);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-gold);
}
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; line-height: 1.1; }
.nav-logo-text span { display: block; font-size: 0.7rem; font-weight: 400; color: var(--gold); letter-spacing: 1px; }
.nav-inner { padding: 0 24px; }
.nav-links {
  display: flex; align-items: center; gap: 0px;
}
.nav-link {
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
  display: flex; align-items: center; gap: 3px;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 3px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 1px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { left: 9px; right: 9px; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { left: 9px; right: 9px; }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ── Dropdown Nav ─────────────────────────────────────────── */
.nav-item { position: relative; }

.nav-chevron {
  font-size: .55rem;
  opacity: .6;
  transition: transform .2s;
}
.nav-item.has-dropdown:hover .nav-chevron { transform: rotate(180deg); }

/* Bridge gap so hover isn't lost between link and dropdown */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 10px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--black-card);
  border: 1px solid rgba(201,162,39,0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 2000;
}
.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.nav-dd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: .84rem;
  color: var(--gray-300);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-dd-link i { width: 14px; color: var(--gold); opacity: .65; font-size: .78rem; }
.nav-dd-link:hover { background: rgba(201,162,39,0.08); color: var(--white); }
.nav-dd-link:hover i { opacity: 1; }
.nav-dropdown-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }

/* ── Hamburger ────────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile Nav ───────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  padding-top: 72px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 1.5rem; color: var(--gray-300); cursor: pointer;
}

/* Mobile nav scroll container */
.mobile-nav-scroll {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  padding: 8px 20px 24px;
  gap: 2px;
}

/* Simple link in mobile nav */
.mobile-nav-link {
  display: block;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: background .15s, color .15s;
}
.mobile-nav-link:hover { background: rgba(201,162,39,0.08); color: var(--gold); }

/* Accordion group */
.mobile-nav-group { width: 100%; }
.mobile-nav-group-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px;
  font-size: 1.05rem; font-weight: 600;
  color: var(--white);
  background: transparent; border: none; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  font-family: inherit;
}
.mobile-nav-group-btn:hover { background: rgba(201,162,39,0.08); color: var(--gold); }
.mobile-nav-group-btn .mnav-arrow { font-size: .6rem; opacity: .6; transition: transform .25s; }
.mobile-nav-group-btn.open .mnav-arrow { transform: rotate(180deg); }

.mobile-nav-sub {
  display: none;
  flex-direction: column;
  background: rgba(201,162,39,0.04);
  border-radius: var(--radius-sm);
  margin: 2px 0 6px;
  padding: 4px 0;
  border: 1px solid rgba(201,162,39,0.1);
}
.mobile-nav-sub.open { display: flex; }
.mobile-nav-sub-link {
  padding: 10px 24px;
  font-size: .9rem;
  color: var(--gray-300);
  text-decoration: none;
  transition: color .15s, background .15s;
  display: flex; align-items: center; gap: 8px;
}
.mobile-nav-sub-link i { color: var(--gold); opacity: .65; width: 14px; font-size: .8rem; }
.mobile-nav-sub-link:hover { color: var(--gold); background: rgba(201,162,39,0.06); }
.mobile-nav-sub-link:hover i { opacity: 1; }

.mobile-nav-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 8px 0; }

.mobile-nav-btns {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 12px; margin-top: 16px; width: 100%;
}
.mobile-nav-btns .btn { width: 100%; justify-content: center; font-size: 1rem; }

/* ============================
   HERO SECTION
   ============================ */
#hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,162,39,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(232,114,42,0.06) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding: 80px 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(201,162,39,0.4);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,162,39,0.08);
  margin-bottom: 24px;
}
.hero-tag span { display: inline-block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.hero-title { margin-bottom: 8px; }
.hero-title .line1 { display: block; color: var(--white); }
.hero-title .line2 { display: block; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-title .line3 { display: block; color: var(--orange); font-size: 0.55em; font-weight: 400; font-family: 'Sarabun', sans-serif; letter-spacing: 3px; text-transform: uppercase; margin-top: 8px; }
.hero-sub { font-size: 1.1rem; color: var(--gray-300); margin: 20px 0 36px; max-width: 480px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: 0.75rem; color: var(--gray-500); margin-top: 4px; letter-spacing: 1px; }

/* Hero Visual */
.hero-visual {
  position: relative; display: flex; justify-content: center;
}
.hero-card-main {
  background: var(--gradient-card);
  border: var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-gold), var(--shadow-card);
  width: 100%; max-width: 400px;
}
.hero-card-badge {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.hero-card-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.hero-card-info h4 { font-size: 1rem; margin-bottom: 2px; }
.hero-card-info span { font-size: 0.78rem; color: var(--gold); }
.hero-card-medal {
  text-align: center; padding: 24px 0;
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
  margin-bottom: 20px;
}
.hero-card-medal .medal-icon { font-size: 3.5rem; margin-bottom: 8px; }
.hero-card-medal h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 4px; }
.hero-card-medal p { font-size: 0.82rem; }
.hero-card-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-card-stat { text-align: center; }
.hero-card-stat .val { font-size: 1.4rem; font-weight: 700; color: var(--orange); }
.hero-card-stat .lbl { font-size: 0.72rem; color: var(--gray-500); margin-top: 2px; }
.hero-float-badge {
  position: absolute;
  background: var(--gradient-card);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-gold);
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 8px;
}
.hero-float-badge.top-right { top: -10px; right: -20px; }
.hero-float-badge.bottom-left { bottom: 20px; left: -20px; }
.hero-float-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #48C758;
  box-shadow: 0 0 8px #48C758;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ============================
   COUNTDOWN SECTION
   ============================ */
#countdown {
  padding: 28px 0;
  background: linear-gradient(135deg, rgba(232,114,42,0.08), rgba(201,162,39,0.08));
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
}
.countdown-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.countdown-label h3 { color: var(--orange); margin-bottom: 4px; }
.countdown-label p { font-size: 0.85rem; }
.countdown-timer { display: flex; gap: 16px; }
.countdown-unit {
  text-align: center;
  background: var(--black-card);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 80px;
}
.countdown-unit .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.countdown-unit .lbl { font-size: 0.7rem; color: var(--gray-500); letter-spacing: 1px; margin-top: 4px; display: block; }
.countdown-event {
  display: flex; flex-direction: column; gap: 6px;
}
.countdown-event .event-name { font-size: 1.1rem; font-weight: 600; }
.countdown-event .event-date { font-size: 0.85rem; color: var(--gold); }
.countdown-event .event-place { font-size: 0.82rem; color: var(--gray-500); }

/* ============================
   MEMBERSHIP SECTION
   ============================ */
#membership { background: var(--black); }
.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.mem-card {
  position: relative;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
  overflow: hidden;
}
.mem-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}
.mem-card.standard::before { background: linear-gradient(90deg, #888, #aaa); }
.mem-card.breeder::before { background: var(--gradient-orange); }
.mem-card.honorary::before { background: var(--gradient-gold); }
.mem-card.judge::before { background: linear-gradient(90deg, #9B59B6, #8E44AD); }
.mem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.mem-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.mem-card.featured:hover { box-shadow: var(--shadow-gold), var(--shadow-card); }
.mem-featured-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--gradient-gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 1px;
}
.mem-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.mem-card.standard .mem-icon  { background: rgba(136,136,136,0.15); }
.mem-card.breeder  .mem-icon  { background: rgba(232,114,42,0.15); }
.mem-card.honorary .mem-icon  { background: rgba(201,162,39,0.15); }
.mem-card.judge    .mem-icon  { background: rgba(155,89,182,0.15); }
.mem-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.mem-card .mem-sub { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 20px; }
.mem-price { margin-bottom: 20px; }
.mem-price .price { font-size: 1.8rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.mem-price .per { font-size: 0.82rem; color: var(--gray-500); }
.mem-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.mem-feature { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.mem-feature .check { color: var(--gold); font-size: 0.75rem; flex-shrink: 0; }
.mem-feature .cross { color: var(--gray-500); font-size: 0.75rem; flex-shrink: 0; }
.mem-feature.dim { color: var(--gray-500); }

/* ============================
   MEMBERSHIP REGISTRATION FORM
   ============================ */
#register { background: var(--black-light); }
.register-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 64px; align-items: start;
}
.register-info h2 { margin-bottom: 16px; }
.register-info p { margin-bottom: 32px; }
.register-steps { display: flex; flex-direction: column; gap: 24px; }
.register-step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--black);
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.step-content h4 { margin-bottom: 4px; }
.step-content p { font-size: 0.85rem; }

.form-card {
  background: var(--black-card);
  border: var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-gold);
}
.form-title { font-size: 1.4rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-300);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.form-group label .req { color: var(--orange); margin-left: 2px; }
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  background: rgba(201,162,39,0.06);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.form-control::placeholder { color: var(--gray-500); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
select.form-control option { background: var(--black-card); }
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 6px; }

/* Member Type Selector */
.mem-type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mem-type-opt { position: relative; }
.mem-type-opt input[type="radio"] { position: absolute; opacity: 0; }
.mem-type-label {
  display: block;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.mem-type-opt input:checked + .mem-type-label {
  border-color: var(--gold);
  background: rgba(201,162,39,0.1);
  color: var(--gold);
}
.mem-type-label:hover { border-color: rgba(201,162,39,0.4); }

/* ============================
   DIGITAL MEMBERSHIP CARD
   ============================ */
#member-card-demo { background: var(--black); padding: 80px 0; }
.digital-card {
  max-width: 440px; margin: 0 auto;
  background: linear-gradient(135deg, #1A1A1A 0%, #0D0D0D 50%, #1a0e00 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-gold), 0 20px 60px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.digital-card::before {
  content: '';
  position: absolute; top: -50%; right: -30%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.12), transparent 70%);
}
.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.card-org { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.card-year { font-size: 0.72rem; color: var(--gray-500); }
.card-member-row { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.card-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.card-member-info .name { font-size: 1.2rem; font-family: 'Playfair Display', serif; font-weight: 700; }
.card-member-info .mem-type {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin: 4px 0;
}
.card-member-info .mem-id { font-size: 0.75rem; color: var(--gray-500); }
.card-divider { height: 1px; background: rgba(201,162,39,0.2); margin: 20px 0; }
.card-qr-row { display: flex; align-items: center; justify-content: space-between; }
.card-qr-box {
  width: 80px; height: 80px;
  background: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-size: 0.6rem;
  text-align: center;
  padding: 4px;
}
.card-qr-info { font-size: 0.8rem; }
.card-qr-info .expires { color: var(--gold); font-weight: 600; }
.card-chip {
  position: absolute; bottom: 24px; right: 24px;
  width: 48px; height: 36px;
  background: var(--gradient-gold);
  border-radius: 6px;
  opacity: 0.4;
}

/* ============================
   COMPETITION SECTION
   ============================ */
#competitions { background: var(--black-light); }

/* ── Multi-step form progress ── */
.cf-progress { display:flex; align-items:center; margin-bottom:28px; }
.cf-prog-step { display:flex; align-items:center; gap:8px; opacity:.35; transition:opacity .3s; }
.cf-prog-step.active, .cf-prog-step.done { opacity:1; }
.cfp-num {
  width:28px; height:28px; border-radius:50%;
  background:rgba(255,255,255,.1);
  display:flex; align-items:center; justify-content:center;
  font-size:.78rem; font-weight:700; flex-shrink:0; transition:background .3s;
}
.cf-prog-step.active .cfp-num { background:var(--orange); color:#fff; }
.cf-prog-step.done   .cfp-num { background:var(--gold);   color:#000; }
.cfp-lbl { font-size:.76rem; color:var(--text-muted); white-space:nowrap; }
.cf-prog-step.active .cfp-lbl { color:var(--white); }
.cf-prog-line { flex:1; height:1px; background:rgba(255,255,255,.1); margin:0 10px; }

/* ── Show selection cards ── */
.show-cards-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; margin-bottom:16px; }
.show-radio-card { cursor:pointer; display:block; }
.show-radio-card input[type="radio"] { display:none; }
.src-body {
  display:flex; align-items:flex-start; gap:12px;
  padding:14px 16px;
  border:1.5px solid rgba(255,255,255,.07);
  border-radius:var(--radius);
  background:rgba(255,255,255,.02);
  transition:var(--transition);
}
.show-radio-card:has(input:checked) .src-body { border-color:var(--orange); background:rgba(232,114,42,.08); }
.show-radio-card:hover .src-body { border-color:rgba(232,114,42,.35); }
.src-icon { font-size:1.4rem; flex-shrink:0; margin-top:2px; }
.src-title { font-weight:600; font-size:.87rem; margin-bottom:2px; }
.src-sub   { font-size:.74rem; color:var(--text-muted); margin-bottom:3px; }
.src-fee   { font-size:.78rem; color:var(--orange); }
.src-fee span { color:var(--text-muted); }
.bundle-promo-box {
  display:flex; align-items:center; gap:10px;
  padding:12px 16px; margin-bottom:4px;
  background:rgba(201,162,39,.06);
  border:1px solid rgba(201,162,39,.18);
  border-radius:var(--radius); font-size:.84rem;
}

/* ── Class selection tables ── */
.class-section { border-top:1px solid rgba(255,255,255,.07); padding-top:4px; }
.class-group-block { margin-bottom:16px; }
.class-grp-title {
  font-weight:700; font-size:.83rem; color:var(--orange);
  padding:7px 12px;
  background:rgba(232,114,42,.07);
  border-left:3px solid var(--orange);
  border-radius:4px 4px 0 0;
}
.class-grp-title span { font-weight:400; color:var(--text-muted); font-size:.78rem; margin-left:4px; }
.class-table { width:100%; border-collapse:collapse; font-size:.82rem; border:1px solid rgba(255,255,255,.06); border-top:none; }
.class-table th { padding:6px 12px; background:rgba(255,255,255,.04); color:var(--gold); font-weight:600; text-align:left; border-bottom:1px solid rgba(255,255,255,.06); }
.class-table td { padding:6px 12px; border-bottom:1px solid rgba(255,255,255,.04); vertical-align:middle; }
.class-table td:nth-child(2), .class-table td:nth-child(3) { text-align:center; width:64px; }
.class-table tr:hover td { background:rgba(255,255,255,.02); }
.cf-cls { width:16px; height:16px; cursor:pointer; accent-color:var(--orange); }

/* ── Summary + payment ── */
.cf-summary-box { background:rgba(201,162,39,.05); border:1px solid rgba(201,162,39,.15); border-radius:var(--radius); padding:16px; margin-bottom:20px; }
.cf-sum-row { display:flex; justify-content:space-between; align-items:flex-start; padding:6px 0; border-bottom:1px solid rgba(255,255,255,.04); font-size:.85rem; gap:12px; }
.cf-sum-row:last-child { border-bottom:none; }
.cf-sum-row span { color:var(--text-muted); flex-shrink:0; min-width:90px; }
.cf-sum-row strong { text-align:right; }
.payment-info-box { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07); border-radius:var(--radius); padding:16px; margin-bottom:4px; }

/* Light mode */
[data-theme="light"] .src-body { background:#fff; border-color:rgba(100,70,20,.1); }
[data-theme="light"] .show-radio-card:has(input:checked) .src-body { border-color:var(--orange); background:rgba(232,114,42,.06); }
[data-theme="light"] .class-table { border-color:rgba(100,70,20,.08); }
[data-theme="light"] .class-table th { background:rgba(100,70,20,.04); border-bottom-color:rgba(100,70,20,.08); }
[data-theme="light"] .class-table td { border-bottom-color:rgba(100,70,20,.06); }
[data-theme="light"] .class-grp-title { background:rgba(232,114,42,.05); }
[data-theme="light"] .cf-summary-box { background:rgba(201,162,39,.04); }
[data-theme="light"] .payment-info-box { background:#f9f7f2; border-color:rgba(100,70,20,.1); }

/* ── Show Checkbox Cards (replaces radio cards for multi-select) ── */
.show-check-card { cursor:pointer; display:block; position:relative; }
.show-check-card input[type="checkbox"] { position:absolute; opacity:0; width:0; height:0; }
.show-check-card .src-body { border:2px solid rgba(255,255,255,.08); border-radius:12px; padding:14px; display:flex; gap:12px; align-items:flex-start; background:var(--black-light); transition:border-color .2s, background .2s; }
.show-check-card:has(input:checked) .src-body { border-color:var(--orange); background:rgba(232,114,42,.08); }
.show-check-card:has(input:checked) .src-body::after { content:'✓'; position:absolute; top:8px; right:10px; width:20px; height:20px; border-radius:50%; background:var(--orange); color:#fff; font-size:.75rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
.show-check-card:hover .src-body { border-color:rgba(232,114,42,.4); }

/* ── Stepper ── */
.stepper { display:flex; align-items:center; gap:3px; justify-content:center; }
.stepper button { width:26px; height:26px; border-radius:6px; border:1px solid rgba(255,255,255,.12); background:var(--black); color:var(--white); font-size:1rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s, border-color .15s; padding:0; }
.stepper button:hover { background:var(--orange); border-color:var(--orange); }
.stepper input[type="number"] { width:40px; height:26px; text-align:center; border-radius:6px; border:1px solid rgba(255,255,255,.12); background:var(--black-light); color:var(--white); font-size:.82rem; padding:0; }
.stepper input[type="number"]::-webkit-outer-spin-button,
.stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.stepper input[type="number"]:focus { outline:none; border-color:var(--orange); }
.class-table td:nth-child(2), .class-table td:nth-child(3) { text-align:center; width:80px; }

/* ── Show Class Accordion ── */
.show-class-accordion { margin-top:16px; border:1px solid rgba(255,255,255,.1); border-radius:12px; overflow:hidden; }
.sca-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:12px 16px; background:rgba(255,255,255,.03); border-bottom:1px solid rgba(255,255,255,.08); font-size:.86rem; font-weight:600; }
.sca-date { font-size:.72rem; color:var(--text-muted); font-weight:400; margin-left:6px; }
.sca-classes { padding:12px 16px; }
.fee-mode-toggle { display:flex; gap:6px; flex-wrap:wrap; }
.fmt-btn { padding:4px 12px; border-radius:20px; border:1px solid rgba(255,255,255,.12); background:var(--black); color:var(--gray-400); font-size:.76rem; cursor:pointer; transition:all .2s; white-space:nowrap; }
.fmt-btn.active { background:var(--orange); border-color:var(--orange); color:#fff; font-weight:600; }
.fmt-btn:hover:not(.active) { border-color:var(--orange); color:var(--orange); }

/* ── Fee Suggest Banner ── */
.fee-suggest-box { margin:0 16px 8px; padding:8px 12px; border-radius:8px; background:rgba(201,162,39,.1); border:1px solid rgba(201,162,39,.25); color:var(--gold); font-size:.78rem; display:flex; align-items:center; gap:8px; }

/* ── Sticky Fee Footer ── */
.cf-fee-footer { position:sticky; bottom:0; background:var(--black-light); border-top:2px solid var(--orange); padding:10px 16px; margin:0 -24px -24px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; z-index:10; border-radius:0 0 16px 16px; box-shadow:0 -4px 20px rgba(0,0,0,.4); }
.cff-lines { display:flex; flex-wrap:wrap; gap:4px 16px; flex:1; }
.cff-line { display:flex; align-items:baseline; gap:5px; font-size:.8rem; }
.cff-sub { color:var(--text-muted); font-size:.72rem; }
.cff-total { font-size:.95rem; font-weight:700; color:var(--orange); white-space:nowrap; }
.cff-bundle-badge { display:inline-block; background:var(--gold); color:var(--black); padding:1px 7px; border-radius:10px; font-size:.7rem; font-weight:700; margin-right:5px; vertical-align:middle; }

/* ── Light mode overrides for new components ── */
[data-theme="light"] .show-check-card .src-body { background:#fff; border-color:rgba(100,70,20,.12); }
[data-theme="light"] .show-check-card:has(input:checked) .src-body { border-color:var(--orange); background:rgba(232,114,42,.06); }
[data-theme="light"] .stepper button { background:#f0f0f0; border-color:#ccc; color:#111; }
[data-theme="light"] .stepper input[type="number"] { background:#fff; border-color:#ccc; color:#111; }
[data-theme="light"] .show-class-accordion { border-color:rgba(100,70,20,.1); }
[data-theme="light"] .sca-header { background:rgba(100,70,20,.03); border-bottom-color:rgba(100,70,20,.08); }
[data-theme="light"] .fmt-btn { background:#f0f0f0; border-color:#ccc; color:#444; }
[data-theme="light"] .cf-fee-footer { background:#f5f3ee; box-shadow:0 -4px 16px rgba(0,0,0,.08); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.event-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-orange); border-color: var(--orange); }
.event-card-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(232,114,42,0.12), rgba(201,162,39,0.08));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.event-date-box {
  text-align: center;
  background: var(--gradient-orange);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 56px;
}
.event-date-box .day { font-size: 1.6rem; font-weight: 900; line-height: 1; font-family: 'Playfair Display', serif; }
.event-date-box .month { font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; }
.event-card-body { padding: 20px 24px; }
.event-title { font-size: 1.1rem; margin-bottom: 8px; }
.event-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.event-meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--gray-300); }
.event-meta-icon { color: var(--gold); width: 16px; flex-shrink: 0; }
.event-classes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.event-card-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; }
.event-fee { font-size: 0.85rem; }
.event-fee span { color: var(--orange); font-weight: 700; font-size: 1.1rem; }

/* Register Form Modal */
.competition-register {
  background: var(--black-card);
  border: var(--border-orange);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-orange);
  margin-top: 48px;
  display: none;
}
.competition-register.open { display: block; }
.hamster-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hamster-form-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
.entry-number-display {
  background: var(--gradient-orange);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}
.entry-number-display .entry-num { font-size: 2.5rem; font-weight: 900; font-family: 'Playfair Display', serif; }
.entry-number-display .entry-label { font-size: 0.8rem; opacity: 0.8; }

/* ============================
   GENETICS SECTION
   ============================ */
#genetics { background: var(--black); }
.genetics-tabs {
  display: flex; gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0;
  overflow-x: auto;
}
.gen-tab {
  padding: 12px 24px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.gen-tab:hover { color: var(--gray-300); }
.gen-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.gen-panel { display: none; }
.gen-panel.active { display: block; }

/* Color Grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.color-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.color-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.color-swatch {
  height: 80px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.color-card-body { padding: 12px; }
.color-card-body h4 { font-size: 0.9rem; margin-bottom: 4px; }
.color-card-body .genotype { font-size: 0.75rem; color: var(--gold); font-family: monospace; margin-bottom: 4px; }
.color-card-body p { font-size: 0.75rem; line-height: 1.4; }

/* Pattern cards */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.pattern-card {
  background: var(--black-card);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}
.pattern-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.pattern-icon { font-size: 2.5rem; margin-bottom: 12px; }
.pattern-gene { font-size: 0.75rem; font-family: monospace; color: var(--orange); margin-bottom: 8px; }

/* Genetics Calculator */
.genetics-calc {
  background: var(--black-card);
  border: var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-gold);
}
.calc-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; margin-bottom: 32px; }
.calc-parent {
  background: rgba(201,162,39,0.05);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
}
.calc-parent h4 { color: var(--gold); margin-bottom: 16px; }
.calc-x { font-size: 2rem; color: var(--gray-500); text-align: center; }
.calc-results {
  background: rgba(232,114,42,0.05);
  border: var(--border-orange);
  border-radius: var(--radius-md);
  padding: 24px;
}
.calc-results h4 { color: var(--orange); margin-bottom: 16px; }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.result-pct { color: var(--gold); font-weight: 700; }
.result-bar-wrap { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; margin-top: 4px; }
.result-bar { height: 100%; border-radius: 3px; background: var(--gradient-gold); transition: width 0.8s ease; }

/* ============================
   KNOWLEDGE BASE
   ============================ */
#knowledge { background: var(--black-light); }
.knowledge-search {
  max-width: 600px; margin: 0 auto 48px;
  position: relative;
}
.knowledge-search input {
  width: 100%;
  background: var(--black-card);
  border: var(--border-gold);
  border-radius: 50px;
  padding: 16px 56px 16px 24px;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}
.knowledge-search input:focus {
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}
.knowledge-search .search-icon {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.1rem;
}
.knowledge-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.knowledge-tag {
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-300);
}
.knowledge-tag:hover { border-color: var(--gold); color: var(--gold); }
.knowledge-tag.active { background: rgba(201,162,39,0.15); border-color: var(--gold); color: var(--gold); }
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.knowledge-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.knowledge-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-gold); }
.knowledge-thumb {
  height: 160px;
  background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(232,114,42,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.knowledge-cat {
  position: absolute; top: 12px; left: 12px;
}
.knowledge-body { padding: 20px; }
.knowledge-body h4 { margin-bottom: 8px; font-size: 1rem; }
.knowledge-body p { font-size: 0.83rem; line-height: 1.6; margin-bottom: 16px; }
.knowledge-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: var(--gray-500); }

/* ============================
   HALL OF FAME
   ============================ */
#hall-of-fame { background: var(--black); overflow: hidden; }
.hof-banner {
  background: linear-gradient(135deg, rgba(201,162,39,0.1), rgba(13,13,13,0), rgba(201,162,39,0.1));
  border: var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hof-banner::before, .hof-banner::after {
  content: '🏆';
  position: absolute;
  font-size: 8rem;
  opacity: 0.06;
}
.hof-banner::before { left: -20px; top: -20px; }
.hof-banner::after { right: -20px; bottom: -20px; }
.hof-winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.hof-card {
  background: var(--gradient-card);
  border: var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}
.hof-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.hof-rank { font-size: 2rem; margin-bottom: 8px; }
.hof-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.hof-card .owner { font-size: 0.78rem; color: var(--gold); }
.hof-card .breed { font-size: 0.75rem; color: var(--gray-500); margin-top: 4px; }
.hof-card .year-badge {
  display: inline-block;
  margin-top: 10px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.3);
  color: var(--gold);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ============================
   NEWS SECTION
   ============================ */
#news { background: var(--black-light); }
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.news-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: var(--shadow-orange); }
.news-thumb {
  height: 200px;
  background: linear-gradient(135deg, rgba(232,114,42,0.15), rgba(201,162,39,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  position: relative;
}
.news-card.featured .news-thumb { height: 260px; }
.news-body { padding: 20px; }
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.78rem; color: var(--gray-500); }
.news-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-card.featured h3 { font-size: 1.4rem; }
.news-body p { font-size: 0.83rem; line-height: 1.6; }
.news-read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 0.85rem; font-weight: 600; margin-top: 12px; transition: var(--transition); }
.news-read-more:hover { gap: 10px; }

/* Social Links */
.social-links { display: flex; gap: 16px; justify-content: center; margin-top: 48px; }
.social-link {
  width: 52px; height: 52px;
  background: var(--black-card);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}
.social-link:hover { background: rgba(201,162,39,0.1); transform: translateY(-3px); box-shadow: var(--shadow-gold); }

/* ============================
   GALLERY
   ============================ */
#gallery { background: var(--black); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
}
.gallery-item {
  background: linear-gradient(135deg, rgba(201,162,39,0.1), rgba(232,114,42,0.08));
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-gold); border-color: var(--gold); }
.gallery-item.span-2 { grid-column: span 2; grid-row: span 2; font-size: 5rem; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
  flex-direction: column; gap: 8px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 1rem; color: var(--white); font-weight: 600; }

/* ============================
   MEMBER DASHBOARD
   ============================ */
#dashboard { background: var(--black-light); }
.dashboard-card {
  background: var(--black-card);
  border: var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-gold);
}
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.dashboard-user { display: flex; align-items: center; gap: 16px; }
.dashboard-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--gradient-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.dashboard-user-info h3 { margin-bottom: 4px; }
.dashboard-user-info .mem-type { color: var(--gold); font-size: 0.85rem; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.dash-stat {
  text-align: center;
  background: rgba(201,162,39,0.04);
  border: var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
}
.dash-stat .num { font-size: 2rem; font-weight: 900; color: var(--orange); font-family: 'Playfair Display', serif; }
.dash-stat .lbl { font-size: 0.75rem; color: var(--gray-500); margin-top: 4px; }
.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}
.activity-icon { font-size: 1.4rem; flex-shrink: 0; }
.activity-info { flex: 1; }
.activity-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.activity-info p { font-size: 0.8rem; }
.activity-date { font-size: 0.75rem; color: var(--gray-500); }

/* Dashboard profile info grid */
.dash-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(201,162,39,0.04);
  border: 1px solid rgba(201,162,39,0.12);
  border-radius: var(--radius-md);
}
.dash-info-item {}
.dash-info-label {
  font-size: .72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dash-info-label i { color: var(--gold); opacity: .7; width: 12px; }
.dash-info-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}
.dash-info-value.not-set {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

/* Edit profile modal save button */
.btn-save-profile {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Dashboard guest / loading state */
.dash-guest {
  text-align: center;
  padding: 60px 32px;
}
.dash-guest-icon { font-size: 3rem; margin-bottom: 16px; }

/* ============================
   SPECIES GUIDE
   ============================ */
#species { background: var(--black); }
.species-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.species-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.species-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: var(--shadow-orange); }
.species-header {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
  background: linear-gradient(135deg, rgba(232,114,42,0.1), rgba(201,162,39,0.06));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.species-body { padding: 20px; }
.species-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.species-body .sci-name { font-size: 0.8rem; color: var(--gold); font-style: italic; margin-bottom: 12px; }
.species-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.species-stat { font-size: 0.78rem; }
.species-stat .label { color: var(--gray-500); }
.species-stat .val { color: var(--white); font-weight: 600; }

/* ============================
   FOOTER
   ============================ */
#footer {
  background: var(--black-card);
  border-top: 1px solid rgba(201,162,39,0.2);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 0.87rem; color: var(--gray-500); transition: var(--transition); }
.footer-link:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: var(--gray-500);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================
   MODALS
   ============================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--black-card);
  border: var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%; max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-gold), 0 20px 60px rgba(0,0,0,0.8);
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--gray-300);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ============================
   TOASTS
   ============================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 3000;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--black-card);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem;
  min-width: 280px;
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast.success { border-color: #48C758; }
.toast.error   { border-color: #E84242; }
.toast.info    { border-color: var(--orange); }

/* ============================
   SCROLL TO TOP
   ============================ */
#scroll-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 44px; height: 44px;
  background: var(--gradient-gold);
  color: var(--black);
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
}
#scroll-top.show { display: flex; }
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(201,162,39,0.5); }

/* ============================
   ANIMATIONS
   ============================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer {
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.08) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

/* Gold border animation */
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(201,162,39,0.2); }
  50% { box-shadow: 0 0 25px rgba(201,162,39,0.5); }
}
.glow-gold { animation: borderGlow 3s infinite; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid .news-card:first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* ── Theme toggle visible on mobile, sits between logo and hamburger ── */
  #theme-toggle {
    display: flex;
    margin-left: auto;   /* ดันไปชิดขวา */
    margin-right: 10px;  /* ช่องว่างกับปุ่ม hamburger */
  }
  .form-row { grid-template-columns: 1fr; }
  .register-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-x { transform: rotate(90deg); }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.span-2 { grid-column: span 2; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card:first-child { grid-column: 1; }
  .countdown-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hamster-form-grid { grid-template-columns: 1fr; }
  .hamster-form-grid.three-col { grid-template-columns: 1fr; }
  .color-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .countdown-timer { flex-wrap: wrap; justify-content: center; }
  .membership-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.span-2 { grid-column: 1; }
}

/* ── Utility ── */
.w-100 { width: 100%; justify-content: center; }

/* ============================
   LIGHT MODE THEME
   ============================ */
[data-theme="light"] {
  --black:        #F7F2EA;
  --black-light:  #EDE7D9;
  --black-card:   #FFFFFF;
  --black-hover:  #E4DDD0;
  --white:        #1A1209;
  --gray-100:     #2A2010;
  --gray-300:     #4A3C28;
  --gray-500:     #8A7A60;
  --gray-700:     #C8B89A;
  --gradient-hero:   linear-gradient(135deg, #F0E8D8 0%, #E8D8B8 50%, #F0E8D8 100%);
  --gradient-card:   linear-gradient(145deg, #FFFFFF, #FBF7F0);
  --shadow-card:     0 8px 32px rgba(100,70,20,0.12);
  --shadow-gold:     0 0 30px rgba(201,162,39,0.30);
  --shadow-orange:   0 0 30px rgba(232,114,42,0.25);
  --border-gold:     1px solid rgba(201,162,39,0.45);
  --border-orange:   1px solid rgba(232,114,42,0.40);
}

/* Light mode specific overrides */
[data-theme="light"] body { background: var(--black); color: var(--white); }
[data-theme="light"] p    { color: var(--gray-300); }

[data-theme="light"] #navbar.scrolled {
  background: rgba(247,242,234,0.95);
  border-bottom: 1px solid rgba(201,162,39,0.25);
  box-shadow: 0 4px 24px rgba(100,70,20,0.12);
}
[data-theme="light"] .nav-logo-text      { color: var(--white); }
[data-theme="light"] .nav-logo-text span { color: var(--gold); }
[data-theme="light"] .nav-link           { color: var(--gray-300); }
[data-theme="light"] .nav-link:hover     { color: var(--white); }

[data-theme="light"] .mobile-nav {
  background: rgba(247,242,234,0.98);
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,162,39,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(232,114,42,0.08) 0%, transparent 50%);
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(201,162,39,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,0.07) 1px, transparent 1px);
}
[data-theme="light"] .hero-sub         { color: var(--gray-300); }
[data-theme="light"] .hero-stat-label  { color: var(--gray-500); }
[data-theme="light"] .hero-card-main   { background: #FFFFF8; }
[data-theme="light"] .hero-card-info h4 { color: var(--white); }
[data-theme="light"] .hero-card-medal p { color: var(--gray-300); }
[data-theme="light"] .hero-card-stat .lbl { color: var(--gray-500); }

[data-theme="light"] #countdown {
  background: linear-gradient(135deg, rgba(232,114,42,0.06), rgba(201,162,39,0.06));
}
[data-theme="light"] .countdown-unit { background: #FFFFFF; }
[data-theme="light"] .countdown-label p,
[data-theme="light"] .countdown-event .event-place { color: var(--gray-500); }

[data-theme="light"] .card  { background: var(--gradient-card); }
[data-theme="light"] .form-control {
  background: rgba(100,70,20,0.04);
  border: 1px solid rgba(100,70,20,0.15);
  color: var(--white);
}
[data-theme="light"] .form-control:focus {
  border-color: var(--gold);
  background: rgba(201,162,39,0.06);
}
[data-theme="light"] .form-control::placeholder { color: var(--gray-500); }
[data-theme="light"] select.form-control option  { background: #FFFFFF; color: #1A1209; }

[data-theme="light"] .mem-card         { background: var(--gradient-card); border-color: rgba(100,70,20,0.1); }
[data-theme="light"] .mem-card:hover   { box-shadow: var(--shadow-gold), var(--shadow-card); }
[data-theme="light"] .mem-sub          { color: var(--gray-500); }
[data-theme="light"] .mem-price .per   { color: var(--gray-500); }
[data-theme="light"] .mem-feature.dim  { color: var(--gray-500); }
[data-theme="light"] .mem-featured-badge { color: var(--black); }

[data-theme="light"] .event-card       { background: #FFFFFF; border-color: rgba(100,70,20,0.1); }
[data-theme="light"] .event-card:hover { border-color: var(--orange); }
[data-theme="light"] .event-card-header { background: linear-gradient(135deg, rgba(232,114,42,0.07), rgba(201,162,39,0.05)); border-bottom-color: rgba(100,70,20,0.08); }
[data-theme="light"] .event-card-footer { border-top-color: rgba(100,70,20,0.08); }
[data-theme="light"] .event-meta-item  { color: var(--gray-300); }

[data-theme="light"] .color-card  { background: #FFFFFF; border-color: rgba(100,70,20,0.1); }
[data-theme="light"] .color-card:hover { border-color: var(--gold); }
[data-theme="light"] .color-card-body p  { color: var(--gray-300); }
[data-theme="light"] .genotype          { color: var(--gold-dark); }

[data-theme="light"] .pattern-card { background: #FFFFFF; }
[data-theme="light"] .pattern-gene { color: var(--orange-dark); }

[data-theme="light"] .genetics-calc { background: #FFFFFF; }
[data-theme="light"] .calc-parent   { background: rgba(201,162,39,0.04); }
[data-theme="light"] .calc-results  { background: rgba(232,114,42,0.04); }
[data-theme="light"] .result-row    { border-bottom-color: rgba(100,70,20,0.08); }
[data-theme="light"] .result-bar-wrap { background: rgba(100,70,20,0.08); }

[data-theme="light"] .knowledge-card   { background: #FFFFFF; border-color: rgba(100,70,20,0.1); }
[data-theme="light"] .knowledge-card:hover { border-color: var(--gold); }
[data-theme="light"] .knowledge-search input { background: #FFFFFF; }
[data-theme="light"] .knowledge-tag    { border-color: rgba(100,70,20,0.15); color: var(--gray-300); }
[data-theme="light"] .knowledge-tag:hover { border-color: var(--gold); color: var(--gold); }
[data-theme="light"] .knowledge-tag.active,
[data-theme="light"] .k-tag.active     { background: rgba(201,162,39,0.1); }

[data-theme="light"] .species-card     { background: #FFFFFF; border-color: rgba(100,70,20,0.1); }
[data-theme="light"] .species-header   { background: linear-gradient(135deg, rgba(232,114,42,0.08), rgba(201,162,39,0.05)); border-bottom-color: rgba(100,70,20,0.08); }
[data-theme="light"] .species-stat .label { color: var(--gray-500); }

[data-theme="light"] .news-card        { background: #FFFFFF; border-color: rgba(100,70,20,0.1); }
[data-theme="light"] .news-card:hover  { border-color: var(--orange); }
[data-theme="light"] .news-meta        { color: var(--gray-500); }
[data-theme="light"] .news-thumb       { background: linear-gradient(135deg, rgba(201,162,39,0.1), rgba(232,114,42,0.07)); }

[data-theme="light"] .hof-card         { background: var(--gradient-card); }
[data-theme="light"] .hof-banner       { background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(247,242,234,0), rgba(201,162,39,0.08)); }
[data-theme="light"] .hof-banner h1    { color: var(--white); }

[data-theme="light"] .dashboard-card   { background: #FFFFFF; }
[data-theme="light"] .dash-stat        { background: rgba(201,162,39,0.04); }
[data-theme="light"] .activity-item    { background: rgba(100,70,20,0.03); }

[data-theme="light"] .digital-card     { background: linear-gradient(135deg, #FFFDF5 0%, #FDF8EC 50%, #FFF8E8 100%); }
[data-theme="light"] .card-org         { color: var(--gold-dark); }
[data-theme="light"] .card-year        { color: var(--gray-500); }
[data-theme="light"] .card-member-info .name { color: var(--white); }
[data-theme="light"] .card-member-info .mem-id { color: var(--gray-500); }
[data-theme="light"] .card-divider     { background: rgba(201,162,39,0.3); }
[data-theme="light"] .card-qr-info p   { color: var(--gray-300); }

[data-theme="light"] .form-card        { background: #FFFFFF; }
[data-theme="light"] .competition-register { background: #FFFFFF; }

[data-theme="light"] .gallery-item {
  background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(232,114,42,0.05));
  border-color: rgba(100,70,20,0.1);
}

[data-theme="light"] #footer           { background: #EDE7D9; border-top-color: rgba(201,162,39,0.25); }
[data-theme="light"] .footer-link      { color: var(--gray-500); }
[data-theme="light"] .footer-link:hover { color: var(--gold); }
[data-theme="light"] .footer-bottom    { border-top-color: rgba(100,70,20,0.1); }
[data-theme="light"] .footer-bottom-links a:hover { color: var(--gold); }
[data-theme="light"] .footer-brand p   { color: var(--gray-300); }

[data-theme="light"] .social-link      { background: #FFFFFF; }
[data-theme="light"] .social-link:hover { background: rgba(201,162,39,0.1); }

[data-theme="light"] .modal            { background: #FFFFFF; }
[data-theme="light"] .modal-close      { background: rgba(100,70,20,0.06); }
[data-theme="light"] .modal-close:hover { background: rgba(100,70,20,0.12); }

[data-theme="light"] .toast           { background: #FFFFFF; box-shadow: 0 4px 20px rgba(100,70,20,0.15); }

[data-theme="light"] ::-webkit-scrollbar-track { background: #F0E8D8; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--gold); }

[data-theme="light"] table tr:hover { background: rgba(201,162,39,0.04); }
[data-theme="light"] thead tr { background: rgba(201,162,39,0.08) !important; }

/* ── Theme Toggle Button ── */
#theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.5);
  background: transparent;
  color: var(--gold);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
#theme-toggle:hover {
  background: rgba(201,162,39,0.15);
  transform: rotate(20deg);
  box-shadow: var(--shadow-gold);
}

/* ══════════════════════════════════════════════
   BANNER SLIDER
══════════════════════════════════════════════ */
#banner-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 72px - 160px);
  min-height: 460px;
  max-height: 780px;
  margin-top: 72px;
  overflow: hidden;
  background: var(--black);
}

.slider-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.77,0,0.18,1);
  will-change: transform;
}

/* Individual slide */
.slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Right-side visual */
.slide-visual {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  transform: none;
}

.slide-trophy-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 260px;
}

.slide-trophy {
  font-size: 9rem;
  filter: drop-shadow(0 0 40px rgba(201,162,39,0.5));
  animation: slideTrophyFloat 4s ease-in-out infinite;
  user-select: none;
}

@keyframes slideTrophyFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-16px) rotate(3deg); }
}

.slide-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: sliderRingPulse 3s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes sliderRingPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.4; }
  50%       { transform: scale(1.1);  opacity: 0.15; }
}

/* Left-side text content */
.slide-content {
  position: relative;
  z-index: 3;
  padding: 0 5% 0 7%;
  max-width: 640px;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201,162,39,0.5);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--gold);
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.slide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.slide-sub {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}

.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.slide-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 20px;
  padding: 5px 13px;
  background: rgba(201,162,39,0.06);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* Navigation arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201,162,39,0.5);
  background: rgba(13,13,13,0.65);
  color: var(--gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.slider-arrow:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-50%) scale(1.08);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(201,162,39,0.5);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(201,162,39,0.7);
}

.slider-dot:hover {
  border-color: var(--gold);
  background: rgba(201,162,39,0.4);
}

/* Progress bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}

.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  width: 0%;
}

/* Light mode adjustments */
[data-theme="light"] .slider-arrow {
  background: rgba(247,242,234,0.85);
  border-color: rgba(201,162,39,0.6);
}
[data-theme="light"] .slide-sub {
  color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 768px) {
  #banner-slider { height: 480px; }

  .slide-visual { display: none; }

  .slide-content {
    padding: 0 24px;
    max-width: 100%;
  }

  .slide-title { font-size: 1.7rem; }
  .slide-sub   { font-size: .85rem; }

  .slide-actions { gap: 10px; }
  .slide-actions .btn { font-size: .82rem; padding: 10px 16px; }

  .slider-arrow { width: 40px; height: 40px; font-size: .9rem; }
  .slider-prev  { left: 12px; }
  .slider-next  { right: 12px; }
}

@media (max-width: 480px) {
  #banner-slider { height: 420px; }
  .slide-title { font-size: 1.4rem; }
  .slide-badges { display: none; }
}

/* ══════════════════════════════════════════════
   FIREBASE AUTH UI
══════════════════════════════════════════════ */

/* Google Sign-In Button */
.btn-google-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 4px;
}
.btn-google-signin:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

[data-theme="light"] .btn-google-signin {
  border-color: rgba(0,0,0,0.15);
  background: #fff;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
[data-theme="light"] .btn-google-signin:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.auth-tab.active {
  background: var(--gold);
  color: #000;
}
.auth-tab:hover:not(.active) {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
[data-theme="light"] .auth-tabs { background: rgba(0,0,0,.06); }
[data-theme="light"] .auth-tab:hover:not(.active) { background: rgba(0,0,0,.08); color: #000; }

/* Membership Flow Banner */
.mem-flow-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.mem-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.mem-flow-step.dim { opacity: .45; }
.mem-flow-icon { font-size: 2rem; }
.mem-flow-label { font-size: .82rem; line-height: 1.5; }
.mem-flow-arrow { color: var(--gold); font-size: 1.2rem; }
.mem-flow-arrow.dim { color: var(--gray-500); }

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: .82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  background: rgba(0,0,0,0.1);
}

/* ── User Nav Menu ───────────────────────────── */
/* ── Membership Badge Pill ──────────────────────────────── */
.member-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--badge-color, #d4a843) 12%, transparent);
  border: 1.5px solid var(--badge-color, #d4a843);
  color: var(--badge-color, #d4a843);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
  transition: opacity .2s;
}
.member-badge-pill .badge-icon {
  font-size: .85rem;
  line-height: 1;
}
/* light mode fallback for color-mix if not supported */
@supports not (color: color-mix(in srgb, red 10%, transparent)) {
  .member-badge-pill {
    background: rgba(212,168,67,0.12);
  }
}

.user-dropdown-badge {
  font-size: .72rem;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: .02em;
}

/* ── User Nav Menu ──────────────────────────────────────── */
.user-nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 30px;
  border: 1px solid rgba(201,162,39,0.4);
  background: rgba(201,162,39,0.08);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}
.user-nav-btn:hover {
  background: rgba(201,162,39,0.18);
  border-color: var(--gold);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gold);
}

.user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--black-card);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 2000;
  overflow: hidden;
}
.user-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(201,162,39,0.05);
}
.user-dropdown-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.user-dropdown-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
}
.user-dropdown-email {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 4px 0;
}
[data-theme="light"] .user-dropdown-divider {
  background: rgba(0,0,0,0.07);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--text);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s;
}
.user-dropdown-item:hover {
  background: rgba(201,162,39,0.08);
  color: var(--gold);
}
.user-dropdown-item i {
  width: 16px;
  color: var(--gold);
  opacity: 0.8;
}
.user-dropdown-item.text-danger {
  color: #ff6b6b;
}
.user-dropdown-item.text-danger i { color: #ff6b6b; }
.user-dropdown-item.text-danger:hover { background: rgba(255,107,107,0.08); }

[data-theme="light"] .user-dropdown { background: #fff; }
[data-theme="light"] .user-dropdown-header { background: rgba(201,162,39,0.06); }

/* ── Slide Banner Image ──────────────────────── */
.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
}

/* Dark gradient overlay ให้อ่านข้อความได้ */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,13,13,0.72) 0%, rgba(13,13,13,0.35) 50%, rgba(13,13,13,0.08) 100%),
    linear-gradient(180deg, rgba(13,13,13,0.1) 0%, rgba(13,13,13,0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Fade edge ให้รูปกลืนกับ overlay ซ้าย */
.slide-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,1) 0%, rgba(13,13,13,0.3) 40%, rgba(13,13,13,0) 100%);
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 768px) {
  .slide-visual {
    width: 100%;
    opacity: 0.3;
  }
  .slide-visual::before {
    background: rgba(13,13,13,0.65);
  }
}

/* ══════════════════════════════════════════════
   SLIDER HERO OVERLAY (Fixed text over sliding images)
══════════════════════════════════════════════ */
/* (height/margin defined above) */

/* Dark gradient from left so text is readable */
.slider-left-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(13,13,13,0.92) 0%,
    rgba(13,13,13,0.75) 38%,
    rgba(13,13,13,0.2)  65%,
    rgba(13,13,13,0)    100%);
  z-index: 3;
  pointer-events: none;
}

/* Fixed hero text overlay */
.slider-hero-overlay {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px 48px;
}

.slider-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201,162,39,0.5);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
  width: fit-content;
}
.slider-hero-tag span {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}

.slider-hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  color: #fff;
}
.slider-hero-title .line1 {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--gold);
}
.slider-hero-title .line2 {
  display: block;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.slider-hero-title .line3 {
  display: block;
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
}

.slider-hero-sub {
  font-size: clamp(.82rem, 1.3vw, .95rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
}

.slider-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.slider-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.slider-hero-stats .hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}
.slider-hero-stats .hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Light mode */
[data-theme="light"] .slider-left-fade {
  background: linear-gradient(90deg,
    rgba(247,242,234,0.95) 0%,
    rgba(247,242,234,0.80) 38%,
    rgba(247,242,234,0.15) 65%,
    rgba(247,242,234,0)    100%);
}
[data-theme="light"] .slider-hero-title .line2,
[data-theme="light"] .slider-hero-title .line3 { color: rgba(13,13,13,0.75); }
[data-theme="light"] .slider-hero-sub          { color: rgba(13,13,13,0.6); }
[data-theme="light"] .slider-hero-stats .hero-stat-label { color: rgba(13,13,13,0.5); }

/* Responsive */
@media (max-width: 768px) {
  #banner-slider { height: 520px; }
  .slider-hero-overlay { width: 100%; padding: 0 20px 60px; }
  .slider-left-fade { background: linear-gradient(180deg, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.88) 55%, rgba(13,13,13,0.95) 100%); }
  .slider-hero-stats { gap: 18px; }
  .slider-hero-actions .btn { font-size: .82rem; padding: 10px 16px; }
}

@media (max-width: 480px) {
  #banner-slider { height: 480px; }
  .slider-hero-title .line1 { font-size: 2rem; }
  .slider-hero-sub { display: none; }
}
