/* ==========================================================================
   MTOOLX AUTOMATION STUDIO - MODERN ORANGE & WHITE DESIGN SYSTEM
   Clean, Sleek, Professional Mobile Game Automation
   ========================================================================== */

:root {
  /* Vibrant Tech Orange Palette */
  --primary-orange: #ff6600;
  --primary-orange-hover: #ea580c;
  --primary-orange-dark: #c2410c;
  --primary-orange-light: #fff7ed;
  --primary-orange-lighter: #ffedd5;
  --primary-orange-border: rgba(255, 102, 0, 0.25);
  --primary-orange-glow: rgba(255, 102, 0, 0.18);
  --orange-gradient: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
  --orange-gradient-hover: linear-gradient(135deg, #ea580c 0%, #d94600 100%);
  --orange-gradient-soft: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);

  /* Background Palette */
  --bg-white: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-section: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-accent: #fffbf7;

  /* Text Colors */
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-white: #ffffff;
  --text-orange: #ff6600;

  /* Status & Accents */
  --status-green: #10b981;
  --status-green-light: #ecfdf5;
  --status-green-border: #a7f3d0;
  --status-blue: #0284c7;

  /* Borders */
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-orange: rgba(255, 102, 0, 0.35);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
  --shadow-orange: 0 8px 24px -4px rgba(255, 102, 0, 0.3);
  --shadow-card: 0 2px 12px 0 rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 14px 32px -4px rgba(255, 102, 0, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.04);

  /* Typography - Clean, Slender, Refined Modern UI */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-main);
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Golden Ratio (Phi = 1.618) & Fibonacci System */
  --phi: 1.618;
  --golden-line-height: 1.5;
  --golden-measure: 680px;
  --golden-measure-narrow: 580px;
  --space-fib-1: 8px;
  --space-fib-2: 13px;
  --space-fib-3: 21px;
  --space-fib-4: 34px;
  --space-fib-5: 55px;
  --space-fib-6: 89px;
  --space-fib-7: 144px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.theme-orange-white {
  background-color: #ffffff;
  color: var(--text-body);
  font-family: var(--font-main);
  line-height: var(--golden-line-height);
  letter-spacing: -0.012em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'tnum';
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Global Crisp Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  line-height: 1.22;
  font-weight: 700;
  color: var(--text-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange);
}

/* Typography Helpers */
.gradient-text-orange {
  background: var(--orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: none !important;
  filter: none !important;
}

.text-orange { color: var(--primary-orange) !important; }
.text-green { color: var(--status-green) !important; }
.font-semibold { font-weight: 600; }
strong {
  font-weight: 700;
  color: var(--text-heading);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 11px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

/* 3D Isometric Rotating Cube Logo */
.cube-logo-scene {
  width: 48px;
  height: 48px;
  perspective: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cube-3d-wrapper {
  width: 28px;
  height: 28px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(0deg) rotateZ(12deg);
  animation: cube-spin-smooth 9s linear infinite;
  will-change: transform;
}

.brand-logo:hover .cube-3d-wrapper {
  animation: cube-spin-smooth 3.2s linear infinite;
}

@keyframes cube-spin-smooth {
  0% {
    transform: rotateX(16deg) rotateY(0deg) rotateZ(12deg);
  }
  25% {
    transform: rotateX(106deg) rotateY(90deg) rotateZ(32deg);
  }
  50% {
    transform: rotateX(196deg) rotateY(180deg) rotateZ(12deg);
  }
  75% {
    transform: rotateX(286deg) rotateY(270deg) rotateZ(-12deg);
  }
  100% {
    transform: rotateX(376deg) rotateY(360deg) rotateZ(12deg);
  }
}

.cube-face {
  position: absolute;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 6px rgba(255, 102, 0, 0.35);
  backface-visibility: visible;
  user-select: none;
}

.cube-front {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
  transform: translateZ(14px);
}

.cube-right {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: rotateY(90deg) translateZ(14px);
}

.cube-back {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
  transform: rotateY(180deg) translateZ(14px);
}

.cube-left {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: rotateY(-90deg) translateZ(14px);
}

.cube-top {
  background: linear-gradient(135deg, #ff8533 0%, #ff6600 100%);
  transform: rotateX(90deg) translateZ(14px);
}

.cube-bottom {
  background: #9a3412;
  transform: rotateX(-90deg) translateZ(14px);
}

.face-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.cube-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
}

.cube-shadow-ground {
  position: absolute;
  bottom: 1px;
  width: 26px;
  height: 5px;
  background: radial-gradient(ellipse at center, rgba(255, 102, 0, 0.35) 0%, rgba(255, 102, 0, 0) 75%);
  border-radius: 50%;
  pointer-events: none;
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(255, 102, 0, 0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text-heading);
  display: flex;
  align-items: baseline;
  gap: 0;
}

.brand-x,
.window-title .brand-x,
.window-title strong .brand-x,
.cta-banner-card .brand-x,
.cta-banner-card p .brand-x,
strong .brand-x {
  color: #ff6600 !important;
  font-weight: inherit;
  display: inline !important;
}

.brand-tagline {
  font-family: var(--font-main);
  font-size: 0.66rem;
  letter-spacing: 0.6px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-orange);
  background: rgba(248, 250, 252, 0.9);
}

.nav-link.active,
.nav-link.highlight-nav {
  color: var(--primary-orange-dark) !important;
  background: var(--primary-orange-light) !important;
  border-color: var(--primary-orange-border) !important;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.08);
  font-weight: 700;
}

.nav-link.active:hover,
.nav-link.highlight-nav:hover {
  background: var(--primary-orange-lighter) !important;
  color: var(--primary-orange) !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 22px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.90rem;
  letter-spacing: -0.012em;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-w100 {
  width: 100%;
}

.btn-primary {
  background: var(--orange-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--orange-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -2px rgba(255, 102, 0, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-heading);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.12);
}

.btn-arrow-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow-icon {
  transform: translateX(3px);
}

/* Direct Contact Buttons */
.btn-zalo-direct {
  background: #0068FF;
  color: #ffffff;
  width: 100%;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.25);
  transition: all var(--transition-fast);
}

.btn-zalo-direct:hover {
  background: #0056d6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 104, 255, 0.35);
}

.btn-tele-direct {
  background: #229ED9;
  color: #ffffff;
  width: 100%;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.25);
  transition: all var(--transition-fast);
}

.btn-tele-direct:hover {
  background: #1c88bd;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.35);
}

.btn-zalo-large {
  background: #ffffff;
  color: var(--primary-orange);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
}

.btn-zalo-large:hover {
  background: #fffaf5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.chat-btn-icon {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 2;
  padding: 140px 0 70px 0;
  background: transparent;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding-left: clamp(24px, 4vw, 80px);
  padding-right: clamp(20px, 3vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: clamp(34px, 3.8vw, 68px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--primary-orange-light);
  border: 1px solid var(--border-orange);
  margin-bottom: var(--space-fib-3);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-orange);
  box-shadow: 0 0 8px rgba(255, 102, 0, 0.6);
  animation: pulse-ping 2s infinite;
}

@keyframes pulse-ping {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--primary-orange-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-chip {
  background: var(--primary-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.hero-title {
  font-size: clamp(2.18rem, 2.55vw, 2.95rem);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin-bottom: var(--space-fib-3);
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-body);
  margin-bottom: var(--space-fib-4);
  max-width: var(--golden-measure-narrow);
}

.hero-desc strong {
  color: var(--text-heading);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border-color);
}

/* ==========================================================================
   HERO STUDIO WINDOW (CONSOLE / SIMULATOR)
   ========================================================================== */
.studio-window {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.studio-window:hover {
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.1);
}

.window-titlebar {
  background: #f8fafc;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: #334155;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.window-title strong,
.console-brand-text {
  font-weight: 800;
  color: #0f172a !important;
}

.window-title .brand-x,
.window-title strong .brand-x,
.console-brand-text .brand-x {
  color: #ff6600 !important;
  font-weight: 900 !important;
  display: inline !important;
}

.console-sub-text {
  color: #64748b;
  font-weight: 600;
  margin-left: 5px;
}

.window-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--status-green-light);
  border: 1px solid var(--status-green-border);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: #065f46;
  letter-spacing: 0.2px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
  animation: pulse-ping 2s infinite;
}

.window-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #ffffff;
}

/* Sim Game Bar */
.sim-game-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.sim-game-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sim-game-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sim-game-name {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.sim-game-sub {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

.sim-active-chip {
  background: var(--primary-orange-light);
  color: var(--primary-orange-dark);
  border: 1px solid var(--border-orange);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Console Architecture Mode Selector Tabs */
.console-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.mode-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 12px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mode-tab-btn:hover {
  color: var(--primary-orange-dark);
  background: rgba(255, 255, 255, 0.6);
}

.mode-tab-btn.active {
  background: #ffffff;
  color: var(--primary-orange-dark);
  border-color: rgba(255, 102, 0, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-weight: 600;
}

.mode-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  transition: background 0.2s ease;
}

.mode-tab-btn.active .mode-tab-dot {
  background: var(--primary-orange);
  box-shadow: 0 0 6px var(--primary-orange);
}

/* Sim Viewport */
.sim-viewport {
  position: relative;
  min-height: 230px;
  background: linear-gradient(135deg, #fffaf5 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 54px 16px;
}

.sim-mode-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-orange-dark);
  background: #ffffff;
  border: 1px solid rgba(255, 102, 0, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.sim-dynamic-stage {
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

/* Mode 0: Stage API Protocol Box */
.stage-api-box {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(255, 102, 0, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.api-request-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  overflow-x: auto;
}

.method-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1d4ed8;
}

.api-endpoint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #1e293b;
  flex: 1;
  white-space: nowrap;
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dcfce7;
  color: #15803d;
}

.api-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px 12px;
  font-size: 0.72rem;
}

.api-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-k {
  font-family: var(--font-ui);
  color: var(--text-muted);
  font-weight: 400;
}

.meta-v {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  color: #334155;
}

/* Mode 1: Stage Vision & OCR Box */
.stage-vision-box {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(255, 102, 0, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vision-detect-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vision-badge {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-orange);
  letter-spacing: 0.3px;
}

.vision-match {
  font-family: var(--font-ui);
  background: #dcfce7;
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.vision-target-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffaf5;
  border: 1px solid rgba(255, 102, 0, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
}

.bounding-title {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.bounding-desc {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1px;
}

.ocr-auto-bypass {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px dashed var(--border-color);
}

.ocr-tag {
  font-weight: 700;
  color: var(--primary-orange-dark);
}

.ocr-desc {
  color: #475569;
  font-weight: 400;
  flex: 1;
}

.ocr-status {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.66rem;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Mode 2: Stage Chạy Ẩn Đa Luồng */
.stage-bg-box {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(255, 102, 0, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bg-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bg-chip {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-orange);
  letter-spacing: 0.3px;
}

.bg-mouse-free {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 12px;
}

.bg-threads-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bg-thread-pill {
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #334155;
}

.thread-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

.bg-thread-pill.more {
  background: #fff7ed;
  color: var(--primary-orange-dark);
  border-color: rgba(255, 102, 0, 0.25);
}

.bg-safety-info {
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  color: #475569;
  font-weight: 500;
  padding-top: 5px;
  border-top: 1px dashed var(--border-color);
}

.safety-icon-svg {
  width: 15px;
  height: 15px;
  color: var(--primary-orange);
  flex-shrink: 0;
}

/* Mode 3: Stage Smart Logic FSM Box */
.stage-logic-box {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(255, 102, 0, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logic-badge {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-orange);
  letter-spacing: 0.3px;
}

.logic-cpu {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 12px;
}

.fsm-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
}

.flow-node {
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.flow-node.active {
  color: var(--primary-orange-dark);
}

.flow-node.completed {
  color: #15803d;
}

.node-num {
  font-family: var(--font-ui);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 700;
}

.flow-node.active .node-num {
  background: var(--primary-orange);
  color: #ffffff;
}

.flow-node.completed .node-num {
  background: #22c55e;
  color: #ffffff;
}

.flow-arrow {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.74rem;
}

.logic-metric-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.71rem;
}

.logic-label {
  font-family: var(--font-ui);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.72rem;
}

.logic-progress-wrap {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.logic-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff7a1a, #22c55e);
  border-radius: 10px;
}

.logic-val {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  color: #15803d;
}

.sim-overlay-pills {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sim-pill {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.sim-pill strong {
  font-weight: 600;
}

.pill-lbl {
  color: var(--text-muted);
}

/* Console Logs */
.console-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.console-bar {
  padding: 8px 14px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-title {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #475569;
}

.console-pause-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  color: #475569;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.console-pause-btn:hover {
  background: #f1f5f9;
  color: var(--primary-orange);
}

.console-feed {
  height: 125px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
}

.log-entry {
  display: flex;
  gap: 8px;
  line-height: 1.5;
}

.log-time {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 400;
  flex-shrink: 0;
}

.log-info { color: #334155; font-weight: 400; }
.log-success { color: #059669; font-weight: 500; }
.log-warn { color: #d97706; font-weight: 500; }

/* ==========================================================================
   MARQUEE SECTION
   ========================================================================== */
.marquee-section {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  overflow: hidden;
}

.marquee-inner {
  display: flex;
  width: fit-content;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: marquee-run 30s linear infinite;
  white-space: nowrap;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}

.marquee-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.marquee-custom-badge {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 102, 0, 0.4);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}







.marquee-sep {
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* ==========================================================================
   FEATURED GAMES SHOWCASE
   ========================================================================== */
.section-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 90px clamp(24px, 4vw, 80px);
}

.section-header {
  margin-bottom: 44px;
}

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

.section-tag {
  display: inline-block;
  background: var(--primary-orange-light);
  color: var(--primary-orange-dark);
  border: 1px solid var(--border-orange);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: var(--space-fib-2);
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.12rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: var(--space-fib-2);
}

.section-subtitle {
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  max-width: var(--golden-measure);
  margin: 0 auto;
  line-height: 1.5;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.filter-tab {
  background: #f1f5f9;
  border: 1px solid transparent;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  background: #e2e8f0;
  color: var(--text-heading);
}

.filter-tab.active {
  background: var(--primary-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
}

/* ==========================================================================
   GAME CARDS GRID (CLEAN APP SHOWCASE - ICON ONLY)
   ========================================================================== */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(20px, 2.2vw, 32px);
}

.game-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 26px 20px 20px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 102, 0, 0.4);
  box-shadow: 0 16px 36px rgba(255, 102, 0, 0.12);
}

.game-card.highlight-card {
  border: 1.5px dashed rgba(255, 102, 0, 0.4);
  background: linear-gradient(180deg, #fffcf9 0%, #ffffff 100%);
}

.game-icon-wrap {
  width: 78px;
  height: 78px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-brand-logo {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border: 1.5px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease;
}

.game-card:hover .game-brand-logo {
  transform: scale(1.06);
}

.custom-studio-logo {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: var(--orange-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.25);
  transition: transform 0.25s ease;
}

.game-card:hover .custom-studio-logo {
  transform: scale(1.06);
}

.custom-studio-logo svg {
  width: 100%;
  height: 100%;
}

.game-card-body {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.game-title {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text-heading);
  line-height: 1.25;
}

.game-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary-orange-dark);
  background: var(--primary-orange-light);
  border: 1px solid rgba(255, 102, 0, 0.15);
  padding: 3px 12px;
  border-radius: 20px;
}

.btn-order-tool {
  width: 100%;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  padding: 9px 14px;
  margin-top: auto;
}

/* ==========================================================================
   REQUEST FORM SECTION (FORM GỬI YÊU CẦU LÀM TOOL)
   ========================================================================== */
.request-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: clamp(32px, 3.5vw, 56px);
  box-shadow: var(--shadow-lg);
}

.request-form-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(32px, 3.5vw, 60px);
  align-items: start;
}

.request-form-card {
  background: #ffffff;
}

.main-req-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}

.required {
  color: #ef4444;
}

.cyber-input, .cyber-textarea, .cyber-select {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 9px 13px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.cyber-input::placeholder, .cyber-textarea::placeholder {
  font-size: 0.84rem;
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: normal;
}

.cyber-select {
  cursor: pointer;
}

.cyber-input:focus, .cyber-textarea:focus, .cyber-select:focus {
  background: #ffffff;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

/* Side Card */
.request-side-card {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border: 1.5px solid var(--border-orange);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}

.side-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.side-card-badge .status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.request-side-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 20px;
  line-height: 1.35;
}

.side-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.side-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-orange);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 2px;
}

.side-benefits-list li:hover .benefit-icon-box {
  background: var(--primary-orange);
  color: #ffffff;
  border-color: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.25);
}

.benefit-svg {
  width: 20px;
  height: 20px;
}

.side-benefits-list strong {
  font-size: 0.92rem;
  color: var(--text-heading);
  display: block;
  margin-bottom: 3px;
  line-height: 1.35;
}

.side-benefits-list p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.side-contact-direct {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.side-contact-direct h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.side-contact-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Success Box */
.request-success-box {
  text-align: center;
  padding: 40px 20px;
}

.request-success-box .success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  border: 2px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.request-success-box .success-icon svg {
  width: 28px;
  height: 28px;
}

.request-success-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.request-success-box p {
  font-size: 0.95rem;
  color: #475569;
  max-width: 500px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.success-direct-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   TECHNOLOGY ADVANTAGE SECTION
   ========================================================================== */
#tech-advantage {
  background: transparent;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#tech-advantage .section-header,
#tech-advantage .tech-grid {
  width: 100%;
  max-width: 1720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 4vw, 80px);
  padding-right: clamp(24px, 4vw, 80px);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 2.2vw, 32px);
}

.tech-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 102, 0, 0.4);
}

.tech-card-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  border: 1.5px solid var(--primary-orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.12);
  transition: all var(--transition-fast);
}

.tech-card:hover .tech-card-icon-wrap {
  transform: scale(1.08);
  background: var(--orange-gradient);
  color: #ffffff;
  border-color: var(--primary-orange);
  box-shadow: 0 8px 22px rgba(255, 102, 0, 0.35);
}

.tech-svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.2px;
}

.tech-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.35;
}

.tech-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.tech-highlight {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-orange);
  background: var(--primary-orange-light);
  border: 1px solid rgba(255, 102, 0, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
}

/* ==========================================================================
   WORK PROCESS SECTION
   ========================================================================== */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.process-step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.process-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 102, 0, 0.4);
}

.step-num-badge {
  display: none;
}

.step-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: var(--primary-orange-light);
  border: 1.5px solid var(--primary-orange-border);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.12);
  transition: all var(--transition-fast);
}

.process-step-card:hover .step-icon-box {
  transform: scale(1.08);
  background: var(--orange-gradient);
  color: #ffffff;
  border-color: var(--primary-orange);
  box-shadow: 0 8px 22px rgba(255, 102, 0, 0.35);
}

.step-icon-box svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.2px;
}

.process-step-card h4 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  line-height: 1.35;
}

.process-step-card p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.65;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
#testimonials {
  background: transparent;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#testimonials .section-header,
#testimonials .testimonials-grid {
  width: 100%;
  max-width: 1720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 4vw, 80px);
  padding-right: clamp(24px, 4vw, 80px);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(20px, 2.2vw, 32px);
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testi-quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 20px;
  flex: 1;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.avatar-orange {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  border: 1px solid var(--border-orange);
}

.avatar-dark {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border-color);
}

.author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-heading);
}

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

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-accordion-wrap {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 102, 0, 0.4);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  color: var(--primary-orange);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 20px 20px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #475569;
  border-top: 1px solid #f8fafc;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   CTA BANNER SECTION
   ========================================================================== */
.cta-banner-section {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 40px clamp(24px, 4vw, 80px) 90px clamp(24px, 4vw, 80px);
}

.cta-banner-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf7 60%, #fff4ea 100%);
  border: 1.5px solid rgba(255, 102, 0, 0.35);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  color: var(--text-heading);
  box-shadow: 0 20px 48px rgba(255, 102, 0, 0.12), 0 4px 16px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--orange-gradient);
}

.cta-tag {
  display: inline-block;
  background: #fff7ed;
  border: 1px solid rgba(255, 102, 0, 0.35);
  color: var(--primary-orange-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.cta-content-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  text-align: left;
}

.cta-text-side {
  flex: 1 1 560px;
}

.cta-text-side h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: #0f172a;
}

.cta-text-side p {
  font-size: 1.05rem;
  color: #334155;
  margin: 0;
  line-height: 1.65;
}

.cta-text-side p strong {
  color: #0f172a !important;
  font-weight: 800;
}

.cta-text-side p .brand-x,
.cta-text-side p strong .brand-x {
  color: #ff6600 !important;
  font-weight: 900 !important;
}

.cta-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: #0f172a;
}

.cta-content p {
  font-size: 1.05rem;
  color: #334155;
  max-width: 620px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.cta-btn-group .btn-primary {
  background: var(--orange-gradient);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.35);
  font-weight: 700;
}

.cta-btn-group .btn-primary:hover {
  background: var(--orange-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.45);
}

.cta-btn-group .btn-zalo-large {
  background: #ffffff;
  color: #0284c7 !important;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-weight: 700;
}

.cta-btn-group .btn-zalo-large:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* ==========================================================================
   FOOTER (PREMIUM CLEAN LIGHT & ORANGE PALETTE)
   ========================================================================== */
.cyber-footer {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  position: relative;
}

.footer-top-accent {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #ff7a1a 25%, #ff5200 50%, #ff7a1a 75%, transparent 100%);
  opacity: 0.85;
}

.footer-container {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 68px clamp(24px, 4.5vw, 96px) 52px clamp(24px, 4.5vw, 96px);
  display: grid;
  grid-template-columns: 1.6fr 1.8fr 1.15fr 1.45fr;
  gap: clamp(36px, 4vw, 84px);
  justify-content: space-between;
}

/* Col 1: Brand */
.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0 0 20px 0;
  max-width: 440px;
}

.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.footer-trust-pill:hover {
  border-color: rgba(255, 102, 0, 0.35);
  background: #fffaf5;
  color: var(--primary-orange-dark);
}

.footer-trust-pill .status-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.trust-svg {
  width: 13px;
  height: 13px;
  color: #10b981;
}

/* Col Titles */
.footer-col-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2.5px;
  background: var(--primary-orange);
  border-radius: 2px;
}

/* Games Grid */
.footer-games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links-list a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.footer-links-list a:hover {
  color: var(--primary-orange);
  transform: translateX(3px);
}

.link-highlight {
  color: var(--primary-orange) !important;
  font-weight: 700 !important;
}

/* Col 4: Contact Cards */
.footer-contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.zalo-card:hover {
  border-color: #0068FF;
  background: #f0f7ff;
}

.tele-card:hover {
  border-color: #229ED9;
  background: #f0f9ff;
}

.contact-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zalo-card .contact-card-icon {
  background: #0068FF;
  color: #ffffff;
}

.tele-card .contact-card-icon {
  background: #229ED9;
  color: #ffffff;
}

.contact-card-icon svg {
  width: 18px;
  height: 18px;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.contact-card-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

.footer-schedule-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  padding-top: 2px;
}

.schedule-svg {
  width: 15px;
  height: 15px;
  color: var(--primary-orange);
  flex-shrink: 0;
}

/* Footer Bottom Bar */
.footer-bottom {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 20px 0;
  width: 100%;
}

.footer-bottom-inner {
  width: 100%;
  max-width: 1840px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 96px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom-inner strong {
  color: var(--text-heading);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.dot-sep {
  color: #cbd5e1;
}

/* ==========================================================================
   FLOATING CONTACT DOCK
   ========================================================================== */
.floating-contact-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.dock-svg {
  width: 20px;
  height: 20px;
}

.dock-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.dock-calc:hover {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.4);
}

.dock-zalo {
  color: #0068FF;
}

.dock-zalo:hover {
  background: #0068FF;
  border-color: #0068FF;
  color: #ffffff;
}

.dock-tele {
  color: #229ED9;
}

.dock-tele:hover {
  background: #229ED9;
  border-color: #229ED9;
  color: #ffffff;
}

.dock-totop:hover {
  background: var(--text-heading);
  border-color: var(--text-heading);
}

.dock-label {
  display: none;
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.cyber-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cyber-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
  width: 100%;
  max-width: 500px;
  z-index: 1;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-tag {
  display: inline-block;
  background: var(--primary-orange-light);
  color: var(--primary-orange-dark);
  border: 1px solid var(--border-orange);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.modal-success-state {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--status-green-light);
  color: var(--status-green);
  border: 2px solid var(--status-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.success-icon svg {
  width: 26px;
  height: 26px;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-orange);
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-heading);
  animation: slideIn 0.3s ease;
}

.toast-svg {
  width: 18px;
  height: 18px;
  color: var(--primary-orange);
  flex-shrink: 0;
}

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   KINETIC SLIDE-IN ENTRANCE ANIMATIONS (Symmetrical Load & Scroll Reveal)
   Left & Right slide symmetrically to the center
   ========================================================================== */

/* Navbar subtle entrance */
.navbar {
  animation: kineticNavDrop 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes kineticNavDrop {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section: Symmetrical Kinetic Slide on Load */
.hero-content {
  animation: kineticSlideInLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-visual {
  width: 100%;
  animation: kineticSlideInRight 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

@keyframes kineticSlideInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes kineticSlideLeft {
  0% {
    opacity: 0;
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes kineticSlideInRight {
  0% {
    opacity: 0;
    transform: translate3d(90px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes kineticSlideRight {
  0% {
    opacity: 0;
    transform: translate3d(90px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes kineticSlideInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 45px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes kineticSlideUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 45px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Base states: before element is triggered into viewport */
.kinetic-slide-left {
  opacity: 0;
  transform: translate3d(-90px, 0, 0);
  will-change: transform, opacity;
}

.kinetic-slide-right {
  opacity: 0;
  transform: translate3d(90px, 0, 0);
  will-change: transform, opacity;
}

.kinetic-slide-up {
  opacity: 0;
  transform: translate3d(0, 45px, 0);
  will-change: transform, opacity;
}

/* Active trigger state: plays keyframe animation forward */
.kinetic-slide-left.kinetic-active {
  animation: kineticSlideInLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kinetic-slide-right.kinetic-active {
  animation: kineticSlideInRight 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kinetic-slide-up.kinetic-active {
  animation: kineticSlideInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Stagger delay helpers */
.kinetic-delay-1 { animation-delay: 0.08s !important; }
.kinetic-delay-2 { animation-delay: 0.16s !important; }
.kinetic-delay-3 { animation-delay: 0.24s !important; }
.kinetic-delay-4 { animation-delay: 0.32s !important; }

/* Keep smooth hover on cards after animation */
.game-card.kinetic-active,
.tech-card.kinetic-active,
.process-step-card.kinetic-active {
  opacity: 1 !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Đảm bảo toàn bộ phần DANH MỤC TỰA GAME TIÊU BIỂU luôn hiển thị 100% khi load web, không bị ẩn hay biến mất */
#games-showcase .section-tag,
#games-showcase .section-title,
#games-showcase .section-subtitle,
#games-showcase .filter-tabs,
#games-showcase .game-cards-grid,
#games-showcase .game-card {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

@keyframes fadeInGame {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  @keyframes kineticSlideInLeft {
    0% { opacity: 0; transform: translate3d(-35px, 0, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  @keyframes kineticSlideInRight {
    0% { opacity: 0; transform: translate3d(35px, 0, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  @keyframes kineticSlideInUp {
    0% { opacity: 0; transform: translate3d(0, 25px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
  }
  .kinetic-slide-left { transform: translate3d(-35px, 0, 0); }
  .kinetic-slide-right { transform: translate3d(35px, 0, 0); }
  .kinetic-slide-up { transform: translate3d(0, 25px, 0); }
}



/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
  .hero-visual {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .request-form-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}



@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .section-title {
    font-size: 1.95rem;
  }
  .request-form-wrapper {
    padding: 24px 18px;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PIPELINE SHOWCASE STUDIO SECTION
   ========================================================================== */
.pipeline-studio-wrapper {
  width: 100%;
  margin-top: 32px;
}

.pipeline-studio-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.07), 0 20px 45px -15px rgba(234, 88, 12, 0.08);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pipeline-studio-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.1), 0 24px 50px -12px rgba(234, 88, 12, 0.12);
}

.studio-mac-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.studio-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-window-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.studio-window-dots .dot-red { background: #ef4444; }
.studio-window-dots .dot-yellow { background: #f59e0b; }
.studio-window-dots .dot-green { background: #10b981; }

.studio-title-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-app-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: #0f172a;
}

.studio-live-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.4px;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.studio-stats-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 500;
}

.studio-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-studio-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-studio-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-studio-primary {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
}

.btn-studio-primary:hover {
  background: #c2410c;
  border-color: #c2410c;
  color: #ffffff;
}

.studio-frame-body {
  position: relative;
  width: 100%;
  height: 820px;
  background: #fbfaf8;
}

.studio-frame-body:fullscreen {
  height: 100vh;
  width: 100vw;
  background: #fbfaf8;
}

.studio-frame-body:-webkit-full-screen {
  height: 100vh;
  width: 100vw;
  background: #fbfaf8;
}

#pipeline-interactive-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.studio-frame-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #64748b;
}

.footer-tip {
  display: flex;
  align-items: center;
  gap: 7px;
}


@media (max-width: 768px) {
  .studio-frame-body {
    height: 640px;
  }
  .studio-stats-center {
    display: none;
  }
}

/* ==========================================================================
   3D CUBE LOGO BACKGROUND ENGINE (CHUYỂN ĐỘNG XÚC XẮC TOÀN TRANG WEB)
   ========================================================================== */
:root {
  --cube-bg-dim: 400px;
  --cube-bg-half: 200px;
  --cube-bg-radius: 60px;
  --cube-bg-font-size: 200px;
}

.web-cube-bg-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 30; /* Ban đầu ở tiền cảnh đè lên nội dung web */
  contain: strict;
  transform: translateZ(0);
}

/* Lớp nội dung toàn bộ trang web */
.site-content-layer {
  position: relative;
  z-index: 2; /* Luôn ở tầng 2: ban đầu xúc xắc ở z-index 30 đè lên, sau khi xúc xắc vòng qua trái ra sau thì xúc xắc chuyển về z-index 0 */
  width: 100%;
  opacity: 1;
  pointer-events: auto;
}

/* Giữ nguyên nền trắng 100% tinh khôi theo yêu cầu khách hàng */
.cube-bg-ambient-grid {
  display: none !important;
}

/* 1. Sân khấu Mover: Vị trí tuyệt đối ở tâm màn hình, điều khiển translate 2D & scale mượt mà, KHÔNG perspective để tránh bug méo hình */
.cube-bg-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--cube-bg-dim);
  height: var(--cube-bg-dim);
  margin-top: calc(var(--cube-bg-dim) / -2);
  margin-left: calc(var(--cube-bg-dim) / -2);
  pointer-events: none;
  will-change: transform;
  transform-origin: 50% 50%;
  transform: translate3d(calc(50vw - 60px), calc(-50vh + 60px), 0px) scale(0.22);
}

/* 2. Camera phối cảnh 3D tách biệt: Phối cảnh 2800px chuẩn Isometric góc tự nhiên, cố định tâm 50% 50% không transform */
.cube-perspective-camera {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 2800px;
  perspective-origin: 50% 50%;
  transform-style: flat;
  transform: translateZ(0);
}

/* 3. Huy hiệu thương hiệu & thanh tải nhẹ nhàng lúc mở đầu (Xuất hiện ngay từ khi load trang, căn giữa màn hình ở phần dưới) */
.cube-intro-badge {
  position: absolute;
  bottom: clamp(32px, 8vh, 64px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 35;
}

.cube-intro-badge.badge-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(14px);
  pointer-events: none;
}

.intro-badge-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem; /* To rõ ràng theo yêu cầu khách hàng */
  font-weight: 850;
  color: #0f172a;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-align: center;
  white-space: nowrap;
}

.intro-badge-spinner {
  width: 260px; /* To rõ ràng theo yêu cầu khách hàng */
  height: 6px;  /* Dày dặn 6px */
  background: rgba(226, 232, 240, 0.95);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.intro-badge-spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #ff7a1a, #ff5200);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
  transform-origin: left center;
  animation: intro-bar-slide 1.25s infinite cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@keyframes intro-bar-slide {
  0% { transform: translateX(-100%) scaleX(1); }
  50% { transform: translateX(120%) scaleX(1.25); }
  100% { transform: translateX(330%) scaleX(1); }
}

.cube-bg-box {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateX(18deg) rotateY(32deg) rotateZ(12deg);
}

.cube-bg-face {
  position: absolute;
  width: var(--cube-bg-dim);
  height: var(--cube-bg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cube-bg-radius);
  border: 4px solid rgba(255, 255, 255, 0.65);
  box-shadow: 
    inset 0 0 16px rgba(255, 102, 0, 0.45),
    0 8px 18px rgba(255, 102, 0, 0.22);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  user-select: none;
}

.cube-bg-face::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 8%;
  width: 84%;
  height: 38%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.02));
  border-radius: calc(var(--cube-bg-radius) * 0.8);
  pointer-events: none;
}

.bg-face-char {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: var(--cube-bg-font-size);
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* 6 mặt theo màu logo thương hiệu MTOOLX */
.cube-bg-front {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
  transform: translateZ(var(--cube-bg-half));
}
.cube-bg-back {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
  transform: rotateY(180deg) translateZ(var(--cube-bg-half));
}
.cube-bg-right {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: rotateY(90deg) translateZ(var(--cube-bg-half));
}
.cube-bg-left {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  transform: rotateY(-90deg) translateZ(var(--cube-bg-half));
}
.cube-bg-top {
  background: linear-gradient(135deg, #ff8533 0%, #ff6600 100%);
  transform: rotateX(90deg) translateZ(var(--cube-bg-half));
}
.cube-bg-bottom {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  transform: rotateX(-90deg) translateZ(var(--cube-bg-half));
}

/* Bóng đổ mềm dưới đáy khối lập phương - Tối ưu 100% gradient tự nhiên, triệt tiêu filter blur gây lag GPU */
.cube-bg-ground-shadow {
  position: absolute;
  width: calc(var(--cube-bg-dim) * 1.35);
  height: calc(var(--cube-bg-dim) * 0.32);
  bottom: calc(var(--cube-bg-half) * -0.65);
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 102, 0, 0.38) 0%, rgba(255, 102, 0, 0.22) 28%, rgba(234, 88, 12, 0.08) 52%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.cube-bg-stage.cube-receded .cube-bg-ground-shadow,
.cube-bg-stage.cube-arc-receding .cube-bg-ground-shadow {
  opacity: 0.72;
  transform: translateX(-50%) scale(0.92);
}

/* Tự động co tỉ lệ khi trên màn hình máy tính bảng và điện thoại */
@media (max-width: 1024px) {
  :root {
    --cube-bg-dim: 410px;
    --cube-bg-half: 205px;
    --cube-bg-radius: 58px;
    --cube-bg-font-size: 205px;
  }
  @keyframes cubeArcLeftToBackground {
    0% { transform: translate3d(0, 0, 0) scale(1.22); opacity: 1; }
    28% { transform: translate3d(-18vw, -18px, -60px) scale(1.08); opacity: 0.98; }
    62% { transform: translate3d(-10vw, 10px, -180px) scale(0.95); opacity: 0.92; }
    100% { transform: translate3d(0, 0, 0) scale(0.88); opacity: 0.88; }
  }
}

@media (max-width: 768px) {
  :root {
    --cube-bg-dim: 310px;
    --cube-bg-half: 155px;
    --cube-bg-radius: 44px;
    --cube-bg-font-size: 155px;
  }
  @keyframes cubeArcLeftToBackground {
    0% { transform: translate3d(0, 0, 0) scale(1.18); opacity: 1; }
    28% { transform: translate3d(-14vw, -14px, -40px) scale(1.05); opacity: 0.98; }
    62% { transform: translate3d(-8vw, 8px, -120px) scale(0.94); opacity: 0.92; }
    100% { transform: translate3d(0, 0, 0) scale(0.88); opacity: 0.88; }
  }
}

/* ==========================================================================
   11. GLASS FRACTURE OVERLAY (HIỆU ỨNG NỨT KÍNH KHI XÚC XẮC VA CHẠM VÀO NỀN)
   ========================================================================== */
.glass-fracture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 25; /* Nằm trên mặt kính tiền cảnh, đè lên nội dung nhưng dưới xúc xắc lúc ở tiền cảnh (z-index 30), và trên xúc xắc khi xúc xắc đã xuyên thủng kính lùi ra sau (z-index 0) */
  overflow: hidden;
  opacity: 0;
  will-change: opacity, -webkit-mask-image, mask-image;
}

.glass-fracture-overlay.active {
  opacity: 1;
}

.glass-fracture-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 1. Vành lỗ thủng kính vỡ lớn - Sắc bén, đậm nét chuẩn pha lê có chiều sâu (Không dùng filter drop-shadow gây lag GPU) */
.glass-breach-rim-core {
  stroke: rgba(90, 120, 155, 0.75);
  stroke-width: 4.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.glass-breach-rim-highlight {
  stroke: #ffffff;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 2. Mảnh kính vỡ bay - Chuẩn mẫu kính pha lê đậm đà rõ khối có cạnh vát 3D và gờ bắt sáng rực */
.glass-flying-shard {
  fill: rgba(195, 215, 235, 0.28); /* Thân kính pha lê màu đậm đà rõ hình khối, vẫn trong suốt nhìn thấu chữ */
  stroke: rgba(90, 120, 155, 0.85);
  stroke-width: 2px;
  stroke-linejoin: round;
  transform-origin: center;
  animation: shardBlastOut 0.52s cubic-bezier(0.12, 0.95, 0.25, 1) forwards;
}

/* Cạnh vát bắt sáng chói rực - Chuẩn như cạnh thẳng đứng trong mẫu kính thực tế của bạn */
.glass-flying-shard-glint {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: shardBlastOut 0.52s cubic-bezier(0.12, 0.95, 0.25, 1) forwards;
}

@keyframes shardBlastOut {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.9);
    opacity: 1;
  }
  100% {
    transform: translate(var(--blast-x), var(--blast-y)) rotate(var(--blast-rot)) scale(1.02);
    opacity: 0.95;
  }
}

/* 3. Tia rạn nứt kính - Đậm nét, sắc sảo chuẩn kính cường lực */
.crack-fissure-core {
  stroke: rgba(90, 120, 155, 0.75);
  stroke-width: 3.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: crackShootFast 0.12s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.crack-fissure-light {
  stroke: #ffffff;
  stroke-width: 1.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: crackShootFast 0.12s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.crack-fissure-micro {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: crackShootFast 0.15s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.crack-web-ring-core {
  stroke: rgba(90, 120, 155, 0.75);
  stroke-width: 3.0px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: crackShootFast 0.16s cubic-bezier(0.1, 0.9, 0.2, 1) 0.02s forwards;
}

.crack-web-ring-light {
  stroke: #ffffff;
  stroke-width: 1.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: crackShootFast 0.16s cubic-bezier(0.1, 0.9, 0.2, 1) 0.02s forwards;
}

@keyframes crackShootFast {
  to {
    stroke-dashoffset: 0;
  }
}

/* Chớp sáng vi điểm tại tâm (Micro Spark, không làm mờ lóa cả trang) */
.glass-impact-flash {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 30%, rgba(255, 255, 255, 0) 70%);
  width: 70px;
  height: 70px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
}

.glass-impact-flash.animating {
  animation: impactFlashAnim 0.22s ease-out forwards;
}

@keyframes impactFlashAnim {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* Vòng sóng chấn động mảnh trong suốt */
.glass-shockwave-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  width: 50px;
  height: 50px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  pointer-events: none;
}

.glass-shockwave-ring.animating {
  animation: shockwaveRingAnim 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes shockwaveRingAnim {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.8; border-width: 2px; }
  60% { opacity: 0.35; border-width: 1px; }
  100% { transform: translate(-50%, -50%) scale(4.0); opacity: 0; border-width: 0.5px; }
}

/* Vi rung chấn màn hình (Screen Rumble) tạo trọng lượng va chạm cực kỳ chân thực */
.site-content-layer.screen-rumble {
  animation: glassImpactRumble 0.18s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes glassImpactRumble {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-3px, 2px, 0); }
  40% { transform: translate3d(3px, -2px, 0); }
  60% { transform: translate3d(-2px, -1px, 0); }
  80% { transform: translate3d(1px, 2px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}




/* ==========================================================================
   COMPREHENSIVE RESPONSIVE & SMOOTH INTERACTION ENGINE
   (Mobile 320-480px, iPad 768-1024px, Desktop Zoom 100-200%)
   ========================================================================== */

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

button, a, .btn, .mode-tab-btn, .filter-tab, .dock-btn {
  touch-action: manipulation;
}

/* 1. iPad & Tablet Landscape / Small Desktop (1024px - 1200px) */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding: 0 24px !important;
  }
  .hero-visual {
    max-width: 850px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}

/* 2. iPad & Tablet Portrait (769px - 1024px) */
@media (max-width: 1024px) {
  .section-container {
    padding: 70px 24px !important;
  }
  .request-form-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .studio-frame-body {
    height: 600px !important;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* 3. Mobile Devices & Phablets (< 768px) */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }
  .nav-container {
    padding: 0 16px !important;
  }
  .section-container {
    padding: 56px 16px !important;
  }
  .hero-title {
    font-size: clamp(1.8rem, 5.5vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }
  .section-title {
    font-size: 1.75rem !important;
    line-height: 1.22 !important;
  }
  .section-subtitle {
    font-size: 0.92rem !important;
  }
  .console-mode-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .mode-tab-btn {
    white-space: normal !important;
    padding: 6px 8px !important;
    font-size: 0.74rem !important;
    text-align: center !important;
  }
  .studio-frame-body {
    height: 480px !important;
  }
  .studio-stats-center {
    display: none !important;
  }
  .filter-tabs {
    gap: 6px !important;
  }
  .filter-tab {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  .request-form-wrapper {
    padding: 22px 16px !important;
  }
  .form-row-2col {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .cta-content-split {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 22px !important;
  }
  .cta-text-side {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .cta-btn-side {
    width: 100% !important;
  }
  .cta-btn-side .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .footer-container {
    grid-template-columns: 1fr !important;
  }
}

/* 4. Compact Smartphones & Zoom In (< 480px) */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 12px !important;
  }
  .brand-logo {
    gap: 10px !important;
  }
  .logo-box {
    width: 36px !important;
    height: 36px !important;
  }
  .cube-3d-wrapper {
    width: 22px !important;
    height: 22px !important;
  }
  .cube-face {
    width: 22px !important;
    height: 22px !important;
  }
  .face-text {
    font-size: 11px !important;
  }
  .brand-title {
    font-size: 1.10rem !important;
  }
  .brand-tagline {
    display: none !important;
  }
  .nav-actions .btn {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
  }
  .hero-container {
    padding: 0 12px !important;
    gap: 24px !important;
  }
  .hero-badge {
    font-size: 0.68rem !important;
    padding: 4px 10px !important;
  }
  .hero-title {
    font-size: 1.58rem !important;
    line-height: 1.22 !important;
  }
  .hero-desc {
    font-size: 0.90rem !important;
  }
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }
  .hero-stats-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    padding-top: 18px !important;
  }
  .stat-val {
    font-size: 1.35rem !important;
  }
  .stat-label {
    font-size: 0.70rem !important;
  }
  .studio-window {
    border-radius: 12px !important;
  }
  .window-titlebar {
    padding: 8px 12px !important;
  }
  .window-body {
    padding: 12px !important;
    gap: 12px !important;
  }
  .sim-game-bar {
    padding: 8px 10px !important;
  }
  .sim-game-logo {
    width: 36px !important;
    height: 36px !important;
  }
  .sim-game-name {
    font-size: 0.82rem !important;
  }
  .studio-frame-body {
    height: 400px !important;
  }
  .game-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .tech-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .modal-content {
    padding: 20px 14px !important;
    border-radius: 12px !important;
  }
  .floating-contact-dock {
    bottom: 12px !important;
    right: 12px !important;
    gap: 8px !important;
  }
  .dock-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .dock-svg {
    width: 17px !important;
    height: 17px !important;
  }
  .cta-banner-card {
    padding: 28px 16px !important;
    border-radius: 16px !important;
  }
}


/* ==========================================================================
   FORM ANTI-DEFORMATION & MOBILE TOUCH HARDENING ENGINE
   (Chống biến dạng form, chống Auto-Zoom trên iOS Safari, chuẩn hóa Dropdown)
   ========================================================================== */

/* 1. Chuẩn hóa hiển thị Input, Textarea và Select trên mọi thiết bị */
.cyber-input,
.cyber-textarea,
.cyber-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

/* 2. Tạo mũi tên SVG tùy biến sắc nét cho thẻ select */
.cyber-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px 15px;
  padding-right: 38px !important;
}

/* 3. Khóa chống kéo giãn ngang làm biến dạng layout */
.cyber-textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 220px;
}

/* 4. Chống bàn phím ảo che khuất form modal khi mở trên mobile */
.modal-content {
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* 5. Khắc phục triệt để lỗi iOS Safari tự ý phóng to (Auto-Zoom) khi chạm vào ô nhập */
@media (max-width: 768px) {
  .cyber-input,
  .cyber-textarea,
  .cyber-select {
    font-size: 16px !important; /* Chuẩn Apple iOS: >= 16px sẽ không bị giật zoom khung nhìn */
    line-height: 1.35 !important;
  }
}

@media (max-width: 480px) {
  .request-form-card {
    padding: 0 !important;
  }
  .request-side-card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }
  .success-direct-btns {
    flex-direction: column !important;
    width: 100% !important;
  }
  .success-direct-btns .btn {
    width: 100% !important;
  }
}
