* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ── LANDING ── */
.landing-body {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.12), transparent 20%),
              radial-gradient(circle at 80% 15%, rgba(139, 124, 246, 0.16), transparent 15%),
              linear-gradient(180deg, #07142a 0%, #0c1d3d 45%, #090715 100%);
  color: #E5E7EB;
  display: flex;
  flex-direction: column;
  position: relative;
}

.landing-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
  opacity: 0.35;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #1a0505 0%, #0a0e1a 40%, #0d1b3e 100%);
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.b1 { width: 520px; height: 520px; background: radial-gradient(circle, #7C3AED, #4C1D95); top: -120px; right: -120px; animation-duration: 9s; }
.b2 { width: 420px; height: 420px; background: radial-gradient(circle, #0F766E, #115E59); bottom: -100px; left: -100px; animation-duration: 11s; animation-delay: -3s; }
.b3 { width: 300px; height: 300px; background: radial-gradient(circle, #6D28D9, #7C3AED); bottom: 10%; right: 20%; animation-duration: 7s; animation-delay: -1.5s; opacity: 0.35; }
.b4 { width: 250px; height: 250px; background: radial-gradient(circle, #134E4A, #0F766E); top: 20%; left: 15%; animation-duration: 10s; animation-delay: -5s; opacity: 0.30; }

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.08); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden; /* hạt trang trí không được thò ra mép viewport (mobile) */
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-wrapper {
  width: 100%;
  max-width: 760px;
}

.card {
  background: rgba(30, 10, 10, 0.65);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 2.8rem 2.4rem;
  box-shadow: 0 0 0 1px rgba(139, 124, 246, 0.25), 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: cardAppear 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
  position: relative;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #7C3AED, #0F766E);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 124, 246, 0.5), 0 2px 8px rgba(45, 212, 191, 0.4);
  animation: iconPulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(139, 124, 246, 0.5), 0 2px 8px rgba(45, 212, 191, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(139, 124, 246, 0.8), 0 2px 12px rgba(45, 212, 191, 0.6); }
}

.logo-icon svg { width: 22px; height: 22px; }

.logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #A78BFA 0%, #FFFFFF 40%, #2DD4BF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-main {
  padding: 14px 32px;
  border: none;
  border-radius: 13px;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.3s;
  margin-bottom: 0;
  background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 50%, #0F766E 100%);
  box-shadow: 0 12px 26px rgba(139, 124, 246, 0.35);
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(139, 124, 246, 0.45);
}

.btn-main:active { transform: scale(0.98); }

.btn-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.particle {
  position: absolute;
  left: var(--x);
  bottom: -8px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--color);
  opacity: 0.9;
  animation: riseParticle var(--duration) linear infinite;
}

@keyframes riseParticle {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translateY(-130vh) translateX(calc((var(--x) - 50%) * 0.4)); opacity: 0; }
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(4, 16, 36, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.landing-logo {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(90deg, #8B7CF6 0%, #A78BFA 35%, #5EEAD4 70%, #2DD4BF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing-logo .blue { color: unset; }
.landing-logo .red  { color: unset; }

.nav-actions { display: flex; gap: 12px; }

.btn-outline {
  padding: 10px 22px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #F8FAFC;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.12); }

.btn-primary {
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #8B7CF6, #6D4FE0);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(139, 124, 246, 0.45); }

.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
  background: rgba(255,255,255,0.03);
  border-radius: 28px;
  margin: 0 auto 40px;
  max-width: 1120px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: none;
  box-shadow: none;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(94, 149, 255, 0.14), transparent 20%),
              radial-gradient(circle at bottom right, rgba(255, 92, 98, 0.12), transparent 22%);
  pointer-events: none;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.2;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-title .blue { color: #9BB7FF; }
.hero-title .red  { color: #FF8B86; }

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }

.btn-hero-primary {
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #5cb0ff, #87a4ff);
  color: #07142a;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(45, 212, 191, 0.3);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(45, 212, 191, 0.35); }

.btn-hero-outline {
  padding: 14px 32px;
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.14); }

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}
.hero-stat { text-align: center; }
.hero-stat-val { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stat-lbl { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  width: 100%;
}
.feature-card {
  background: rgba(20, 32, 60, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: left;
  backdrop-filter: blur(16px);
  transition: all 0.2s;
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(93,158,255,0.4); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #F8FAFC; }
.feature-desc { font-size: 14px; color: rgba(226,232,255,0.78); line-height: 1.6; }

.landing-section {
  padding: 80px 24px;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}
.section-heading {
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 18px;
  color: #F8FAFC;
  text-align: center;
}
.section-sub {
  color: rgba(226,232,255,0.68);
  max-width: 760px;
  margin: 0 auto 42px;
  line-height: 1.75;
  font-size: 16px;
  text-align: center;
}
.section-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.section-card {
  background: rgba(16, 26, 50, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.25s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.section-card:hover { transform: translateY(-6px); border-color: rgba(93,158,255,0.4); }
.section-card strong { display: block; font-size: 18px; margin-bottom: 12px; color: #F8FAFC; }
.section-card p { color: rgba(226,232,255,0.74); line-height: 1.75; font-size: 15px; }
.testimonial-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 24px;
}
.testimonial-card {
  background: rgba(11, 22, 43, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.testimonial-card p {
  font-size: 15px;
  color: rgba(226,232,255,0.8);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(93,158,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #A5C8FF;
}
.testimonial-author-info { color: #F8FAFC; }
.testimonial-author-info strong { display: block; font-size: 15px; margin-bottom: 4px; }
.testimonial-author-info span { color: rgba(226,232,255,0.6); font-size: 13px; }
.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(74,158,224,0.1);
  border: 1px solid rgba(74,158,224,0.2);
  border-radius: 999px;
  padding: 12px 18px;
  color: #4A9EE0;
  font-size: 14px;
  margin-bottom: 18px;
}
.cta-panel {
  background: rgba(13, 27, 50, 0.96);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 32px;
  padding: 46px 38px;
  text-align: center;
  margin-top: 40px;
  color: #F8FAFC;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.cta-panel h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 18px; color: #F8FAFC; }
.cta-panel p {
  color: rgba(226,232,255,0.78);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 700px;
}
@media (max-width: 860px) {
  .landing-section { padding: 60px 18px; }
  .section-grid, .testimonial-grid, .features-grid { grid-template-columns: 1fr; }
}

.landing-footer {
  text-align: center;
  padding: 24px;
  color: rgba(226,232,255,0.6);
  font-size: 13px;
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── AUTH PAGES (Login / Register) ── */
.auth-body {
  min-height: 100vh;
  background: #F0F4F8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #1A6BB5 0%, #6B5BA6 35%, #B84D5F 70%, #8B7CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo .blue { color: unset; }
.auth-logo .red  { color: unset; }

.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  margin-top: 20px;
}
.auth-sub {
  text-align: center;
  font-size: 14px;
  color: #9CA3AF;
  margin-bottom: 32px;
}

.auth-field { margin-bottom: 18px; }
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
}
.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.2s;
}
.auth-input:focus { border-color: #4A9EE0; }

.auth-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #DC2626;
  margin-bottom: 16px;
  display: none;
}

.auth-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4A9EE0, #2D7FC1);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px #4A9EE040; }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-divider {
  text-align: center;
  margin: 24px 0 0;
  font-size: 14px;
  color: #9CA3AF;
}
.auth-divider a { color: #4A9EE0; font-weight: 600; text-decoration: none; }
.auth-divider a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .landing-nav { padding: 20px 24px; }
  .hero-stats { gap: 28px; }
}

/* ── NEON & DARK MODE REVAMP ── */
.neon-badge {
  background: rgba(139, 124, 246, 0.05);
  border: 1px solid rgba(139, 124, 246, 0.3);
  box-shadow: 0 0 10px rgba(139, 124, 246, 0.1), inset 0 0 10px rgba(139, 124, 246, 0.05);
  color: #8B7CF6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.neon-text {
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.neon-cyan {
  color: #8B7CF6;
  text-shadow: 0 0 10px rgba(139, 124, 246, 0.5), 0 0 20px rgba(139, 124, 246, 0.3);
}
.testimonial-card p {
  font-size: 15px;
  color: rgba(226,232,255,0.8);
  line-height: 1.8;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(93,158,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #A5C8FF;
}
.testimonial-author-info { color: #F8FAFC; }
.testimonial-author-info strong { display: block; font-size: 15px; margin-bottom: 4px; }
.testimonial-author-info span { color: rgba(226,232,255,0.6); font-size: 13px; }
.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(74,158,224,0.1);
  border: 1px solid rgba(74,158,224,0.2);
  border-radius: 999px;
  padding: 12px 18px;
  color: #4A9EE0;
  font-size: 14px;
  margin-bottom: 18px;
}
.cta-panel {
  background: rgba(13, 27, 50, 0.96);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 32px;
  padding: 46px 38px;
  text-align: center;
  margin-top: 40px;
  color: #F8FAFC;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.cta-panel h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 18px; color: #F8FAFC; }
.cta-panel p {
  color: rgba(226,232,255,0.78);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 700px;
}
@media (max-width: 860px) {
  .landing-section { padding: 60px 18px; }
  .section-grid, .testimonial-grid, .features-grid { grid-template-columns: 1fr; }
}

.landing-footer {
  text-align: center;
  padding: 24px;
  color: rgba(226,232,255,0.6);
  font-size: 13px;
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── AUTH PAGES (Login / Register) ── */
.auth-body {
  min-height: 100vh;
  background: #F0F4F8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #1A6BB5 0%, #6B5BA6 35%, #B84D5F 70%, #8B7CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-logo .blue { color: unset; }
.auth-logo .red  { color: unset; }

.auth-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  margin-top: 20px;
}
.auth-sub {
  text-align: center;
  font-size: 14px;
  color: #9CA3AF;
  margin-bottom: 32px;
}

.auth-field { margin-bottom: 18px; }
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
}
.auth-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.2s;
}
.auth-input:focus { border-color: #4A9EE0; }

.auth-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #DC2626;
  margin-bottom: 16px;
  display: none;
}

.auth-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4A9EE0, #2D7FC1);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px #4A9EE040; }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-divider {
  text-align: center;
  margin: 24px 0 0;
  font-size: 14px;
  color: #9CA3AF;
}
.auth-divider a { color: #4A9EE0; font-weight: 600; text-decoration: none; }
.auth-divider a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .landing-nav { padding: 20px 24px; }
  .hero-stats { gap: 28px; }
}

/* ── NEON & DARK MODE REVAMP ── */
.neon-badge {
  background: rgba(139, 124, 246, 0.05);
  border: 1px solid rgba(139, 124, 246, 0.3);
  box-shadow: 0 0 10px rgba(139, 124, 246, 0.1), inset 0 0 10px rgba(139, 124, 246, 0.05);
  color: #8B7CF6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.neon-text {
  text-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.neon-cyan {
  color: #8B7CF6;
  text-shadow: 0 0 10px rgba(139, 124, 246, 0.5), 0 0 20px rgba(139, 124, 246, 0.3);
}
.neon-pink {
  color: #2DD4BF;
  text-shadow: 0 0 10px rgba(45, 212, 191, 0.5), 0 0 20px rgba(45, 212, 191, 0.3);
}

.neon-btn {
  background: transparent !important;
  border: 2px solid #8B7CF6 !important;
  color: #8B7CF6 !important;
  box-shadow: 0 0 15px rgba(139, 124, 246, 0.4), inset 0 0 10px rgba(139, 124, 246, 0.2) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.neon-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #8B7CF6 0%, #6D4FE0 100%);
  transition: all 0.4s ease;
  z-index: -1;
}
.neon-btn:hover {
  color: #fff !important;
  box-shadow: 0 0 30px rgba(139, 124, 246, 0.8), inset 0 0 20px rgba(139, 124, 246, 0.5) !important;
  transform: translateY(-2px);
}
.neon-btn:hover::before {
  left: 0;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}
.glass-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.neon-glow-text {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(139, 124, 246, 0.5);
}

.neon-text-sm {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* 3D Grid & Cards */
.grid-3D {
  perspective: 1000px;
}
.neon-card {
  background: rgba(10, 14, 25, 0.8) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 124, 246, 0.15) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(139, 124, 246, 0.02) !important;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease !important;
  transform-style: preserve-3d;
}
.neon-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) !important;
  border-color: rgba(139, 124, 246, 0.6) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 124, 246, 0.2), inset 0 0 15px rgba(139, 124, 246, 0.1) !important;
}

.neon-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(139, 124, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B7CF6;
  margin-bottom: 20px;
  border: 1px solid rgba(139, 124, 246, 0.3);
  box-shadow: 0 0 15px rgba(139, 124, 246, 0.2);
  transition: all 0.3s ease;
}
.neon-card:hover .neon-icon {
  background: #8B7CF6;
  color: #000;
  box-shadow: 0 0 25px rgba(139, 124, 246, 0.6);
  transform: scale(1.1) translateZ(20px);
}
.neon-icon svg {
  width: 28px;
  height: 28px;
}

.neon-pill {
  background: rgba(139, 124, 246, 0.1) !important;
  border: 1px solid rgba(139, 124, 246, 0.3) !important;
  color: #8B7CF6 !important;
  box-shadow: 0 0 10px rgba(139, 124, 246, 0.1) !important;
}
.neon-card:hover .neon-pill {
  box-shadow: 0 0 20px rgba(139, 124, 246, 0.4) !important;
  border-color: rgba(139, 124, 246, 0.6) !important;
}
.neon-pill svg {
  margin-right: 6px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease !important;
}
.glass-card:hover {
  transform: translateY(-5px) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.neon-border {
  border: 2px solid #8B7CF6;
  box-shadow: 0 0 10px rgba(139, 124, 246, 0.3);
  color: #8B7CF6;
  background: rgba(139, 124, 246, 0.1) !important;
}

.neon-cta {
  background: rgba(5, 8, 15, 0.8) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 124, 246, 0.2) !important;
  box-shadow: 0 0 40px rgba(139, 124, 246, 0.1), inset 0 0 20px rgba(139, 124, 246, 0.05) !important;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Centering Hero Section */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-sub {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

/* ── Global focus-visible ring (a11y) ────────────────────────────
   Override outline:none patterns; show ring only when keyboard nav */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #06B6D4;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25);
  border-radius: inherit;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) { outline: none; }

/* ── Trust cards (replaces fake testimonials) ── */
.trust-card { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.trust-stat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.trust-stat-val { font-size: 28px; font-weight: 800; line-height: 1; }
.trust-stat-lbl { font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 500; }
.trust-quote { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.78); font-style: italic; margin: 0; }
.trust-note { font-size: 11px; color: rgba(255,255,255,0.40); border-top: 1px solid rgba(255,255,255,0.08); padding-top: 10px; }
.trust-card .trust-quote { margin-bottom: 14px; }

/* ── Course preview cards (landing — fetched from /api/courses) ── */
.course-preview-card { text-decoration: none; color: inherit; cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; }
.course-preview-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(6, 182, 212, 0.25); }
.course-preview-card .course-preview-meta { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 6px; background: rgba(6, 182, 212, 0.15); color: #06B6D4; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }

/* ── Project grid (landing — "Bạn sẽ xây dựng được gì?") ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.project-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 0; overflow: hidden;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(6, 182, 212, 0.22); }
.project-thumb {
  height: 110px; position: relative; display: flex; align-items: center; justify-content: center;
}
.project-thumb-icon { font-size: 48px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.project-card > strong { padding: 0 16px; font-size: 16px; color: #fff; }
.project-card > p { padding: 0 16px; margin: 0; color: rgba(229, 231, 235, 0.78); font-size: 13px; line-height: 1.55; }
.project-tag { margin: 8px 16px 16px; padding: 4px 10px; align-self: flex-start; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #94A3B8; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }

/* Nhãn "chờ TopHSA xác nhận" cho số liệu về CẤU TRÚC KỲ THI (2026-08-14).
   Số bài, số khoá là dữ liệu của mình — đếm được, khẳng định được. Số câu mỗi
   đề, lịch thi, thang điểm là dữ liệu của kỳ thi — không tự khẳng định. */
.stat-note-mark { color: #A78BFA; font-size: .85em; }
.stat-note {
  margin: 14px auto 0; max-width: 620px;
  font-size: 12.5px; line-height: 1.6; text-align: center;
  color: rgba(226, 232, 240, .62);
}
.stat-note sup { color: #A78BFA; }

/* An toàn cho hiệu ứng cuộn (2026-08-14).
   `.reveal-on-scroll` để opacity:0 và chỉ JS mới thêm `.visible`. Nghĩa là JS
   hỏng, trình duyệt không hỗ trợ IntersectionObserver, hoặc observer lỡ nhịp →
   TOÀN BỘ trang dưới hero biến mất. Với một trang gửi cho đối tác xem thì đó là
   rủi ro không đáng có. Hai lớp chặn: */

/* 1. Người tắt hiệu ứng chuyển động thì thấy nội dung ngay, không chờ cuộn. */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* 2. `html.no-js` do chính script hiệu ứng gỡ bỏ — script không chạy được thì
      lớp này còn nguyên và nội dung vẫn hiện. */
html.no-js .reveal-on-scroll { opacity: 1; transform: none; }
