:root {
  --primary: #1d4ed8;
  --primary-2: #0ea5e9;
  --secondary: #0f172a;
  --bg: #f5f7fb;
  --slider-edge-bg: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --card: #fff;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --grid: rgba(15, 23, 42, 0.04);
  --header-height: 72px;
  --header-bg: rgba(255, 255, 255, 0.08);
  --header-border: rgba(203, 213, 225, 0.9);
  --header-border-strong: #cbd5e1;
  --header-text: #0f172a;
  --header-link: #0f172a;
  --header-link-hover: #1d4ed8;
  --drawer-bg: #f8fafc;
  --drawer-bg-strong: #eef2ff;
  --drawer-overlay: rgba(15, 23, 42, 0.62);
  --drawer-outline: #e2e8f0;
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html.dark {
  --bg: #0b1220;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --card: #0f172a;
  --border: #1f2937;
  --secondary: #e2e8f0;
  --shadow: 0 12px 32px rgba(0,0,0,0.35);
  --grid: rgba(148,163,184,0.08);
  --header-bg: rgba(17, 24, 39, 0.92);
  --header-border: rgba(255, 255, 255, 0.3);
  --header-border-strong: rgba(255, 255, 255, 0.55);
  --header-text: #e2e8f0;
  --header-link: #e2e8f0;
  --header-link-hover: #bfdbfe;
  --drawer-bg: #2a0f0f;
  --drawer-bg-strong: #2f1111;
  --drawer-overlay: rgba(32, 18, 16, 0.88);
  --drawer-outline: rgba(255, 255, 255, 0.12);
}
body {
  background: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
body.auth-page {
  background: #450a0a;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(220, 38, 38, 0.15), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(234, 179, 8, 0.1), transparent 50%),
    linear-gradient(180deg, #450a0a 0%, #2a0404 100%);
  color: #fffbeb;
  position: relative;
  min-height: 100vh;
}

body.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.28;
  pointer-events: none;
}
body.auth-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(251, 191, 36, 0.28), transparent 45%, rgba(239, 68, 68, 0.24)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 200% 100%, 200px 200px;
  opacity: 0.5;
  animation: scanline 12s linear infinite;
  transform: translateX(-30%);
  pointer-events: none;
  z-index: 0;
}

body.auth-page > * {
  position: relative;
  z-index: 1;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.2em;
}
.flex { display: flex; gap: 1em; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: inherit; opacity: 0.9; }
a.btn, button.btn {
  padding: 0.75em 1.4em;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.28);
  cursor: pointer;
  margin-right: 0.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
a.btn:hover, button.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.35);
  filter: brightness(1.04);
}
a.btn:active, button.btn:active { transform: translateY(0); }
a.btn-secondary, button.btn-secondary {
  background: #0f172a;
}
.site-header, .site-footer {
  background: var(--header-bg);
  box-shadow: none;
  padding: 0.6em 0;
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  width: 100%;
  border-bottom: 1px solid rgba(15, 23, 42, 0.28);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0;
  background: var(--header-bg);
  color: var(--header-text);
  border: 1px solid var(--header-border);
  box-shadow:
    0 0 0 1px var(--header-border-strong),
    inset 0 -1px 0 rgba(15, 23, 42, 0.22),
    0 10px 28px rgba(0,0,0,0.16);
}
html.dark .site-header {
  background: var(--header-bg);
  color: var(--header-text);
  border: 1px solid var(--header-border);
  box-shadow:
    0 0 0 1px var(--header-border-strong),
    inset 0 0 0 1px var(--header-border),
    0 10px 26px rgba(0,0,0,0.3);
}
.header-info {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9em;
  line-height: 1.1;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-info .header-time,
.header-info .header-meta {
  text-align: center;
}
.header-info #header-time,
.header-info #header-date,
.header-info #header-temp {
  font-variant-numeric: tabular-nums;
}
.header-info .header-time {
  font-size: 0.95em;
}
.header-info .header-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
}
.header-info .header-weather {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.header-info #header-weather-icon {
  font-size: 1.1em;
  line-height: 1;
}
.site-header .container, .site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  gap: 1.2em;
  height: 100%;
}
.logo { display: flex; align-items: center; font-weight: bold; font-size: 1.2em; flex-shrink: 0; }
.logo span { font-weight: 700; color: var(--header-link); }
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  line-height: 1.1;
}
.logo-title { font-weight: 700; }
.logo-slogan {
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0.92;
  color: var(--header-link);
  text-shadow: none;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.4s ease, color 0.4s ease, text-shadow 0.4s ease;
}
.logo-slogan.slogan-alt {
  color: #7c2d12;
  background: rgba(251, 191, 36, 0.32);
  border: 1px solid rgba(251, 191, 36, 0.7);
  box-shadow: 0 8px 22px rgba(251, 191, 36, 0.35);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.6),
               0 0 12px rgba(251, 191, 36, 0.95),
               0 0 26px rgba(251, 191, 36, 0.75);
  font-weight: 800;
}
.logo-slogan.slogan-fade { opacity: 0; }
.logo img {
  margin-right: 0.5em;
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: none;
  mix-blend-mode: normal;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9em;
  flex: 1;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-left: 2.2em;
}
.main-nav > * { align-self: center; }
.main-nav a { padding: 0.3em 0.15em; display: inline-flex; align-items: center; margin: 0; flex-shrink: 0; }
.main-nav .header-info { margin-left: 0.6em; }
.main-nav .btn { margin-left: 0.6em; }
.main-nav .theme-switch { margin-left: 0.6em; }
.main-nav a {
  margin: 0 0.1em;
  color: var(--header-link);
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}
.main-nav a:hover { color: var(--header-link-hover); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  opacity: 0;
  transform: scaleX(0.6);
  transition: all 0.2s ease;
}
.main-nav a:hover::after { opacity: 1; transform: scaleX(1); }
.main-nav .btn { margin-left: 1em; }
.main-nav .btn {
  height: 36px;
  padding: 0 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.main-nav button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.main-nav button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
main { padding-bottom: 2em; }
body:not(.home) main { padding-top: var(--header-height); }
.hero { padding-top: var(--header-height); }
.hero {
  background-image: linear-gradient(90deg, rgba(2,6,23,0.45) 0%, rgba(2,6,23,0.15) 100%), url('/images/banner.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2em;
  width: 100%;
  padding: 5em 0 4em;
}
.hero-content { max-width: 640px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.75em;
  letter-spacing: 1px;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: rgba(37,99,235,0.25);
  border: 1px solid rgba(148,163,184,0.4);
  margin-bottom: 1em;
}
.hero h1 { font-size: 3em; margin-bottom: 0.4em; letter-spacing: 0.2px; line-height: 1.1; }
.hero h1 .accent { color: #93c5fd; }
.hero p { color: rgba(255,255,255,0.92); max-width: 680px; margin: 0.5em 0 0; }
.hero-decor { display: none; }
.cta-group { margin-top: 1.5em; }
.featured-tips, .categories, .rescue-steps, .faq, .contact { padding: 2.5em 0; }
.featured-tips h2, .categories h2, .rescue-steps h2, .faq h2, .contact h2 {
  font-size: 1.8em;
  margin-bottom: 0.8em;
  color: var(--secondary);
}
.intro, .moments, .achievements, .highlights { padding: 2.8em 0; }
.section-head { margin-bottom: 1.2em; }
.section-head.center { text-align: center; }
.section-head p { color: var(--muted); margin-top: 0.3em; }
.section-line {
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  margin: 0.6em auto 0;
  border-radius: 999px;
  animation: shimmer 3s ease-in-out infinite;
}
.intro-dark {
  position: relative;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 40%),
              radial-gradient(circle at bottom right, rgba(14,165,233,0.12), transparent 45%),
              #f1f5f9;
}
.intro-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.intro-dark .container { position: relative; z-index: 1; }
.intro-dark h2 { color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; }
.intro-dark .section-head h2 {
  color: #0f172a;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2em;
  align-items: stretch;
}
.intro-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6em 1.8em;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.intro-panel:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0,0,0,0.35); }
.intro-panel p { margin-top: 0; color: var(--muted); }
.intro-media {
  display: flex;
  height: 100%;
}
.intro-media img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  border: 1px solid rgba(148,163,184,0.2);
  object-fit: cover;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2em;
  align-items: start;
}
.intro-actions { margin-top: 1.2em; display: flex; gap: 0.8em; flex-wrap: wrap; }
.intro-cards { display: grid; grid-template-columns: 1fr; gap: 1em; }
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2em;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.info-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15,23,42,0.12); }
.moments-slider {
  position: relative;
}
.moments {
  position: relative;
  overflow: hidden;
}
.moments-viewport {
  overflow: hidden;
  padding: 0.4em 0 0.4em 2.2em;
}
.moments-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1.2em;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0;
  /* scrollbar-width: none; */
}
.moments-track::-webkit-scrollbar { height: 0; width: 0; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  z-index: 2;
}
.slider-btn:hover { transform: translateY(-50%) scale(1.05); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.moment-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
}
.moment-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15,23,42,0.18); }
.moment-card img { width: 100%; display: block; height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.moment-card:hover img { transform: scale(1.04); }
.moment-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-size: 0.9em;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2em;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4em;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15,23,42,0.12); }
.stat-card h3 {
  font-size: 2em;
  margin: 0;
  color: var(--primary);
}
.stat-card p { margin: 0.3em 0 0; color: var(--muted); }
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2em;
}
.highlight-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.2s;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(15,23,42,0.12); }
.highlight-card img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.35s ease; }
.highlight-card:hover img { transform: scale(1.03); }
.highlight-body { padding: 1em 1.2em 1.3em; }
.highlight-body h3 { margin: 0 0 0.4em; }
.highlight-body p { margin: 0; color: var(--muted); }
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6em;
}
.card {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2em;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 1em;
  transition: transform 0.15s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(15,23,42,0.12); }
.card img { width: 100%; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.6em; border-bottom: 1px solid var(--border); text-align: left; }
.steps { display: flex; gap: 1.2em; list-style: none; padding: 0; flex-wrap: wrap; }
.steps li {
  background: #e2e8f0;
  border-radius: var(--radius);
  padding: 1em 1.5em;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.accordion { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-title {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: bold;
  padding: 1em;
  cursor: pointer;
  transition: color 0.2s ease;
}
.accordion-title:hover { color: var(--primary); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1em;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.2s ease;
}
.accordion-item.open .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding: 1em;
}
.alert { padding: 1em; border-radius: var(--radius); margin: 1em 0; }
.alert.success { background: #d1fae5; color: #065f46; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.toast {
  position: fixed;
  right: 24px;
  top: calc(var(--header-height) + 16px);
  z-index: 50000;
  margin: 0;
  min-width: 240px;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.alert.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.alert.toast.hide {
  opacity: 0;
  transform: translateY(-10px);
}
@media (max-width: 640px) {
  .alert.toast {
    left: 16px;
    right: 16px;
    top: 16px;
    max-width: none;
  }
}

/* Profile page */
.profile-hero {
  padding: calc(var(--header-height) + 32px) 0 32px;
}
.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2em;
  align-items: center;
  padding: 2.2em;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(59, 7, 7, 0.7));
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  color: #fff7ed;
}
.profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-label {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.75rem;
  margin: 0 0 0.6em;
  color: rgba(255, 251, 235, 0.7);
}
.profile-info h2 {
  margin: 0 0 0.35em;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}
.profile-info h2 span { color: #fcd34d; }
.profile-email {
  margin: 0 0 1.2em;
  color: rgba(255, 251, 235, 0.75);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2em;
}
.profile-form {
  margin: 1.2em 0 1.6em;
  display: grid;
  gap: 1em;
}
.profile-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
}
.profile-form .form-group {
  margin: 0;
}
.profile-form .form-span {
  grid-column: span 2;
}
.profile-form input {
  background: rgba(15, 23, 42, 0.25);
  border-color: rgba(251, 191, 36, 0.32);
  color: #fff7ed;
}
.profile-form label {
  color: rgba(255, 251, 235, 0.82);
}
.profile-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8em 1em;
  margin-bottom: 1.2em;
}
.profile-upload__label {
  font-weight: 600;
  color: rgba(255, 251, 235, 0.85);
}
.profile-upload__input {
  padding: 0.4em 0.6em;
  border-radius: 12px;
  border: 1px dashed rgba(251, 191, 36, 0.4);
  background: rgba(15, 23, 42, 0.25);
  color: #fff7ed;
}
.profile-stat {
  padding: 0.9em 1em;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.2);
  text-align: center;
}
.profile-stat strong {
  display: block;
  font-size: 1.4rem;
  color: #fbbf24;
}
.profile-stat span {
  font-size: 0.85rem;
  color: rgba(255, 251, 235, 0.78);
}
.profile-actions {
  display: grid;
  gap: 0.8em;
  min-width: 180px;
}
.profile-content {
  padding: 0 0 64px;
}
.profile-section .section-head {
  margin-bottom: 1.6em;
}
.profile-table-card {
  padding: 1.4em;
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow-x: auto;
}
.profile-table {
  width: 100%;
  min-width: 620px;
}
.profile-table th { color: #e2e8f0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  font-weight: 600;
  font-size: 0.85em;
}
.link-cta { font-weight: 600; color: #93c5fd; }
.link-cta:hover { color: #bfdbfe; }

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.25em 0.6em 0.25em 0.3em;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92em;
  color: #fff7ed;
  flex-shrink: 0;
  margin-left: auto;
}
.header-user__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8em;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
  object-fit: cover;
}
.header-user img.header-user__avatar { display: block; }
.header-user__greet {
  color: rgba(255, 251, 235, 0.75);
}
.header-user__name {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .profile-avatar { margin: 0 auto; }
  .profile-actions {
    grid-template-columns: 1fr 1fr;
    justify-content: center;
  }
  .profile-form__grid { grid-template-columns: 1fr; }
  .profile-form .form-span { grid-column: span 1; }
}

@media (max-width: 640px) {
  .profile-stats { grid-template-columns: 1fr; }
  .profile-actions { grid-template-columns: 1fr; }
  .profile-table { min-width: 560px; }
}
input, select, textarea {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.8em;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.15);
  outline: none;
}
.sidebar { margin-left: 2em; min-width: 220px; }
.tags a {
  display: inline-block;
  background: #e0e7ff;
  border-radius: 8px;
  padding: 0.2em 0.7em;
  margin: 0.2em;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.tags a:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #dbeafe; }
.site-footer {
  margin-top: 2em;
  position: static;
  top: auto;
  padding: 2.1em 0 1.5em;
  background: linear-gradient(135deg, #0b1220, #0f172a 55%, #111827);
  color: #e2e8f0;
  box-shadow: none;
}
.site-footer .container {
  display: block;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5em;
}
.site-footer a { color: #93c5fd; }
.site-footer a:hover { color: #bfdbfe; }
.footer-top {
  display: grid;
  grid-template-columns: 1.22fr repeat(3, 1fr);
  gap: 1.6em;
  align-items: start;
}
.footer-brand {
  max-width: 380px;
}
.footer-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.5em 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-logos img {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  height: 36px;
  width: 36px;
  object-fit: contain;
}

body.auth-page .footer-logos {
  padding: 0.35em 0.6em;
}

body.auth-page .footer-logos img {
  height: 30px;
  width: 30px;
  padding: 3px;
}
.footer-title-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
  margin: 0.6em 0 0.2em;
}
.footer-title {
  font-weight: 800;
  font-size: 1.3em;
  letter-spacing: 0.8px;
  color: #bfdbfe;
  margin: 0;
}
.footer-badge {
  display: inline-flex;
  font-size: 0.7em;
  letter-spacing: 1px;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #bae6fd;
  font-weight: 700;
}
.footer-subtitle {
  font-size: 0.95em;
  color: #cbd5e1;
  font-weight: 600;
}
.footer-brand p {
  color: #cbd5e1;
  margin-top: 0.65em;
  line-height: 1.5;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: 1.6em;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
.footer-follow {
  width: auto;
  height: auto;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #93c5fd;
  font-style: italic;
  font-weight: 600;
  box-shadow: none;
}
.footer-follow:hover {
  color: #bfdbfe;
  background: rgba(148, 163, 184, 0.18);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1.2em 1.5em;
}
.footer-links > div { min-width: 180px; }
.footer-links > div h4 {
  margin: 0 0 0.35em;
  color: #93c5fd;
  font-size: 0.98em;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.footer-links > div ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links > div li {
  margin-bottom: 0.4em;
  color: #cbd5e1;
  padding-left: 0;
  list-style: none;
  margin-left: 0;
}
.footer-links > div li::marker { content: ''; }
.footer-links > div a {
  color: #cbd5e1;
}
.footer-links > div a:hover {
  color: #e2e8f0;
}
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.7), transparent);
  margin: 1.4em auto 1em;
  position: relative;
}
.footer-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #93c5fd;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 0 6px rgba(147, 197, 253, 0.08);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  color: #cbd5e1;
  font-size: 0.9em;
}
.footer-bottom strong {
  color: #93c5fd;
}
.footer-credit {
  padding: 0.35em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.5);
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.footer-credit .code-icon {
  font-size: 0.85em;
  color: #93c5fd;
}
.footer-credit:hover {
  color: #0b1220;
  background: #93c5fd;
}

/* Reveal on scroll (opt-in via .js-animate on <html>) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-animate .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js-animate .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Swipe-in for headings and descriptions (opt-in) */
.swipe-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-animate .swipe-in {
  opacity: 0;
  transform: translateX(-28px);
}
.js-animate .swipe-in.in-view {
  opacity: 1;
  transform: translateX(0);
}

@keyframes shimmer {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
  100% { filter: brightness(1); }
}
@keyframes scanline {
  0% { transform: translateX(-40%); opacity: 0.35; }
  50% { opacity: 0.75; }
  100% { transform: translateX(40%); opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none; transition: none; scroll-behavior: auto; }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  font-size: 1.4em;
  color: var(--secondary);
  cursor: pointer;
  padding: 0.3em 0.4em;
  position: relative;
  z-index: 3400;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--drawer-overlay);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 20000;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  touch-action: none;
  height: 100%;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Drawer header hidden by default (desktop) */
.drawer-header { display: none; }

/* Theme switcher (sun / cloud) */
.theme-switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 4em;
  height: 2.2em;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #2a2a2a;
  transition: 0.4s;
  border-radius: 30px;
  overflow: hidden;
}
.theme-switch .slider:before {
  position: absolute;
  content: '';
  height: 1.2em;
  width: 1.2em;
  border-radius: 20px;
  left: 0.5em;
  bottom: 0.5em;
  transition: 0.4s;
  transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
  box-shadow: inset 8px -4px 0 0 #fff;
}
.theme-switch input:checked + .slider { background: #00a6ff; }
.theme-switch input:checked + .slider:before {
  transform: translateX(1.8em);
  box-shadow: inset 15px -4px 0 15px #ffcf48;
}
.theme-switch .star {
  background: #fff;
  border-radius: 50%;
  position: absolute;
  width: 5px;
  height: 5px;
  transition: all 0.4s;
}
.theme-switch .star-1 { left: 2.5em; top: 0.5em; }
.theme-switch .star-2 { left: 2.2em; top: 1.2em; }
.theme-switch .star-3 { left: 3em; top: 0.9em; }
.theme-switch input:checked ~ .slider .star { opacity: 0; }
.theme-switch .cloud {
  width: 3.5em;
  position: absolute;
  bottom: -1.4em;
  left: -1.1em;
  opacity: 0;
  transition: all 0.4s;
}
.theme-switch input:checked ~ .slider .cloud { opacity: 1; }

@media (max-width: 1024px) {
  .mobile-menu-toggle { display: block; }
  .site-header .container { position: relative; gap: 0.8em; }
  
  .main-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    background: linear-gradient(180deg, var(--drawer-bg) 0%, var(--drawer-bg-strong) 100%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.5em 1.2em 1.2em;
    border-left: 1px solid var(--drawer-outline);
    box-shadow: -14px 0 36px rgba(0,0,0,0.28);
    z-index: 20010;
    transform: translateX(100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: none;
  }
  /* Force drawer background when menu is open (prevents overrides from other themes) */
  body.menu-open .main-nav,
  html.menu-open .main-nav {
    background: linear-gradient(180deg, var(--drawer-bg) 0%, var(--drawer-bg-strong) 100%);
    border-left: 1px solid var(--drawer-outline);
    box-shadow: -16px 0 40px rgba(0,0,0,0.45);
  }
  body.menu-open .main-nav a,
  html.dark body.menu-open .main-nav a {
    color: var(--header-link);
    border-bottom: 1px solid var(--drawer-outline);
  }
  body.menu-open .main-nav .drawer-header,
  html.dark body.menu-open .main-nav .drawer-header {
    background: var(--drawer-bg-strong);
    border-bottom: 1px solid var(--drawer-outline);
  }
  body.menu-open .main-nav .btn,
  html.dark body.menu-open .main-nav .btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }
  html.dark .main-nav { box-shadow: -14px 0 36px rgba(0,0,0,0.42); }
  html.dark .main-nav a,
  html.dark .main-nav .drawer-label,
  html.dark .main-nav .drawer-sub {
    color: #e2e8f0;
  }
  /* Ensure overlay is strong when menu open */
  body.menu-open .nav-overlay,
  html.menu-open .nav-overlay {
    display: block;
    background: var(--drawer-overlay);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  html.dark .main-nav a:hover { color: #bfdbfe; }
  html.dark .main-nav .btn {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
  }
  .main-nav.active { transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1em;
    margin-bottom: 0.35em;
    position: sticky;
    top: 0;
    padding-bottom: 0.8em;
    background: inherit;
    border-bottom: 1px solid var(--drawer-outline);
    z-index: 1;
  }
  html.dark .main-nav .drawer-header { border-bottom: 1px solid var(--drawer-outline); }
  .drawer-brand { display: inline-flex; align-items: center; gap: 0.65em; }
  .drawer-logo {
    height: 40px;
    width: 40px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    padding: 6px;
    object-fit: contain;
  }
  .drawer-text { display: flex; flex-direction: column; gap: 0.15em; }
  .drawer-label { font-weight: 700; color: #111827; }
  .drawer-sub { font-size: 0.86em; color: #6b7280; }
  html.dark .drawer-label { color: #e2e8f0; }
  html.dark .drawer-sub { color: #94a3b8; }
  .drawer-close {
    background: #f5f7fb;
    border: 1px solid #e5e7eb;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: #111827;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  }
  .drawer-close:hover { transform: scale(1.05); box-shadow: 0 8px 18px rgba(0,0,0,0.08); background: #eef2ff; }
  .drawer-close:active { transform: scale(0.98); }
  html.dark .drawer-close {
    background: #111827;
    border: 1px solid #1f2937;
    color: #e2e8f0;
    box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  }
  html.dark .drawer-close:hover { background: #1f2937; }

  .main-nav a { 
    display: block; 
    width: 100%; 
    padding: 0.9em 1em; 
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: 0;
    border-radius: 12px;
    text-align: left;
    background: rgba(0,0,0,0.08);
  }
  html.dark .main-nav a { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .main-nav .btn { margin: 0.35em 0 0; width: 100%; }
  
  .main-nav .header-info {
    width: 100%;
    align-items: center;
    text-align: center;
    margin: 0.35em 0 0;
  }
  .main-nav .header-info .header-time {
    width: 100%;
    text-align: center;
  }
  .main-nav .header-user {
    width: 100%;
    margin: 0.3em 0 0;
    justify-content: center;
  }
  .main-nav .header-user__name { max-width: none; }
  .main-nav .theme-switch { margin: 0.35em auto 0; align-self: center; }
  .nav-overlay { display: block; }
  .card-list, .steps { flex-direction: column; }
  .card-list { align-items: stretch; }
  .card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .sidebar { margin-left: 0; }
  .intro-grid { grid-template-columns: 1fr; }
  .achievements-grid, .highlights-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-decor { order: -1; margin-bottom: 1em; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 1em; }
  /* .main-nav { flex-direction: column; } - handled in 900px now */
  .hero h1 { font-size: 1.7em; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .card-list {
    gap: 1.2em;
    align-items: stretch;
  }
  .card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Auth Page Tet Layout */

.auth-page-wrapper {
  height: auto;
  min-height: calc(100svh - var(--header-height));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 24px) 0 24px;
  position: relative;
  overflow: hidden;
}

body.auth-page main {
  padding-top: 0;
}

body.auth-page .logo img {
  height: 36px;
  padding: 3px;
}

.auth-page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%' stop-color='%23f59e0b' stop-opacity='0.35'/%3E%3Cstop offset='60%' stop-color='%23ef4444' stop-opacity='0.08'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-200 520 Q400 260 950 370 T1800 360' fill='none' stroke='url(%23g1)' stroke-width='90' stroke-linecap='round' stroke-opacity='0.6'/%3E%3Cpath d='M-120 740 Q520 520 1180 640 T1860 620' fill='none' stroke='%23fcd34d' stroke-width='70' stroke-linecap='round' stroke-opacity='0.4'/%3E%3Cpath d='M-80 280 Q500 180 980 240 T1740 220' fill='none' stroke='%23fbbf24' stroke-width='46' stroke-linecap='round' stroke-opacity='0.28'/%3E%3C/svg%3E") center/cover no-repeat;
  opacity: 0.28;
  filter: blur(0.2px);
  z-index: 0;
  pointer-events: none;
}

.auth-container {
  max-width: 1200px;
}

#fireworks-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5em;
  position: relative;
  z-index: 2;
  width: 100%;
}

.auth-promo {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08), transparent 55%),
              rgba(35, 12, 12, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 20px 45px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: 2.4em 2.2em;
  color: #fffbeb;
}

.tet-badge {
  display: inline-block;
  padding: 0.35em 1em;
  border: 1px solid #fbbf24;
  color: #fbbf24;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85em;
  letter-spacing: 1px;
  margin-bottom: 1.2em;
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.tet-title {
  font-size: 2.6em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.4em;
  color: #fffbeb;
}

.tet-desc {
  font-size: 1em;
  color: rgba(255, 251, 235, 0.86);
  line-height: 1.6;
  margin: 0;
}

.tet-binh-ngo {
  position: relative;
  overflow: hidden;
}

.tet-binh-ngo .auth-page-wrapper {
  isolation: isolate;
}

.tet-binh-ngo .auth-promo {
  background: linear-gradient(150deg, rgba(92, 28, 5, 0.7), rgba(180, 83, 9, 0.55)),
              radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.25), transparent 40%),
              rgba(35, 12, 12, 0.65);
  border-color: rgba(251, 191, 36, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tet-binh-ngo .auth-card {
  background: linear-gradient(160deg, rgba(16, 12, 8, 0.92), rgba(103, 41, 13, 0.7));
  border: 1px solid rgba(251, 191, 36, 0.25);
  position: relative;
  overflow: hidden;
}

.tet-binh-ngo .auth-card::before,
.tet-binh-ngo .auth-card::after {
  content: '';
  position: absolute;
  inset: -20% auto auto -10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 60%);
  filter: blur(6px);
  z-index: 0;
  animation: glowPulse 6s ease-in-out infinite;
}

.tet-binh-ngo .auth-card::after {
  inset: auto -10% -20% auto;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 60%);
  animation-delay: 1.5s;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6em;
  margin-top: 1.4em;
}

.auth-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.65em 0.8em;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  letter-spacing: 0.1px;
}

.auth-chip {
  display: inline-flex;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.28);
  text-transform: uppercase;
  font-size: 0.75em;
  letter-spacing: 1px;
  margin-bottom: 0.8em;
}

.golden-rings {
  position: absolute;
  inset: -10% auto auto -8%;
  width: 380px;
  height: 380px;
  background:
    radial-gradient(circle at 50% 50%, rgba(252, 211, 77, 0.2), transparent 55%),
    radial-gradient(circle at 30% 20%, rgba(251, 146, 60, 0.35), transparent 45%);
  filter: blur(4px);
  opacity: 0.8;
  animation: ringDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

.floating-lanterns {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-lanterns span {
  position: absolute;
  width: 16px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.95), rgba(249, 115, 22, 0.7));
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.45);
  left: calc(var(--i) * 16% + 4%);
  top: 100%;
  animation: lanternRise calc(10s + var(--i) * 0.8s) ease-in-out infinite;
  opacity: 0.8;
}

@keyframes lanternRise {
  0% { transform: translateY(0) translateX(0) scale(0.85); opacity: 0; }
  10% { opacity: 0.9; }
  50% { transform: translateY(-55vh) translateX(12px) scale(1); }
  100% { transform: translateY(-115vh) translateX(-10px) scale(1.05); opacity: 0; }
}

@keyframes ringDrift {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to { transform: translate3d(8px,-12px,0) rotate(12deg); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.08); }
}

.auth-card {
  background: linear-gradient(145deg, rgba(22, 10, 10, 0.9), rgba(22, 10, 10, 0.7));
  border: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  border-radius: 22px;
  padding: 2.4em 2.1em;
  color: #fff;
}

.auth-header {
  margin-bottom: 2em;
}

.auth-header h2 {
  font-size: 1.8em;
  margin: 0 0 0.3em;
  color: #fbbf24;
}

.auth-header p {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.auth-form .form-group {
  margin-bottom: 1.5em;
}

.auth-form label {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #e2e8f0;
}

.auth-form input {
  width: 100%;
  padding: 0.9em 1.2em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1em;
  transition: all 0.2s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: #fbbf24;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.auth-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.btn-tet {
  width: 100%;
  padding: 0.9em;
  font-size: 1.05em;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  color: white;
  margin-top: 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn-tet:hover {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.auth-footer {
  margin-top: 1.5em;
  text-align: center;
  font-size: 0.92em;
  color: rgba(255, 255, 255, 0.6);
}

.link-tet {
  color: #fff;
  font-weight: 700;
  margin-left: 0.3em;
}

.link-tet:hover {
  color: #fbbf24;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .auth-page-wrapper {
    height: auto;
    min-height: calc(100svh - var(--header-height));
    align-items: center;
    padding: calc(var(--header-height) + 16px) 0 24px !important;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2em;
  }
  .auth-promo {
    order: -1;
  }
  .tet-title {
    font-size: 2.2em;
  }
  .auth-card {
    width: 100%;
  }
}

/* Auth + Tet header (match login header style) */
body.auth-page .site-header,
body.tet-binh-ngo .site-header,
body.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28), inset 0 0 0 1px var(--header-border-strong);
  z-index: 30000;
}
html.dark body.auth-page .site-header,
html.dark body.tet-binh-ngo .site-header,
html.dark body.home .site-header {
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.32), inset 0 0 0 1px var(--header-border-strong);
}
body.auth-page .site-header .container,
body.tet-binh-ngo .site-header .container,
body.home .site-header .container {
  background: transparent;
  box-shadow: none;
  border: none;
}
body.auth-page .main-nav {
  background: transparent;
  border: none;
  box-shadow: none;
}
body.auth-page .main-nav a,
body.auth-page .main-nav .drawer-label,
body.auth-page .main-nav .drawer-sub {
  color: var(--header-link);
  text-shadow: none;
}
body.auth-page .main-nav a:hover { color: var(--header-link-hover); }
body.auth-page .header-info {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--header-link);
  text-shadow: none;
  padding: 0;
  border-radius: 0;
}
body.auth-page .header-info .header-meta { color: rgba(255, 251, 235, 0.7); }
body.auth-page .main-nav a::after { background: var(--cta-gradient); }
body.auth-page .mobile-menu-toggle { color: var(--header-link); }
body.auth-page .logo span { color: var(--header-link); text-shadow: none; }
body.auth-page .main-nav .btn { color: #fff7ed; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
body.auth-page .header-info #header-time,
body.auth-page .header-info #header-date,
body.auth-page .header-info #header-temp,
body.auth-page .header-info .header-weather { color: var(--header-link); }

@media (max-width: 1024px) {
  body.auth-page .main-nav {
    background: var(--drawer-bg);
    border-left: 1px solid var(--drawer-outline);
    box-shadow: -12px 0 32px rgba(0,0,0,0.5);
  }
  body.auth-page .main-nav .drawer-header {
    background: var(--drawer-bg-strong);
  }
  body.auth-page .nav-overlay { background: var(--drawer-overlay); }
  body.auth-page .main-nav a,
  body.auth-page .main-nav .drawer-label,
  body.auth-page .main-nav .drawer-sub { color: var(--header-link); text-shadow: none; }
  body.auth-page .main-nav a:hover { color: var(--header-link-hover); }
  body.auth-page .main-nav .btn { color: #fff7ed; }
}
body.auth-page .main-nav .btn {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff7ed;
  box-shadow: var(--shadow);
}
body.auth-page .main-nav a { border-bottom-color: rgba(255, 255, 255, 0.15); }
body.auth-page .main-nav .drawer-header { background: var(--drawer-bg-strong); }
body.auth-page .nav-overlay { background: var(--drawer-overlay); }
body.tet-binh-ngo .site-header,
body.tet-binh-ngo .site-header .container {
  background: transparent;
  border: none;
  box-shadow: none;
}
body.tet-binh-ngo .site-header {
  position: relative;
}
body.tet-binh-ngo .site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.35), rgba(239, 68, 68, 0.18));
  opacity: 0.8;
  pointer-events: none;
}
body.tet-binh-ngo .logo span,
body.tet-binh-ngo .main-nav a,
body.tet-binh-ngo .main-nav .drawer-label,
body.tet-binh-ngo .main-nav .drawer-sub,
body.tet-binh-ngo .mobile-menu-toggle {
  color: var(--header-link);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
body.tet-binh-ngo .site-header .main-nav a:hover {
  color: #ffffff;
}
body.tet-binh-ngo .header-info {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--header-link);
}
body.tet-binh-ngo .header-info .header-meta { color: rgba(255, 251, 235, 0.75); }
html:not(.dark) body.tet-binh-ngo .site-header {
  box-shadow: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html:not(.dark) body.tet-binh-ngo .header-info {
  border-color: transparent;
  box-shadow: none;
}
html:not(.dark) body.tet-binh-ngo:not(.home) .logo span,
html:not(.dark) body.tet-binh-ngo:not(.home) .main-nav a,
html:not(.dark) body.tet-binh-ngo:not(.home) .main-nav .drawer-label,
html:not(.dark) body.tet-binh-ngo:not(.home) .main-nav .drawer-sub,
html:not(.dark) body.tet-binh-ngo:not(.home) .mobile-menu-toggle {
  color: var(--secondary);
  text-shadow: none;
}
html:not(.dark) body.tet-binh-ngo:not(.home) .header-info,
html:not(.dark) body.tet-binh-ngo:not(.home) .header-info .header-meta,
html:not(.dark) body.tet-binh-ngo:not(.home) .header-info .header-weather,
html:not(.dark) body.tet-binh-ngo:not(.home) .header-info #header-time,
html:not(.dark) body.tet-binh-ngo:not(.home) .header-info #header-date,
html:not(.dark) body.tet-binh-ngo:not(.home) .header-info #header-temp {
  color: var(--secondary);
}
html:not(.dark) body.tet-binh-ngo:not(.home) .site-header .container {
  background: transparent;
  box-shadow: none;
  border: none;
}
html:not(.dark) body.tet-binh-ngo .site-header .logo span,
html:not(.dark) body.tet-binh-ngo .site-header .main-nav a,
html:not(.dark) body.tet-binh-ngo .site-header .main-nav .drawer-label,
html:not(.dark) body.tet-binh-ngo .site-header .main-nav .drawer-sub,
html:not(.dark) body.tet-binh-ngo .site-header .mobile-menu-toggle {
  color: #f8fafc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
html:not(.dark) body.tet-binh-ngo .site-header .header-info,
html:not(.dark) body.tet-binh-ngo .site-header .header-info .header-meta,
html:not(.dark) body.tet-binh-ngo .site-header .header-info .header-weather,
html:not(.dark) body.tet-binh-ngo .site-header .header-info #header-time,
html:not(.dark) body.tet-binh-ngo .site-header .header-info #header-date,
html:not(.dark) body.tet-binh-ngo .site-header .header-info #header-temp {
  color: #f8fafc;
}
body.home .site-header .container {
  background: transparent;
  box-shadow: none;
  border: none;
}
body.home.tet-binh-ngo .hero {
  background-image:
    linear-gradient(120deg, rgba(92, 28, 5, 0.45) 0%, rgba(30, 16, 8, 0.25) 55%, rgba(2, 6, 23, 0.12) 100%),
    url('/images/banner.jpg');
  background-size: cover;
  background-position: center;
}
body.home.tet-binh-ngo .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%' stop-color='%23f59e0b' stop-opacity='0.35'/%3E%3Cstop offset='60%' stop-color='%23ef4444' stop-opacity='0.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-200 520 Q400 260 950 370 T1800 360' fill='none' stroke='url(%23g1)' stroke-width='90' stroke-linecap='round' stroke-opacity='0.55'/%3E%3Cpath d='M-120 740 Q520 520 1180 640 T1860 620' fill='none' stroke='%23fcd34d' stroke-width='70' stroke-linecap='round' stroke-opacity='0.32'/%3E%3Cpath d='M-80 280 Q500 180 980 240 T1740 220' fill='none' stroke='%23fbbf24' stroke-width='46' stroke-linecap='round' stroke-opacity='0.22'/%3E%3C/svg%3E") center/cover no-repeat;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}
body.home.tet-binh-ngo .hero-inner {
  position: relative;
  z-index: 2;
}
body.home.tet-binh-ngo .hero-badge {
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}
body.home.tet-binh-ngo .hero h1 .accent { color: #fde68a; }
body.home.tet-binh-ngo .hero .btn-primary {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}
body.home.tet-binh-ngo .hero .btn-secondary {
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fffbeb;
}
body.home.tet-binh-ngo .section-line {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}
body.home.tet-binh-ngo .section-head p {
  color: #7c5c3c;
}
body.home.tet-binh-ngo .intro-dark {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 45%),
              radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.12), transparent 45%),
              #fbf7ef;
}
body.home.tet-binh-ngo #fireworks-canvas {
  opacity: 0.7;
}
body.tet-binh-ngo {
  --primary: #f97316;
  --primary-2: #dc2626;
  --secondary: #fffbeb;
  --bg: #170807;
  --text: #fffbeb;
  --muted: rgba(255, 251, 235, 0.8);
  --card: rgba(16, 12, 8, 0.92);
  --border: rgba(251, 191, 36, 0.34);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  --grid: rgba(251, 191, 36, 0.05);
  --header-bg: rgba(34, 9, 6, 0.9);
  --header-border: rgba(251, 191, 36, 0.32);
  --header-border-strong: rgba(251, 191, 36, 0.52);
  --header-text: #fffbeb;
  --header-link: #fffbeb;
  --header-link-hover: #fcd34d;
  --drawer-bg: #1a0a07;
  --drawer-bg-strong: #2d0f0f;
  --drawer-overlay: rgba(16, 6, 3, 0.9);
  --drawer-outline: rgba(251, 191, 36, 0.28);
  background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.18), transparent 45%),
              radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.16), transparent 45%),
              linear-gradient(120deg, rgba(35, 12, 12, 0.98), rgba(17, 24, 39, 0.92));
  color: #fffbeb;
  --slider-edge-bg: rgba(35, 12, 12, 0.98);
}
body.tet-binh-ngo::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%' stop-color='%23f59e0b' stop-opacity='0.35'/%3E%3Cstop offset='60%' stop-color='%23ef4444' stop-opacity='0.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-200 520 Q400 260 950 370 T1800 360' fill='none' stroke='url(%23g1)' stroke-width='90' stroke-linecap='round' stroke-opacity='0.6'/%3E%3Cpath d='M-120 740 Q520 520 1180 640 T1860 620' fill='none' stroke='%23fcd34d' stroke-width='70' stroke-linecap='round' stroke-opacity='0.45'/%3E%3Cpath d='M-80 280 Q500 180 980 240 T1740 220' fill='none' stroke='%23fbbf24' stroke-width='46' stroke-linecap='round' stroke-opacity='0.3'/%3E%3C/svg%3E") center/cover no-repeat;
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}
body.tet-binh-ngo::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(251, 191, 36, 0.26), transparent 45%, rgba(239, 68, 68, 0.22)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 200% 100%, 200px 200px;
  opacity: 0.25;
  animation: scanline 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}
body.tet-binh-ngo > *:not(.site-header):not(.site-footer) {
  position: relative;
  z-index: 1;
}
body.tet-binh-ngo .section-line {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}
body.tet-binh-ngo .section-head p { color: rgba(255, 251, 235, 0.75); }
body.tet-binh-ngo h2,
body.tet-binh-ngo .section-head h2 { color: #fffbeb; }
body.tet-binh-ngo .intro-panel,
body.tet-binh-ngo .card,
body.tet-binh-ngo .highlight-card,
body.tet-binh-ngo .moment-card,
body.tet-binh-ngo .stat-card,
body.tet-binh-ngo .info-card,
body.tet-binh-ngo .accordion-item,
body.tet-binh-ngo .sidebar,
body.tet-binh-ngo .contact form,
body.tet-binh-ngo .card-list .card {
  background: linear-gradient(160deg, rgba(16, 12, 8, 0.88), rgba(103, 41, 13, 0.55));
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: #fffbeb;
}
body.tet-binh-ngo .sidebar {
  padding: 1.1em 1.2em;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 16px;
}
body.tet-binh-ngo .contact form,
body.tet-binh-ngo .accordion,
body.tet-binh-ngo .accordion-item {
  background: transparent;
  border: 1px solid rgba(251, 191, 36, 0.24);
  box-shadow: none;
}
body.tet-binh-ngo .accordion-title,
body.tet-binh-ngo .accordion-content {
  background: transparent;
  border: 0;
  color: #fffbeb;
}
body.tet-binh-ngo .achievements,
body.tet-binh-ngo .highlights {
  position: relative;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: auto;
}
body.tet-binh-ngo .achievements::before,
body.tet-binh-ngo .highlights::before {
  content: none;
}
body.tet-binh-ngo .achievements::after,
body.tet-binh-ngo .highlights::after {
  content: none;
}
body.tet-binh-ngo .achievements-grid,
body.tet-binh-ngo .highlights-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4em;
}
body.tet-binh-ngo .stat-card,
body.tet-binh-ngo .highlight-card,
body.tet-binh-ngo .card {
  background: linear-gradient(160deg, rgba(16, 12, 8, 0.9), rgba(103, 41, 13, 0.65));
  border: 1px solid rgba(251, 191, 36, 0.32);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
body.tet-binh-ngo .stat-card h3 { color: #facc15; text-shadow: 0 0 18px rgba(252, 211, 77, 0.35); }
body.tet-binh-ngo .stat-card p { color: rgba(255, 251, 235, 0.75); }
body.tet-binh-ngo .highlight-card img { height: 200px; }
body.tet-binh-ngo .intro-dark {
  background: transparent;
}
body.tet-binh-ngo .intro-dark::before {
  background-image: none;
}
body.tet-binh-ngo .site-footer {
  background: linear-gradient(120deg, rgba(35, 12, 12, 0.98), rgba(17, 24, 39, 0.92));
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  color: #fffbeb;
}
body.tet-binh-ngo .site-footer a { color: #fcd34d; }
body.tet-binh-ngo .site-footer a:hover { color: #fde68a; }
body.tet-binh-ngo .footer-title,
body.tet-binh-ngo .footer-group h4,
body.tet-binh-ngo .footer-credit { color: #fcd34d; }
body.tet-binh-ngo .footer-brand p,
body.tet-binh-ngo .footer-group li,
body.tet-binh-ngo .footer-bottom { color: rgba(255, 251, 235, 0.82); }
body.tet-binh-ngo .footer-divider {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.75), transparent);
}
body.tet-binh-ngo .intro-panel p,
body.tet-binh-ngo .card p,
body.tet-binh-ngo .highlight-card p,
body.tet-binh-ngo .moment-card span,
body.tet-binh-ngo .stat-card p,
body.tet-binh-ngo .info-card p,
body.tet-binh-ngo .accordion-content,
body.tet-binh-ngo .sidebar li,
body.tet-binh-ngo .contact label,
body.tet-binh-ngo .contact p {
  color: rgba(255, 251, 235, 0.78);
}
body.tet-binh-ngo input,
body.tet-binh-ngo textarea,
body.tet-binh-ngo select {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fffbeb;
}
body.tet-binh-ngo input::placeholder,
body.tet-binh-ngo textarea::placeholder {
  color: rgba(255, 251, 235, 0.45);
}
body.tet-binh-ngo .btn-primary {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}
body.tet-binh-ngo .btn-secondary {
  background: rgba(17, 24, 39, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fffbeb;
}
body.home .logo span,
body.home .main-nav a,
body.home .main-nav .drawer-label,
body.home .main-nav .drawer-sub,
body.home .mobile-menu-toggle {
  color: var(--header-link);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
body.home .main-nav a::after { background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
body.home .main-nav .btn {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff7ed;
  box-shadow: var(--shadow);
}
html:not(.dark) body.home .header-info {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--header-link);
  box-shadow: var(--shadow);
}
html:not(.dark) body.home .header-info .header-meta { color: var(--text-muted); }

@media (max-width: 1024px) {
  html:not(.dark) body.home .main-nav {
    background: var(--drawer-bg);
    border-left: 1px solid var(--drawer-outline);
    box-shadow: -12px 0 32px rgba(0,0,0,0.5);
  }
  html:not(.dark) body.home .main-nav .drawer-header {
    background: var(--drawer-bg-strong);
  }
  html:not(.dark) body.home .main-nav a,
  html:not(.dark) body.home .main-nav .drawer-label,
  html:not(.dark) body.home .main-nav .drawer-sub {
    color: var(--header-link);
    text-shadow: none;
  }
  html:not(.dark) body.home .main-nav a { border-bottom-color: var(--drawer-outline); }
  html:not(.dark) body.home .main-nav a:hover { color: var(--header-link-hover); }
  html:not(.dark) body.home .main-nav .btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #fff7ed;
    box-shadow: var(--shadow);
  }
  html:not(.dark) body.home .header-info {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  html:not(.dark) body.home .nav-overlay { background: var(--drawer-overlay); }
}

@media (max-width: 1024px) {
  html:not(.dark) body:not(.auth-page) .main-nav {
    background: var(--drawer-bg);
    border-left: 1px solid var(--drawer-outline);
    box-shadow: -12px 0 32px rgba(0,0,0,0.5);
  }
  html:not(.dark) body:not(.auth-page) .main-nav .drawer-header {
    background: var(--drawer-bg-strong);
  }
  html:not(.dark) body:not(.auth-page) .main-nav a,
  html:not(.dark) body:not(.auth-page) .main-nav .drawer-label,
  html:not(.dark) body:not(.auth-page) .main-nav .drawer-sub {
    color: var(--header-link);
    text-shadow: none;
  }
  html:not(.dark) body:not(.auth-page) .main-nav a { border-bottom-color: var(--drawer-outline); }
  html:not(.dark) body:not(.auth-page) .main-nav a:hover { color: var(--header-link-hover); }
  html:not(.dark) body:not(.auth-page) .main-nav .btn {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #fff7ed;
    box-shadow: var(--shadow);
  }
  html:not(.dark) body:not(.auth-page) .header-info {
    background: var(--surface);
    border: 1px solid var(--border);
  }
  html:not(.dark) body:not(.auth-page) .nav-overlay { background: var(--drawer-overlay); }
}

/* Align footer with Tet theme on auth pages (light mode) */
body.auth-page .site-footer {
  background: rgba(0, 0, 0, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #fffbeb;
}
body.auth-page .site-footer a { color: #fbbf24; }
body.auth-page .site-footer a:hover { color: #fde68a; }
body.auth-page .footer-title,
body.auth-page .footer-links > div h4,
body.auth-page .footer-credit { color: #fbbf24; }
body.auth-page .footer-brand p,
body.auth-page .footer-links > div li,
body.auth-page .footer-bottom { color: rgba(255, 255, 255, 0.82); }
body.auth-page .footer-divider {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.65), transparent);
}
/* Ensure header nav links are readable on home hero */
body.home .site-header .main-nav a {
  color: var(--header-link);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
body.home .site-header .main-nav a:hover {
  color: #ffffff;
}

.auth-form .form-hint { display: block; margin-top: 6px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

