:root {
  --pink: #ff4ecd;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --muted: #cbd5e1;
  --glass: rgb(255 255 255 / 0.06);
  --border: rgb(255 255 255 / 0.15);
}
* {
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #05030f;
  color: #f8fafc;
}
a {
  color: inherit;
}

/* Background — injected by site.js */
/* Soft edges come from the gradients, not filter: blur(), so the moving blobs don't force a full-screen blur every frame */
.aurora {
  position: fixed;
  inset: 0;
  opacity: 0.45;
}
.aurora span {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  /* Bell-shaped falloff + scale (separate from the animated transform) mimic the old 90px blur spread */
  background: radial-gradient(
    closest-side,
    var(--blob) 35%,
    color-mix(in srgb, var(--blob) 60%, transparent) 60%,
    color-mix(in srgb, var(--blob) 20%, transparent) 82%,
    transparent
  );
  scale: 1.45;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  top: -15%;
  left: -10%;
  --blob: var(--pink);
}
.aurora span:nth-child(2) {
  right: -10%;
  bottom: -20%;
  --blob: var(--violet);
  animation-duration: 22s;
  animation-delay: -6s;
}
.aurora span:nth-child(3) {
  top: 35%;
  left: 40%;
  width: 30vmax;
  height: 30vmax;
  --blob: var(--cyan);
  animation-duration: 26s;
  animation-delay: -12s;
}
/* Pointer spotlight; site.js moves it with transform instead of restyling <body> */
.glow {
  position: fixed;
  top: -500px;
  left: -500px;
  width: 1000px;
  height: 1000px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.08), transparent 60%);
  transform: translate(50vw, 50vh);
}
@keyframes drift {
  to {
    transform: translate(15vw, 10vh) scale(1.2) rotate(45deg);
  }
}
.stars {
  position: fixed;
  inset: 0;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff;
  animation: twinkle var(--d) ease-in-out var(--delay) infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}
.shooting {
  position: fixed;
  top: 8%;
  left: 75%;
  width: 160px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fff);
  opacity: 0;
  animation: shoot 9s ease-in infinite;
}
.shooting + .shooting {
  top: 30%;
  left: 98%;
  animation-delay: 4.5s;
}
@keyframes shoot {
  0% {
    opacity: 0;
    transform: rotate(145deg) translateX(0);
  }
  2% {
    opacity: 1;
  }
  12%,
  100% {
    opacity: 0;
    transform: rotate(145deg) translateX(700px);
  }
}

/* Layout */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(90deg, var(--pink), var(--amber), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgb(255 78 205 / 0.35));
}
.site-header nav {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(24 20 52 / 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* Per-channel accent, matched by href so the duplicated headers need no extra markup */
.site-header nav a[href*='khien-it'] {
  --accent: var(--cyan);
}
.site-header nav a[href*='tung-buoc-con-yeu'] {
  --accent: var(--pink);
}
.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 35%, #fff);
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.site-header nav a::before {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
/* Divider sits in the middle of the 0.75rem gap */
.site-header nav a + a::after {
  content: '';
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: calc(-0.375rem - 0.5px);
  width: 1px;
  background: rgb(255 255 255 / 0.5);
}
/* (hover: hover) everywhere below so hover styles don't stick after a tap on touch screens */
@media (hover: hover) {
  .site-header nav a:hover {
    background: var(--glass);
    color: #fff;
  }
}
.site-header nav a[aria-current] {
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
  color: #fff;
  font-weight: 600;
}
@media (max-width: 30rem) {
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .site-header nav {
    margin-left: 0;
  }
}
@media (max-width: 22.5rem) {
  .site-header nav {
    gap: 0.5rem;
  }
  .site-header nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
  .site-header nav a + a::after {
    left: calc(-0.25rem - 0.5px);
  }
}
main {
  flex: 1;
  padding-bottom: 4rem;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p {
  margin: 0;
}

/* Shared pieces */
/* Tinted lighter than the page bg so cards stay visible and readable wherever the aurora drifts */
.card {
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 1.25rem;
  background: rgb(24 20 52 / 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 30px 80px -20px rgb(0 0 0 / 0.8),
    inset 0 1px 0 rgb(255 255 255 / 0.1);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pills a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s;
}
@media (hover: hover) {
  .pills a:hover {
    border-color: var(--cyan);
  }
}
.icon {
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
}
.zalo {
  padding: 0.1em;
  border-radius: 0.35em;
  background: #0068ff;
  fill: #fff;
}
/* Darker than --pink/--violet so white text passes 4.5:1 contrast */
.button {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #c026d3, #7c3aed);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.button:focus-visible {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
@media (hover: hover) {
  .button:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
  }
}
.avatar {
  border: 3px solid rgb(255 255 255 / 0.2);
  border-radius: 1.25rem;
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.9);
}

/* Home */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  padding: 1rem 0 2rem;
}
.hero-body {
  display: flow-root;
  max-width: min(46rem, 100% - 6rem);
  padding: 2rem 2.25rem;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
@media (hover: hover) {
  .hero-body:hover {
    transform: translateY(-6px);
    border-color: rgb(255 255 255 / 0.35);
    box-shadow:
      0 40px 90px -20px rgb(0 0 0 / 0.9),
      0 0 50px -10px rgb(139 92 246 / 0.5),
      inset 0 1px 0 rgb(255 255 255 / 0.15);
  }
  .hero-body:hover .avatar {
    animation: wiggle 0.6s ease-in-out;
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-4deg);
  }
  40% {
    transform: rotate(3deg);
  }
  60% {
    transform: rotate(-2deg);
  }
  80% {
    transform: rotate(1deg);
  }
}
/* Negative margins push the photo out past the card's top-left corner */
.hero .avatar {
  float: left;
  width: 180px;
  height: 180px;
  margin: -5rem 1.75rem 0.75rem -5rem;
}
@media (max-width: 48rem) {
  .hero {
    gap: 3rem;
  }
  .hero-body {
    max-width: none;
    padding: 1.5rem 1.25rem;
  }
  .hero .avatar {
    width: 104px;
    height: 104px;
    margin: -3.5rem 1rem 0.5rem -1.75rem;
  }
}
.title {
  position: relative;
}
.title h1 {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--pink), var(--amber), var(--cyan), var(--violet), var(--pink));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgb(255 78 205 / 0.4));
  animation: flow 8s linear infinite;
}
/* 200% = exactly one gradient tile, so the loop has no visible jump */
@keyframes flow {
  to {
    background-position: 200% 0;
  }
}
.sparkle {
  position: absolute;
  color: #fff;
  text-shadow: 0 0 12px var(--amber);
  animation: twinkle 2.4s ease-in-out infinite;
}
.sparkle:nth-of-type(1) {
  top: -0.6em;
  left: -0.4em;
  font-size: 1.8rem;
}
.sparkle:nth-of-type(2) {
  top: 0.2em;
  right: -0.9em;
  font-size: 1.2rem;
  animation-delay: -0.8s;
}
.sparkle:nth-of-type(3) {
  bottom: -0.5em;
  left: 30%;
  font-size: 1rem;
  animation-delay: -1.6s;
}
.intro {
  color: #e2e8f0;
  font-size: 1.125rem;
  line-height: 1.75;
}
.intro p {
  margin: 0 0 1rem;
}
.intro p:last-child {
  margin-bottom: 0;
}
.intro .lead {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}
.intro a {
  color: var(--cyan);
}
/* inline-block so translateY applies; drop-shadow because text-shadow paints over clipped-text gradients */
.intro .channel {
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pink), var(--amber), var(--pink));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Longhands: Safari < 26.2 drops the whole text-decoration shorthand when it includes thickness/color */
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgb(255 78 205 / 0.5);
  text-underline-offset: 5px;
  transition:
    transform 0.25s ease,
    filter 0.25s ease,
    background-position 0.5s ease,
    text-decoration-color 0.25s;
}
.intro .channel:focus-visible {
  background-position: 100% 0;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 10px rgb(255 78 205 / 0.65));
  text-decoration-color: var(--amber);
}
@media (hover: hover) {
  .intro .channel:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 10px rgb(255 78 205 / 0.65));
    text-decoration-color: var(--amber);
  }
}
.zalo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: bottom;
  font-weight: 600;
}
.zalo-link .icon {
  width: 1.4em;
  height: 1.4em;
}

/* Inner pages */
.page-head {
  padding: 2.5rem 0 2rem;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.page-head p {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  color: #f1f5f9;
  font-size: 1.1rem;
}
.placeholder {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.placeholder p {
  margin: 0 0 1.25rem;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
