/* ===================================================
   NIPPON TOKUTEI - Premium Landing Page
   Dark Luxury UI | Japanese Modern Futuristic
   =================================================== */

/* ---------- Google Fonts: load bằng <link> trong index.html (tránh @import chặn render) ---------- */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: rgba(20, 20, 20, 0.6);

  --gold-warm: #c9a45c;
  --gold-light: #e8c978;
  --gold-deep: #8b6914;
  --gold-glow: rgba(201, 164, 92, 0.3);

  --wood-brown: #3d2b1f;
  --wood-light: #5a3d2b;
  --wood-warm: #7a5a3f;

  --text-primary: #f5f0e8;
  --text-secondary: rgba(245, 240, 232, 0.7);
  --text-muted: rgba(245, 240, 232, 0.4);

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(201, 164, 92, 0.15);
  --glass-shadow: rgba(0, 0, 0, 0.4);

  --accent-red: #c45050;
  --accent-warm: #d4946a;

  /* Typography */
  --font-display: 'Outfit', 'Be Vietnam Pro', sans-serif;
  --font-body: 'Be Vietnam Pro', 'Inter', sans-serif;
  --font-japanese: 'Noto Serif JP', serif;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 140px);
  --container-width: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;

  /* Transitions */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) var(--bg-primary);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-deep);
  border-radius: 3px;
}

/* ---------- Loading Screen ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-premium), visibility 0.8s;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold-warm);
  text-shadow: 0 0 40px var(--gold-glow);
  animation: loadPulse 2s var(--ease-smooth) infinite;
  align-self: stretch;          /* chiếm đủ bề ngang để canh giữa chuẩn */
  text-align: center;
  text-indent: 0.3em;           /* bù khoảng letter-spacing thừa bên phải */
  padding: 0 16px;
  line-height: 1.15;
  box-sizing: border-box;
}

.loading-bar-container {
  width: 200px;
  height: 2px;
  background: rgba(201, 164, 92, 0.1);
  border-radius: 1px;
  margin-top: 30px;
  overflow: hidden;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-warm), var(--gold-light));
  border-radius: 1px;
  animation: loadProgress 2s var(--ease-premium) forwards;
}

.loading-subtitle {
  font-family: var(--font-japanese);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.2em;
}

@keyframes loadPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes loadProgress {
  0% { width: 0%; }
  50% { width: 60%; }
  100% { width: 100%; }
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease-premium);
}

.navbar.scrolled {
  padding: 14px 40px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-japanese);
  font-size: 1.1rem;
  color: var(--bg-primary);
  font-weight: 700;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-warm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-warm);
  transition: width 0.4s var(--ease-premium);
}

.nav-links a:hover {
  color: var(--gold-warm);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  border: 1px solid var(--gold-warm) !important;
  border-radius: 6px;
  color: var(--gold-warm) !important;
  font-weight: 500 !important;
  transition: all 0.3s var(--ease-smooth) !important;
}

.nav-cta:hover {
  background: var(--gold-warm) !important;
  color: var(--bg-primary) !important;
  box-shadow: 0 0 30px var(--gold-glow) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;   /* vùng chạm đủ lớn trên mobile */
  padding: 4px;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold-warm);
  transition: all 0.3s var(--ease-smooth);
}

/* ---------- Particles Canvas ---------- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* tránh nhảy layout khi thanh địa chỉ mobile ẩn/hiện */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
  transform: scale(1.1);
  transition: transform 0.1s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center bottom, rgba(201, 164, 92, 0.08) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.1) 40%, rgba(10, 10, 10, 0.7) 80%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-fog {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.4;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201, 164, 92, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(201, 164, 92, 0.04) 0%, transparent 50%);
  animation: fogDrift 15s ease-in-out infinite alternate;
}

@keyframes fogDrift {
  0% { transform: translateX(-20px) translateY(0); }
  100% { transform: translateX(20px) translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1.2s var(--ease-premium) 0.7s forwards;
}

.hero-title .gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-warm), var(--gold-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-jp {
  font-family: var(--font-japanese);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s var(--ease-premium) 0.9s forwards;
}

.hero-description {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s var(--ease-premium) 1.1s forwards;
}

/* Nhấn "hoàn toàn miễn phí" — điểm bán hàng mạnh nhất */
.hero-free {
  color: var(--gold-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s var(--ease-premium) 1.3s forwards;
}

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

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-deep));
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-premium);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-warm));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--gold-glow), 0 0 80px rgba(201, 164, 92, 0.15);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid rgba(245, 240, 232, 0.2);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s var(--ease-premium);
}

.btn-secondary:hover {
  border-color: var(--gold-warm);
  color: var(--gold-warm);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 164, 92, 0.1);
}

/* ---------- Section Common ---------- */
.section {
  position: relative;
  padding: var(--section-padding) 24px;
  z-index: 2;
}

.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

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

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--gold-warm);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s var(--ease-premium);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.9s var(--ease-premium);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.9s var(--ease-premium);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.9s var(--ease-premium);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- About / Brand Section ---------- */
.about-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  filter: brightness(0.8) saturate(0.9);
  transition: transform 0.6s var(--ease-premium), filter 0.6s;
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
  filter: brightness(0.9) saturate(1);
}

.about-image-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  background: var(--gold-warm);
  filter: blur(40px);
  opacity: 0.15;
}

.about-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--border-radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease-smooth);
}

.stat-item:hover {
  border-color: var(--gold-warm);
  box-shadow: 0 0 30px rgba(201, 164, 92, 0.08);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-warm);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ---------- Coffee / Ambience Section ---------- */
.coffee-section {
  position: relative;
  padding: 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.coffee-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.coffee-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(0.7);
}

.coffee-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg-primary) 0%, transparent 30%, transparent 70%, var(--bg-primary) 100%),
    linear-gradient(to bottom, var(--bg-primary) 0%, transparent 20%, transparent 80%, var(--bg-primary) 100%);
  z-index: 1;
}

/* Steam Animation */
.coffee-steam {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 200px;
  height: 300px;
  pointer-events: none;
}

.steam-particle {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 60px;
  background: linear-gradient(to top, rgba(201, 164, 92, 0.1), transparent);
  border-radius: 50%;
  filter: blur(3px);
  animation: steamRise 4s ease-in-out infinite;
}

.steam-particle:nth-child(1) { left: 30%; animation-delay: 0s; animation-duration: 3.5s; }
.steam-particle:nth-child(2) { left: 45%; animation-delay: 0.5s; animation-duration: 4s; }
.steam-particle:nth-child(3) { left: 60%; animation-delay: 1s; animation-duration: 3.8s; }
.steam-particle:nth-child(4) { left: 35%; animation-delay: 1.5s; animation-duration: 4.2s; }
.steam-particle:nth-child(5) { left: 55%; animation-delay: 2s; animation-duration: 3.6s; }
.steam-particle:nth-child(6) { left: 50%; animation-delay: 0.3s; animation-duration: 4.5s; }
.steam-particle:nth-child(7) { left: 40%; animation-delay: 1.2s; animation-duration: 3.3s; }
.steam-particle:nth-child(8) { left: 65%; animation-delay: 0.8s; animation-duration: 4.1s; }

@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translateY(0) scaleX(1) translateX(0);
  }
  20% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.3;
    transform: translateY(-120px) scaleX(2) translateX(10px);
  }
  100% {
    opacity: 0;
    transform: translateY(-250px) scaleX(4) translateX(-10px);
  }
}

.coffee-content {
  position: relative;
  z-index: 10;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--section-padding) 24px;
  text-align: center;
}

.coffee-quote {
  font-family: var(--font-japanese);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
}

.coffee-quote-en {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 20px;
  letter-spacing: 0.1em;
  font-style: italic;
}

/* ---------- 3 Paths Section ---------- */
.paths-section {
  background: var(--bg-primary);
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.path-card {
  position: relative;
  padding: 36px 28px 32px;
  border-radius: var(--border-radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  transition: all 0.5s var(--ease-premium);
  overflow: hidden;
}

.path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.path-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 92, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(201, 164, 92, 0.05);
}

.path-card:hover::before {
  opacity: 1;
}

.path-card--featured {
  border-color: rgba(201, 164, 92, 0.35);
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.06) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 4px 30px rgba(201, 164, 92, 0.08);
}

.path-card--featured::before {
  opacity: 1;
}

.path-featured-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-deep));
  color: var(--bg-primary);
}

.path-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.path-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.path-badge-visa {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: var(--font-japanese);
  font-size: 0.72rem;
  color: var(--gold-warm);
  background: rgba(201, 164, 92, 0.08);
  border: 1px solid rgba(201, 164, 92, 0.15);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  width: fit-content;
}

.path-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.path-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.path-features {
  list-style: none;
  margin-bottom: 24px;
  flex-grow: 1;
}

.path-features li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.path-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-warm);
  font-weight: 600;
  font-size: 0.8rem;
}

.path-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-warm);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-smooth);
  margin-top: auto;
}

.path-cta:hover {
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

/* ---------- Features / Benefits ---------- */
.features-section {
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: all 0.5s var(--ease-premium);
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-warm), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 92, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(201, 164, 92, 0.05);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.15), rgba(201, 164, 92, 0.05));
  border: 1px solid rgba(201, 164, 92, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: all 0.3s var(--ease-smooth);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.25), rgba(201, 164, 92, 0.1));
  box-shadow: 0 0 20px rgba(201, 164, 92, 0.15);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Job Search Section ---------- */

/* Type accent variables */
.jobs-section { --nhat: #5cb4a0; --kysis: #d4946a; --fukushi: #7B5EA7; }

/* 1. Section background */
.jobs-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

/* ── Filter Bar ── */

/* 2. Glassmorphism filter container */
.filter-bar {
  padding: 24px 28px;
  border-radius: var(--border-radius);
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid var(--glass-border);
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* nâng lên trên .jobs-list để dropdown ngành không bị thẻ job che */
  position: relative;
  z-index: 20;
}

/* 3. Search bar wrapper */
.search-bar {
  position: relative;
  width: 100%;
}

/* 4. Search input */
.search-bar input {
  width: 100%;
  padding: 13px 42px 13px 44px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(245, 240, 232, 0.08);
  background: rgba(10, 10, 10, 0.7);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.search-bar input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-bar input:focus {
  border-color: var(--gold-warm);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.1), 0 0 20px rgba(201, 164, 92, 0.06);
}

/* 5. Search icon */
.search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.3s;
}

.search-bar input:focus ~ .search-ico,
.search-bar:focus-within .search-ico {
  color: var(--gold-warm);
}

/* 6. Clear button */
.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 240, 232, 0.06);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s var(--ease-smooth);
}

.search-clear.show {
  opacity: 1;
  pointer-events: auto;
}

.search-clear:hover {
  background: rgba(245, 240, 232, 0.12);
  color: var(--text-primary);
}

/* 7. Type filter row */
.filter-type-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 8. Type filter pill buttons */
.tf-btn {
  padding: 7px 20px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}

.tf-btn:hover {
  border-color: rgba(245, 240, 232, 0.25);
  color: var(--text-primary);
}

.tf-btn.on-all {
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-deep));
  border-color: var(--gold-warm);
  color: var(--bg-primary);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(201, 164, 92, 0.18);
}

.tf-btn.on-nhat {
  background: rgba(92, 180, 160, 0.12);
  border-color: rgba(92, 180, 160, 0.4);
  color: var(--nhat);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(92, 180, 160, 0.1);
}

.tf-btn.on-kysis {
  background: rgba(212, 148, 106, 0.12);
  border-color: rgba(212, 148, 106, 0.4);
  color: var(--kysis);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(212, 148, 106, 0.1);
}

.tf-btn.on-fukushi {
  background: rgba(123, 94, 167, 0.12);
  border-color: rgba(123, 94, 167, 0.4);
  color: var(--fukushi);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(123, 94, 167, 0.1);
}

/* 9. Select row */
.filter-select-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select-row > * {
  flex: 1;
  min-width: 180px;
}

/* 10. Native styled select */
.filter-select {
  width: 100%;
  padding: 11px 38px 11px 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(245, 240, 232, 0.08);
  background: rgba(10, 10, 10, 0.7);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  -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 24 24' fill='none' stroke='%23c9a45c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.filter-select:focus {
  border-color: var(--gold-warm);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.1);
}

.filter-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* 11. Custom select dropdown */
.cs-wrap {
  position: relative;
  min-width: 180px;
}

.cs-trigger {
  width: 100%;
  padding: 11px 38px 11px 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(245, 240, 232, 0.08);
  background: rgba(10, 10, 10, 0.7);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  user-select: none;
}

.cs-trigger::after {
  content: '';
  width: 10px;
  height: 10px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23c9a45c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s var(--ease-premium);
}

.cs-wrap.open .cs-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.cs-wrap.open .cs-trigger,
.cs-trigger:focus {
  border-color: var(--gold-warm);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.1);
  outline: none;
}

.cs-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(17, 17, 17, 0.98);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 164, 92, 0.06);
  z-index: 100;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s var(--ease-premium);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}

.cs-wrap.open .cs-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cs-flat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: transparent;   /* reset nền trắng mặc định của <button> (chữ vốn vô hình) */
  border: none;
  font-family: var(--font-body);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  white-space: nowrap;
}

.cs-flat-item:hover {
  background: rgba(201, 164, 92, 0.08);
  color: var(--text-primary);
}

.cs-flat-item.selected {
  background: rgba(201, 164, 92, 0.12);
  color: var(--gold-warm);
  font-weight: 500;
}

/* icon Lucide trong dropdown ngành */
.cs-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold-warm);
  opacity: 0.85;
}

.cs-group-hd {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.cs-group-hd > span {
  flex: 1;
}

.cs-group-hd:hover {
  background: rgba(201, 164, 92, 0.06);
}

.cs-group-hd svg {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-smooth);
}

.cs-group-hd.open svg {
  transform: rotate(180deg);
}

/* nhóm con: ẩn mặc định, bung khi .open */
.cs-group-items {
  display: none;
  padding-bottom: 4px;
}

.cs-group-items.open {
  display: block;
}

.cs-group-items .cs-flat-item {
  padding-left: 37px;   /* thụt vào cho mục con */
  font-size: 0.82rem;
}

/* 12. Filter chips row */
.filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 0;
}

.filter-chips-row:empty {
  display: none;
}

/* 13. Filter chips */
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 14px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.1);
  cursor: default;
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
}

.fchip .fchip-x {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 240, 232, 0.08);
  color: var(--text-muted);
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.fchip .fchip-x:hover {
  background: rgba(245, 240, 232, 0.2);
  color: var(--text-primary);
}

.fchip-nhat {
  background: rgba(92, 180, 160, 0.08);
  border-color: rgba(92, 180, 160, 0.2);
  color: var(--nhat);
}

.fchip-nhat .fchip-x:hover {
  background: rgba(92, 180, 160, 0.25);
}

.fchip-kysis {
  background: rgba(212, 148, 106, 0.08);
  border-color: rgba(212, 148, 106, 0.2);
  color: var(--kysis);
}

.fchip-kysis .fchip-x:hover {
  background: rgba(212, 148, 106, 0.25);
}

.fchip-fukushi {
  background: rgba(123, 94, 167, 0.08);
  border-color: rgba(123, 94, 167, 0.2);
  color: var(--fukushi);
}

.fchip-fukushi .fchip-x:hover {
  background: rgba(123, 94, 167, 0.25);
}

.fchip-cat {
  background: rgba(201, 164, 92, 0.06);
  border-color: rgba(201, 164, 92, 0.15);
  color: var(--gold-warm);
}

.fchip-pref {
  background: rgba(245, 240, 232, 0.04);
  border-color: rgba(245, 240, 232, 0.08);
  color: var(--text-secondary);
}

/* 14. Clear all button */
.clear-all-btn {
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(245, 240, 232, 0.08);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  white-space: nowrap;
}

.clear-all-btn:hover {
  border-color: rgba(196, 80, 80, 0.3);
  color: var(--accent-red);
  background: rgba(196, 80, 80, 0.06);
}

/* ── Jobs List Area ── */

/* 15. Section header */
.jobs-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.jobs-section-hd h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.jobs-section-hd .jobs-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* 16. Jobs list container */
.jobs-list {
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  overflow: hidden;
}

/* 17. Job card row */
.jcard {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.04);
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
  position: relative;
}

.jcard:last-child {
  border-bottom: none;
}

.jcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.02), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.jcard:hover {
  background: rgba(255, 255, 255, 0.02);
}

.jcard:hover::before {
  opacity: 1;
}

/* Nhat (Tokutei) variant */
.jcard.nhat:hover::before {
  background: linear-gradient(90deg, rgba(92, 180, 160, 0.03), transparent 60%);
}

/* Kysis variant */
.jcard.kysis:hover::before {
  background: linear-gradient(90deg, rgba(212, 148, 106, 0.03), transparent 60%);
}

/* Fukushi variant */
.jcard.fukushi:hover::before {
  background: linear-gradient(90deg, rgba(123, 94, 167, 0.03), transparent 60%);
}

/* 18. Type badge column */
.jcard-type {
  flex-shrink: 0;
  width: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* 19. Badge styles */
.jbadge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.jbadge-nhat {
  background: rgba(92, 180, 160, 0.1);
  color: var(--nhat);
  border: 1px solid rgba(92, 180, 160, 0.2);
}

.jbadge-kysis {
  background: rgba(212, 148, 106, 0.1);
  color: var(--kysis);
  border: 1px solid rgba(212, 148, 106, 0.2);
}

.jbadge-fukushi {
  background: rgba(123, 94, 167, 0.1);
  color: var(--fukushi);
  border: 1px solid rgba(123, 94, 167, 0.2);
}

/* 20. Category column */
.jcard-cat {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 0 12px;
}

.jcat-nhom1,
.jcat-nhom2 {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.jcat-nhom1 {
  background: rgba(201, 164, 92, 0.08);
  color: var(--gold-warm);
  border: 1px solid rgba(201, 164, 92, 0.12);
}

.jcat-nhom2 {
  background: rgba(245, 240, 232, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(245, 240, 232, 0.06);
}

/* 21. Body column */
.jcard-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}

/* 22. Title */
.jcard-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s;
}

.jcard:hover .jcard-title {
  color: var(--gold-light);
}

.jcard.nhat:hover .jcard-title {
  color: var(--nhat);
}

.jcard.kysis:hover .jcard-title {
  color: var(--kysis);
}

.jcard.fukushi:hover .jcard-title {
  color: var(--fukushi);
}

/* 23. Meta row */
.jcard-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.jcard-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 24. Salary */
.jcard-sal {
  flex-shrink: 0;
  max-width: 200px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-light);
  padding: 0 12px;
  white-space: nowrap;       /* lương là text dài -> 1 dòng, cắt bằng … thay vì tràn */
  overflow: hidden;
  text-overflow: ellipsis;
}

.jcard.nhat .jcard-sal {
  color: var(--nhat);
}

.jcard.kysis .jcard-sal {
  color: var(--kysis);
}

.jcard.fukushi .jcard-sal {
  color: var(--fukushi);
}

/* 25. Actions column */
.jcard-acts {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
}

/* 26. Apply CTA button */
.jcard-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-deep));
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-premium);
  white-space: nowrap;
}

.jcard-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-warm));
  opacity: 0;
  transition: opacity 0.35s;
}

.jcard-cta span {
  position: relative;
  z-index: 1;
}

.jcard-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.jcard-cta:hover::before {
  opacity: 1;
}

/* Nút khi job chưa có ảnh */
.jcard-cta-off {
  background: rgba(245, 240, 232, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.jcard-cta-off:hover {
  transform: none;
  box-shadow: none;
}

/* 28. Pagination */
.pg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.pg-btn {
  min-width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(245, 240, 232, 0.08);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-smooth);
}

.pg-btn:hover {
  border-color: var(--gold-warm);
  color: var(--gold-warm);
  background: rgba(201, 164, 92, 0.04);
}

.pg-btn.pg-on {
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-deep));
  border-color: var(--gold-warm);
  color: var(--bg-primary);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(201, 164, 92, 0.15);
}

.pg-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pg-dots {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  padding: 0 4px;
  user-select: none;
}

/* 29. Responsive */

/* ≤ 900px – jcard wraps */
@media (max-width: 900px) {
  .jcard {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 18px;
  }

  .jcard-type {
    width: auto;
  }

  .jcard-cat {
    width: auto;
    padding: 0;
  }

  .jcard-body {
    flex-basis: 100%;
    padding: 0;
    order: 3;
  }

  .jcard-acts {
    padding: 0;
    order: 4;
  }

  .jcard-sal {
    max-width: 58%;
    margin-left: auto;     /* đẩy lương sang phải */
    text-align: right;
    padding: 0;
    order: 5;
  }
}

/* ≤ 768px – selects stack */
@media (max-width: 768px) {
  .filter-bar {
    padding: 18px 16px;
  }

  .filter-select-row {
    flex-direction: column;
  }

  .filter-select-row > * {
    min-width: 100%;
  }

  .filter-type-row {
    gap: 8px;
  }

  .tf-btn {
    padding: 9px 16px;
    min-height: 44px;
    font-size: 0.78rem;
  }

  .jobs-section-hd {
    flex-direction: column;
    gap: 4px;
  }
}

/* ≤ 480px – compact */
@media (max-width: 480px) {
  .filter-bar {
    padding: 14px 12px;
    gap: 14px;
    border-radius: 12px;
  }

  .search-bar input {
    padding: 11px 36px 11px 38px;
    font-size: 0.85rem;
  }

  .jcard {
    padding: 14px 12px;
  }

  .jcard-title {
    font-size: 0.9rem;
    white-space: normal;
  }

  .jcard-meta {
    font-size: 0.72rem;
    gap: 8px;
  }

  .jcard-sal {
    font-size: 0.88rem;
  }

  .jcard-cta {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.76rem;
  }

  .pg-btn {
    min-width: 44px;
    height: 44px;
    font-size: 0.8rem;
  }

  .fchip {
    font-size: 0.72rem;
    padding: 4px 10px 4px 12px;
  }
}

/* ---------- Tokutei Info Section ---------- */
.info-section {
  background: var(--bg-primary);
  position: relative;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.info-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.info-image-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  filter: brightness(0.7);
  transition: transform 0.6s var(--ease-premium);
}

.info-image-wrapper:hover img {
  transform: scale(1.03);
}

.info-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.info-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.info-list {
  list-style: none;
  margin-top: 24px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list-icon {
  color: var(--gold-warm);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  padding: var(--section-padding) 24px;
  text-align: center;
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  padding: 60px 24px 30px;
  background: var(--bg-secondary);
}

.footer-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-warm);
  margin-bottom: 16px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--gold-warm);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(245, 240, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-smooth);
}

.footer-social a:hover {
  border-color: var(--gold-warm);
  color: var(--gold-warm);
  transform: translateY(-2px);
}

/* ---------- Divider ---------- */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .paths-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar, .navbar.scrolled {
    padding: 16px 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 60px 40px;
    transition: right 0.5s var(--ease-premium);
    border-left: 1px solid var(--glass-border);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    display: block;
    padding: 10px 4px;   /* vùng chạm link menu ~44px */
  }

  .nav-toggle {
    display: flex;
  }

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

  .paths-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-cta-group {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .nav-brand-text {
    font-size: 1.15rem;
  }
}

/* ---------- Tôn trọng người dùng tắt chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Đảm bảo nội dung dùng opacity:0 + animation/scroll-reveal vẫn hiển thị */
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .hero-title, .hero-title-jp, .hero-description, .hero-cta-group {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Lightbox ảnh job (bấm "Chi tiết") ---------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lb-overlay.open { display: flex; }
.lb-box {
  background: #0a0a0a;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  width: 100%;
  max-width: 1100px;
  max-height: 96vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lb-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  flex-shrink: 0;
  border-bottom: 1px solid var(--glass-border);
}
.lb-title {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.22); }
.lb-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #0a0a0a;
  min-height: 200px;
  overflow: auto;
}
.lb-body img {
  max-width: 100%;
  max-height: calc(96vh - 90px);
  width: auto;
  height: auto;
  display: none;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.lb-loading {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-loading-spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold-warm);
  border-radius: 50%;
  animation: lb-spin 0.8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .lb-overlay { padding: 0; }
  .lb-box { max-height: 100vh; max-height: 100dvh; border-radius: 0; height: 100vh; height: 100dvh; }
  .lb-hd { padding: 10px 12px; }
  .lb-body { padding: 8px; }
  .lb-body img { max-height: calc(100dvh - 76px); }
}

/* ---------- Ưu Điểm: bố cục 3 thẻ (căn giữa, không để thẻ mồ côi) ---------- */
.features-grid--3 { max-width: 1040px; margin-left: auto; margin-right: auto; }
@media (max-width: 1024px) { .features-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .features-grid--3 { grid-template-columns: 1fr; max-width: 480px; } }

/* ---------- Icon Lucide (đồng bộ phong cách line tối giản với filter) ---------- */
.path-icon { color: var(--gold-warm); line-height: 1; }
.path-icon svg { width: 38px; height: 38px; stroke-width: 1.6; display: block; }
.path-card--featured .path-icon { color: var(--gold-light); }

.feature-icon svg { width: 26px; height: 26px; color: var(--gold-warm); stroke-width: 1.8; }

.info-list-icon { display: inline-flex; }
.info-list-icon svg { width: 20px; height: 20px; stroke-width: 1.8; }

.jcard-meta svg { width: 13px; height: 13px; stroke-width: 2; flex-shrink: 0; }

.btn-ico { width: 18px; height: 18px; }
.cta-ico { width: 15px; height: 15px; vertical-align: middle; }

.footer-social a svg { width: 16px; height: 16px; }

/* chấm màu loại đơn (thay emoji 🟢/🟠) */
.tf-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: middle; }
.tf-dot-nhat { background: var(--nhat); }
.tf-dot-kysis { background: var(--kysis); }
.tf-dot-fukushi { background: var(--fukushi); }

/* ===== Nút cờ chuyển ngôn ngữ/quốc gia ===== */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;   /* để z-index có hiệu lực: cụm cờ + nút toggle nổi trên panel menu mobile */
  z-index: 1001;
}
.nav-flags {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}
.flag-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0.5;
  filter: grayscale(0.8);
  transition: all 0.2s ease;
}
.flag-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.flag-btn:hover {
  opacity: 0.85;
  filter: grayscale(0.2);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.flag-btn.is-active {
  opacity: 1;
  filter: grayscale(0);
  color: var(--gold-warm);
}
