/* ==========================================================================
   BongSuMoBin App Studio & TrọBill Landing Page Stylesheet
   Design Aesthetic: Modern Dark Glassmorphism, Premium Gradient & Micro-animations
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Tokens */
  --bg-dark: #090d16;
  --bg-card: rgba(20, 26, 44, 0.7);
  --bg-card-hover: rgba(28, 37, 62, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(124, 58, 237, 0.4);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --text: #f3f4f6;
  --bg: #090d16;

  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-glow: rgba(124, 58, 237, 0.35);

  --emerald: #10b981;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --rose: #f43f5e;
  --cyan: #06b6d4;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  padding-top: 76px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img,
iframe {
  max-width: 100%;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Glow Orbs (Pure CSS Radial Gradient Soft Falloff - 0px GPU Blur) */
.bg-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  max-width: 100%;
  overflow: hidden;
}

.bg-glow-1 {
  top: -50px;
  left: 0;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.65) 0%, rgba(124, 58, 237, 0.22) 45%, transparent 70%);
}

body.theme-bnbill .bg-glow-1 {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.65) 0%, rgba(244, 63, 94, 0.22) 45%, transparent 70%);
}

.bg-glow-bnbill {
  top: -50px;
  left: 0;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.65) 0%, rgba(244, 63, 94, 0.22) 45%, transparent 70%);
}

.bg-glow-2 {
  top: 600px;
  right: 0;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.65) 0%, rgba(6, 182, 212, 0.22) 45%, transparent 70%);
}

body.theme-bnbill .bg-glow-2 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.65) 0%, rgba(245, 158, 11, 0.22) 45%, transparent 70%);
}

/* Text Gradients & Helpers */
.text-gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-bnbill .text-gradient {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #fda4af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-bnbill {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #fda4af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4c1d95 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-bnbill {
  background: linear-gradient(135deg, var(--rose) 0%, #be123c 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.35);
}

.btn-bnbill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.35);
}

.btn-outline-bnbill,
.btn-outline-rose {
  background: rgba(244, 63, 94, 0.1);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.15);
}

.btn-outline-bnbill:hover,
.btn-outline-rose:hover {
  background: rgba(244, 63, 94, 0.22);
  color: #ffffff;
  border-color: rgba(244, 63, 94, 0.75);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.1);
}

body.theme-bnbill .btn-outline:hover {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
}

/* Section Common Header */
.section-header {
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 99px;
  color: #c4b5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 13, 22, 0.96);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1400px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px;
  border: 1px solid var(--border-glass);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.theme-bnbill .logo-icon-wrap {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.4);
}

.brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

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

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: #ffffff !important;
  background: rgba(124, 58, 237, 0.18) !important;
  border: 1px solid rgba(167, 139, 250, 0.45) !important;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.25) !important;
  font-weight: 600 !important;
}

.nav-link.active i {
  color: #a78bfa;
  opacity: 1;
}

/* BnBill Theme Highlight */
body.theme-bnbill .nav-link.active {
  background: rgba(244, 63, 94, 0.18) !important;
  border-color: rgba(251, 113, 133, 0.5) !important;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.25) !important;
}

body.theme-bnbill .nav-link.active i {
  color: #fb7185;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.hero-visual {
  margin-top: 3.2rem;
}

@media (max-width: 992px) {
  .hero-visual {
    margin-top: 0;
  }
}

.badge-publisher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 99px;
  color: #6ee7b7;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .badge-publisher {
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
    gap: 0.35rem;
  }
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  max-width: 620px;
}

.hero-buttons .btn {
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

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

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

/* Hero Visual Glass Card */
.visual-card-glass {
  background: rgba(20, 26, 44, 0.92);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  position: relative;
}

.visual-card-glass:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.6);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.app-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.5), 0 4px 14px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.app-card-icon:hover {
  transform: scale(1.06);
  border-color: rgba(233, 213, 255, 0.9);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.7);
}

body.theme-bnbill .app-card-icon {
  border: 2px solid rgba(251, 113, 133, 0.8);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.65), 0 0 10px rgba(251, 113, 133, 0.45), 0 4px 14px rgba(0, 0, 0, 0.45);
  background: rgba(244, 63, 94, 0.1);
}

body.theme-bnbill .app-card-icon:hover {
  transform: scale(1.06);
  border-color: rgba(254, 205, 211, 0.95);
  box-shadow: 0 0 26px rgba(225, 29, 72, 0.95), 0 0 14px rgba(251, 113, 133, 0.7);
}

.app-card-info {
  flex: 1;
}

.app-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.app-card-dev {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.badge-status {
  padding: 0.25rem 0.75rem;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 99px;
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
}

.app-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Demo Section & Phone Frame */
.demo-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.demo-wrapper {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-toolbar {
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  background: rgba(20, 26, 44, 0.92);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.8rem 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.demo-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.demo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Phone Bezel Mockup (Realistic iPhone Titanium Bezel + Dynamic Island) */
.phone-mockup-frame {
  width: 100%;
  max-width: 410px;
  height: 812px;
  background: #0f172a;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  border: 4px solid #1e293b;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island (Pill with camera pinhole lens & speaker) */
.phone-notch,
.smartphone-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.phone-notch::before,
.smartphone-island::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1e293b;
  border: 1.5px solid #0f172a;
  display: block;
}

.phone-notch::after,
.smartphone-island::after {
  content: "";
  width: 44px;
  height: 4px;
  border-radius: 3px;
  background: #1e293b;
  display: block;
}

/* Screen Viewport with concentric 38px radius */
.phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* Simulated Native Status Bar (Safe Area Header preventing Dynamic Island overlap) */
.phone-status-bar {
  height: 38px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 26px;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  background: #000000;
  flex-shrink: 0;
  z-index: 10;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.2px;
}

.phone-status-bar .status-time {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.phone-status-bar .status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
}

.phone-screen iframe {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #ffffff;
}

/* Home Indicator Bar */
.phone-home-bar,
.smartphone-home-bar {
  width: 130px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

/* Bottom Safe Area Bar (preventing Home Indicator overlap on bottom navigation tabs) */
.phone-bottom-bar {
  height: 14px;
  width: 100%;
  flex-shrink: 0;
  background: transparent;
  z-index: 10;
  pointer-events: none;
}

/* App-Specific Status Bar & Bottom Bar Theming */
.restobill-phone-frame .phone-status-bar,
.restobill-phone-frame .phone-bottom-bar {
  background: #061a14;
}

.homebill-phone-frame .phone-status-bar,
.homebill-phone-frame .phone-bottom-bar {
  background: #0c1821;
}

.snapbill-phone-frame .phone-status-bar,
.snapbill-phone-frame .phone-bottom-bar {
  background: #07080d;
}

.mukbill-phone-frame .phone-status-bar,
.mukbill-phone-frame .phone-bottom-bar {
  background: #1c0e06;
}

.bebill-phone-frame .phone-status-bar,
.bebill-phone-frame .phone-bottom-bar {
  background: #071524;
}


.demo-tips {
  margin-top: 2rem;
  width: 100%;
  max-width: 820px;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  color: #fde68a;
  font-size: 0.92rem;
}

.tip-icon {
  font-size: 1.4rem;
  color: var(--amber);
  margin-top: 2px;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

/* Skills & Education Grid Responsive Layout: 4 columns Desktop, 2x2 Tablet, 1 column Mobile */
#skills .skills-grid,
#education .features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

#skills .skill-card,
#education .feature-card {
  padding: 1.8rem 1.2rem;
}

@media (max-width: 991px) {

  #skills .skills-grid,
  #education .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {

  #skills .skills-grid,
  #education .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.portfolio-card.bnbill-card:hover {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(244, 63, 94, 0.15);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}

.bg-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.bg-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
}

.bg-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.bg-purple {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
}

.bg-rose {
  background: rgba(244, 63, 94, 0.15);
  color: var(--rose);
}

.bg-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Gallery Screenshots */
.gallery-section {
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  text-align: center;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  border-color: var(--border-highlight);
}

.gallery-item img {
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
}

.gallery-caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Portfolio Section */
.portfolio-section {
  padding: 6rem 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  transition: var(--transition);
}

.active-card {
  border-color: var(--border-highlight);
}

.active-card:hover {
  box-shadow: 0 10px 40px var(--primary-glow);
}

.portfolio-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  min-height: 64px;
}

.portfolio-title {
  line-height: 1.25;
  font-size: 1.05rem;
  min-height: 2.6rem;
}

.portfolio-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  min-height: 5.5rem;
}

.portfolio-preview-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.portfolio-card .app-card-tags {
  min-height: 56px;
  margin-bottom: 0.85rem;
  gap: 0.35rem;
  align-content: flex-start;
}

.portfolio-footer {
  margin-top: auto !important;
  padding-top: 0.65rem;
}

.portfolio-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 18px rgba(147, 51, 234, 0.5), 0 4px 12px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Product 1: TrọBill Regal Purple Glow */
.trobill-card .portfolio-icon,
.trobill-icon,
.portfolio-icon.trobill-icon {
  border-color: rgba(192, 132, 252, 0.8) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.65), 0 0 10px rgba(192, 132, 252, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(168, 85, 247, 0.1);
}

.trobill-card .portfolio-icon:hover,
.trobill-icon:hover,
.portfolio-icon.trobill-icon:hover,
.portfolio-icon:hover {
  transform: scale(1.06);
  border-color: rgba(233, 213, 255, 0.95) !important;
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.95), 0 0 14px rgba(192, 132, 252, 0.7) !important;
}

/* Product 2: BnBill Coral Rose Red Glow */
.bnbill-card .portfolio-icon,
.bnbill-icon,
.portfolio-icon.bnbill-icon {
  border-color: rgba(251, 113, 133, 0.8) !important;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.65), 0 0 10px rgba(251, 113, 133, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(244, 63, 94, 0.1);
}

.bnbill-card .portfolio-icon:hover,
.bnbill-icon:hover,
.portfolio-icon.bnbill-icon:hover {
  transform: scale(1.06);
  border-color: rgba(254, 205, 211, 0.95) !important;
  box-shadow: 0 0 26px rgba(225, 29, 72, 0.95), 0 0 14px rgba(251, 113, 133, 0.7) !important;
}

.capybill-card .portfolio-icon,
.upcoming-card .portfolio-icon,
.capybill-icon {
  border-color: rgba(245, 158, 11, 0.8) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.65), 0 0 10px rgba(251, 191, 36, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(245, 158, 11, 0.1);
}

.capybill-card .portfolio-icon:hover,
.upcoming-card .portfolio-icon:hover,
.capybill-icon:hover {
  border-color: #fef08a !important;
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.95), 0 0 14px rgba(253, 224, 71, 0.7) !important;
}

/* Product 4: RestoBill Emerald Green Glow */
.restobill-card .portfolio-icon,
.restobill-icon,
.portfolio-icon.restobill-icon {
  border-color: rgba(16, 185, 129, 0.85) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.65), 0 0 10px rgba(52, 211, 153, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(16, 185, 129, 0.1);
}

.restobill-card .portfolio-icon:hover,
.restobill-icon:hover,
.portfolio-icon.restobill-icon:hover {
  transform: scale(1.06);
  border-color: rgba(167, 243, 208, 0.95) !important;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.95), 0 0 14px rgba(52, 211, 153, 0.7) !important;
}

/* Product 5: MukBill Warm Orange Glow */
.mukbill-card .portfolio-icon,
.mukbill-icon,
.portfolio-icon.mukbill-icon {
  border-color: rgba(249, 115, 22, 0.85) !important;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.65), 0 0 10px rgba(251, 146, 60, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(249, 115, 22, 0.1);
}

.mukbill-card .portfolio-icon:hover,
.mukbill-icon:hover,
.portfolio-icon.mukbill-icon:hover {
  transform: scale(1.06);
  border-color: rgba(254, 215, 170, 0.95) !important;
  box-shadow: 0 0 26px rgba(249, 115, 22, 0.95), 0 0 14px rgba(251, 146, 60, 0.7) !important;
}

/* Product 6: NhàBill / HomeBill Sky Blue Glow */
.homebill-card .portfolio-icon,
.homebill-icon,
.portfolio-icon.homebill-icon {
  border-color: rgba(14, 165, 233, 0.85) !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.65), 0 0 10px rgba(56, 189, 248, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(14, 165, 233, 0.1);
}

.homebill-card .portfolio-icon:hover,
.homebill-icon:hover,
.portfolio-icon.homebill-icon:hover {
  transform: scale(1.06);
  border-color: rgba(186, 230, 253, 0.95) !important;
  box-shadow: 0 0 26px rgba(14, 165, 233, 0.95), 0 0 14px rgba(56, 189, 248, 0.7) !important;
}

/* Product 7: NinjaBill Cyber Cyan / Crimson Glow */
.ninjabill-card .portfolio-icon,
.ninjabill-icon,
.portfolio-icon.ninjabill-icon {
  border-color: rgba(6, 182, 212, 0.85) !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.65), 0 0 10px rgba(34, 211, 238, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(6, 182, 212, 0.1);
}

.ninjabill-card .portfolio-icon:hover,
.ninjabill-icon:hover,
.portfolio-icon.ninjabill-icon:hover {
  transform: scale(1.06);
  border-color: rgba(165, 243, 252, 0.95) !important;
  box-shadow: 0 0 26px rgba(6, 182, 212, 0.95), 0 0 14px rgba(34, 211, 238, 0.7) !important;
}

/* Product 8: SnapBill Neon Yellow & Purple Glow */
.snapbill-card .portfolio-icon,
.snapbill-icon,
.portfolio-icon.snapbill-icon {
  border-color: rgba(234, 179, 8, 0.85) !important;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.65), 0 0 10px rgba(168, 85, 247, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(234, 179, 8, 0.1);
}

.snapbill-card .portfolio-icon:hover,
.snapbill-icon:hover,
.portfolio-icon.snapbill-icon:hover {
  transform: scale(1.06);
  border-color: rgba(254, 240, 138, 0.95) !important;
  box-shadow: 0 0 26px rgba(234, 179, 8, 0.95), 0 0 14px rgba(192, 132, 252, 0.7) !important;
}

/* Product 9: ChefBill Crimson Flame & Orange Glow */
.chefbill-card .portfolio-icon,
.chefbill-icon,
.portfolio-icon.chefbill-icon {
  border-color: rgba(239, 68, 68, 0.85) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.65), 0 0 10px rgba(251, 146, 60, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(239, 68, 68, 0.1);
}

.chefbill-card .portfolio-icon:hover,
.chefbill-icon:hover,
.portfolio-icon.chefbill-icon:hover {
  transform: scale(1.06);
  border-color: rgba(254, 202, 202, 0.95) !important;
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.95), 0 0 14px rgba(251, 146, 60, 0.7) !important;
}

/* Product 10: DarkBills Tarnished Brass & Hellfire Amber Glow */
.darkbills-card .portfolio-icon,
.darkbills-icon,
.portfolio-icon.darkbills-icon {
  border-color: rgba(217, 119, 6, 0.88) !important;
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.65), 0 0 10px rgba(220, 38, 38, 0.45), 0 4px 12px rgba(0, 0, 0, 0.55) !important;
  background: rgba(217, 119, 6, 0.12);
}

.darkbills-card .portfolio-icon:hover,
.darkbills-icon:hover,
.portfolio-icon.darkbills-icon:hover {
  transform: scale(1.06);
  border-color: rgba(253, 230, 138, 0.95) !important;
  box-shadow: 0 0 26px rgba(217, 119, 6, 0.95), 0 0 14px rgba(220, 38, 38, 0.75) !important;
}

/* Showcase Filter Tabs (Option 1) */
.portfolio-filter-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.5rem auto 2.25rem;
  padding: 0.35rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.portfolio-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-filter-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Portfolio Sub-groups */
.portfolio-group {
  margin-bottom: 2.75rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-group:last-child {
  margin-bottom: 0;
}

.portfolio-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-group-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0;
}

.portfolio-group-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* Grid Layouts: Launched (6 Flagship & In-Dev Products) 3x2, Apps 2-col */
.portfolio-grid-apps {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}

.portfolio-grid-launched {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
}

@media (max-width: 1080px) {
  .portfolio-grid-launched {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* R&D grid: flex-wrap + centered last row; column count driven by --cols (10 cards = 4+4+2, filtered 5 cards = 3+2) */
.portfolio-grid-rd {
  --cols: 2;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem !important;
}

.portfolio-grid-rd > .portfolio-card {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 1.5rem) / var(--cols));
  max-width: calc((100% - (var(--cols) - 1) * 1.5rem) / var(--cols));
  /* cards carry inline height:100% which blocks flex stretch -> force auto so every card in a row matches the tallest */
  height: auto !important;
  align-self: stretch;
}

.portfolio-grid-launched > .portfolio-card.rd-hidden,
.portfolio-grid-rd > .portfolio-card.rd-hidden {
  display: none !important;
}

/* Wide desktop (>=1600px): widen portfolio container (launched stays 2x2) */
@media (min-width: 1600px) {
  #portfolio .container {
    max-width: 1560px;
  }
  .portfolio-grid-rd {
    --cols: 4;
  }
  /* hard uniform card height across ALL rows (tallest card = miniBill Hub ~654px); min-height so content never clips */
  .portfolio-grid-rd > .portfolio-card {
    min-height: 660px;
  }
  .portfolio-grid-rd[data-filter="app"],
  .portfolio-grid-rd[data-filter="game"] {
    --cols: 4;
  }
}

@media (max-width: 900px) {
  .portfolio-grid-apps,
  .portfolio-grid-launched {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* R&D type toggle (All / Apps / Games) */
.rd-type-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rd-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.rd-type-btn em {
  font-style: normal;
  font-size: 0.68rem;
  opacity: 0.7;
}

.rd-type-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.rd-type-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
  border-color: rgba(168, 85, 247, 0.5);
}

[data-theme="light"] .rd-type-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .rd-type-btn:hover,
[data-theme="light"] .rd-type-btn.active {
  color: #1e1b4b;
}

@media (max-width: 768px) {
  .portfolio-grid-rd {
    --cols: 1;
  }
  .portfolio-group-header:has(.rd-type-toggle) {
    flex-wrap: wrap;
  }
  .rd-type-toggle {
    margin-left: 0;
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .rd-type-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .portfolio-filter-tabs {
    width: 100%;
    border-radius: var(--radius-md);
    flex-direction: column;
    gap: 0.35rem;
  }
  .portfolio-filter-btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .portfolio-grid-apps,
  .portfolio-grid-games,
  .portfolio-grid-launched {
    grid-template-columns: 1fr !important;
  }
}

/* RestoBill Live Demo Modal Enhancements with Realistic Phone Frame */
.restobill-demo-modal-card {
  max-width: 480px;
  width: 94%;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.25);
  background: #071913;
  border-radius: 24px;
  max-height: 94vh;
  overflow-y: auto;
  margin: auto;
}

.restobill-demo-modal-card::-webkit-scrollbar {
  width: 6px;
}
.restobill-demo-modal-card::-webkit-scrollbar-track {
  background: rgba(6, 26, 20, 0.6);
  border-radius: 10px;
}
.restobill-demo-modal-card::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.35);
  border-radius: 10px;
}
.restobill-demo-modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.6);
}

/* Phone Bezel Container inside RestoBill Demo Modal */
.restobill-phone-frame {
  width: 100%;
  max-width: 395px;
  height: 720px;
  max-height: calc(88vh - 100px);
  min-height: 480px;
  background: #071510;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.85), 0 0 25px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border: 4px solid #133327;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.restobill-phone-frame .phone-notch {
  background: #000000;
}

.restobill-phone-frame .phone-notch::before {
  background: #0f2c21;
  border-color: #081c15;
}

.restobill-phone-frame .phone-notch::after {
  background: #0f2c21;
}

.restobill-phone-frame .phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #061a14;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.restobill-phone-frame .phone-screen iframe {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #061a14;
  display: block;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.restobill-phone-frame .phone-home-bar {
  width: 120px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

/* Phone Bezel Container inside HomeBill (NhàBill) Demo Modal */
.homebill-phone-frame {
  width: 100%;
  max-width: 395px;
  height: 720px;
  max-height: calc(88vh - 100px);
  min-height: 480px;
  background: #07131d;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.85), 0 0 25px rgba(14, 165, 233, 0.25), 0 0 0 1px rgba(14, 165, 233, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border: 4px solid #102a3d;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.homebill-phone-frame .phone-notch {
  background: #000000;
}

.homebill-phone-frame .phone-notch::before {
  background: #0c273d;
  border-color: #071929;
}

.homebill-phone-frame .phone-notch::after {
  background: #0c273d;
}

.homebill-phone-frame .phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #0c1821;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.homebill-phone-frame .phone-screen iframe {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #0c1821;
  display: block;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.homebill-phone-frame .phone-home-bar {
  width: 120px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}


.restobill-demo-trigger {
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.restobill-demo-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5) !important;
  filter: brightness(1.08);
}

@media (max-width: 540px) {
  .restobill-demo-modal-card {
    width: 96%;
    padding: 0.75rem;
    max-height: 96vh;
    border-radius: 18px;
  }
  .restobill-phone-frame,
  .homebill-phone-frame,
  .snapbill-phone-frame,
  .mukbill-phone-frame,
  .bebill-phone-frame {
    max-width: 100%;
    height: calc(94vh - 120px);
    min-height: 440px;
    padding: 6px;
    border-radius: 24px;
    border-width: 3px;
  }
  .restobill-phone-frame .phone-screen,
  .homebill-phone-frame .phone-screen,
  .snapbill-phone-frame .phone-screen,
  .mukbill-phone-frame .phone-screen,
  .bebill-phone-frame .phone-screen {
    border-radius: 18px;
  }
  .restobill-phone-frame .phone-notch,
  .homebill-phone-frame .phone-notch,
  .snapbill-phone-frame .phone-notch,
  .mukbill-phone-frame .phone-notch,
  .bebill-phone-frame .phone-notch {
    width: 96px;
    height: 18px;
    top: 8px;
  }
  .restobill-phone-frame .phone-notch::before,
  .homebill-phone-frame .phone-notch::before,
  .snapbill-phone-frame .phone-notch::before,
  .mukbill-phone-frame .phone-notch::before,
  .bebill-phone-frame .phone-notch::before {
    width: 8px;
    height: 8px;
  }
  .restobill-phone-frame .phone-notch::after,
  .homebill-phone-frame .phone-notch::after,
  .snapbill-phone-frame .phone-notch::after,
  .mukbill-phone-frame .phone-notch::after,
  .bebill-phone-frame .phone-notch::after {
    width: 34px;
    height: 3px;
  }
  .restobill-phone-frame .phone-home-bar,
  .homebill-phone-frame .phone-home-bar,
  .snapbill-phone-frame .phone-home-bar,
  .mukbill-phone-frame .phone-home-bar,
  .bebill-phone-frame .phone-home-bar {
    bottom: 10px;
    width: 80px;
  }
}

/* ===================================================================
   UPCOMING / CONCEPT CARD — Portfolio Title Height Contract
   Scope: MukBill, HomeBill/NhàBill (class "upcoming-card")
   Formula: 2 lines × font-size 1.05rem × line-height 1.25 = 2.625rem ≈ 2.6rem
   Uniform across all 6 cards (TrọBill, BnBill, CapyBill, RestoBill, MukBill, HomeBill)
   Single Source of Truth — DO NOT add min-height inline in HTML.
   ==================================================================== */
.upcoming-card .portfolio-title {
  min-height: 2.6rem;
  line-height: 1.25;
  font-size: 1.05rem;
  margin-top: 0.15rem;
}

/* Product 5: MukBill Sunset Orange Glow */
.mukbill-card .portfolio-icon,
.mukbill-icon,
.portfolio-icon.mukbill-icon {
  border-color: rgba(249, 115, 22, 0.85) !important;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.65), 0 0 10px rgba(251, 146, 60, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(249, 115, 22, 0.1);
}

.mukbill-card .portfolio-icon:hover,
.mukbill-icon:hover,
.portfolio-icon.mukbill-icon:hover {
  transform: scale(1.06);
  border-color: rgba(254, 215, 170, 0.95) !important;
  box-shadow: 0 0 26px rgba(249, 115, 22, 0.95), 0 0 14px rgba(251, 146, 60, 0.7) !important;
}

/* Product 6: NhàBill / HomeBill Sky Blue Glow */
.homebill-card .portfolio-icon,
.homebill-icon,
.portfolio-icon.homebill-icon {
  border-color: rgba(14, 165, 233, 0.85) !important;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.65), 0 0 10px rgba(56, 189, 248, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(14, 165, 233, 0.1);
}

.homebill-card .portfolio-icon:hover,
.homebill-icon:hover,
.portfolio-icon.homebill-icon:hover {
  transform: scale(1.06);
  border-color: rgba(186, 230, 253, 0.95) !important;
  box-shadow: 0 0 26px rgba(14, 165, 233, 0.95), 0 0 14px rgba(56, 189, 248, 0.7) !important;
}



.icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-muted);
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  text-transform: uppercase;
  display: inline-block;
  border: 1px solid transparent;
}

.badge-tag.live {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.badge-tag.testing {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fcd34d;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.22);
}

.capybill-card .badge-tag.testing,
#gameInfoCapyBill .badge-tag.testing {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.26) 0%, rgba(234, 88, 12, 0.22) 100%);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: #fde68a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.28);
}

.ninjabill-card .badge-tag.testing,
#gameInfoNinjaBill .badge-tag.testing {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.26) 0%, rgba(6, 182, 212, 0.22) 100%);
  border: 1px solid rgba(248, 113, 113, 0.65);
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.28);
}

.restobill-card .badge-tag.testing,
#appInfoRestoBill .badge-tag.testing {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.26) 0%, rgba(245, 158, 11, 0.18) 100%);
  border: 1px solid rgba(52, 211, 153, 0.65);
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.28);
}

.capybill-card .app-card-tags .tag {
  background: rgba(245, 158, 11, 0.11);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.capybill-card .app-card-tags .tag i {
  color: #fbbf24;
}

.ninjabill-card .app-card-tags .tag {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.13) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.ninjabill-card .app-card-tags .tag i {
  color: #f87171;
}

.ninjabill-card .app-card-tags .tag:nth-child(even) {
  border-color: rgba(34, 211, 238, 0.4);
  color: #a5f3fc;
}

.ninjabill-card .app-card-tags .tag:nth-child(even) i {
  color: #22d3ee;
}

.restobill-card .app-card-tags .tag {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.13) 0%, rgba(245, 158, 11, 0.09) 100%);
  border-color: rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}

.restobill-card .app-card-tags .tag i {
  color: #34d399;
}

.chefbill-card .badge-tag.testing,
#gameInfoChefBill .badge-tag.testing {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.26) 0%, rgba(249, 115, 22, 0.24) 100%);
  border: 1px solid rgba(251, 146, 60, 0.65);
  color: #fdba74;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.28);
}

.chefbill-card .app-card-tags .tag {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.13) 0%, rgba(249, 115, 22, 0.1) 100%);
  border-color: rgba(251, 146, 60, 0.4);
  color: #fed7aa;
}

.chefbill-card .app-card-tags .tag i {
  color: #fb923c;
}

.badge-tag.coming {
  background: rgba(156, 163, 175, 0.2);
  color: #d1d5db;
}

.portfolio-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  padding: 0.32rem 0.85rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border-highlight);
  color: #c4b5fd;
  width: fit-content;
  max-width: fit-content;
}

.portfolio-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.2rem;
}

.portfolio-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
}

.portfolio-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.portfolio-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.portfolio-footer-grid .btn:first-child {
  grid-column: span 2;
}

/* FAQ Accordion */
.faq-section {
  padding: 5rem 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  max-height: 200px;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
}

body.theme-bnbill .cta-box {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: #050810;
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.footer-social-btn.github:hover {
  background: #24292f;
  border-color: #6e7681;
  color: #fff;
  box-shadow: 0 4px 14px rgba(36, 41, 47, 0.55);
}

.footer-social-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.footer-social-btn.google-play:hover {
  background: #01875f;
  border-color: #01875f;
  color: #fff;
  box-shadow: 0 4px 14px rgba(1, 135, 95, 0.4);
}

.footer-social-btn.app-store:hover {
  background: #0ea5e9;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45);
}

.footer-social-btn.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4);
}

.footer-social-btn.email:hover {
  background: #ea4335;
  border-color: #ea4335;
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 67, 53, 0.4);
}

[data-theme="light"] .footer-social-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .footer-social-btn:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.3fr;
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  line-height: 1.5;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a i {
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.75;
  transition: var(--transition);
}

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

.footer-col a:hover i {
  opacity: 1;
  color: var(--primary);
}

body.theme-bnbill .footer-col a:hover,
body.theme-bnbill .footer-col a:hover i {
  color: #fb7185;
}

/* Collapsible Ecosystem Category Groups in Footer (Apps / Games) */
.footer-nav-group {
  margin-bottom: 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: var(--transition);
  width: 100%;
  max-width: 280px;
}

.footer-nav-group:hover,
.footer-nav-group[open] {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.footer-group-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.65rem;
  cursor: pointer;
  user-select: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-group-toggle::-webkit-details-marker {
  display: none;
}

.footer-group-toggle:hover,
.footer-nav-group[open] .footer-group-toggle {
  color: #f8fafc;
}

.footer-group-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-group-label i {
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
  color: var(--primary);
  opacity: 0.9;
}

body.theme-bnbill .footer-group-label i {
  color: #fb7185;
}

.footer-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.05rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  line-height: 1.3;
}

.footer-group-chevron {
  font-size: 0.72rem;
  opacity: 0.65;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.footer-nav-group[open] .footer-group-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary);
}

body.theme-bnbill .footer-nav-group[open] .footer-group-chevron {
  color: #fb7185;
}

.footer-group-items {
  padding: 0.25rem 0.65rem 0.5rem 1.15rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  text-align: left;
}

.footer-group-items a {
  margin-bottom: 0 !important;
  font-size: 0.85rem;
}

.footer-info {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
  line-height: 1.6;
  word-break: break-word;
}

.footer-info i {
  font-size: 0.85rem;
  margin-right: 0.4rem;
  color: var(--primary);
  opacity: 0.85;
}

body.theme-bnbill .footer-info i {
  color: #fb7185;
}

.footer-info strong {
  color: #e2e8f0;
  font-weight: 600;
}

.footer-info a {
  display: inline;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-info a:hover {
  color: var(--primary);
  text-decoration: underline;
}

body.theme-bnbill .footer-info a:hover {
  color: #fb7185;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Modal Privacy Policy (Zero Hardware Layer on Idle: display:none when closed) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.84);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 0.5rem;
  box-sizing: border-box;
}

body.modal-open {
  overflow: hidden !important;
}

.modal-overlay.open,
.modal-overlay:target {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #111827;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  margin: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
  font-size: 1.2rem;
  color: #fff;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.modal-footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* CapyBill Modal & Card Base Components */
.capybill-modal-title {
  color: var(--text-main);
}

.capybill-concept-body {
  color: var(--text-muted);
}

.capybill-feature-title {
  color: var(--text-main);
}

.capybill-roadmap-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
}

.capybill-roadmap-text {
  color: #f59e0b;
}

.capybill-trigger-btn {
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

/* NinjaBill Modal & Card Base Components */
.ninjabill-modal-title {
  color: var(--text-main);
}

.ninjabill-concept-body {
  color: var(--text-muted);
}

.ninjabill-feature-title {
  color: var(--text-main);
}

.ninjabill-roadmap-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px dashed rgba(6, 182, 212, 0.35);
}

.ninjabill-roadmap-text {
  color: #06b6d4;
}

.ninjabill-trigger-btn {
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.12);
}

/* Responsive Foldable / Tablet Portfolio Grid Contract (580px - 992px) */
@media (min-width: 580px) and (max-width: 992px) {
  .portfolio-header {
    min-height: 64px !important;
  }
  .portfolio-title {
    min-height: 2.6rem !important;
  }
  .portfolio-desc {
    min-height: 6.6rem !important;
  }
  .portfolio-card .app-card-tags {
    min-height: 56px !important;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand .brand-logo {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-align: center;
    margin-bottom: 0.8rem;
  }

  .footer-brand .brand-text {
    align-items: center;
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Responsive Demo Toolbar on Mobile & Tablet */
  .demo-toolbar {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .demo-status {
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .demo-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .demo-actions .btn {
    flex: 1;
    min-width: 140px;
    font-size: 0.8rem;
    padding: 0.55rem 0.8rem;
  }
}

/* ============================================================
   TOPBAR RESPONSIVE: Desktop Width Budget & Compact Styling (>= 1201px)
   Mở rộng container 1400px, giữ khoảng cách thông thoáng chống tràn mép trên mọi màn hình Desktop
   ============================================================ */
@media (min-width: 1201px) {
  .site-header .nav-container,
  .topbar,
  .navbar,
  header nav,
  .nav-container {
    max-width: 1400px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
  }

  .brand-logo,
  .logo,
  .brand,
  .nav-brand {
    flex-shrink: 0 !important;
    gap: 0.6rem !important;
  }
  .brand-name {
    font-size: 1.15rem !important;
  }
  .brand-tag {
    font-size: 0.68rem !important;
  }

  .nav-menu,
  .nav-links,
  .menu-center {
    gap: 0.65rem !important;
    flex-shrink: 1 !important;
    flex-wrap: nowrap !important;
  }
  .nav-menu .nav-link,
  .nav-links a,
  .nav-menu a,
  .menu-center a {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.6rem !important;
    white-space: nowrap !important;
    gap: 0.35rem !important;
  }
  .nav-menu .nav-link i,
  .nav-links a i {
    font-size: 0.8rem !important;
  }

  .nav-actions,
  .header-right,
  .topbar-right {
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
  }

  .nav-actions .btn,
  .nav-actions button,
  .nav-actions a,
  .topbar-right a,
  .linkedin-btn,
  a[href*="linkedin"] {
    font-size: 0.82rem !important;
    padding: 0.35rem 0.65rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .nav-actions .lang-toggle-btn {
    padding: 0.35rem 0.55rem !important;
  }
  .nav-actions .theme-toggle-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ============================================================
   TOPBAR MOBILE-FRIENDLY BREAKPOINT (<= 1200px)
   Tự động switch sang Hamburger Button trên laptop nhỏ, tablet & mobile
   ============================================================ */
@media (max-width: 1200px) {
  .site-header {
    height: 68px;
  }
  .nav-container {
    height: 68px;
    padding: 0 1.25rem;
  }
  body {
    padding-top: 68px;
  }
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(9, 13, 22, 0.98);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    display: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    z-index: 9999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-actions .btn:not(.lang-toggle-btn):not(.theme-toggle-btn) {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
  }
}

@media (max-width: 992px) {

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  /* Responsive Phone Frame on Mobile */
  .phone-mockup-frame {
    width: 100%;
    max-width: 100%;
    height: 640px;
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .phone-notch,
  .phone-home-bar,
  .phone-status-bar,
  .phone-bottom-bar {
    display: none !important;
  }

  .phone-screen {
    border-radius: 16px;
  }
}

/* Targeted Responsive Styles for Narrow Mobile Phones (Screen width <= 480px) */
@media (max-width: 480px) {
  .site-header {
    height: 60px;
  }
  .nav-container {
    height: 60px;
    padding: 0 0.85rem;
  }
  body {
    padding-top: 60px;
  }
  .brand-logo {
    gap: 0.5rem;
  }
  .logo-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-tag {
    font-size: 0.62rem;
  }
  .nav-actions {
    gap: 0.35rem;
  }
  .lang-toggle-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }
  .theme-toggle-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
  }
  .mobile-toggle {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
  .nav-menu {
    top: 60px;
    padding: 1.25rem 1rem 1.5rem;
    gap: 1rem;
  }
  .container {
    padding: 0 1rem;
  }

  .section-header {
    margin-bottom: 1.8rem;
  }

  .section-title {
    font-size: 1.55rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.88rem;
  }

  .badge-publisher,
  .section-badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
  }

  /* Hero Section Narrow Mobile */
  .hero-section {
    padding: 2.5rem 0 1.8rem;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.3rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
  }

  /* Hero Stats: 3 columns with safe min-width & compact fonts */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
    padding: 0.8rem 0;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    text-align: center;
    min-width: 0;
    overflow: hidden;
    padding: 0 2px;
  }

  .stat-num,
  .stat-number {
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .stat-label {
    font-size: 0.65rem;
    line-height: 1.3;
    word-break: break-word;
  }

  /* Responsive Cards Padding on Mobile */
  .portfolio-card,
  .visual-card-glass,
  .feature-card,
  .cta-box,
  .cta-card {
    padding: 1.25rem 1rem !important;
  }

  /* Visual Glass Card Mobile */
  .app-card-header {
    gap: 0.75rem;
  }

  .app-card-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
  }

  .app-card-title {
    font-size: 1.05rem;
  }

  .app-card-dev {
    font-size: 0.78rem;
  }

  .badge-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
  }

  /* Portfolio Mobile */
  .portfolio-header {
    gap: 0.75rem;
    margin-bottom: 0.8rem;
  }

  .portfolio-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
  }

  .icon-placeholder {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
  }

  .portfolio-title {
    font-size: 1.05rem;
  }

  .portfolio-desc {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }

  .app-card-tags {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .app-card-tags .tag {
    font-size: 0.72rem;
    padding: 0.22rem 0.55rem;
  }

  .portfolio-footer-grid,
  .portfolio-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
  }

  .portfolio-footer-grid .btn,
  .portfolio-footer .btn {
    width: 100% !important;
    grid-column: auto !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    padding: 0.55rem 0.75rem !important;
  }

  /* Live Demo Section Narrow Mobile */
  .demo-section {
    padding: 2.2rem 0;
  }

  .demo-toolbar {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    gap: 0.6rem;
  }

  .demo-status {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .demo-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.4rem;
  }

  .demo-actions .btn {
    width: 100%;
    min-width: 0;
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
    justify-content: center;
  }

  .phone-mockup-frame {
    height: 560px;
    padding: 2px;
    border-radius: 14px;
  }

  .phone-screen {
    border-radius: 12px;
  }

  .tip-card {
    padding: 0.8rem;
    font-size: 0.8rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Grid Layouts Narrow Mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }

  .portfolio-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .portfolio-desc {
    min-height: 0 !important;
    margin-bottom: 0.75rem;
  }

  .portfolio-header,
  .portfolio-title,
  .portfolio-card .app-card-tags {
    min-height: 0 !important;
  }

  .footer-links {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    text-align: center !important;
  }

  .footer-col {
    align-items: center;
  }
}

/* ============================================================
   ULTRA-NARROW / FOLDABLE MOBILE SCREEN COMPATIBILITY (<= 360px)
   Targeting Samsung Galaxy Z Fold outer screens (280px - 340px),
   iPhone SE/mini (320px), and ultra-compact devices
   ============================================================ */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  body {
    padding-top: 60px;
  }

  .container {
    padding: 0 0.65rem !important;
  }

  /* Header & Navigation Ultra-Narrow */
  .nav-container {
    height: 60px;
    padding: 0 0.25rem;
  }

  .brand-logo {
    gap: 0.35rem;
  }

  .logo-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    padding: 1px;
  }

  .brand-name {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
  }

  /* Hide subtitle tag on ultra-narrow header to eliminate clutter & prevent wrapping */
  .brand-tag {
    display: none !important;
  }

  .nav-actions {
    gap: 0.2rem;
  }

  .lang-toggle-btn {
    padding: 0.2rem 0.35rem;
    font-size: 0.7rem;
    gap: 0.2rem;
  }

  .theme-toggle-btn {
    padding: 0.2rem 0.35rem;
    font-size: 0.8rem;
    min-width: 28px;
    height: 28px;
  }

  .mobile-toggle {
    font-size: 1.1rem;
    padding: 0.2rem;
  }

  /* Hero Section Ultra-Narrow */
  .hero-section {
    padding: 1.8rem 0 1.2rem;
  }

  .badge-publisher {
    font-size: 0.68rem;
    padding: 0.22rem 0.5rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.3rem;
    line-height: 1.25;
    margin-bottom: 0.7rem;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 1.1rem;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  .hero-buttons .btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }

  /* Hero Stats: 3 columns with safe min-width & compact fonts */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.2rem !important;
    padding: 0.6rem 0 !important;
    width: 100% !important;
  }

  .stat-item {
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  .stat-num,
  .stat-number {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  .stat-label {
    font-size: 0.56rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }

  /* Responsive Cards Padding on Ultra-Narrow */
  .portfolio-card,
  .visual-card-glass,
  .feature-card,
  .cta-card,
  .cta-box {
    padding: 0.85rem 0.65rem !important;
    border-radius: var(--radius-md) !important;
  }

  /* Visual Glass Card */
  .app-card-header {
    gap: 0.5rem;
  }

  .app-card-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
  }

  .app-card-title {
    font-size: 0.92rem !important;
  }

  .app-card-dev {
    font-size: 0.7rem !important;
  }

  .badge-status {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.4rem !important;
  }

  /* Portfolio Section Ultra-Narrow */
  .portfolio-header {
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }

  .portfolio-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
  }

  .icon-placeholder {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.95rem !important;
  }

  .badge-tag {
    font-size: 0.6rem !important;
    padding: 0.12rem 0.4rem !important;
  }

  .portfolio-title {
    font-size: 0.92rem !important;
    line-height: 1.3;
  }

  .portfolio-desc {
    font-size: 0.78rem !important;
    line-height: 1.4;
    margin-bottom: 0.75rem !important;
  }

  .app-card-tags {
    gap: 0.25rem !important;
    margin-bottom: 0.75rem !important;
  }

  .app-card-tags .tag {
    font-size: 0.65rem !important;
    padding: 0.18rem 0.4rem !important;
  }

  .portfolio-footer {
    padding-top: 0.65rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }

  .portfolio-footer .btn {
    width: 100% !important;
    font-size: 0.76rem !important;
    padding: 0.48rem 0.55rem !important;
  }

  /* Philosophy / Feature Cards */
  .feature-card h3 {
    font-size: 0.95rem !important;
  }

  .feature-card p {
    font-size: 0.78rem !important;
    line-height: 1.4;
  }

  /* Section Titles & Badges */
  .section-title {
    font-size: 1.25rem !important;
  }

  .section-subtitle {
    font-size: 0.8rem !important;
  }

  /* CTA Section */
  .cta-card,
  .cta-box {
    padding: 1.1rem 0.65rem !important;
  }

  .cta-title {
    font-size: 1.15rem !important;
  }

  .cta-desc,
  .cta-subtitle {
    font-size: 0.78rem !important;
  }

  .cta-buttons .btn {
    font-size: 0.78rem !important;
    padding: 0.55rem 0.7rem !important;
  }

  .faq-question {
    padding: 0.85rem 0.7rem;
    font-size: 0.85rem;
  }

  .faq-answer p {
    padding: 0 0.7rem 0.85rem;
    font-size: 0.8rem;
  }

  .tip-card {
    padding: 0.65rem;
    font-size: 0.75rem;
  }
}

/* ============================================================
   EXTREME NARROW SCREENS (<= 300px)
   e.g. Galaxy Fold 1 outer screen (280px)
   ============================================================ */
@media (max-width: 300px) {
  html {
    font-size: 13px;
  }

  .container {
    padding: 0 0.45rem !important;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
  }

  .stat-item {
    padding: 0.35rem 0.5rem !important;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
  }

  .stat-num,
  .stat-number {
    font-size: 1.05rem !important;
  }

  .stat-label {
    font-size: 0.7rem !important;
  }

  .hero-title {
    font-size: 1.15rem !important;
  }
}


/* ==========================================================================
   About Page / Profile CV Styles (about.html)
   ========================================================================== */
.profile-hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.profile-hero-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.profile-avatar-wrap {
  position: relative;
  width: 240px;
  margin: 0 auto;
}

.avatar-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55) 0%, rgba(124, 58, 237, 0.2) 50%, transparent 72%);
  border-radius: 50%;
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}

.profile-avatar {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #0f172a;
}

.cert-pill-floating {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 26, 44, 0.95);
  border: 1px solid var(--border-highlight);
  border-radius: 99px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c4b5fd;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.profile-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.profile-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.contact-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: var(--transition);
}

.contact-pill:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--border-highlight);
  color: #a78bfa;
}

.contact-pill.highlight-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass);
  color: var(--text-main);
}

/* ─── LinkedIn Hybrid Branding (Monochrome Default, Solid Brand Blue #0a66c2 + White Text on Hover) ─── */
a[href*="linkedin.com"] {
  transition: var(--transition);
}

a[href*="linkedin.com"]:hover {
  background: #0a66c2 !important;
  border-color: #0a66c2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(10, 102, 194, 0.45) !important;
  transform: translateY(-2px);
}

a[href*="linkedin.com"]:hover i {
  color: #ffffff !important;
}

[data-theme="light"] a[href*="linkedin.com"]:hover {
  background: #0a66c2 !important;
  border-color: #0a66c2 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(10, 102, 194, 0.35) !important;
}

[data-theme="light"] a[href*="linkedin.com"]:hover i {
  color: #ffffff !important;
}

.profile-stats-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(20, 26, 44, 0.92);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 3rem;
}

/* Timeline Styles */
.timeline-section {
  padding-top: 2rem;
}

.timeline-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 2px solid var(--border-highlight);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.4rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid #090d16;
  box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-card {
  background: rgba(20, 26, 44, 0.92);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.company-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.job-period {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  color: var(--text-muted);
  white-space: nowrap;
}

.team-tag,
.project-tag {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.project-tag strong {
  color: #a78bfa;
}

.job-highlights {
  list-style: none;
  margin-top: 0.8rem;
}

.job-highlights li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.job-highlights li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1rem;
  font-weight: bold;
}

/* Skills List */
.skill-card {
  height: 100%;
}

.skill-list {
  list-style: none;
  margin-top: 1rem;
}

.skill-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.skill-list li i {
  color: var(--emerald);
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.cert-year {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 0.5rem;
}

.margin-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Profile CTA Section */
.profile-cta {
  padding: 4rem 0;
}

.cta-card {
  background: linear-gradient(135deg, rgba(20, 26, 44, 0.9) 0%, rgba(30, 27, 75, 0.8) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive Styles for About Page */
@media (max-width: 992px) {
  .profile-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-pills-grid {
    justify-content: center;
  }

  .profile-stats-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(20, 26, 44, 0.92);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 3rem;
}

  .stat-divider {
    display: none;
  }
}

@media (max-width: 640px) {
  .timeline-container {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -2.1rem;
    width: 14px;
    height: 14px;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-title {
    font-size: 1.7rem;
  }
}

/* Language Switcher Styling */
.lang-toggle-btn {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-highlight);
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
  transition: var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: rgba(124, 58, 237, 0.25);
  color: #fff;
  border-color: var(--primary);
}

.lang-toggle-btn .lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  line-height: 1;
}

.lang-toggle-btn .lang-flag svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lang-toggle-btn .lang-label {
  display: inline-block;
  line-height: 1;
  font-size: 0.85rem;
  font-weight: 700;
}

[data-lang="vi"] .lang-en {
  display: none !important;
}

[data-lang="en"] .lang-vi {
  display: none !important;
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  padding: 0.45rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-highlight);
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
  transition: var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.theme-toggle-btn:hover {
  background: rgba(124, 58, 237, 0.25);
  color: #fff;
  border-color: var(--primary);
}

.theme-toggle-btn .theme-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Complete Light Theme Variables & Overrides */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-glass: #e2e8f0;
  --border-highlight: rgba(124, 58, 237, 0.4);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text: #0f172a;
  --bg: #f8fafc;

  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-glow: rgba(124, 58, 237, 0.2);
}

/* Light Mode Header & Navigation */
[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.96);
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .brand-name,
[data-theme="light"] .hero-title,
[data-theme="light"] .section-title,
[data-theme="light"] .cta-title,
[data-theme="light"] .portfolio-title,
[data-theme="light"] .faq-question span,
[data-theme="light"] .job-title,
[data-theme="light"] .nav-link:hover {
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .nav-link.active {
  color: #6d28d9 !important;
  background: rgba(124, 58, 237, 0.1) !important;
  border: 1px solid rgba(124, 58, 237, 0.35) !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15) !important;
}

[data-theme="light"] body.theme-bnbill .nav-link.active {
  color: #e11d48 !important;
  background: rgba(244, 63, 94, 0.1) !important;
  border-color: rgba(244, 63, 94, 0.35) !important;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.15) !important;
}

[data-theme="light"] .nav-menu {
  background: #f8fafc;
}

[data-theme="light"] .btn-outline {
  border-color: #cbd5e1;
  color: #334155;
  background: #ffffff;
}

[data-theme="light"] .btn-outline:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

[data-theme="light"] .lang-toggle-btn,
[data-theme="light"] .theme-toggle-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .lang-toggle-btn:hover,
[data-theme="light"] .theme-toggle-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Demo Section Light Mode Fixes */
[data-theme="light"] .demo-toolbar {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .demo-status strong {
  color: #0f172a;
}

[data-theme="light"] .tip-card {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .tip-card strong {
  color: #0f172a;
}

/* Cards & Glass Containers in Light Mode */
[data-theme="light"] .visual-card-glass,
[data-theme="light"] .feature-card,
[data-theme="light"] .portfolio-card,
[data-theme="light"] .timeline-card,
[data-theme="light"] .profile-stats-card,
[data-theme="light"] .skill-card,
[data-theme="light"] .feature-spotlight-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .portfolio-card.upcoming-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .portfolio-badge {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: #6d28d9;
}

[data-theme="light"] .app-card-title,
[data-theme="light"] .feature-card h3,
[data-theme="light"] .portfolio-title,
[data-theme="light"] .stat-number,
[data-theme="light"] .stat-num,
[data-theme="light"] .company-name {
  color: #0f172a;
}

/* CTA Box & CTA Card in Light Mode */
[data-theme="light"] .cta-box,
[data-theme="light"] .cta-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(59, 130, 246, 0.06) 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .cta-desc,
[data-theme="light"] .cta-subtitle {
  color: #334155;
}

/* FAQ Accordion Light Mode */
[data-theme="light"] .faq-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .faq-question {
  color: #0f172a;
}

[data-theme="light"] .faq-answer p {
  color: #475569;
}

/* Site Footer Light Mode Fixes */
[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  color: #334155;
}

[data-theme="light"] .footer-col h4,
[data-theme="light"] .footer-brand .brand-name {
  color: #0f172a;
}

[data-theme="light"] .footer-tagline,
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-info {
  color: #475569;
}

[data-theme="light"] .footer-col a:hover {
  color: #7c3aed;
}

[data-theme="light"] body.theme-bnbill .footer-col a:hover {
  color: #e11d48;
}

[data-theme="light"] .footer-nav-group {
  background: rgba(15, 23, 42, 0.03);
  border-color: #cbd5e1;
}

[data-theme="light"] .footer-nav-group:hover,
[data-theme="light"] .footer-nav-group[open] {
  background: rgba(15, 23, 42, 0.055);
  border-color: #94a3b8;
}

[data-theme="light"] .footer-group-toggle {
  color: #334155;
}

[data-theme="light"] .footer-group-toggle:hover,
[data-theme="light"] .footer-nav-group[open] .footer-group-toggle {
  color: #0f172a;
}

[data-theme="light"] .footer-group-badge {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .footer-group-items {
  border-top-color: #cbd5e1;
}

[data-theme="light"] .footer-info strong {
  color: #0f172a;
}

[data-theme="light"] .footer-bottom {
  border-top-color: #cbd5e1;
  color: #64748b;
}

[data-theme="light"] .footer-bottom strong {
  color: #0f172a;
}

/* Contact Pills in Profile Page */
[data-theme="light"] .contact-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
}

[data-theme="light"] .contact-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Modal in Light Mode */
[data-theme="light"] .modal-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .modal-header h3,
[data-theme="light"] .modal-title,
[data-theme="light"] .modal-body,
[data-theme="light"] .modal-body p,
[data-theme="light"] .modal-body strong,
[data-theme="light"] .modal-body li {
  color: #0f172a;
}

[data-theme="light"] .modal-close {
  color: #64748b;
}

[data-theme="light"] .modal-close:hover {
  color: #0f172a;
}

[data-theme="light"] .capybill-modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .capybill-concept-body {
  color: #475569 !important;
}

[data-theme="light"] .capybill-feature-title {
  color: #0f172a !important;
}

[data-theme="light"] .capybill-roadmap-box {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
}

[data-theme="light"] .capybill-roadmap-text {
  color: #b45309 !important;
}

[data-theme="light"] .capybill-trigger-btn {
  color: #b45309 !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
  background: rgba(245, 158, 11, 0.1) !important;
}

[data-theme="light"] .ninjabill-modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .ninjabill-concept-body {
  color: #475569 !important;
}

[data-theme="light"] .ninjabill-feature-title {
  color: #0f172a !important;
}

[data-theme="light"] .ninjabill-roadmap-box {
  background: rgba(6, 182, 212, 0.1) !important;
  border-color: rgba(8, 145, 178, 0.35) !important;
}

[data-theme="light"] .ninjabill-roadmap-text {
  color: #0e7490 !important;
}

[data-theme="light"] .ninjabill-trigger-btn {
  color: #0891b2 !important;
  border-color: rgba(8, 145, 178, 0.4) !important;
  background: rgba(6, 182, 212, 0.1) !important;
}

[data-theme="light"] .portfolio-filter-tabs {
  background: rgba(241, 245, 249, 0.9) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .portfolio-filter-btn {
  color: #64748b !important;
}

[data-theme="light"] .portfolio-filter-btn:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .portfolio-filter-btn.active {
  color: #6d28d9 !important;
  background: #ffffff !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2) !important;
}

[data-theme="light"] .portfolio-group-header {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .portfolio-group-badge {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

/* Background Glow Orbs in Light Mode */
[data-theme="light"] .bg-glow-1 {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
}

[data-theme="light"] .bg-glow-2 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

/* ─── Complete High-Contrast Light Mode Fixes (Section Badges, Headers, Subtitles & Tags) ─── */
[data-theme="light"] .section-badge {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.35);
  color: #6d28d9;
  font-weight: 700;
}

[data-theme="light"] .section-title {
  color: #0f172a;
}

[data-theme="light"] .section-subtitle {
  color: #475569;
}

[data-theme="light"] .badge-publisher {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #047857;
  font-weight: 700;
}

[data-theme="light"] .cert-pill-floating {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.4);
  color: #6d28d9;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .cert-year {
  color: #6d28d9;
  font-weight: 700;
}

[data-theme="light"] .team-tag,
[data-theme="light"] .project-tag {
  color: #334155;
}

[data-theme="light"] .team-tag strong,
[data-theme="light"] .project-tag strong {
  color: #0f172a;
}

[data-theme="light"] .job-period {
  background: #e2e8f0;
  color: #1e293b;
  font-weight: 700;
}

[data-theme="light"] .portfolio-tags span,
[data-theme="light"] .tag {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
  font-weight: 600;
}

[data-theme="light"] .stat-label {
  color: #475569;
  font-weight: 600;
}

[data-theme="light"] .job-highlights li {
  color: #334155;
}

[data-theme="light"] .job-highlights li strong {
  color: #0f172a;
}

[data-theme="light"] .badge-status {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #6d28d9;
}

/* ==========================================================================
   EARLY BIRD VIP WAITLIST & SURVEY SECTION
   ========================================================================== */
.waitlist-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.waitlist-badge {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.waitlist-card {
  position: relative;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.15);
  max-width: 960px;
  margin: 0 auto;
}

.waitlist-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32) 0%, rgba(168, 85, 247, 0.12) 45%, transparent 70%);
  pointer-events: none;
}

.waitlist-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.waitlist-perk-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.waitlist-perk-item:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.waitlist-perk-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.perk-icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.perk-icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.perk-icon-cyan {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.waitlist-perk-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.waitlist-perk-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

/* App Selectors (Pills) */
.waitlist-apps-selector {
  margin-bottom: 1.5rem;
}

.waitlist-apps-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.waitlist-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.app-pill-checkbox {
  display: none;
}

.app-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.app-pill-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
}

.app-pill-checkbox:checked + .app-pill-label {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(217, 70, 239, 0.25));
  border-color: #c084fc;
  color: #f8fafc;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

/* Email Form */
.waitlist-form-wrap {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

.waitlist-input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.waitlist-input-box {
  position: relative;
  flex: 1;
}

.waitlist-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1rem;
}

.waitlist-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-input:focus {
  border-color: #c084fc;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

.waitlist-submit-btn {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.waitlist-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.55);
}

.waitlist-guarantee {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

/* VIP Boarding Pass (Success Delight) */
.vip-ticket-card {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid #c084fc;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(192, 132, 252, 0.3);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  overflow: hidden;
  animation: vipCardPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vipCardPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.vip-ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.vip-code-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(192, 132, 252, 0.6);
  border-radius: 12px;
  padding: 1rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vip-code-text {
  font-family: 'Courier New', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 2px;
}

/* Confetti Canvas (Zero Hardware Layer on Idle: display:none until triggered) */
#confettiCanvas {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999999;
}

/* Light Theme Overrides */
[data-theme="light"] .waitlist-card {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .waitlist-perk-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .waitlist-perk-title {
  color: #0f172a;
}

[data-theme="light"] .waitlist-perk-desc {
  color: #64748b;
}

[data-theme="light"] .waitlist-apps-label {
  color: #334155;
}

[data-theme="light"] .app-pill-label {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme="light"] .app-pill-checkbox:checked + .app-pill-label {
  background: #f3e8ff;
  border-color: #a855f7;
  color: #6b21a8;
}

[data-theme="light"] .waitlist-form-wrap {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .waitlist-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .vip-ticket-card {
  background: #fdf4ff;
  border-color: #a855f7;
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.14);
}

[data-theme="light"] .vip-ticket-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .vip-ticket-card p {
  color: #334155 !important;
}

[data-theme="light"] #registeredEmailDisplay {
  color: #0284c7 !important;
}

[data-theme="light"] .vip-code-box {
  background: #ffffff !important;
  border-color: #a855f7 !important;
}

[data-theme="light"] .vip-code-text {
  color: #6d28d9 !important;
}

[data-theme="light"] .waitlist-badge {
  background: rgba(168, 85, 247, 0.12) !important;
  color: #6d28d9 !important;
  border-color: rgba(124, 58, 237, 0.35) !important;
  box-shadow: none !important;
}

[data-theme="light"] .perk-icon-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="light"] .perk-icon-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.35);
}

[data-theme="light"] .perk-icon-cyan {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.3);
}

/* Feature Icon High Contrast in Light Mode */
[data-theme="light"] .bg-amber {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

[data-theme="light"] .bg-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
}

[data-theme="light"] .bg-blue {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

[data-theme="light"] .bg-purple {
  background: rgba(124, 58, 237, 0.14);
  color: #7c3aed;
}

[data-theme="light"] .bg-rose {
  background: rgba(244, 63, 94, 0.14);
  color: #e11d48;
}

[data-theme="light"] .bg-cyan {
  background: rgba(6, 182, 212, 0.14);
  color: #0891b2;
}

/* Portfolio Card Badges, Trigger Buttons & Dashed Footer Rows in Light Mode */
[data-theme="light"] .bnbill-card .badge-tag,
[data-theme="light"] body.theme-bnbill .badge-publisher,
[data-theme="light"] body.theme-bnbill .section-badge,
[data-theme="light"] body.theme-bnbill .badge-status {
  color: #e11d48 !important;
  background: rgba(244, 63, 94, 0.12) !important;
  border-color: rgba(225, 29, 72, 0.35) !important;
}

[data-theme="light"] body.theme-bnbill .stat-num[style*="#fb7185"],
[data-theme="light"] body.theme-bnbill .tip-icon {
  color: #e11d48 !important;
}

[data-theme="light"] .restobill-card .badge-tag,
[data-theme="light"] #appInfoRestoBill .badge-tag {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(5, 150, 105, 0.42) !important;
  box-shadow: none !important;
}

[data-theme="light"] .restobill-card .app-card-tags .tag {
  color: #065f46 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(5, 150, 105, 0.32) !important;
}

[data-theme="light"] .restobill-card .app-card-tags .tag i {
  color: #059669 !important;
}

[data-theme="light"] .homebill-card .badge-tag {
  color: #0369a1 !important;
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
}

[data-theme="light"] .capybill-card .badge-tag,
[data-theme="light"] #gameInfoCapyBill .badge-tag {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(217, 119, 6, 0.45) !important;
  box-shadow: none !important;
}

[data-theme="light"] .capybill-card .app-card-tags .tag {
  color: #92400e !important;
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(217, 119, 6, 0.32) !important;
}

[data-theme="light"] .capybill-card .app-card-tags .tag i {
  color: #d97706 !important;
}

[data-theme="light"] .mukbill-card .badge-tag {
  color: #c2410c !important;
  background: rgba(249, 115, 22, 0.12) !important;
  border-color: rgba(234, 88, 12, 0.35) !important;
}

[data-theme="light"] .ninjabill-card .badge-tag,
[data-theme="light"] #gameInfoNinjaBill .badge-tag {
  color: #dc2626 !important;
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(220, 38, 38, 0.42) !important;
  box-shadow: none !important;
}

[data-theme="light"] .ninjabill-card .app-card-tags .tag {
  color: #b91c1c !important;
  background: rgba(239, 68, 68, 0.09) !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
}

[data-theme="light"] .ninjabill-card .app-card-tags .tag i {
  color: #dc2626 !important;
}

[data-theme="light"] .ninjabill-card .app-card-tags .tag:nth-child(even) {
  color: #0e7490 !important;
  background: rgba(6, 182, 212, 0.1) !important;
  border-color: rgba(8, 145, 178, 0.32) !important;
}

[data-theme="light"] .ninjabill-card .app-card-tags .tag:nth-child(even) i {
  color: #0891b2 !important;
}

[data-theme="light"] .snapbill-card .badge-tag {
  color: #a16207 !important;
  background: rgba(234, 179, 8, 0.14) !important;
  border-color: rgba(202, 138, 4, 0.4) !important;
}

[data-theme="light"] .chefbill-card .badge-tag,
[data-theme="light"] #gameInfoChefBill .badge-tag {
  color: #c2410c !important;
  background: rgba(249, 115, 22, 0.14) !important;
  border-color: rgba(234, 88, 12, 0.42) !important;
  box-shadow: none !important;
}

[data-theme="light"] .chefbill-card .app-card-tags .tag {
  color: #9a3412 !important;
  background: rgba(249, 115, 22, 0.1) !important;
  border-color: rgba(234, 88, 12, 0.32) !important;
}

[data-theme="light"] .chefbill-card .app-card-tags .tag i {
  color: #ea580c !important;
}

[data-theme="light"] .darkbills-card .badge-tag {
  color: #92400e !important;
  background: rgba(217, 119, 6, 0.14) !important;
  border-color: rgba(180, 83, 9, 0.4) !important;
}

[data-theme="light"] .restobill-trigger-btn {
  color: #047857 !important;
  border-color: rgba(5, 150, 105, 0.4) !important;
  background: rgba(16, 185, 129, 0.1) !important;
}

[data-theme="light"] .homebill-trigger-btn {
  color: #0369a1 !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
  background: rgba(14, 165, 233, 0.1) !important;
}

[data-theme="light"] .mukbill-trigger-btn {
  color: #c2410c !important;
  border-color: rgba(234, 88, 12, 0.4) !important;
  background: rgba(249, 115, 22, 0.1) !important;
}

[data-theme="light"] .snapbill-trigger-btn {
  color: #a16207 !important;
  border-color: rgba(202, 138, 4, 0.45) !important;
  background: rgba(234, 179, 8, 0.12) !important;
}

[data-theme="light"] .chefbill-trigger-btn {
  color: #b91c1c !important;
  border-color: rgba(220, 38, 38, 0.4) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

[data-theme="light"] .darkbills-trigger-btn {
  color: #92400e !important;
  border-color: rgba(180, 83, 9, 0.45) !important;
  background: rgba(217, 119, 6, 0.12) !important;
}

[data-theme="light"] .portfolio-footer > div[style*="dashed"] {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .capybill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.15) !important;
}

[data-theme="light"] .restobill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.14) !important;
}

[data-theme="light"] .homebill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #0369a1 !important;
  background: rgba(14, 165, 233, 0.14) !important;
}

[data-theme="light"] .mukbill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #c2410c !important;
  background: rgba(249, 115, 22, 0.14) !important;
}

[data-theme="light"] .ninjabill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #0e7490 !important;
  background: rgba(6, 182, 212, 0.14) !important;
}

[data-theme="light"] .snapbill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #a16207 !important;
  background: rgba(234, 179, 8, 0.15) !important;
}

[data-theme="light"] .chefbill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #b91c1c !important;
  background: rgba(239, 68, 68, 0.14) !important;
}

[data-theme="light"] .darkbills-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #92400e !important;
  background: rgba(217, 119, 6, 0.15) !important;
}

/* Concept & Live Demo Modals Light Mode Contrast */
[data-theme="light"] .restobill-concept-body strong {
  color: #047857 !important;
}

[data-theme="light"] .mukbill-concept-body strong {
  color: #c2410c !important;
}

[data-theme="light"] .homebill-concept-body strong {
  color: #0369a1 !important;
}

[data-theme="light"] .ninjabill-concept-body strong {
  color: #0e7490 !important;
}

[data-theme="light"] .darkbills-concept-body strong {
  color: #92400e !important;
}

[data-theme="light"] #snapbillModal .modal-header h3 {
  color: #a16207 !important;
}

[data-theme="light"] #snapbillModal a[href*="SnapBill.pdf"] {
  color: #854d0e !important;
  background: rgba(234, 179, 8, 0.15) !important;
  border-color: rgba(202, 138, 4, 0.45) !important;
}

[data-theme="light"] #chefbillModal .modal-header h3 {
  color: #b91c1c !important;
}

[data-theme="light"] #darkbillsModal .modal-header h3 {
  color: #92400e !important;
}

[data-theme="light"] #homebillModal .modal-header span[style*="#38bdf8"],
[data-theme="light"] #homebillModal div[style*="#38bdf8"] {
  color: #0284c7 !important;
}

[data-theme="light"] #restobillModal a[style*="rgba(255, 255, 255, 0.08)"] {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] #restobillDemoModal .badge-tag {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.14) !important;
}

[data-theme="light"] #restobillDemoModal span[style*="#a7f3d0"] {
  color: #047857 !important;
}

[data-theme="light"] #restobillDemoModal .btn-icon {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(5, 150, 105, 0.35) !important;
}

[data-theme="light"] #restobillDemoModal .modal-close,
[data-theme="light"] #homebillDemoModal .modal-close,
[data-theme="light"] #capybillDemoModal .modal-close {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] #homebillDemoModal .badge-tag {
  color: #0369a1 !important;
  background: rgba(14, 165, 233, 0.14) !important;
}

[data-theme="light"] #homebillDemoModal span[style*="#bae6fd"] {
  color: #0369a1 !important;
}

[data-theme="light"] #homebillDemoModal .btn-icon {
  color: #0369a1 !important;
  background: rgba(14, 165, 233, 0.12) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
}

/* CapyBill Live Demo Modal (16:9 Landscape Game Console Popup) */
.capybill-demo-modal-card {
  max-width: 900px;
  width: 95%;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.22);
  background: #0f172a;
  border-radius: 24px;
  max-height: 94vh;
  overflow-y: auto;
  margin: auto;
}

[data-theme="light"] .capybill-demo-modal-card {
  background: #ffffff !important;
  border-color: rgba(217, 119, 6, 0.45) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22), 0 0 24px rgba(245, 158, 11, 0.15) !important;
}

.capybill-console-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(86vh - 140px);
  min-height: 300px;
  background: #090d16;
  border-radius: 16px;
  border: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 158, 11, 0.18);
  position: relative;
  overflow: hidden;
}

.capybill-console-frame:fullscreen,
.capybill-console-frame:-webkit-full-screen,
.capybill-viewport-container:fullscreen,
.capybill-viewport-container:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  max-width: none !important;
  border-radius: 0 !important;
  border: none !important;
  aspect-ratio: auto !important;
}

.capybill-demo-subtitle,
.capybill-demo-helper-note {
  color: #fde68a;
}

[data-theme="light"] .capybill-demo-subtitle,
[data-theme="light"] .capybill-demo-helper-note {
  color: #b45309 !important;
}

[data-theme="light"] #capybillDemoModal .badge-tag {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(217, 119, 6, 0.4) !important;
}

[data-theme="light"] #capybillDemoModal .btn-icon {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
}

.capybill-demo-page-link {
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
}

[data-theme="light"] .capybill-demo-page-link {
  border-color: rgba(217, 119, 6, 0.45) !important;
  color: #b45309 !important;
}

.capybill-demo-trigger {
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.capybill-demo-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5) !important;
  filter: brightness(1.06);
}

/* NinjaBill Trigger Button & Live Demo Modal (16:9 Landscape Game Console Popup) */
.ninjabill-trigger-btn {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.ninjabill-trigger-btn:hover {
  background: rgba(239, 68, 68, 0.24);
  border-color: #ef4444;
  color: #ffffff;
}

[data-theme="light"] .ninjabill-trigger-btn {
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.45) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

[data-theme="light"] .ninjabill-card .badge-tag {
  color: #dc2626 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.38) !important;
}

.ninjabill-demo-modal-card {
  max-width: 900px;
  width: 95%;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(239, 68, 68, 0.22);
  background: #090d16;
  border-radius: 24px;
  max-height: 94vh;
  overflow-y: auto;
  margin: auto;
}

[data-theme="light"] .ninjabill-demo-modal-card {
  background: #ffffff !important;
  border-color: rgba(220, 38, 38, 0.45) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22), 0 0 24px rgba(239, 68, 68, 0.15) !important;
}

.ninjabill-console-frame {
  width: 100%;
  background: #080b12;
  border-radius: 20px;
  border: 2px solid rgba(34, 211, 238, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(6, 182, 212, 0.18);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Modal console frame in index/about pages (iframe directly inside, no topbar) */
.ninjabill-demo-modal-card .ninjabill-console-frame,
#ninjabillModalConsoleFrame {
  aspect-ratio: 16 / 9;
  max-height: calc(86vh - 140px);
  min-height: 280px;
}

.ninjabill-demo-subtitle,
.ninjabill-demo-helper-note {
  color: #fca5a5;
}

[data-theme="light"] .ninjabill-demo-subtitle,
[data-theme="light"] .ninjabill-demo-helper-note {
  color: #dc2626 !important;
}

[data-theme="light"] #ninjabillDemoModal .badge-tag {
  color: #dc2626 !important;
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(220, 38, 38, 0.4) !important;
}

[data-theme="light"] #ninjabillDemoModal .btn-icon {
  color: #dc2626 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
}

[data-theme="light"] #ninjabillDemoModal .modal-close {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

.ninjabill-demo-page-link {
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #f87171 !important;
}

[data-theme="light"] .ninjabill-demo-page-link {
  border-color: rgba(220, 38, 38, 0.45) !important;
  color: #dc2626 !important;
}

.ninjabill-demo-trigger {
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.ninjabill-demo-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5) !important;
  filter: brightness(1.06);
}

/* SnapBill Interactive Mobile UI Prototype Modal */
.snapbill-demo-modal-card {
  max-width: 520px;
  width: 95%;
  padding: 0;
  border: 1px solid rgba(234, 179, 8, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.88), 0 0 35px rgba(234, 179, 8, 0.2);
  background: #09090b;
  border-radius: 24px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: auto;
}

.snapbill-demo-body {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: radial-gradient(circle at center, rgba(234, 179, 8, 0.08) 0%, #09090b 70%);
}

/* Phone Bezel Container inside SnapBill Demo Modal */
.snapbill-phone-frame {
  width: 100%;
  max-width: 395px;
  height: 720px;
  max-height: calc(88vh - 100px);
  min-height: 480px;
  background: #141108;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.85), 0 0 25px rgba(234, 179, 8, 0.25), 0 0 0 1px rgba(234, 179, 8, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border: 4px solid #362a0e;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.snapbill-phone-frame .phone-notch {
  background: #000000;
}

.snapbill-phone-frame .phone-notch::before {
  background: #2b220b;
  border-color: #1a1405;
}

.snapbill-phone-frame .phone-notch::after {
  background: #2b220b;
}

.snapbill-phone-frame .phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #07080d;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.snapbill-phone-frame .phone-screen iframe {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #07080d;
  display: block;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.snapbill-phone-frame .phone-home-bar {
  width: 120px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

/* Phone Bezel Container inside MukBill Demo Modal (miniBill Hub) */
.mukbill-phone-frame {
  width: 100%;
  max-width: 395px;
  height: 720px;
  max-height: calc(88vh - 100px);
  min-height: 480px;
  background: #1c0e06;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.85), 0 0 25px rgba(249, 115, 22, 0.25), 0 0 0 1px rgba(249, 115, 22, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border: 4px solid #43200e;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.mukbill-phone-frame .phone-notch {
  background: #000000;
}

.mukbill-phone-frame .phone-notch::before {
  background: #3a1d0d;
  border-color: #241208;
}

.mukbill-phone-frame .phone-notch::after {
  background: #3a1d0d;
}

.mukbill-phone-frame .phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #1c0e06;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.mukbill-phone-frame .phone-screen iframe {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #1c0e06;
  display: block;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.mukbill-phone-frame .phone-home-bar {
  width: 120px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

/* Phone Bezel Container inside BéBill Demo Modal (miniBill Hub) */
.bebill-phone-frame {
  width: 100%;
  max-width: 395px;
  height: 720px;
  max-height: calc(88vh - 100px);
  min-height: 480px;
  background: #071524;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.85), 0 0 25px rgba(2, 132, 199, 0.25), 0 0 0 1px rgba(2, 132, 199, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border: 4px solid #0f2c4a;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.bebill-phone-frame .phone-notch {
  background: #000000;
}

.bebill-phone-frame .phone-notch::before {
  background: #0d2844;
  border-color: #061726;
}

.bebill-phone-frame .phone-notch::after {
  background: #0d2844;
}

.bebill-phone-frame .phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #071524;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

.bebill-phone-frame .phone-screen iframe {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #071524;
  display: block;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.bebill-phone-frame .phone-home-bar {
  width: 120px;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

.snapbill-demo-trigger {
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.snapbill-demo-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.55) !important;
  filter: brightness(1.06);
}

@media (max-width: 640px) {
  .capybill-demo-modal-card,
  .ninjabill-demo-modal-card {
    width: 96%;
    padding: 0.85rem;
    border-radius: 18px;
  }
  .capybill-console-frame,
  .ninjabill-console-frame {
    min-height: 240px;
    border-radius: 12px;
  }
  .snapbill-demo-modal-card {
    width: 98%;
    max-height: 96vh;
    border-radius: 18px;
  }
  .snapbill-demo-body {
    padding: 0.35rem;
  }
  .snapbill-phone-frame {
    max-height: calc(94vh - 68px);
    min-height: 460px;
    border-radius: 14px;
  }
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .waitlist-perks-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .waitlist-card {
    padding: 1.5rem 1rem;
  }
  .waitlist-input-group {
    flex-direction: column;
  }
  .waitlist-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   UAT STAGING BADGE (Zero-Disruption Staging Badges)
   Positioned at bottom-right to never collide with fixed topbar
   ============================================================ */
.uat-badge {
  position: fixed !important;
  bottom: 16px !important;
  right: 16px !important;
  top: auto !important;
  left: auto !important;
  z-index: 9999 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 12px rgba(245, 158, 11, 0.25) !important;
  color: #f59e0b !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  pointer-events: none !important;
  letter-spacing: 0.02em;
  margin: 0 !important;
}

/* ============================================================
   MOBILE GPU & TILE MEMORY OPTIMIZATION (TD-LANDING-PERF-01)
   Graceful Degradation: Solid High-Opacity on Mobile (<= 768px),
   Full Glassmorphism Backdrop-Blur on Desktop/Tablet (>= 769px)
   ============================================================ */
@media (max-width: 768px) {
  .bg-glow-2 {
    display: none;
  }
}

@media (min-width: 769px) {
  .site-header {
    background: rgba(9, 13, 22, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  [data-theme="light"] .site-header {
    background: rgba(248, 250, 252, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .visual-card-glass {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .demo-toolbar {
    background: rgba(20, 26, 44, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .portfolio-filter-tabs {
    background: rgba(15, 23, 42, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .profile-stats-card,
  .timeline-card {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .waitlist-card {
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .modal-overlay.open,
  .modal-overlay:target {
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
/* ============================================================
   miniBill Showcase Dual Mode: Splitscreen & Vertical Scroll
   ============================================================ */
.minibill-showcase-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #090d16;
}
.minibill-showcase-frame.minibill-split-mode {
  display: flex !important;
  flex-direction: row !important;
  overflow: hidden !important;
}
.minibill-showcase-frame.minibill-split-mode .minibill-pane {
  flex: 1 1 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.minibill-showcase-frame.minibill-split-mode .minibill-pane:hover {
  flex: 1.35 1 58%;
}
.minibill-showcase-frame.minibill-split-mode .minibill-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.minibill-showcase-frame.minibill-split-mode .minibill-pane:hover img {
  transform: scale(1.05);
}
.minibill-showcase-frame.minibill-split-mode .minibill-split-divider {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.85), rgba(2, 132, 199, 0.85));
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  z-index: 4;
  pointer-events: none;
}
.minibill-showcase-frame.minibill-split-mode .minibill-scroll-nav {
  display: none !important;
}

.minibill-showcase-frame.minibill-scroll-mode {
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scroll-snap-type: y mandatory !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.minibill-showcase-frame.minibill-scroll-mode::-webkit-scrollbar {
  display: none;
}
.minibill-showcase-frame.minibill-scroll-mode .minibill-pane {
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.minibill-showcase-frame.minibill-scroll-mode .minibill-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.minibill-showcase-frame.minibill-scroll-mode .minibill-split-divider {
  display: none !important;
}
.minibill-showcase-frame.minibill-scroll-mode .minibill-scroll-nav {
  display: flex !important;
}
.minibill-mode-btn.active {
  background: linear-gradient(135deg, #f97316, #0284c7) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

@media (min-width: 769px) {
  .minibill-hud-bar .minibill-hub-pill,
  .minibill-hud-bar .minibill-mode-switcher {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}


/* ============================================================
   Portfolio & R&D Tags Pill System (Dark & Light Mode Safe)
   ============================================================ */
.portfolio-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.45rem !important;
  align-items: center !important;
  margin-top: 0.4rem !important;
  margin-bottom: 1.25rem !important;
}

.portfolio-tags span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  padding: 0.22rem 0.6rem !important;
  border-radius: 6px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #d1d5db !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.portfolio-tags span:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

[data-theme="light"] .portfolio-tags span {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="light"] .portfolio-tags span:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* ============================================================
   miniBill Mobile Responsive Architecture & Collision Avoidance
   ============================================================ */
@media (max-width: 640px) {
  /* Prevent generic top badge from clashing with mode switcher / HUD */
  .rd-carousel-top-badge {
    display: none !important;
  }

  /* Compact HUD bar with zero-wrap guard */
  .minibill-hud-bar {
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    gap: 4px !important;
  }
  .minibill-hud-bar .minibill-hub-pill {
    font-size: 0.62rem !important;
    padding: 0.16rem 0.45rem !important;
    gap: 0.3rem !important;
    white-space: nowrap !important;
  }
  .minibill-hud-bar .hub-pill-count {
    display: none !important; /* Hide ' • 2 Games' on mobile */
  }
  .minibill-hud-bar .badge-noncommercial-text {
    display: none !important; /* Keep only the green heart icon in HUD */
  }
  .minibill-card-badge .badge-noncommercial-text {
    display: none !important;
  }
  .minibill-mode-switcher {
    background: #0f172a !important; /* 100% opaque on mobile */
    padding: 2px !important;
    border-radius: 16px !important;
  }
  .minibill-mode-switcher button {
    font-size: 0.58rem !important;
    padding: 0.16rem 0.4rem !important;
    gap: 0.2rem !important;
    border-radius: 12px !important;
  }
  .minibill-scroll-tabs button {
    font-size: 0.58rem !important;
    padding: 0.16rem 0.4rem !important;
  }

  /* Adjusted carousel thumbnails & safe clearance */
  .rd-duo-icons {
    bottom: -18px !important;
    left: 10px !important;
  }
  .rd-duo-icons img {
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
  }
  .rd-icon-tab {
    margin-left: -12px !important;
  }
  .rd-carousel-dots {
    bottom: 8px !important;
    right: 8px !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
  }

  /* miniBill Split Mode: Lift captions safely above bottom thumbnail icons & dots */
  .minibill-showcase-frame.minibill-split-mode .minibill-pane-caption {
    bottom: 30px !important;
    left: 6px !important;
    right: 6px !important;
    gap: 0.25rem !important;
    align-items: flex-end !important;
  }
  .minibill-showcase-frame.minibill-split-mode .minibill-pane-tag {
    font-size: 0.58rem !important;
    padding: 0.12rem 0.36rem !important;
    border-radius: 5px !important;
  }
  /* Hide verbose subtitles in split mode on mobile (160px width cannot fit 2 lines of text) */
  .minibill-showcase-frame.minibill-split-mode .minibill-pane-sub {
    display: none !important;
  }
  /* Hide secondary Concept button in split view; keep primary Chơi Thử demo button */
  .minibill-showcase-frame.minibill-split-mode .minibill-btn-secondary {
    display: none !important;
  }
  .minibill-showcase-frame.minibill-split-mode .mukbill-demo-trigger,
  .minibill-showcase-frame.minibill-split-mode .bebill-demo-trigger {
    font-size: 0.58rem !important;
    padding: 0.12rem 0.38rem !important;
    border-radius: 8px !important;
  }

  /* miniBill Vertical Scroll Mode on Mobile */
  .minibill-showcase-frame.minibill-scroll-mode .minibill-pane-caption {
    bottom: 28px !important;
    left: 8px !important;
    right: 8px !important;
  }
  .minibill-showcase-frame.minibill-scroll-mode .minibill-pane-sub {
    font-size: 0.65rem !important;
  }
  .minibill-scroll-nav-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.62rem !important;
  }

  /* Compact portfolio tags on mobile */
  .portfolio-tags {
    gap: 0.35rem !important;
    margin-bottom: 0.85rem !important;
  }
  .portfolio-tags span {
    font-size: 0.68rem !important;
    padding: 0.16rem 0.45rem !important;
    border-radius: 5px !important;
  }
}

/* Extra small mobile screen protection (< 380px) */
@media (max-width: 380px) {
  .minibill-hud-bar .minibill-hub-pill {
    font-size: 0.56rem !important;
    padding: 0.14rem 0.35rem !important;
  }
  .minibill-mode-switcher button {
    font-size: 0.54rem !important;
    padding: 0.14rem 0.32rem !important;
  }
  .rd-duo-icons img {
    width: 38px !important;
    height: 38px !important;
  }
  .rd-icon-tab {
    margin-left: -10px !important;
  }
}
/* ===== Products 11-14: KiotBill, TTBill, ZomBill, ShipBill (landing update) ===== */

/* KiotBill */
.kiotbill-card .portfolio-icon,
.kiotbill-icon,
.portfolio-icon.kiotbill-icon {
  border-color: rgba(37, 99, 235, 0.85) !important;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.65), 0 0 10px rgba(56, 189, 248, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(37, 99, 235, 0.1);
}

.kiotbill-card .portfolio-icon:hover,
.kiotbill-icon:hover,
.portfolio-icon.kiotbill-icon:hover {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(37, 99, 235, 0.95), 0 0 14px rgba(56, 189, 248, 0.7) !important;
}

[data-theme="light"] .kiotbill-card .badge-tag {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.14) !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
}

[data-theme="light"] .kiotbill-trigger-btn {
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.45) !important;
  background: rgba(37, 99, 235, 0.1) !important;
}

[data-theme="light"] .kiotbill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.14) !important;
}

[data-theme="light"] .kiotbill-concept-body strong,
[data-theme="light"] #kiotbillModal .modal-header h3,
[data-theme="light"] #kiotbillModal .modal-header span[style*="uppercase"] {
  color: #1d4ed8 !important;
}

/* TTBill */
.ttbill-card .portfolio-icon,
.ttbill-icon,
.portfolio-icon.ttbill-icon {
  border-color: rgba(13, 148, 136, 0.85) !important;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.65), 0 0 10px rgba(245, 158, 11, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(13, 148, 136, 0.1);
}

.ttbill-card .portfolio-icon:hover,
.ttbill-icon:hover,
.portfolio-icon.ttbill-icon:hover {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(13, 148, 136, 0.95), 0 0 14px rgba(245, 158, 11, 0.7) !important;
}

[data-theme="light"] .ttbill-card .badge-tag {
  color: #0f766e !important;
  background: rgba(13, 148, 136, 0.14) !important;
  border-color: rgba(13, 148, 136, 0.4) !important;
}

[data-theme="light"] .ttbill-trigger-btn {
  color: #0f766e !important;
  border-color: rgba(13, 148, 136, 0.45) !important;
  background: rgba(13, 148, 136, 0.1) !important;
}

[data-theme="light"] .ttbill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #0f766e !important;
  background: rgba(13, 148, 136, 0.14) !important;
}

[data-theme="light"] .ttbill-concept-body strong,
[data-theme="light"] #ttbillModal .modal-header h3,
[data-theme="light"] #ttbillModal .modal-header span[style*="uppercase"] {
  color: #0f766e !important;
}

/* ZomBill */
.zombill-card .portfolio-icon,
.zombill-icon,
.portfolio-icon.zombill-icon {
  border-color: rgba(132, 204, 22, 0.85) !important;
  box-shadow: 0 0 20px rgba(132, 204, 22, 0.65), 0 0 10px rgba(124, 58, 237, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(132, 204, 22, 0.1);
}

.zombill-card .portfolio-icon:hover,
.zombill-icon:hover,
.portfolio-icon.zombill-icon:hover {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(132, 204, 22, 0.95), 0 0 14px rgba(124, 58, 237, 0.7) !important;
}

[data-theme="light"] .zombill-card .badge-tag {
  color: #3f6212 !important;
  background: rgba(132, 204, 22, 0.14) !important;
  border-color: rgba(132, 204, 22, 0.4) !important;
}

[data-theme="light"] .zombill-trigger-btn {
  color: #3f6212 !important;
  border-color: rgba(132, 204, 22, 0.45) !important;
  background: rgba(132, 204, 22, 0.1) !important;
}

[data-theme="light"] .zombill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #3f6212 !important;
  background: rgba(132, 204, 22, 0.14) !important;
}

[data-theme="light"] .zombill-concept-body strong,
[data-theme="light"] #zombillModal .modal-header h3,
[data-theme="light"] #zombillModal .modal-header span[style*="uppercase"] {
  color: #3f6212 !important;
}

/* ShipBill */
.shipbill-card .portfolio-icon,
.shipbill-icon,
.portfolio-icon.shipbill-icon {
  border-color: rgba(0, 210, 211, 0.85) !important;
  box-shadow: 0 0 20px rgba(0, 210, 211, 0.65), 0 0 10px rgba(250, 204, 21, 0.45), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
  background: rgba(0, 210, 211, 0.1);
}

.shipbill-card .portfolio-icon:hover,
.shipbill-icon:hover,
.portfolio-icon.shipbill-icon:hover {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(0, 210, 211, 0.95), 0 0 14px rgba(250, 204, 21, 0.7) !important;
}

[data-theme="light"] .shipbill-card .badge-tag {
  color: #0e7490 !important;
  background: rgba(0, 210, 211, 0.14) !important;
  border-color: rgba(0, 210, 211, 0.4) !important;
}

[data-theme="light"] .shipbill-trigger-btn {
  color: #0e7490 !important;
  border-color: rgba(0, 210, 211, 0.45) !important;
  background: rgba(0, 210, 211, 0.1) !important;
}

[data-theme="light"] .shipbill-card .portfolio-footer > div[style*="dashed"] > span:last-child {
  color: #0e7490 !important;
  background: rgba(0, 210, 211, 0.14) !important;
}

[data-theme="light"] .shipbill-concept-body strong,
[data-theme="light"] #shipbillModal .modal-header h3,
[data-theme="light"] #shipbillModal .modal-header span[style*="uppercase"] {
  color: #0e7490 !important;
}


/* ==========================================================================
   RestoBill Dedicated Page Theme (Emerald Green #10B981 & Warm Gold #F59E0B)
   ========================================================================== */
body.theme-restobill .bg-glow-1,
.bg-glow-restobill {
  top: -50px;
  left: 0;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.65) 0%, rgba(16, 185, 129, 0.22) 45%, transparent 70%);
}

body.theme-restobill .bg-glow-2 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.65) 0%, rgba(245, 158, 11, 0.22) 45%, transparent 70%);
}

body.theme-restobill .text-gradient,
.text-gradient-restobill {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-restobill {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-restobill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
  color: #fff;
}

.btn-outline-restobill {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.btn-outline-restobill:hover {
  background: rgba(16, 185, 129, 0.22);
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
}

body.theme-restobill .btn-outline:hover {
  border-color: #10b981;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

body.theme-restobill .logo-icon-wrap {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

body.theme-restobill .nav-link.active {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

body.theme-restobill .nav-link.active i {
  color: #34d399;
}

body.theme-restobill .app-card-icon {
  border: 2px solid rgba(52, 211, 153, 0.85);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.65), 0 0 10px rgba(52, 211, 153, 0.45), 0 4px 14px rgba(0, 0, 0, 0.45);
  background: rgba(16, 185, 129, 0.1);
}

body.theme-restobill .app-card-icon:hover {
  transform: scale(1.06);
  border-color: rgba(167, 243, 208, 0.95);
  box-shadow: 0 0 26px rgba(5, 150, 105, 0.95), 0 0 14px rgba(52, 211, 153, 0.7);
}

body.theme-restobill .footer-col a:hover,
body.theme-restobill .footer-col a:hover i,
body.theme-restobill .footer-group-label i,
body.theme-restobill .footer-nav-group[open] .footer-group-chevron,
body.theme-restobill .footer-info i,
body.theme-restobill .footer-info a:hover {
  color: #34d399;
}

[data-theme="light"] body.theme-restobill .nav-link.active {
  color: #059669 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15) !important;
}

[data-theme="light"] body.theme-restobill .footer-col a:hover,
[data-theme="light"] body.theme-restobill .footer-col a:hover i,
[data-theme="light"] body.theme-restobill .footer-group-label i,
[data-theme="light"] body.theme-restobill .footer-nav-group[open] .footer-group-chevron,
[data-theme="light"] body.theme-restobill .footer-info i,
[data-theme="light"] body.theme-restobill .footer-info a:hover {
  color: #059669;
}


/* ============================================================
   TOPBAR UNIFIED STORE DROPDOWN (.nav-store-dropdown)
   Combines Google Play + App Store (+ TestFlight) into 1 compact
   topbar menu button to prevent horizontal overflow on 1200px-1400px screens.
   Android WebView Safe: explicit pixel min-width/max-height, zero vh/dvh.
   ============================================================ */
.nav-store-dropdown {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.nav-store-dropdown > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.82rem;
  padding: 0.38rem 0.72rem;
  white-space: nowrap;
}

.nav-store-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-store-dropdown > summary * {
  pointer-events: none;
}

.nav-store-chevron {
  font-size: 0.68rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
  margin-left: 0.1rem;
}

.nav-store-dropdown[open] .nav-store-chevron {
  transform: rotate(180deg);
}

.nav-store-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 248px;
  max-width: 295px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: rgba(13, 18, 30, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 10005;
}

.nav-actions .nav-store-menu a.nav-store-item,
.nav-store-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  padding: 0.55rem 0.7rem !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid transparent !important;
  transition: all 0.18s ease !important;
  white-space: normal !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-store-item * {
  pointer-events: none;
}

.nav-actions .nav-store-menu a.nav-store-item:hover,
.nav-store-item:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  transform: translateX(2px);
}

.nav-store-item.store-play:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

.nav-store-item.store-ios:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(14, 165, 233, 0.14) !important;
}

.nav-store-item.store-testflight:hover {
  border-color: rgba(96, 165, 250, 0.5) !important;
  background: rgba(37, 99, 235, 0.16) !important;
}

.nav-store-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-store-icon.play {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.nav-store-icon.ios {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.nav-store-icon.testflight {
  background: rgba(37, 99, 235, 0.22);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.nav-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.28;
  text-align: left;
}

.nav-store-text strong {
  font-size: 0.83rem;
  font-weight: 700;
  color: #f8fafc;
}

.nav-store-text small {
  font-size: 0.71rem;
  color: #94a3b8;
  margin-top: 1px;
}

[data-theme="light"] .nav-store-menu {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .nav-actions .nav-store-menu a.nav-store-item,
[data-theme="light"] .nav-store-item {
  color: #0f172a !important;
  background: #f8fafc !important;
}

[data-theme="light"] .nav-store-text strong {
  color: #0f172a;
}

[data-theme="light"] .nav-store-text small {
  color: #64748b;
}

@media (max-width: 1200px) {
  .nav-actions .nav-store-dropdown {
    display: none;
  }
}

@media (min-width: 1201px) and (max-width: 1360px) {
  .site-header .nav-container,
  .nav-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    gap: 8px !important;
  }
  .nav-menu,
  .nav-links {
    gap: 0.35rem !important;
  }
  .nav-menu .nav-link,
  .nav-links a {
    font-size: 0.8rem !important;
    padding: 0.32rem 0.5rem !important;
  }
}
