/* ============================================================
   VR Thailand 2026 — Design System
   Navy + Orange/Gold · glassmorphism · motion
   ============================================================ */

:root {
  /* Brand palette */
  --navy-900: #060b1f;
  --navy-800: #0a1230;
  --navy-700: #0f1b46;
  --navy-600: #16265e;
  --navy-500: #1e3378;
  --navy-card: rgba(18, 30, 74, 0.55);
  --navy-line: rgba(120, 150, 230, 0.18);

  --gold: #f5b301;
  --orange: #ff7a1a;
  --orange-deep: #f0640a;
  --amber-grad: linear-gradient(100deg, #ffd25e 0%, #f5a623 45%, #ff6a1a 100%);
  --amber-grad-soft: linear-gradient(100deg, #ffcf6b, #ff8a2a);

  --blue-accent: #4f8cff;
  --cyan: #38d0ff;

  /* Text */
  --text: #eaf0ff;
  --text-dim: #a9b6dd;
  --text-mute: #7688b5;

  /* Theme category colors */
  --c-medical: #38b6ff;
  --c-creative: #ff7a9c;
  --c-agri: #57d98a;
  --c-energy: #22c1d6;

  /* Utility */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 20px 55px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px var(--navy-line), 0 22px 50px -24px rgba(6, 10, 30, 0.9);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;

  --font: "Anuphan", "Outfit", system-ui, -apple-system, "Segoe UI", "Leelawadee UI",
    "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  --font-display: "Outfit", "Anuphan", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed cosmic background + particle canvas layer */
.bg-cosmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -5%, rgba(255, 122, 26, 0.18), transparent 60%),
    radial-gradient(900px 500px at 5% 15%, rgba(56, 140, 255, 0.16), transparent 55%),
    radial-gradient(700px 700px at 50% 110%, rgba(245, 179, 1, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900) 60%, #04081a);
}
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- typography helpers ---------- */
.gradient-text {
  background: var(--amber-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  padding: 7px 15px;
  border: 1px solid rgba(245, 179, 1, 0.35);
  border-radius: 999px;
  background: rgba(245, 179, 1, 0.08);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.4em; font-weight: 800; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.section-sub { color: var(--text-dim); max-width: 640px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 30, 0.72);
  border-bottom: 1px solid var(--navy-line);
  transition: background 0.3s var(--ease);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-logo {
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  height: 44px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.5);
}
.brand-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 9px 15px;
  border-radius: 10px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.2s var(--ease);
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: var(--navy-900); background: var(--amber-grad-soft); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  padding: 6px 13px;
  background: transparent;
  color: var(--text-dim);
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
}
.lang-switch button.active { background: var(--amber-grad); color: var(--navy-900); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--navy-line);
  color: #fff;
  border-radius: 10px;
  width: 42px;
  height: 40px;
  font-size: 1.2rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-grad);
  color: #1a1004;
  box-shadow: 0 14px 30px -12px rgba(255, 122, 26, 0.7);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(255, 122, 26, 0.85); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--navy-line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ============================================================
   CARDS / GLASS
   ============================================================ */
.glass {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 70px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.35em;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-meta .m-num { font-size: 1.9rem; font-weight: 800; }
.hero-meta .m-label { color: var(--text-mute); font-size: 0.85rem; }

/* floating hero visual */
.hero-visual { position: relative; height: 100%; min-height: 340px; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: float 7s ease-in-out infinite;
}
.orb-1 { width: 210px; height: 210px; right: 6%; top: 6%;
  background: radial-gradient(circle at 35% 30%, #ffd25e, #ff6a1a 70%); box-shadow: 0 0 80px rgba(255,122,26,.5); }
.orb-2 { width: 120px; height: 120px; left: 4%; bottom: 14%;
  background: radial-gradient(circle at 35% 30%, #6fb4ff, #1e59c9 70%); box-shadow: 0 0 70px rgba(56,140,255,.45); animation-delay: -2.5s; }
.orb-3 { width: 70px; height: 70px; right: 34%; bottom: 4%;
  background: radial-gradient(circle at 35% 30%, #ffe89a, #f5b301 70%); box-shadow: 0 0 50px rgba(245,179,1,.5); animation-delay: -4s; }

.event-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  min-width: 240px;
}
.event-chip .date { font-size: 2rem; font-weight: 800; }
.event-chip .place { color: var(--text-dim); font-size: 0.92rem; margin-top: 4px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}

/* Skyline strip */
.skyline {
  height: 90px;
  margin-top: 40px;
  background:
    linear-gradient(180deg, transparent, rgba(245, 179, 1, 0.06)),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(245, 179, 1, 0.12) 40px 41px);
  border-top: 1px solid rgba(245, 179, 1, 0.25);
  -webkit-mask: linear-gradient(180deg, transparent, #000);
  mask: linear-gradient(180deg, transparent, #000);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(50px, 8vw, 90px) 0; }
.section-head { text-align: center; margin: 0 auto 46px; max-width: 720px; }
.section-head .section-sub { margin-inline: auto; }

/* feature pills row (like the 4 icons in the banner) */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature {
  text-align: center;
  padding: 26px 18px;
  border-radius: var(--radius);
}
.feature .ic {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  border-radius: 16px;
  background: rgba(245, 179, 1, 0.12);
  border: 1px solid rgba(245, 179, 1, 0.3);
}
.feature h3 { font-size: 1.02rem; margin-bottom: 4px; }
.feature p { color: var(--text-mute); font-size: 0.88rem; margin: 0; }

/* theme category cards */
.theme-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.theme-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.theme-card:hover { transform: translateY(-6px); }
.theme-card .tc-ic { font-size: 2rem; margin-bottom: 12px; }
.theme-card .tc-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.theme-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ============================================================
   CATALOG
   ============================================================ */
.toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 26px;
}
.search-box {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--navy-line);
}
.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 13px 0;
  font-size: 1rem;
}
.search-box input::placeholder { color: var(--text-mute); }

.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--navy-line);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
}
.chip:hover { color: #fff; }
.chip.active { background: var(--amber-grad); color: var(--navy-900); border-color: transparent; }

.count-pill { color: var(--text-mute); font-size: 0.9rem; margin-bottom: 18px; }
.count-pill b { color: var(--gold); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 22px;
}
.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.55);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 34px 66px -28px rgba(0, 0, 0, 0.7); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-topbar { position: absolute; left: 0; right: 0; top: 0; height: 5px; }
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.45);
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-code { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; margin-bottom: 6px; }
.card-title {
  font-size: 1.06rem; font-weight: 700; margin: 0 0 8px; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-org { color: var(--ink-dim); font-size: 0.86rem; margin-bottom: 10px; }
.card-desc {
  color: var(--ink-mute); font-size: 0.86rem; margin: 0 0 16px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.9rem;
  color: var(--orange);
}

/* ============================================================
   DETAIL
   ============================================================ */
.detail-hero { padding: 40px 0 20px; }
.back-link { color: var(--text-dim); font-weight: 600; display: inline-flex; gap: 7px; margin-bottom: 22px; }
.back-link:hover { color: #fff; }
.detail-top { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: start; }
.detail-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--navy-line); }
.detail-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-code-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-weight: 800; color: #fff; margin-bottom: 14px;
}
.detail-title { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.detail-org { color: var(--gold); font-weight: 600; font-size: 1.05rem; margin-bottom: 20px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 8px; }
.info-box { padding: 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); border-left: 3px solid var(--gold); }
.info-box .k { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin-bottom: 4px; }
.info-box .v { font-weight: 600; }
.info-box a { color: var(--cyan); }

.detail-sections { margin-top: 40px; display: grid; gap: 18px; }
.detail-block { padding: 24px 26px; border-radius: var(--radius); }
.detail-block h3 {
  font-size: 1.12rem; display: flex; align-items: center; gap: 11px; margin-bottom: 12px;
}
.detail-block h3::before { content: ""; width: 5px; height: 24px; border-radius: 3px; background: var(--amber-grad); }
.detail-block p { color: var(--text-dim); margin: 0; white-space: pre-line; }

.cta-band {
  margin-top: 44px;
  padding: 44px;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(255, 122, 26, 0.25), transparent 70%),
    linear-gradient(135deg, var(--navy-600), var(--navy-700));
  border: 1px solid rgba(245, 179, 1, 0.3);
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { color: var(--text-dim); margin-bottom: 24px; }

/* ============================================================
   FORMS / BOOKING
   ============================================================ */
.form-wrap { max-width: 760px; margin: 0 auto; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); }
.inv-summary {
  display: flex; gap: 16px; padding: 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--navy-line); margin-bottom: 28px;
}
.inv-summary img { width: 92px; height: 72px; object-fit: cover; border-radius: 10px; }
.inv-summary .code { color: var(--gold); font-weight: 800; font-size: 0.8rem; }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.94rem; }
.field .req { color: var(--orange); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--navy-line);
  color: #fff; font-size: 1rem; outline: none; transition: border 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18);
}
.field textarea { min-height: 108px; resize: vertical; }
.field select option { background: var(--navy-700); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff5c5c; }
.field-error { color: #ff7b7b; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid .field-error { display: block; }

.fieldset-title { font-weight: 800; font-size: 1.05rem; margin: 30px 0 14px; color: var(--gold); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--navy-line);
  font-size: 0.92rem; cursor: pointer; transition: all 0.2s;
}
.check:hover { border-color: rgba(245, 179, 1, 0.4); }
.check input { width: auto; accent-color: var(--orange); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.slot {
  padding: 14px; border-radius: 12px; text-align: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1.5px solid var(--navy-line); transition: all 0.2s var(--ease);
}
.slot:hover:not(.full) { border-color: var(--gold); transform: translateY(-2px); }
.slot.selected { background: var(--amber-grad); color: var(--navy-900); border-color: transparent; }
.slot .t { font-weight: 800; }
.slot .s { font-size: 0.78rem; opacity: 0.85; margin-top: 3px; }
.slot.full { opacity: 0.4; cursor: not-allowed; }

.date-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.date-tab {
  padding: 12px 18px; border-radius: 12px; font-weight: 700;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--navy-line); color: var(--text-dim);
}
.date-tab.active { background: var(--amber-grad); color: var(--navy-900); border-color: transparent; }

/* ============================================================
   ADMIN / TABLES
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { padding: 22px; border-radius: var(--radius); }
.stat .n { font-size: 2rem; font-weight: 800; }
.stat .l { color: var(--text-mute); font-size: 0.86rem; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--navy-line); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 15px; text-align: left; font-size: 0.9rem; }
thead th { background: rgba(255, 255, 255, 0.05); color: var(--text-dim); font-weight: 700; position: sticky; top: 0; }
tbody tr { border-top: 1px solid var(--navy-line); }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

.tag { padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; display: inline-block; }
.tag.pending { background: rgba(245, 179, 1, 0.16); color: var(--gold); }
.tag.confirmed { background: rgba(87, 217, 138, 0.16); color: var(--c-agri); }
.tag.cancelled { background: rgba(255, 92, 92, 0.16); color: #ff8080; }
.tag.attended { background: rgba(56, 182, 255, 0.16); color: var(--c-medical); }
.tag.absent { background: rgba(255, 92, 92, 0.16); color: #ff8080; }
.tag.done { background: rgba(120, 150, 230, 0.18); color: #9fb4ee; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, 0.05); color: var(--text); display: inline-grid; place-items: center;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* login gate */
.login-gate {
  min-height: 70vh; display: grid; place-items: center;
}
.login-card { width: 100%; max-width: 380px; padding: 36px; border-radius: var(--radius-lg); text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--navy-line);
  background: rgba(6, 10, 30, 0.6);
  padding: 44px 0 30px;
}
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 16px; display: inline-flex; }
.footer-logo img { height: 40px; }
.footer-meta { color: var(--text-mute); font-size: 0.88rem; text-align: right; }
.footer-meta b { color: var(--gold); }

/* ============================================================
   OVERLAYS / TOAST / LOADER
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  place-items: center; background: rgba(4, 8, 20, 0.72); backdrop-filter: blur(6px);
}
.overlay.show { display: grid; }
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-inline { display: grid; place-items: center; padding: 70px 0; gap: 16px; color: var(--text-dim); }

.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  padding: 15px 20px; border-radius: 12px; max-width: 340px;
  background: var(--navy-600); border: 1px solid var(--navy-line); box-shadow: var(--shadow);
  transform: translateY(140%); transition: transform 0.4s var(--ease); font-size: 0.92rem;
}
.toast.show { transform: translateY(0); }
.toast.error { border-color: rgba(255, 92, 92, 0.5); }
.toast.success { border-color: rgba(87, 217, 138, 0.5); }

.modal {
  position: fixed; inset: 0; z-index: 150; display: none; place-items: center;
  background: rgba(4, 8, 20, 0.72); backdrop-filter: blur(6px); padding: 20px;
}
.modal.show { display: grid; }
.modal-card { width: 100%; max-width: 520px; padding: 30px; border-radius: var(--radius-lg); }

.success-panel { text-align: center; padding: 50px 30px; }
.success-panel .big { font-size: 3.4rem; margin-bottom: 10px; }

/* ============================================================
   MOTION — scroll reveal
   ============================================================ */
/* Visible by default (no-JS safe). Hidden only once JS marks <html class="js">. */
[data-reveal] { opacity: 1; transform: none; }
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal-delay="3"] { transition-delay: 0.24s; }
/* Hard-reveal safety net: force everything visible (added by JS after a short delay). */
html.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; order: -1; }
  .detail-top { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .theme-cards { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 680px) {
  .nav-links, .lang-switch { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: rgba(6, 10, 30, 0.97); padding: 14px; border-bottom: 1px solid var(--navy-line); gap: 4px;
  }
  .nav-toggle { display: block; }
  .feature-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px; }
}

/* ============================================================
   LIGHT CONTENT (white background sections on the landing page)
   ============================================================ */
:root {
  --ink: #101a3a;
  --ink-dim: #4a5578;
  --ink-mute: #8b95b5;
  --line-light: #e6ebf6;
  --surface: #ffffff;
  --surface-2: #f5f8ff;
}

/* White wrapper that covers the cosmos background for the content area. */
.light-wrap {
  position: relative;
  z-index: 1;
  background: var(--surface);
  color: var(--ink);
  border-radius: 42px 42px 0 0;
  margin-top: 26px;
  box-shadow: 0 -30px 70px -30px rgba(4, 8, 22, 0.7);
  overflow: hidden;
}
.light-wrap .section-title { color: var(--ink); }
.light-wrap .section-sub { color: var(--ink-dim); }
.light-wrap .eyebrow {
  color: var(--orange);
  border-color: rgba(255, 122, 26, 0.3);
  background: rgba(255, 122, 26, 0.09);
}

/* Banners */
.banner-stack { display: grid; gap: 20px; }
.banner-link {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--navy-line);
  box-shadow: 0 24px 55px -26px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
}
.banner-link img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--ease); }
.banner-link:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -28px rgba(20, 30, 70, 0.5); }
.banner-link:hover img { transform: scale(1.02); }
.banner-tag {
  position: absolute; bottom: 14px; right: 14px;
  padding: 7px 15px; border-radius: 999px; font-weight: 800; font-size: 0.85rem;
  background: var(--amber-grad); color: #1a1004;
  box-shadow: 0 8px 20px -8px rgba(255, 122, 26, 0.7);
}

/* Highlight cards */
.highlight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.highlight {
  padding: 32px 28px; border-radius: 22px;
  background: var(--navy-card); border: 1px solid var(--navy-line);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.highlight:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75); }
.highlight .hl-ic {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 16px;
  background: var(--amber-grad); color: #1a1004;
  box-shadow: 0 12px 26px -12px rgba(255, 122, 26, 0.6);
}
.highlight h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.highlight p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* Tech-focus circles (matches the reference banner) */
.tech-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tech-cat { text-align: center; }
.tech-cat .circle {
  width: 116px; height: 116px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 2.5rem;
  background: radial-gradient(circle at 35% 28%, #1e3378, #0c1636 78%);
  border: 3px solid rgba(255, 122, 26, 0.55);
  box-shadow: 0 16px 34px -16px rgba(20, 30, 70, 0.55), inset 0 0 24px rgba(79, 140, 255, 0.25);
  transition: transform 0.3s var(--ease);
}
.tech-cat:hover .circle { transform: translateY(-6px) scale(1.04); }
.tech-cat h4 { color: #fff; font-size: 1rem; margin: 0 0 2px; }
.tech-cat p { color: var(--text-mute); font-size: 0.84rem; margin: 0; }

/* Event info card */
.event-info {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0;
  border-radius: 26px; overflow: hidden; border: 1px solid var(--navy-line);
  box-shadow: 0 30px 66px -34px rgba(0, 0, 0, 0.75);
}
.event-info .ei-main {
  padding: 44px; background: linear-gradient(135deg, var(--navy-600), var(--navy-700)); color: #fff;
}
.event-info .ei-side {
  padding: 44px; background: rgba(255, 255, 255, 0.04); display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.ei-fact { display: flex; gap: 14px; align-items: flex-start; }
.ei-fact .k { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); }
.ei-fact .v { font-weight: 700; color: var(--text); }
.ei-ic { font-size: 1.4rem; }

/* Partner strip */
.partners { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; justify-content: center; }
.partner-pill {
  padding: 12px 22px; border-radius: 14px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--navy-line); font-weight: 700; color: var(--text); font-size: 0.95rem;
}

@media (max-width: 900px) {
  .highlight-row { grid-template-columns: 1fr; }
  .tech-row { grid-template-columns: repeat(2, 1fr); }
  .event-info { grid-template-columns: 1fr; }
  .light-wrap { border-radius: 30px 30px 0 0; }
}
@media (max-width: 680px) {
  .tech-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MODERN TOUCHES  (motionsite-inspired: display type, mesh, marquee)
   ============================================================ */
h1, h2, .m-num, .stat .n, .event-chip .date, .hero h1 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.hero h1 { font-weight: 800; }

/* Animated gradient mesh behind the hero */
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(40% 40% at 78% 18%, rgba(255, 122, 26, 0.28), transparent 70%),
    radial-gradient(45% 45% at 12% 30%, rgba(79, 140, 255, 0.22), transparent 70%),
    radial-gradient(35% 35% at 60% 80%, rgba(245, 179, 1, 0.16), transparent 70%);
  filter: blur(20px);
  animation: meshdrift 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
@keyframes meshdrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.03); }
}

/* Infinite marquee ticker */
.marquee {
  overflow: hidden; position: relative;
  border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, 0.02); padding: 16px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: inline-flex; gap: 42px; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.05rem; color: var(--text-dim);
}
.marquee-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-grad); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Gentle float for stat/hero accents */
.pop-hover { transition: transform 0.3s var(--ease); }
.pop-hover:hover { transform: translateY(-4px); }

/* Hero date/venue pill */
.hero-datepill {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0 0 26px; padding: 11px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--navy-line);
  color: var(--text-dim); font-weight: 600; font-size: 0.92rem;
}
.hero-datepill b { color: #fff; }

/* Hero category cards (clickable → filtered catalog) */
.hero-cats-label {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 700; margin-bottom: 14px;
}
.hero-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.hero-cat {
  --c: var(--gold);
  position: relative; display: block; overflow: hidden;
  border-radius: 18px; aspect-ratio: 1 / 1;
  border: 1px solid var(--navy-line);
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.hero-cat img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s var(--ease); }
.hero-cat::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(transparent, rgba(4, 8, 20, 0.72));
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.hero-cat:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 30px 56px -22px rgba(0, 0, 0, 0.85); }
.hero-cat:hover img { transform: scale(1.06); }
.hero-cat:hover::after { opacity: 1; }
.hero-cat:active { transform: translateY(-2px) scale(0.985); }
.hc-go {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  padding: 6px 13px; border-radius: 999px; background: var(--amber-grad);
  color: #1a1004; font-weight: 800; font-size: 0.78rem;
  opacity: 0; transform: translateY(8px); transition: all 0.3s var(--ease);
}
.hero-cat:hover .hc-go { opacity: 1; transform: none; }

@media (max-width: 520px) {
  .hero-cats { grid-template-columns: 1fr; }
}

/* ============================================================
   CHATBOT
   ============================================================ */
.chatbot { padding: 0; overflow: hidden; border-radius: 24px; }
.cb-head {
  padding: 16px 22px; border-bottom: 1px solid var(--navy-line);
  background: radial-gradient(400px 120px at 0% 0%, rgba(255, 122, 26, 0.16), transparent 70%);
  display: flex; align-items: center; gap: 12px;
}
.cb-head .cb-bot { font-size: 1.6rem; }
.cb-title { font-weight: 800; font-size: 1.02rem; }
.cb-sub { color: var(--text-dim); font-size: 0.84rem; }
.cb-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.cb-chat { display: flex; flex-direction: column; border-right: 1px solid var(--navy-line); min-width: 0; }
.cb-messages {
  flex: 1; overflow-y: auto; max-height: 420px; min-height: 300px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.cb-msg { max-width: 90%; padding: 11px 15px; border-radius: 15px; font-size: 0.92rem; line-height: 1.55; word-wrap: break-word; }
.cb-msg.user { align-self: flex-end; background: var(--amber-grad); color: #1a1004; border-bottom-right-radius: 4px; font-weight: 600; }
.cb-msg.bot { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--navy-line); border-bottom-left-radius: 4px; }
.cb-msg.bot h4 { margin: 8px 0 4px; font-size: 0.96rem; color: var(--gold); }
.cb-msg.bot ul { margin: 6px 0; padding-left: 18px; }
.cb-msg.bot li { margin: 2px 0; }
.cb-msg.bot strong { color: #fff; }
.cb-typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--text-mute); animation: cbblink 1.2s infinite; }
.cb-typing span:nth-child(2) { animation-delay: 0.2s; }
.cb-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cbblink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.cb-suggest { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; }
.cb-chip {
  padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--navy-line); color: var(--text-dim); font-size: 0.82rem; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.cb-chip:hover { color: #fff; border-color: var(--gold); }
.cb-form { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--navy-line); }
.cb-form input {
  flex: 1; min-width: 0; padding: 12px 15px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--navy-line); color: #fff;
  outline: none; font-size: 0.95rem;
}
.cb-form input:focus { border-color: var(--gold); }
.cb-form input::placeholder { color: var(--text-mute); }
.cb-form button {
  padding: 12px 22px; border-radius: 12px; background: var(--amber-grad); color: #1a1004;
  font-weight: 800; border: none; white-space: nowrap;
}
.cb-form button:disabled { opacity: 0.5; }

.cb-results { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 480px; background: rgba(255, 255, 255, 0.015); }
.cb-results-title { font-weight: 800; font-size: 0.88rem; color: var(--text-dim); }
.cb-results-title b { color: var(--gold); }
.cb-card { display: flex; gap: 12px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--navy-line); }
.cb-card img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #0c1636; }
.cb-card .cc-body { min-width: 0; flex: 1; }
.cb-card .cc-code { color: var(--gold); font-weight: 800; font-size: 0.72rem; }
.cb-card .cc-title { font-weight: 700; font-size: 0.85rem; margin: 1px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-card .cc-org { color: var(--text-mute); font-size: 0.76rem; }
.cb-card .cc-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cb-card .cc-btns a { font-size: 0.72rem; padding: 6px 10px; border-radius: 9px; font-weight: 700; }
.cc-detail { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--navy-line); }
.cc-book { background: var(--amber-grad); color: #1a1004; }
.cb-results-empty { margin: auto; color: var(--text-mute); font-size: 0.85rem; text-align: center; padding: 30px 10px; }

@media (max-width: 820px) {
  .cb-body { grid-template-columns: 1fr; }
  .cb-chat { border-right: none; border-bottom: 1px solid var(--navy-line); }
  .cb-results { max-height: 360px; }
}

/* ============================================================
   ADMIN · INNOVATION MANAGER
   ============================================================ */
.manage-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.mng-list { padding: 14px; max-height: 80vh; overflow-y: auto; position: sticky; top: 84px; }
.mng-list .search-box { margin-bottom: 12px; }
.mng-item { display: flex; gap: 10px; padding: 9px; border-radius: 10px; cursor: pointer; align-items: center; }
.mng-item:hover { background: rgba(255, 255, 255, 0.05); }
.mng-item.active { background: rgba(255, 122, 26, 0.15); }
.mng-item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #0c1636; flex-shrink: 0; }
.mng-item .mi-code { color: var(--gold); font-weight: 800; font-size: 0.72rem; }
.mng-item .mi-title { font-size: 0.82rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mng-item .mi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-left: auto; flex-shrink: 0; }

.mng-edit { padding: 26px; }
.edit-img { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.edit-img img { width: 128px; height: 96px; border-radius: 10px; object-fit: cover; background: #0c1636; border: 1px solid var(--navy-line); }
.edit-sec { font-weight: 800; color: var(--gold); font-size: 1rem; margin: 22px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--navy-line); }
.edit-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: rgba(245, 179, 1, 0.16); color: var(--gold); }
.edit-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 820px) {
  .manage-grid { grid-template-columns: 1fr; }
  .mng-list { position: static; max-height: 340px; }
  .edit-grid2 { grid-template-columns: 1fr; }
}

/* Floating "Business Matching" button on the detail page (always visible, corner only) */
.fab-book {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 24px; border-radius: 999px;
  background: var(--amber-grad); color: #1a1004; font-weight: 800; font-size: 1rem;
  box-shadow: 0 16px 40px -12px rgba(255, 122, 26, 0.85), 0 0 0 4px rgba(255, 122, 26, 0.12);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.3s var(--ease);
  opacity: 0; transform: translateY(20px) scale(0.92); pointer-events: none;
}
.fab-book.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-book:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 52px -12px rgba(255, 122, 26, 0.95); }
.fab-book .fab-ic { font-size: 1.15rem; }
@media (max-width: 560px) {
  .fab-book { left: 14px; right: 14px; bottom: 14px; justify-content: center; padding: 15px; }
}

/* ============================================================
   LIGHT overrides for the CATALOG content (white background)
   ============================================================ */
.light-wrap .search-box {
  background: var(--surface-2); border-color: var(--line-light);
}
.light-wrap .search-box input { color: var(--ink); }
.light-wrap .search-box input::placeholder { color: var(--ink-mute); }
.light-wrap .chip {
  background: var(--surface-2); border-color: var(--line-light); color: var(--ink-dim);
}
.light-wrap .chip:hover { color: var(--ink); border-color: rgba(255, 122, 26, 0.4); }
.light-wrap .chip.active { background: var(--amber-grad); color: #1a1004; border-color: transparent; }
.light-wrap .count-pill { color: var(--ink-mute); }
.light-wrap .count-pill b { color: var(--orange); }
.light-wrap .loader-inline { color: var(--ink-dim); }

.light-wrap .card {
  background: var(--surface); border: 1px solid var(--line-light);
  box-shadow: 0 16px 40px -26px rgba(20, 30, 70, 0.28);
}
.light-wrap .card:hover { box-shadow: 0 30px 60px -30px rgba(20, 30, 70, 0.4); }
.light-wrap .card-media { background: var(--surface-2); }
.light-wrap .card-title { color: var(--ink); }
.light-wrap .card-org { color: var(--ink-dim); }
.light-wrap .card-desc { color: var(--ink-mute); }
.light-wrap .card-cta { color: var(--orange); }

/* Catalog hero on light: keep heading dark */
.light-wrap .section-head .section-title { color: var(--ink); }
