/* ═══════════════════════════════════════════════
   LANDING PAGE — GUEST VIEW (Chưa đăng nhập)
   Style: tối giản, dark, glassmorphism
   Zero PNG slider, Zero Firestore
   v7.88 — 2026-04-19
   ═══════════════════════════════════════════════ */

/* ── ANTI-FOUC: Ẩn cả 2 block mặc định ── */
#guest-landing-view,
#user-dashboard-view {
  display: none;
}

/* ── HERO SECTION ── */
.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  /* Gradient nền cổ trang tối */
  background: linear-gradient(135deg, #0a0a12 0%, #1a0f2e 40%, #0d1b2a 70%, #0a0a12 100%);
}

/* Particle/star effect bằng CSS thuần */
.landing-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,215,0,0.4), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,215,0,0.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(211,47,47,0.5), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,215,0,0.4), transparent),
    radial-gradient(1.5px 1.5px at 20% 85%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(211,47,47,0.4), transparent),
    radial-gradient(1px 1px at 45% 45%, rgba(255,215,0,0.35), transparent),
    radial-gradient(1px 1px at 65% 70%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 15% 50%, rgba(211,47,47,0.3), transparent);
  animation: landingStarDrift 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes landingStarDrift {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-15px) translateX(8px); }
  100% { transform: translateY(0) translateX(0); }
}

/* Circular glow behind hero content */
.landing-hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,47,47,0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  z-index: 0;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
}

/* ── HERO TEXT ── */
.landing-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(211,47,47,0.15);
  border: 1px solid rgba(211,47,47,0.35);
  color: #ff6b6b;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: landingFadeUp 0.8s ease both;
}

.landing-title {
  font-family: 'Quicksand', 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
  animation: landingFadeUp 0.8s ease 0.15s both;
}

.landing-title-accent {
  background: linear-gradient(135deg, #ffd700, #ff6b35, #d32f2f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-chinese {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: rgba(255,215,0,0.65);
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 6px;
  animation: landingFadeUp 0.8s ease 0.3s both;
}

.landing-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 550px;
  margin: 0 auto 40px;
  animation: landingFadeUp 0.8s ease 0.45s both;
}

/* ── CTA BUTTONS ── */
.landing-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: landingFadeUp 0.8s ease 0.6s both;
}

.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 14px;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #d32f2f, #ff5252);
  box-shadow: 0 8px 32px rgba(211,47,47,0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.landing-btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
}

.landing-btn-primary:hover::after {
  transform: rotate(45deg) translateX(100%);
}

.landing-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(211,47,47,0.5);
}

.landing-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,215,0,0.4);
  color: #ffd700;
  transform: translateY(-2px);
}

/* ── STATS BAR ── */
.landing-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 56px;
  animation: landingFadeUp 0.8s ease 0.75s both;
}

.landing-stat {
  text-align: center;
}

.landing-stat-value {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd700, #ff9800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── FEATURES SECTION (Glassmorphism) ── */
.landing-features {
  padding: 80px 5%;
  background: linear-gradient(180deg, #0a0a12 0%, #111827 100%);
}

.landing-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.landing-section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(255,215,0,0.1);
  color: #ffd700;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.landing-section-title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.landing-section-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin: 0 auto;
}

/* ── HIGHLIGHT CALLOUT (Tu Tiên System) ── */
.landing-highlight {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: rgba(255,215,0,0.04);
  border: 1px solid rgba(255,215,0,0.15);
  border-left: 4px solid rgba(255,215,0,0.6);
  border-radius: 16px;
  padding: 32px;
  max-width: 1100px;
  margin: 0 auto 48px;
}

.landing-highlight-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,152,0,0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffd700;
}

.landing-highlight-body h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.landing-highlight-body p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.landing-highlight-body strong {
  color: #ff6b6b;
}

.landing-highlight-body em {
  color: #ffd700;
  font-style: normal;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 36px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.landing-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #d32f2f), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.landing-feature-card:hover::before {
  opacity: 1;
}

.landing-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.landing-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: var(--card-icon-bg, rgba(211,47,47,0.15));
  color: var(--card-icon-color, #ff6b6b);
}

.landing-feature-card h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.landing-feature-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* Card accent colors */
.landing-feature-card:nth-child(1) { --card-accent: #d32f2f; --card-icon-bg: rgba(211,47,47,0.15); --card-icon-color: #ff6b6b; }
.landing-feature-card:nth-child(2) { --card-accent: #ffd700; --card-icon-bg: rgba(255,215,0,0.12); --card-icon-color: #ffd700; }
.landing-feature-card:nth-child(3) { --card-accent: #4fc3f7; --card-icon-bg: rgba(79,195,247,0.12); --card-icon-color: #4fc3f7; }
.landing-feature-card:nth-child(4) { --card-accent: #66bb6a; --card-icon-bg: rgba(102,187,106,0.12); --card-icon-color: #66bb6a; }

/* ── SOCIAL PROOF / TESTIMONIALS ── */
.landing-proof {
  padding: 80px 5%;
  background: #0a0a12;
}

.landing-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-proof-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s;
}

.landing-proof-card:hover {
  border-color: rgba(255,215,0,0.25);
}

.landing-proof-stars {
  color: #ffd700;
  font-size: 0.85rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.landing-proof-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: italic;
}

.landing-proof-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d32f2f, #ff9800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.landing-proof-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.landing-proof-role {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

/* ── CTA BOTTOM SECTION ── */
.landing-cta-section {
  padding: 80px 5%;
  text-align: center;
  background: linear-gradient(180deg, #111827 0%, #0a0a12 100%);
  position: relative;
}

.landing-cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,47,47,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.landing-cta-box {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.landing-cta-title {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.landing-cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ── ANIMATIONS ── */
@keyframes landingFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* IntersectionObserver will add this class */
.landing-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.landing-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .landing-hero {
    padding: 100px 16px 60px;
    min-height: auto;
  }

  .landing-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .landing-stat-value {
    font-size: 1.4rem;
  }

  .landing-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .landing-btn-primary,
  .landing-btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .landing-features,
  .landing-proof,
  .landing-cta-section {
    padding: 60px 16px;
  }

  .landing-highlight {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 24px 16px;
  }

  .landing-features-grid {
    grid-template-columns: 1fr;
  }

  .landing-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .landing-title {
    font-size: 1.8rem;
  }

  .landing-chinese {
    font-size: 1.2rem;
    letter-spacing: 3px;
  }

  .landing-feature-card {
    padding: 28px 20px;
  }
}

/* ── SCROLL HINT ── */
.landing-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: landingBounce 2s ease infinite;
}

.landing-scroll-hint i {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.25);
}

@keyframes landingBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── DEFAULT salary-tool background (xóa inline style) ── */
#salary-tool {
  background: #fff;
}

/* ═══════════════════════════════════════════════
   GUEST-MODE DARK THEME
   Áp dụng cho #register, #salary-tool, footer
   khi body.guest-mode (user chưa đăng nhập)
   ═══════════════════════════════════════════════ */

/* ── REGISTER FORM — Dark ── */
body.guest-mode #register {
  background: linear-gradient(180deg, #0a0a12 0%, #111827 100%);
  padding: 80px 5%;
}

body.guest-mode #register .form-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.guest-mode #register .form-box h2 {
  color: #ff6b6b !important;
}

body.guest-mode #register .form-box p {
  color: rgba(255,255,255,0.5) !important;
}

body.guest-mode #register .form-control {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-radius: 12px !important;
}

body.guest-mode #register .form-control::placeholder {
  color: rgba(255,255,255,0.35) !important;
}

body.guest-mode #register .form-control:focus {
  border-color: rgba(211,47,47,0.5) !important;
  outline: none;
}

body.guest-mode #register select.form-control {
  color: rgba(255,255,255,0.5) !important;
}

body.guest-mode #register select.form-control option {
  background: #1a1a2e;
  color: #fff;
}

body.guest-mode #register .btn-red {
  background: linear-gradient(135deg, #d32f2f, #ff5252) !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(211,47,47,0.35) !important;
}

/* ── SALARY TOOL — Dark ── */
body.guest-mode #salary-tool {
  background: #0a0a12 !important;
  padding: 80px 5% !important;
}

body.guest-mode #salary-tool .section-title {
  color: #fff !important;
}

body.guest-mode #salary-tool .section-subtitle {
  color: rgba(255,255,255,0.5) !important;
}

body.guest-mode .salary-input-box {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
}

body.guest-mode .salary-input-box h3 {
  color: #fff !important;
}

body.guest-mode .salary-input-box label {
  color: rgba(255,255,255,0.7) !important;
}

body.guest-mode .calc-select {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-radius: 10px !important;
}

/* Fix dropdown: option và optgroup phải có background rõ — tránh trắng xóa */
body.guest-mode .calc-select option {
  background: #16162a;
  color: #e8e8e8;
}

body.guest-mode .calc-select optgroup {
  background: #0d0d20;
  color: #ffd700;
  font-weight: 700;
  font-style: normal;
}

body.guest-mode .calc-select option:checked,
body.guest-mode .calc-select option:hover {
  background: #2a1a3e;
  color: #fff;
}

/* Dropdown popup: tránh bị cắt trên cùng trang — gợi ý browser mở xuống */
#calc-job {
  /* Giả định hướng: HTML native select không hỗ trợ điều khiển direction,
     nhưng đảm bảo container đủ padding-bottom cho dropdown popup */
  position: relative;
}

/* Container salary-tool: overflow visible để dropdown không bị clip */
body.guest-mode #salary-tool .salary-input-box {
  overflow: visible !important;
}

body.guest-mode .salary-placeholder {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 20px !important;
}

body.guest-mode .salary-placeholder p {
  color: rgba(255,255,255,0.35) !important;
}

body.guest-mode .salary-result-box {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 20px !important;
}

body.guest-mode .salary-result-box .result-header {
  color: #ffd700 !important;
}

body.guest-mode .salary-number {
  color: #fff !important;
}

/* Insight cards — nổi hơn, đệp hơn trên Dark Background [v7.97] */
body.guest-mode .salary-insights {
  color: rgba(255,255,255,0.8) !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.guest-mode .insight-item {
  background: rgba(76, 175, 80, 0.08) !important;
  border: 1px solid rgba(76, 175, 80, 0.25) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  color: rgba(255,255,255,0.85) !important;
}

body.guest-mode .insight-item i.fa-chart-line {
  color: #4caf50 !important;
}

body.guest-mode .insight-item i.fa-star {
  color: #ff9800 !important;
}

body.guest-mode .insight-item .fa-check-circle {
  color: #4caf50 !important;
}

body.guest-mode #skill-list {
  color: rgba(255,255,255,0.75) !important;
  margin-top: 8px !important;
  font-size: 0.88rem !important;
}

/* Insight advice — nổi nhất, vàng đồng dark */
body.guest-mode .insight-advice {
  background: rgba(251, 192, 45, 0.10) !important;
  border: 1px solid rgba(251, 192, 45, 0.35) !important;
  border-left: 4px solid #fbc02d !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  color: rgba(255,255,255,0.85) !important;
  box-shadow: 0 0 18px rgba(251,192,45,0.08) !important;
}

body.guest-mode .insight-advice strong {
  color: #ffd54f !important;
  font-size: 0.9rem !important;
}

body.guest-mode .insight-advice span {
  color: rgba(255,255,255,0.78) !important;
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
}

body.guest-mode .insight-item strong,
body.guest-mode .insight-advice strong {
  /* Already overridden above — keep for cascade safety */
  font-weight: 700 !important;
}

body.guest-mode #salary-tool .btn-red {
  background: linear-gradient(135deg, #d32f2f, #ff5252) !important;
  border: none !important;
  box-shadow: 0 8px 32px rgba(211,47,47,0.35) !important;
}

body.guest-mode #salary-tool .btn-outline {
  border-color: rgba(255,255,255,0.2) !important;
  color: rgba(255,255,255,0.7) !important;
}

body.guest-mode #salary-tool .btn-outline:hover {
  border-color: rgba(255,215,0,0.4) !important;
  color: #ffd700 !important;
}

/* ═══ ROOT CAUSE FIX: Body dark background ═══ */
body.guest-mode {
  background: #0a0a12 !important;
}

/* ── SEO LINKS — Dark + FULL WIDTH ── */
body.guest-mode .seo-links-container {
  background: #0d0d1a !important;
  max-width: none !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  border-bottom: none !important;
}

body.guest-mode .seo-links-title {
  color: rgba(255,255,255,0.7) !important;
}

body.guest-mode .seo-link-item {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.6) !important;
}

body.guest-mode .seo-link-item:hover {
  border-color: rgba(255,215,0,0.3) !important;
  color: #ffd700 !important;
}

/* ── FOOTER — Dark ── */
body.guest-mode #footer-placeholder {
  background: #0a0a12 !important;
}

body.guest-mode footer {
  background: #0d0d1a !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

body.guest-mode .footer-content {
  background: transparent !important;
}

body.guest-mode .copyright {
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

/* ═══════════════════════════════════════════════
   MARQUEE SHOWCASE — "Học Tiếng Trung để ?"
   Auto-scroll horizontal with glassmorphism cards
   ═══════════════════════════════════════════════ */
.landing-showcase {
  padding: 80px 0;
  background: linear-gradient(180deg, #0a0a12 0%, #111827 50%, #0a0a12 100%);
  overflow: hidden;
}

.landing-showcase .landing-section-header {
  padding: 0 5%;
}

/* Marquee track — infinite scroll */
.landing-marquee-wrapper {
  position: relative;
  margin-top: 48px;
}

.landing-marquee-wrapper::before,
.landing-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.landing-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #0a0a12 0%, transparent 100%);
}

.landing-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, #0a0a12 0%, transparent 100%);
}

.landing-marquee-track {
  display: flex;
  gap: 24px;
  animation: landingMarquee 30s linear infinite;
  width: max-content;
}



@keyframes landingMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual showcase card */
.landing-showcase-card {
  flex-shrink: 0;
  width: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.landing-showcase-card:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.landing-showcase-card:nth-child(even) {
  transform: rotate(1.5deg) translateY(20px);
}

.landing-showcase-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.03) !important;
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.landing-showcase-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.landing-showcase-card:hover .landing-showcase-img {
  transform: scale(1.08);
}

.landing-showcase-info {
  padding: 18px 20px;
}

.landing-showcase-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.landing-showcase-tag.tag-pro { background: rgba(211,47,47,0.2); color: #ff6b6b; }
.landing-showcase-tag.tag-tech { background: rgba(76,175,80,0.2); color: #66bb6a; }
.landing-showcase-tag.tag-partner { background: rgba(255,152,0,0.2); color: #ffb74d; }
.landing-showcase-tag.tag-culture { background: rgba(79,195,247,0.2); color: #4fc3f7; }

.landing-showcase-info h4 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.landing-showcase-info p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 768px) {
  .landing-showcase {
    padding: 60px 0;
  }
  .landing-showcase-card {
    width: 260px;
  }
  .landing-showcase-card:nth-child(odd),
  .landing-showcase-card:nth-child(even) {
    transform: none;
  }
  .landing-showcase-img {
    height: 180px;
  }
  .landing-marquee-wrapper::before,
  .landing-marquee-wrapper::after {
    width: 40px;
  }
}

/* ═══════════════════════════════════════════════
   REVIEW SYSTEM — Đánh giá thực từ người dùng
   Auto-scroll marquee + Form modal
   ═══════════════════════════════════════════════ */

/* Section wrapper */
.landing-reviews {
  padding: 80px 0;
  background: linear-gradient(180deg, #0a0a12 0%, #0f0f1e 100%);
  overflow: hidden;
}

.landing-reviews .landing-section-header {
  padding: 0 5%;
}

/* Summary stats bar */
.rv-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.rv-stat-avg {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffd700;
  line-height: 1;
}

.rv-stat-stars {
  font-size: 1.2rem;
  color: #ffd700;
  letter-spacing: 2px;
}

.rv-stat-count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Marquee wrapper */
.rv-marquee-wrapper {
  position: relative;
  margin-top: 40px;
  overflow-x: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.rv-marquee-wrapper::before,
.rv-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.rv-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #0a0a12, transparent);
}

.rv-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, #0f0f1e, transparent);
}

.rv-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 10px 0;
  /* No CSS animation — driven by JS rAF */
}


/* ── Review Card ── */
.rv-card {
  flex-shrink: 0;
  width: 340px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  transition: all 0.35s ease;
}

.rv-card:hover {
  border-color: rgba(255,215,0,0.25);
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.rv-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.rv-user-info {
  flex: 1;
  min-width: 0;
}

.rv-name {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.rv-own-badge {
  font-size: 0.6rem;
  background: rgba(76,175,80,0.2);
  color: #66bb6a;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
}

/* Thumbnail / Platform icon (right side) */
.rv-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.rv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-platform-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* Stars */
.rv-stars {
  font-size: 0.9rem;
  color: #ffd700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* Comment */
.rv-comment {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

/* Footer: type + level + job */
.rv-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}

.rv-type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 4px;
}

.rv-type-student {
  background: rgba(76,175,80,0.15);
  color: #66bb6a;
}

.rv-type-user {
  background: rgba(33,150,243,0.15);
  color: #42a5f5;
}

.rv-level {
  font-size: 0.72rem;
  color: rgba(255,215,0,0.8);
  font-weight: 600;
}

.rv-job {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* Admin controls */
.rv-admin {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s;
}

.rv-card:hover .rv-admin {
  opacity: 1;
}

.rv-admin-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: 0.2s;
}

.rv-edit {
  background: rgba(33,150,243,0.2);
  color: #42a5f5;
}

.rv-edit:hover {
  background: rgba(33,150,243,0.4);
}

.rv-del {
  background: rgba(244,67,54,0.2);
  color: #ef5350;
}

.rv-del:hover {
  background: rgba(244,67,54,0.4);
}

/* ── Write CTA ── */
.rv-cta-row {
  text-align: center;
  margin-top: 36px;
  padding: 0 5%;
}

#rvWriteBtn {
  display: none; /* Hidden until auth resolves */
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,152,0,0.1));
  border: 1px solid rgba(255,215,0,0.3);
  color: #ffd700;
  padding: 12px 28px;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

#rvWriteBtn:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,152,0,0.2));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,215,0,0.15);
}

.rv-hall-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.rv-hall-link:hover {
  color: #ffd700;
}

/* ═══════════════════════════════════════════════
   REVIEW FORM MODAL
   ═══════════════════════════════════════════════ */
#reviewModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.rv-form {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  width: 90%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  color: #fff;
}

.rv-form h3 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.rv-form h3 i {
  color: #ffd700;
  margin-right: 8px;
}

.rv-form label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  font-weight: 600;
}

/* Type toggle */
.rv-type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.rv-type-toggle button {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.rv-type-toggle button.active {
  border-color: rgba(255,215,0,0.4);
  background: rgba(255,215,0,0.1);
  color: #ffd700;
}

.rv-type-toggle button i {
  margin-right: 6px;
}

/* Star input */
.rv-star-input {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  justify-content: center;
}

.rv-star-input i {
  font-size: 2rem;
  color: #ffd700;
  cursor: pointer;
  transition: transform 0.15s;
}

.rv-star-input i:hover {
  transform: scale(1.2);
}

/* Text inputs */
.rv-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.rv-input:focus {
  outline: none;
  border-color: rgba(255,215,0,0.4);
}

select.rv-input {
  background-color: #1a1a2e;
  color: #fff;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.rv-input option {
  background-color: #1a1a2e;
  color: #fff;
}

.rv-input::placeholder {
  color: rgba(255,255,255,0.25);
}

textarea.rv-input {
  resize: vertical;
  min-height: 80px;
}

.rv-char-count {
  text-align: right;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: -12px;
  margin-bottom: 12px;
}

/* Action buttons */
.rv-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.rv-form-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

#rvCancelBtn {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}

#rvCancelBtn:hover {
  background: rgba(255,255,255,0.1);
}

#rvSubmitBtn {
  background: linear-gradient(135deg, #d32f2f, #c62828);
  color: white;
}

#rvSubmitBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(211,47,47,0.4);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .landing-reviews {
    padding: 60px 0;
  }
  .rv-card {
    width: 280px;
    padding: 18px;
  }
  .rv-marquee-wrapper::before,
  .rv-marquee-wrapper::after {
    width: 30px;
  }
  .rv-stat-avg {
    font-size: 1.6rem;
  }
  .rv-form {
    padding: 24px 18px;
    max-width: 100%;
    margin: 0 10px;
  }
}

/* ═══════════════════════════════════════════════
   GUEST LOGIN CTA (Landing Reviews)
   ═══════════════════════════════════════════════ */
.rv-login-cta {
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  padding: 12px 28px;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.rv-login-cta:hover {
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.3);
  color: #ffd700;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   MY REVIEW — Dashboard Widget
   ═══════════════════════════════════════════════ */
.my-review-section {
  padding: 30px 5% 40px;
}

.my-review-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
}

.my-review-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.my-review-title i {
  margin-right: 8px;
}

/* Card preview inside dashboard */
.my-review-card-preview {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

.my-review-card-preview .rv-card-header {
  margin-bottom: 10px;
}

.my-review-card-preview .rv-stars {
  font-size: 1rem;
  margin-bottom: 8px;
}

.my-review-card-preview .rv-comment {
  -webkit-line-clamp: unset;
  color: rgba(255,255,255,0.65);
}

/* Action buttons */
.my-review-actions {
  display: flex;
  gap: 10px;
}

.my-review-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.my-review-edit {
  background: rgba(33,150,243,0.15);
  color: #42a5f5;
}

.my-review-edit:hover {
  background: rgba(33,150,243,0.25);
}

.my-review-delete {
  background: rgba(244,67,54,0.12);
  color: #ef5350;
}

.my-review-delete:hover {
  background: rgba(244,67,54,0.22);
}

.my-review-write {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,152,0,0.1));
  border: 1px solid rgba(255,215,0,0.3);
  color: #ffd700;
  margin-top: 8px;
}

.my-review-write:hover {
  background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,152,0,0.2));
}
