:root {
  --bg: #07060d;
  --bg-elevated: #0e0c16;
  --surface: #151222;
  --text: #f4f2ff;
  --muted: #9d96b8;
  --accent: #7c5cff;
  --accent-2: #ff5c8d;
  --accent-glow: rgba(124, 92, 255, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --header-h: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nl-flash {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(520px, 92vw);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: rgba(21, 18, 34, 0.95);
  border: 1px solid rgba(124, 92, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.95rem;
  color: var(--text);
  animation: nl-in 0.45s var(--ease-out-expo) forwards;
}

@keyframes nl-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p,
.about-card p,
.timeline-body p,
.contact-lead,
.footer-tagline,
.footer-note {
  line-height: 1.72;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

body:hover .cursor-glow {
  opacity: 0.35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem min(5vw, 3rem);
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(7, 6, 13, 0.92), transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 6, 13, 0.85);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px var(--accent-glow);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

.logo .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(7, 6, 13, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.mobile-nav a {
  opacity: 0;
  transform: translateY(20px);
}

.mobile-nav.open a {
  animation: mobile-link-in 0.5s var(--ease-out-expo) forwards;
}

.mobile-nav.open a:nth-child(1) {
  animation-delay: 0.05s;
}
.mobile-nav.open a:nth-child(2) {
  animation-delay: 0.1s;
}
.mobile-nav.open a:nth-child(3) {
  animation-delay: 0.15s;
}
.mobile-nav.open a:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes mobile-link-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float-orb 18s ease-in-out infinite;
}

.orb-1 {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  background: var(--accent);
  top: 10%;
  left: -10%;
}

.orb-2 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: var(--accent-2);
  bottom: 5%;
  right: -5%;
  animation-delay: -6s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: #5ce1ff;
  top: 40%;
  left: 40%;
  opacity: 0.25;
  animation-delay: -12s;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 25px) scale(0.95);
  }
}

.hero-inner {
  position: relative;
  max-width: 800px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-tag .line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line.accent {
  background: linear-gradient(105deg, var(--text) 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title .char {
  display: inline-block;
  transform: translateY(120%) rotate(6deg);
  opacity: 0;
}

.hero-title .char.in {
  animation: char-in 0.85s var(--ease-out-expo) forwards;
}

@keyframes char-in {
  to {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
}

.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #5b8dff);
  color: #fff;
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 48px rgba(124, 92, 255, 0.45);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin-inline: auto;
}

.stat {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  display: block;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce-hint 2.2s ease-in-out infinite;
}

@keyframes bounce-hint {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  position: relative;
  opacity: 0.7;
}

.mouse .wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.section-title .num {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

[data-reveal-section] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s var(--ease-out-expo);
}

[data-reveal-section].in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.about-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

.about-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card.wide {
  grid-column: span 2;
}

.about-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.about-card p {
  margin: 0;
  color: var(--muted);
}

.about-card:hover {
  border-color: rgba(124, 92, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.seo-summary {
  margin: 1.5rem 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 980px;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-card.wide {
    grid-column: span 1;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Tilt handled in JS — subtle perspective */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Skills */
.skills-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.skill-pct {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.skill-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px var(--accent-glow);
  transition: width 1.2s var(--ease-out-expo);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding: 1rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-inner {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Timeline */
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
  margin-left: 0.75rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item .year {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.timeline-body h3 {
  margin: 0.35rem 0 0.25rem;
  font-family: var(--font-display);
}

.timeline-body p {
  margin: 0;
  color: var(--muted);
}

/* Contact */
.contact-card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(145deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
}

.contact-lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.email-link {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 2rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-row a {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-row a:hover {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.1);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  color: #c8c2e0;
}

.footer-wave {
  color: var(--bg-elevated);
  line-height: 0;
  margin-bottom: -1px;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: clamp(48px, 8vw, 80px);
  animation: wave-breathe 8s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes wave-breathe {
  0%,
  100% {
    transform: scaleY(1) translateY(0);
  }
  50% {
    transform: scaleY(1.08) translateY(4px);
  }
}

.footer-inner {
  background: var(--bg-elevated);
  padding: 3rem min(5vw, 3rem) 2rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 2.2fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
}

.footer-logo span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 280px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--text);
  transform: translateX(4px);
}

.footer-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(157, 150, 184, 0.6);
}

.newsletter-form button {
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  background: linear-gradient(120deg, var(--accent), #5b8dff);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: rgba(124, 92, 255, 0.15);
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.4);
}

.footer-made {
  width: 100%;
  text-align: center;
  opacity: 0.75;
  padding-top: 0.5rem;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* —— Trang 404 —— */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.err-404-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.err-404-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float-orb 16s ease-in-out infinite;
}

.err-404-orb-1 {
  width: min(55vw, 400px);
  height: min(55vw, 400px);
  background: var(--accent);
  top: 15%;
  left: -15%;
}

.err-404-orb-2 {
  width: min(50vw, 360px);
  height: min(50vw, 360px);
  background: var(--accent-2);
  bottom: 10%;
  right: -10%;
  animation-delay: -5s;
}

.err-404-main {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 520px;
}

.err-404-code {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 18vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.95;
}

.err-404-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
}

.err-404-desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.err-404-uri {
  margin: 0 0 1.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

.err-404-uri code {
  font-size: 0.82rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.err-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Payment page — cùng palette với trang chủ */
.payment-page-body {
  padding-top: calc(var(--header-h) + 1.5rem);
}

.payment-section {
  position: relative;
  z-index: 2;
}

.payment-wrap {
  max-width: 520px;
}

.payment-lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.panel-like {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.payment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--text);
}

.payment-label input {
  font: inherit;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.payment-flash {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(124, 92, 255, 0.45);
  background: rgba(21, 18, 34, 0.9);
}

.payment-flash.err {
  border-color: rgba(255, 92, 141, 0.55);
  color: #ffc9d8;
}

.payment-meta {
  padding-left: 1.1rem;
  color: var(--muted);
}

.payment-qr-wrap {
  margin: 1.25rem 0;
  display: flex;
  justify-content: center;
}

.payment-qr {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.payment-note,
.payment-poll {
  font-size: 0.95rem;
  color: var(--muted);
}
