/* ─── Root Variables ─── */
:root {
  --primary:        #0D2E6E;
  --primary-mid:    #1A4A9C;
  --primary-light:  #2F6ECC;
  --gold:           #C9A84C;
  --gold-light:     #E8C97A;
  --gold-dark:      #9A7530;
  --bg:             #F4F6FB;
  --card-bg:        #FFFFFF;
  --text:           #1A1A2E;
  --text-muted:     #5A6480;
  --border:         rgba(13,46,110,0.12);
  --shadow-color:   rgba(13,46,110,0.15);
  --divider:        rgba(201,168,76,0.35);
  --timeline-line:  rgba(201,168,76,0.5);
}
[data-theme="dark"] {
  --primary:        #1C4FA3;
  --primary-mid:    #2662C8;
  --primary-light:  #4A88E8;
  --gold:           #D4AA5C;
  --gold-light:     #EDD28C;
  --gold-dark:      #B08940;
  --bg:             #0A0F1E;
  --card-bg:        #111827;
  --text:           #E8EDF8;
  --text-muted:     #8A9BBF;
  --border:         rgba(74,136,232,0.18);
  --shadow-color:   rgba(0,0,0,0.45);
  --divider:        rgba(212,170,92,0.3);
  --timeline-line:  rgba(212,170,92,0.4);
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans Thai', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* ─── Theme Toggle ─── */
#themeToggle {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--card-bg);
  color: var(--gold);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px var(--shadow-color);
  transition: all 0.3s ease;
}
#themeToggle:hover { transform: scale(1.1) rotate(15deg); }

/* ─── Hero ─── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--primary) 0%, #071A42 50%, #0A2255 100%);
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(47,110,204,0.12) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: rgba(201,168,76,0.07); top: -120px; right: -100px; animation-delay: 0s; }
.hero-orb-2 { width: 350px; height: 350px; background: rgba(47,110,204,0.1); bottom: -80px; left: -80px; animation-delay: 3s; }
.hero-orb-3 { width: 250px; height: 250px; background: rgba(201,168,76,0.05); top: 40%; left: 10%; animation-delay: 6s; }
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-badge {
  display: inline-block;
  padding: 6px 22px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.hero-title-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gold-light);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.hero-title-main {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-title-edition {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.hero-topic {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  padding: 1.5rem 2.5rem;
  max-width: 750px;
  margin: 0 auto 2.5rem;
  backdrop-filter: blur(8px);
}
.hero-topic-label { font-size: 0.8rem; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.5rem; }
.hero-topic-text {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.6;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
}
.hero-meta-item i { color: var(--gold-light); font-size: 1rem; }
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 24px rgba(201,168,76,0.45);
  transition: all 0.3s ease;
  font-family: 'Noto Sans Thai', sans-serif;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(201,168,76,0.6); color: #fff; }
.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: 'Noto Sans Thai', sans-serif;
}
.btn-outline-gold:hover { background: rgba(201,168,76,0.15); color: var(--gold-light); transform: translateY(-3px); }
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce 2s infinite;
}
.scroll-indicator i { font-size: 1.2rem; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── Section Styles ─── */
.section-wrapper {
  padding: 80px 0;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.section-divider {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  border-radius: 4px;
}

/* ─── Luxury Card ─── */
.luxury-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 40px var(--shadow-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.luxury-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
}
.luxury-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px var(--shadow-color);
}

/* ─── Info Cards ─── */
.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 24px var(--shadow-color);
  height: 100%;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.info-card:hover::after { transform: scaleX(1); }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px var(--shadow-color); }
.info-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(13,46,110,0.3);
}
[data-theme="dark"] .info-icon { box-shadow: 0 6px 20px rgba(26,74,156,0.4); }
.info-card h5 { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.5rem; }
.info-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ─── Invitation Card ─── */
.invitation-wrapper {
  background: linear-gradient(135deg, var(--primary) 0%, #071A42 60%, #0A2255 100%);
  border-radius: 24px;
  padding: 3px;
  box-shadow: 0 20px 80px rgba(13,46,110,0.4);
}
.invitation-inner {
  background: linear-gradient(145deg, #0D1E45 0%, #091532 100%);
  border-radius: 22px;
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.invitation-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(201,168,76,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(47,110,204,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.inv-corner {
  position: absolute;
  width: 120px; height: 120px;
  border-style: solid;
  border-color: rgba(201,168,76,0.35);
}
.inv-corner-tl { top: 20px; left: 20px; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.inv-corner-tr { top: 20px; right: 20px; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.inv-corner-bl { bottom: 20px; left: 20px; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.inv-corner-br { bottom: 20px; right: 20px; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }
.inv-seal {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--gold);
  box-shadow: 0 0 30px rgba(201,168,76,0.25), inset 0 0 20px rgba(201,168,76,0.1);
}
.inv-title-label { font-size: 0.75rem; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; text-align: center; margin-bottom: 0.4rem; }
.inv-main-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; text-align: center; line-height: 1.3; margin-bottom: 0.3rem; }
.inv-edition { font-size: 1rem; color: rgba(255,255,255,0.6); text-align: center; margin-bottom: 1.5rem; font-weight: 300; }
.inv-divider { display: flex; align-items: center; gap: 12px; margin: 1.5rem 0; }
.inv-divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.inv-divider-diamond { color: var(--gold); font-size: 0.6rem; }
.inv-topic-box {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.inv-topic-label { font-size: 0.7rem; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 0.4rem; }
.inv-topic-text { font-size: clamp(0.95rem, 2vw, 1.15rem); color: #fff; font-weight: 600; line-height: 1.65; }
.inv-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.inv-detail-row:last-child { border-bottom: none; }
.inv-detail-icon { color: var(--gold); font-size: 1rem; width: 20px; flex-shrink: 0; margin-top: 2px; }
.inv-detail-label { font-size: 0.7rem; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1px; }
.inv-detail-value { font-size: 0.9rem; color: rgba(255,255,255,0.9); line-height: 1.5; }
.inv-broadcast {
  background: rgba(47,110,204,0.12);
  border: 1px solid rgba(47,110,204,0.25);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
}
.inv-broadcast i { color: var(--primary-light); font-size: 1.2rem; }
.inv-broadcast-text { font-size: 0.85rem; color: rgba(255,255,255,0.8); line-height: 1.5; }

/* ─── Schedule / Timeline ─── */
.schedule-section { background: var(--bg); }
.schedule-group { margin-bottom: 2.5rem; }
.schedule-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.schedule-group-title::after { content: ''; flex: 1; height: 1px; background: var(--divider); }

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.2));
}
[data-theme="dark"] .timeline::before { background: linear-gradient(to bottom, var(--gold-dark), rgba(201,168,76,0.1)); }

.timeline-item {
  position: relative;
  padding: 0 0 1.25rem 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.3);
}
.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 2px 16px var(--shadow-color);
  transition: all 0.3s ease;
}
.timeline-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: 0 8px 32px var(--shadow-color);
  transform: translateX(4px);
}
.timeline-time {
  flex-shrink: 0;
  min-width: 105px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.3px;
}
.timeline-body { flex: 1; }
.timeline-activity { font-size: 0.92rem; font-weight: 600; color: var(--text); line-height: 1.5; margin-bottom: 3px; }
.timeline-speaker {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}
.timeline-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.timeline-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid));
  color: rgba(255,255,255,0.9);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* ─── Speakers ─── */
.speaker-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 24px var(--shadow-color);
  height: 100%;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.speaker-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.speaker-card:hover::before { transform: scaleX(1); }
.speaker-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px var(--shadow-color); }
.speaker-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(13,46,110,0.3);
  font-weight: 700;
}
.speaker-role {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.speaker-name { font-size: 0.97rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.speaker-topic { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Venue ─── */
.venue-section {
  background: linear-gradient(135deg, var(--primary) 0%, #071A42 100%);
  position: relative;
  overflow: hidden;
}
.venue-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255,255,255,0.012) 60px, rgba(255,255,255,0.012) 61px);
}
.venue-section .section-eyebrow { color: var(--gold-light); }
.venue-section .section-title { color: #fff; }
.venue-section .section-divider { background: linear-gradient(90deg, transparent, rgba(201,168,76,0.7), transparent); }
.venue-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}
.venue-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(201,168,76,0.4); }
.venue-card-icon { font-size: 2rem; color: var(--gold); margin-bottom: 0.75rem; }
.venue-card h6 { color: rgba(255,255,255,0.6); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.4rem; }
.venue-card p { color: #fff; font-weight: 600; font-size: 0.95rem; margin: 0; line-height: 1.6; }
.broadcast-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 8px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  margin: 0.4rem;
}
.broadcast-pill i { font-size: 1.1rem; }
.broadcast-pill .fb { color: #1877F2; }
.broadcast-pill .yt { color: #FF0000; }

/* ─── Footer ─── */
.page-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-mid);
  margin-bottom: 0.4rem;
}
[data-theme="dark"] .footer-logo-text { color: var(--primary-light); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Animate on scroll ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* ─── Pulse animation ─── */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}
.pulse-anim { animation: pulse-ring 0.4s ease-out; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .invitation-inner { padding: 2rem 1.5rem; }
  .inv-corner { width: 70px; height: 70px; }
  .timeline-card { flex-direction: column; gap: 0.6rem; }
  .timeline-time { min-width: unset; width: fit-content; }
  .hero-cta-group .btn-outline-gold { display: none; }
  .timeline::before { display: none; }
}
@media (max-width: 480px) {
  .hero-meta-item span { font-size: 0.8rem; }
}

/* ============================================================
   REGISTRATION PAGE
   ============================================================ */

/* Page layout */
.reg-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: var(--bg);
  position: relative;
}

/* Orb decorations (mirrors hero) */
.reg-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.reg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.reg-orb-1 {
  width: 520px; height: 520px;
  background: var(--primary);
  top: -180px; left: -180px;
}
.reg-orb-2 {
  width: 400px; height: 400px;
  background: var(--gold);
  bottom: -120px; right: -120px;
}

/* Outer wrapper */
.reg-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
}

/* ── Card ── */
.reg-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

/* Card top strip */
.reg-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
}

/* ── Header ── */
.reg-card-header {
  text-align: center;
  padding: 36px 36px 28px;
  background: linear-gradient(160deg, rgba(13,46,110,.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.reg-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.55;
  text-decoration: none;
  margin-bottom: 20px;
  transition: opacity 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}

.reg-back-btn:hover {
  opacity: 1;
  color: var(--gold);
}

.reg-seal {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1a4fa0);
  color: var(--gold);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(13,46,110,0.3);
}

.reg-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.reg-title {
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.reg-subtitle {
  font-size: 0.88rem;
  color: var(--text);
  opacity: 0.65;
  font-weight: 400;
  margin-bottom: 16px;
}

.reg-event-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  margin-top: 12px;
}

.reg-event-info span {
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reg-event-info i {
  color: var(--gold);
  font-size: 0.82rem;
}

/* ── Body ── */
.reg-card-body {
  padding: 32px 36px;
}

/* Form groups */
.reg-form-group {
  margin-bottom: 20px;
}

.reg-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.reg-label i {
  color: var(--gold);
  margin-right: 4px;
}

.reg-required {
  color: #e05555;
  margin-left: 2px;
}

.reg-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.reg-input::placeholder {
  opacity: 0.45;
  font-size: 0.88rem;
}

.reg-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}

/* Divider (reuse inv-divider pattern) */
.reg-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 24px;
}

.reg-divider .inv-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.reg-divider .inv-divider-diamond {
  color: var(--gold);
  font-size: 0.6rem;
  opacity: 0.8;
}

/* Submit button */
.reg-submit {
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.03em;
}

/* ── Alert ── */
.reg-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 0.87rem;
}

.reg-alert i {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.reg-alert-error {
  background: rgba(224,85,85,.10);
  border: 1px solid rgba(224,85,85,.35);
  color: #d94545;
}

[data-theme="dark"] .reg-alert-error {
  background: rgba(224,85,85,.12);
  color: #f08080;
}

/* ── Success state ── */
.reg-success {
  text-align: center;
  padding: 16px 0 8px;
}

.reg-success-icon {
  font-size: 3rem;
  color: #3cb878;
  margin-bottom: 14px;
  line-height: 1;
}

.reg-success-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.reg-success-msg {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
  line-height: 1.7;
}

/* ── Card footer ── */
.reg-card-footer {
  text-align: center;
  padding: 16px 36px 24px;
  border-top: 1px solid var(--border);
}

.reg-back-link {
  font-size: 0.83rem;
  color: var(--text);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}

.reg-back-link:hover {
  opacity: 1;
  color: var(--gold);
}

/* ── Responsive ── */
@media (max-width: 576px) {
  .reg-card-header  { padding: 28px 22px 22px; }
  .reg-card-body    { padding: 24px 22px; }
  .reg-card-footer  { padding: 14px 22px 20px; }
  .reg-event-info   { flex-direction: column; align-items: center; }
}
