/* ===================================================================
   BigGLand - Luxury Land Sales Landing Page
   Theme: Luxury Obsidian Black & Cyber Neon Orange
   Fonts: Kanit, Prompt, Plus Jakarta Sans
   =================================================================== */

:root {
  /* Colors */
  --bg-darkest: #07080b;
  --bg-dark: #0d0f15;
  --bg-card: rgba(18, 22, 31, 0.85);
  --bg-card-hover: rgba(26, 32, 46, 0.95);
  --bg-surface: #151822;
  --bg-surface-elevated: #1e2230;

  /* Accent Orange & Gold */
  --orange-primary: #ff6b00;
  --orange-bright: #ff851a;
  --orange-glow: rgba(255, 107, 0, 0.35);
  --orange-soft: rgba(255, 107, 0, 0.12);
  --orange-gradient: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
  --gold-accent: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  
  /* Status Colors */
  --status-available: #10b981;
  --status-available-glow: rgba(16, 185, 129, 0.25);
  --status-reserved: #f59e0b;
  --status-sold: #64748b;

  /* Typography Colors */
  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-orange: rgba(255, 107, 0, 0.3);
  --border-orange-bright: rgba(255, 107, 0, 0.7);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
  --shadow-orange: 0 0 25px rgba(255, 107, 0, 0.3);
  --shadow-orange-lg: 0 0 45px rgba(255, 107, 0, 0.45);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --container-max: 1320px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Mode */
[data-theme="light"] {
  --bg-darkest: #f1f5f9;
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;

  /* Typography - Crisp Black/Dark Palette */
  --text-white: #0f172a;
  --text-light: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  /* Borders & Shadows */
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-orange: rgba(255, 107, 0, 0.35);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body {
  background-color: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(180deg, 
    rgba(241, 245, 249, 0.85) 0%, 
    rgba(248, 250, 252, 0.94) 60%, 
    rgba(241, 245, 249, 1) 100%);
}

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

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

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

[data-theme="light"] .nav-link {
  color: #0f172a;
  font-weight: 500;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--orange-primary);
  background: rgba(255, 107, 0, 0.08);
}

[data-theme="light"] .btn-tool-pill {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .btn-tool-pill:hover {
  background: var(--orange-soft);
  color: var(--orange-bright);
  border-color: var(--border-orange);
}

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

[data-theme="light"] .dropdown-menu {
  background: #ffffff;
  border-color: rgba(255, 107, 0, 0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

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

[data-theme="light"] .dropdown-item:hover {
  background: rgba(255, 107, 0, 0.08);
}

[data-theme="light"] .mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid var(--border-subtle);
  border-left: none;
}

[data-theme="light"] .mobile-menu-link {
  color: #0f172a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-tag {
  background: rgba(255, 107, 0, 0.1);
  border-color: rgba(255, 107, 0, 0.35);
  color: #d95a00;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.12);
}

[data-theme="light"] .btn-hero-visit {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.16);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-hero-visit:hover {
  background: #ffffff;
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.15);
}

[data-theme="light"] .hero-stats-grid {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 107, 0, 0.3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(255, 107, 0, 0.05);
}

[data-theme="light"] .hero-stats-grid .stat-item:not(:last-child)::after {
  background: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .hero-stats-grid .stat-number {
  color: var(--orange-primary);
}

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

[data-theme="light"] .hero-filter-box {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .filter-select,
[data-theme="light"] .form-control {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

[data-theme="light"] .filter-select option {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .custom-calendar-popup {
  background: #ffffff;
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow: 0 16px 45px rgba(0,0,0,0.14);
}

[data-theme="light"] .cal-day-cell {
  background: rgba(0, 0, 0, 0.03);
  color: #0f172a;
}

[data-theme="light"] .cal-day-cell:hover {
  background: var(--orange-primary);
  color: #fff;
}

[data-theme="light"] .cal-day-cell.today {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
}

[data-theme="light"] .cal-day-cell.selected {
  background: var(--orange-primary);
  color: #fff;
}

[data-theme="light"] .toast-alert {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12), 0 0 20px rgba(255, 107, 0, 0.2);
}

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

[data-theme="light"] .site-footer {
  background: #0b0f19;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #2a2e3d;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-primary);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.25;
}

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

button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

section {
  width: 100%;
  position: relative;
}

/* Gradient & Glow Utility */
.text-orange-gradient {
  background: var(--orange-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-orange {
  box-shadow: var(--shadow-orange);
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: var(--orange-bright);
  border: 1px solid var(--border-orange);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Background Ambient Glows */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.12) 0%, rgba(255, 107, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ===================================================================
   1. NAVBAR & HEADER
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 18px 0;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10, 12, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

/* Brand & Toggle Group */
.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.85rem;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-img {
  height: 84px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, height 0.3s ease;
  flex-shrink: 0;
}

.site-header.scrolled .brand-logo-img {
  height: 60px;
}

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

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.brand-text {
  font-size: 1.85rem;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand-text span {
  color: var(--orange-primary);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--orange-bright);
  background: rgba(255, 255, 255, 0.05);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-arrow {
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  background: rgba(15, 18, 25, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  list-style: none;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 8px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--orange-bright);
  font-weight: 600;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: rgba(255, 107, 0, 0.12);
  color: var(--orange-bright);
  transform: translateX(4px);
}

.dropdown-item-thumb {
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.dropdown-item-info {
  flex: 1;
}

.dropdown-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
}

.dropdown-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Tool Buttons (Theme & Language Switcher) */
.btn-tool-pill {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-tool-pill:hover {
  background: var(--orange-soft);
  color: var(--orange-bright);
  border-color: var(--border-orange);
  transform: translateY(-2px);
}

.btn-tool-pill.lang-toggle {
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Mobile Settings in Drawer */
.mobile-settings-row {
  margin-top: 15px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setting-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-toggle-btn {
  background: var(--orange-soft);
  color: var(--orange-bright);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-switch-group {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-switch-group .lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-switch-group .lang-btn.active {
  background: var(--orange-primary);
  color: #fff;
  box-shadow: 0 0 10px var(--orange-glow);
}

.btn-hotline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: var(--orange-bright);
  border: 1px solid var(--border-orange);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-hotline:hover {
  background: var(--orange-primary);
  color: #fff;
  box-shadow: 0 0 20px var(--orange-glow);
  transform: translateY(-2px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange-gradient);
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 18px var(--orange-glow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  font-size: 1.25rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: var(--orange-soft);
  color: var(--orange-bright);
  border-color: var(--border-orange);
  transform: translateY(-2px);
}

[data-theme="light"] .mobile-toggle {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .mobile-toggle:hover {
  background: var(--orange-soft);
  color: var(--orange-bright);
  border-color: var(--border-orange);
}

/* Mobile Drawer (Slides from Left) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  right: auto;
  width: 82%;
  max-width: 380px;
  height: 100vh;
  background: rgba(13, 15, 21, 0.98);
  backdrop-filter: blur(25px);
  z-index: 1100;
  padding: 30px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  border-right: 1px solid var(--border-orange);
  border-left: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  left: 0;
  right: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 1.1rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================================================
   2. HERO SECTION
   =================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 0 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(7, 8, 11, 0.75) 0%, 
    rgba(7, 8, 11, 0.85) 60%, 
    rgba(7, 8, 11, 1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 10px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid var(--border-orange-bright);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  color: var(--orange-bright);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
  animation: pulse-glow 3s infinite;
  max-width: 100%;
}

.hero-tag i {
  flex-shrink: 0;
}

.hero-tag span {
  white-space: nowrap;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(255, 107, 0, 0.2); }
  50% { box-shadow: 0 0 28px rgba(255, 107, 0, 0.45); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-hero-main {
  font-size: 1.05rem;
  padding: 14px 34px;
}

.btn-hero-visit {
  font-size: 1.05rem;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-hero-visit:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-hero-video {
  font-size: 1.05rem;
  padding: 14px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.play-icon-pulse {
  width: 26px;
  height: 26px;
  background: var(--orange-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
}

/* Quick Filter Bar */
.hero-filter-box {
  background: rgba(18, 22, 31, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(255, 107, 0, 0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
  gap: 16px;
  align-items: center;
  text-align: left;
  margin-top: 10px;
}

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

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-select {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:hover, .filter-select:focus {
  border-color: var(--orange-primary);
  background: rgba(255, 107, 0, 0.08);
}

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

.btn-filter-search {
  padding: 12px 26px;
  height: 48px;
  align-self: flex-end;
}

/* Hero Stats Bar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 28px auto 0;
  background: rgba(18, 20, 24, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-family: 'Kanit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange-bright);
  line-height: 1.1;
  margin-bottom: 2px;
}

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

/* ===================================================================
   3. TRUST BADGES / HIGHLIGHTS
   =================================================================== */
.trust-section {
  padding: 80px 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 100%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) ;
  gap: 24px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--orange-gradient);
  opacity: 0;
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-orange);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md), 0 0 20px rgba(255, 107, 0, 0.15);
}

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

.trust-icon-box {
  width: 52px;
  height: 52px;
  background: var(--orange-soft);
  border: 1px solid var(--border-orange);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-bright);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.trust-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.trust-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================================
   4. FEATURED VIDEO SHOWCASE SECTION
   =================================================================== */
.video-showcase-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-dark);
}

.video-container-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-orange);
  box-shadow: var(--shadow-lg), 0 0 45px rgba(255, 107, 0, 0.2);
  background: #000;
  aspect-ratio: 16 / 9;
  max-width: 1000px;
  margin: 0 auto;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-container-card:hover .video-thumb-img {
  transform: scale(1.03);
}

.video-overlay-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
  cursor: pointer;
  text-align: center;
  padding: 24px;
}

.big-play-btn {
  width: 84px;
  height: 84px;
  background: var(--orange-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 0 35px var(--orange-bright);
  transition: var(--transition);
  position: relative;
}

.big-play-btn::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--orange-bright);
  border-radius: 50%;
  opacity: 0.6;
  animation: ripple 2s infinite;
}

@keyframes ripple {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.video-container-card:hover .big-play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 50px var(--orange-bright);
}

.video-caption-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  max-width: 600px;
}

.video-caption-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.video-chips-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.video-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-chip svg {
  color: var(--orange-bright);
}

/* ===================================================================
   5. PROJECTS SHOWCASE SECTION
   =================================================================== */
.projects-section {
  padding: 100px 0;
  position: relative;
  background: var(--bg-darkest);
}

.project-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 16px;
  text-align: center;
}

.tab-btn {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
  background: var(--orange-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--orange-glow);
}

/* Project Slider Pagination Controls */
.project-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 30px;
  user-select: none;
}

.slider-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.slider-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.slider-nav-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.slider-nav-btn.next-btn:not(:disabled) {
  background: var(--orange-gradient, linear-gradient(135deg, #ff9e00 0%, #ff6b00 100%));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.45);
}

.slider-nav-btn.next-btn:not(:disabled):hover {
  background: linear-gradient(135deg, #ffa91a 0%, #ff7a1a 100%);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.6);
  transform: scale(1.1);
}

.slider-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.slider-dots-container {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  padding: 0;
  display: inline-block;
  flex-shrink: 0;
}

.slider-dot:hover:not(.active) {
  background: #64748b;
  transform: scale(1.2);
}

.slider-dot.active {
  width: 26px;
  height: 8px;
  border-radius: 9999px;
  background: var(--orange-gradient, linear-gradient(135deg, #ff9e00 0%, #ff6b00 100%));
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.55);
  cursor: default;
}

.project-card.page-animate {
  animation: projectFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes projectFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  justify-content: center;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-orange-bright);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(255, 107, 0, 0.25);
}

.project-card:active {
  transform: translateY(-2px) scale(0.99);
}

.project-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-img {
  transform: scale(1.06);
}

.project-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.project-badge-pill.badge-available {
  background: rgba(6, 78, 59, 0.9);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(16, 185, 129, 0.4);
}

.project-badge-pill.badge-sold {
  background: rgba(127, 29, 29, 0.9);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(239, 68, 68, 0.4);
}

.project-video-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-video-badge:hover {
  background: var(--orange-primary);
  border-color: transparent;
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.project-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--orange-bright);
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.project-card-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: center;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feature Spec Pills */
.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 10px;
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  width: 100%;
  text-align: center;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.spec-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
}

.spec-val.spec-orange {
  color: var(--orange-bright);
}

.spec-val.spec-green {
  color: var(--status-available);
}

/* Light Mode Project Specs (ไม่มี layer ข้างหลัง, ตัวหนังสือสีดำทั้งหมด) */
[data-theme="light"] .project-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .project-card:hover {
  border-color: var(--orange-primary);
  box-shadow: 0 12px 35px rgba(255, 107, 0, 0.18);
}

[data-theme="light"] .project-card-title {
  color: #000000;
}

[data-theme="light"] .project-card-desc {
  color: #334155;
}

[data-theme="light"] .project-specs-grid {
  background: transparent;
  border: none;
  padding: 8px 0 0;
  box-shadow: none;
}

[data-theme="light"] .spec-title {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
}

[data-theme="light"] .spec-val,
[data-theme="light"] .spec-val.spec-orange,
[data-theme="light"] .spec-val.spec-green {
  color: #000000 !important;
  font-weight: 700;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 12px;
}

.btn-card-details,
.btn-card-detail {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange-soft);
  color: var(--orange-bright);
  border: 1px solid var(--border-orange);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 14px;
}

.btn-card-details:hover,
.btn-card-detail:hover {
  background: var(--orange-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--orange-glow);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-card-details,
[data-theme="light"] .btn-card-detail {
  background: rgba(255, 107, 0, 0.08);
  color: var(--orange-primary);
  border: 1px solid rgba(255, 107, 0, 0.4);
}

[data-theme="light"] .btn-card-details:hover,
[data-theme="light"] .btn-card-detail:hover {
  background: var(--orange-primary);
  color: #ffffff;
}

.price-container {
  display: flex;
  flex-direction: column;
}

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

.price-amount {
  font-family: 'Kanit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange-bright);
  line-height: 1.1;
}

.project-actions {
  display: flex;
  gap: 8px;
}

.btn-card-details {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ===================================================================
   6. INTERACTIVE PLOT MASTER PLAN SECTION
   =================================================================== */
.masterplan-section {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
}

.masterplan-container {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

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

.legend-dot.available { background: var(--status-available); box-shadow: 0 0 8px var(--status-available); }
.legend-dot.reserved { background: var(--status-reserved); box-shadow: 0 0 8px var(--status-reserved); }
.legend-dot.sold { background: var(--status-sold); }

.plot-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.plot-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plot-box:hover {
  transform: translateY(-4px);
  border-color: var(--orange-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.plot-box.available {
  border-left: 4px solid var(--status-available);
}

.plot-box.reserved {
  border-left: 4px solid var(--status-reserved);
}

.plot-box.sold {
  border-left: 4px solid var(--status-sold);
  opacity: 0.6;
  cursor: not-allowed;
}

.plot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.plot-id {
  font-family: 'Kanit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

.plot-status-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.plot-status-badge.available {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.plot-status-badge.reserved {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.plot-status-badge.sold {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

.plot-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.plot-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange-bright);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* ===================================================================
   7. LOAN & INSTALLMENT CALCULATOR
   =================================================================== */
.calculator-section {
  padding: 100px 0;
  background: var(--bg-darkest);
  position: relative;
}

.calc-card-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  align-items: center;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  gap: 12px;
}

.slider-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.slider-title {
  color: var(--text-muted);
}

.btn-custom-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-soft);
  color: var(--orange-bright);
  border: 1px solid var(--border-orange);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-custom-price:hover {
  background: var(--orange-primary);
  color: #fff;
  box-shadow: 0 0 14px var(--orange-glow);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-custom-price {
  background: rgba(255, 107, 0, 0.1);
  color: var(--orange-primary);
  border-color: rgba(255, 107, 0, 0.35);
}

[data-theme="light"] .btn-custom-price:hover {
  background: var(--orange-primary);
  color: #fff;
}

.slider-value-display {
  font-weight: 600;
  color: var(--orange-bright);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.slider-value-display:hover {
  filter: brightness(1.2);
  text-decoration: underline;
}

.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #232736;
  border-radius: 3px;
  outline: none;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--orange-primary);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--orange-glow);
  transition: transform 0.15s;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-result-box {
  background: linear-gradient(145deg, rgba(255, 107, 0, 0.15) 0%, rgba(20, 24, 34, 0.9) 100%);
  border: 1px solid var(--border-orange-bright);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 0 35px rgba(255, 107, 0, 0.15);
}

.result-badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.2);
  color: var(--orange-bright);
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.monthly-pay-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.monthly-pay-amount {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px var(--orange-glow);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1.1;
  flex-wrap: nowrap;
}

.monthly-pay-amount span {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  color: var(--orange-bright);
  white-space: nowrap;
}

.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  text-align: left;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
}

.breakdown-val {
  color: var(--text-light);
  font-weight: 500;
}

/* Calculator Light Mode Styling */
[data-theme="light"] .calc-card-wrapper {
  background: #ffffff;
  border: 1px solid rgba(255, 107, 0, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .slider-title {
  color: #1e293b;
  font-weight: 600;
}

[data-theme="light"] .slider-value-display {
  color: #ea580c;
  font-weight: 700;
}

[data-theme="light"] .custom-range-slider {
  background: #e2e8f0;
}

[data-theme="light"] .calc-result-box {
  background: linear-gradient(145deg, #ffffff 0%, #fff7ed 50%, #ffedd5 100%);
  border: 2px solid var(--orange-primary);
  box-shadow: 0 10px 35px rgba(255, 107, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .result-badge {
  background: rgba(255, 107, 0, 0.15);
  color: #c2410c;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 0, 0.35);
}

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

[data-theme="light"] .monthly-pay-amount {
  color: #0f172a;
  text-shadow: none;
}

[data-theme="light"] .monthly-pay-amount span {
  color: #ea580c;
  font-weight: 700;
}

[data-theme="light"] .calc-breakdown {
  border-top: 1px solid rgba(234, 88, 12, 0.2);
  border-bottom: 1px solid rgba(234, 88, 12, 0.2);
}

[data-theme="light"] .breakdown-row {
  color: #475569;
  font-weight: 500;
}

[data-theme="light"] .breakdown-val {
  color: #0f172a;
  font-weight: 700;
}

/* ===================================================================
   8. PROMOTION BANNER
   =================================================================== */
.promo-section {
  padding: 60px 0;
  background: var(--bg-dark);
}

.promo-card {
  background: linear-gradient(135deg, #1c150b 0%, #151822 50%, #0d0f15 100%);
  border: 1px solid var(--border-orange-bright);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255, 107, 0, 0.15);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 30px;
  align-items: center;
}

.promo-tag {
  color: var(--orange-bright);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.promo-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.promo-discount-badge {
  display: inline-block;
  background: var(--orange-gradient);
  color: #fff;
  font-family: 'Kanit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  box-shadow: 0 4px 15px var(--orange-glow);
}

.promo-perks-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.promo-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.promo-perk-item svg {
  color: var(--orange-bright);
  flex-shrink: 0;
}

.promo-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.promo-countdown {
  font-size: 0.85rem;
  color: var(--gold-accent);
}

/* ===================================================================
   9. CONTACT & LEAD FORM
   =================================================================== */
.contact-section {
  padding: 100px 0;
  background: var(--bg-darkest);
  position: relative;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  height: fit-content;
  align-self: flex-start;
}

.contact-direct-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.direct-icon {
  width: 40px;
  height: 40px;
  background: var(--orange-soft);
  border: 1px solid var(--border-orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-bright);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.direct-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  line-height: 1.3;
}

.direct-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
}

.contact-channels-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.btn-line-cta {
  background: #06c755;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-line-cta:hover {
  background: #05b34c;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(6, 199, 85, 0.4);
  color: #fff;
}

.btn-tel-cta {
  background: var(--orange-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-tel-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--orange-glow);
  color: #fff;
}

/* Contact Lead Form */
.lead-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid.full {
  grid-column: span 2;
}

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

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

.form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--orange-primary);
  background: rgba(255, 107, 0, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.form-control option {
  background: var(--bg-dark);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* File Upload Button & Input Styling */
.form-control[type="file"],
input[type="file"].form-control {
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-control[type="file"]::file-selector-button,
input[type="file"].form-control::file-selector-button,
.form-control[type="file"]::-webkit-file-upload-button,
input[type="file"].form-control::-webkit-file-upload-button {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 107, 0, 0.08));
  color: var(--orange-bright);
  border: 1px solid rgba(255, 107, 0, 0.35);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Kanit', 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-control[type="file"]::file-selector-button:hover,
input[type="file"].form-control::file-selector-button:hover,
.form-control[type="file"]::-webkit-file-upload-button:hover,
input[type="file"].form-control::-webkit-file-upload-button:hover {
  background: linear-gradient(135deg, #ff7a18, #ff5200);
  color: #ffffff;
  border-color: #ff7a18;
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.35);
  transform: translateY(-1px);
}

[data-theme="light"] .form-control[type="file"]::file-selector-button,
[data-theme="light"] input[type="file"].form-control::file-selector-button,
[data-theme="light"] .form-control[type="file"]::-webkit-file-upload-button,
[data-theme="light"] input[type="file"].form-control::-webkit-file-upload-button {
  background: rgba(255, 107, 0, 0.09);
  color: var(--orange-primary);
  border-color: rgba(255, 107, 0, 0.3);
}

[data-theme="light"] .form-control[type="file"]::file-selector-button:hover,
[data-theme="light"] input[type="file"].form-control::file-selector-button:hover,
[data-theme="light"] .form-control[type="file"]::-webkit-file-upload-button:hover,
[data-theme="light"] input[type="file"].form-control::-webkit-file-upload-button:hover {
  background: linear-gradient(135deg, #ff7a18, #ff5200);
  color: #ffffff;
}

/* Custom Thai Buddhist Era Datepicker */
.custom-datepicker-group {
  position: relative;
}

.datepicker-input-wrapper {
  position: relative;
  width: 100%;
}

.datepicker-input {
  cursor: pointer;
  padding-right: 44px;
}

.datepicker-trigger-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--orange-bright);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: var(--transition);
}

.datepicker-trigger-btn:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.15);
}

/* Custom Calendar Popup */
.custom-calendar-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  max-width: 340px;
  background: rgba(14, 17, 24, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-orange-bright);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(255, 107, 0, 0.25);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-calendar-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cal-nav-btn:hover {
  background: var(--orange-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px var(--orange-glow);
}

.cal-title-wrapper {
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-month-title {
  color: #fff;
}

.cal-year-title {
  color: var(--orange-bright);
  background: rgba(255, 107, 0, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-orange);
  font-size: 0.95rem;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cal-weekday.sun {
  color: #f87171;
}

.cal-weekday.sat {
  color: var(--orange-bright);
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.15s ease;
  position: relative;
  background: transparent;
}

.cal-day-cell:hover:not(.empty):not(.disabled) {
  background: rgba(255, 107, 0, 0.2);
  color: var(--orange-bright);
  transform: scale(1.08);
}

.cal-day-cell.empty {
  cursor: default;
  pointer-events: none;
}

.cal-day-cell.today {
  border: 1px solid var(--orange-bright);
  color: var(--orange-bright);
  font-weight: 600;
}

.cal-day-cell.selected {
  background: var(--orange-gradient) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 0 14px var(--orange-glow);
}

.cal-day-cell.disabled {
  color: #475569;
  opacity: 0.4;
  cursor: not-allowed;
}

.cal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-footer-btn {
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-footer-btn.clear {
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.cal-footer-btn.clear:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.cal-footer-btn.today {
  color: var(--orange-bright);
  background: var(--orange-soft);
  border: 1px solid var(--border-orange);
}

.cal-footer-btn.today:hover {
  background: var(--orange-primary);
  color: #fff;
  box-shadow: 0 0 12px var(--orange-glow);
}

.btn-submit-form {
  grid-column: span 2;
  padding: 15px;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* ===================================================================
   10. MODAL (PROJECT DETAILS & VIDEO PLAYER)
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255, 107, 0, 0.25);
  position: relative;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--orange-primary);
  border-color: transparent;
  transform: rotate(90deg);
}

.modal-header-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, var(--bg-surface) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.modal-content-body {
  padding: 30px;
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.modal-tab-btn {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.modal-tab-btn.active {
  background: var(--orange-soft);
  color: var(--orange-bright);
  border: 1px solid var(--border-orange);
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal Gallery */
.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
}

.modal-gallery-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid var(--border-subtle);
  display: block;
}

.modal-gallery-thumb:hover {
  transform: scale(1.05);
  border-color: var(--orange-bright);
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

/* ===================================================================
   10.1 CUSTOM PRICE MODAL POPUP
   =================================================================== */
.custom-price-modal-dialog {
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(255, 107, 0, 0.25);
  overflow: hidden;
  position: relative;
}

.custom-price-modal-content {
  padding: 36px 28px 28px;
  text-align: center;
}

.custom-price-icon {
  width: 58px;
  height: 58px;
  background: var(--orange-gradient);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px var(--orange-glow);
  margin-bottom: 16px;
}

.custom-price-title {
  font-size: 1.45rem;
  margin-bottom: 6px;
  color: var(--text-white);
}

.custom-price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.custom-price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-darkest);
  border: 2px solid var(--border-orange);
  border-radius: var(--radius-lg);
  padding: 4px 16px;
  margin-bottom: 18px;
  transition: var(--transition);
}

.custom-price-input-wrapper:focus-within {
  border-color: var(--orange-bright);
  box-shadow: 0 0 20px var(--orange-glow);
}

.currency-prefix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange-bright);
  margin-right: 6px;
}

.custom-price-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.55rem;
  font-family: 'Kanit', sans-serif;
  font-weight: 700;
  color: var(--text-white);
  text-align: right;
  padding: 8px 4px;
}

[data-theme="light"] .custom-price-input-wrapper {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .custom-price-input-wrapper:focus-within {
  border-color: var(--orange-primary);
  background: #ffffff;
}

.currency-suffix {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}

.price-presets-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 8px;
}

.price-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.btn-preset-price {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.btn-preset-price:hover,
.btn-preset-price.active {
  background: var(--orange-soft);
  color: var(--orange-bright);
  border-color: var(--border-orange);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-preset-price {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

[data-theme="light"] .btn-preset-price:hover,
[data-theme="light"] .btn-preset-price.active {
  background: var(--orange-soft);
  color: var(--orange-primary);
  border-color: var(--border-orange);
}

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

.custom-price-actions button {
  flex: 1;
  padding: 12px;
}

/* ===================================================================
   11. FLOATING ACTION BAR & TOAST
   =================================================================== */
.floating-action-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.line {
  background: #06c755;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
}

.floating-btn.phone {
  background: var(--orange-gradient);
  box-shadow: 0 4px 20px var(--orange-glow);
}

.floating-badge-alert {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-darkest);
}

/* Toast Alert */
.toast-alert {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--orange-bright);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  color: var(--text-white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 107, 0, 0.25);
  z-index: 3000;
  transform: translateY(-50px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.toast-alert i {
  color: var(--orange-bright);
  font-size: 1.2rem;
}

.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ===================================================================
   12. FOOTER
   =================================================================== */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 14px 0 20px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--orange-primary);
}

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

.footer-link-item {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-link-item:hover {
  color: var(--orange-bright);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-dim);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom-links a:hover {
  color: var(--orange-bright);
}

.footer-customer-login {
  color: var(--orange-bright) !important;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-customer-login:hover {
  background: var(--orange-primary);
  color: #ffffff !important;
  border-color: var(--orange-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

[data-theme="light"] .footer-customer-login {
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.25);
  color: var(--orange-dark) !important;
}

[data-theme="light"] .footer-customer-login:hover {
  background: var(--orange-primary);
  color: #ffffff !important;
  border-color: var(--orange-primary);
}

/* ===================================================================
   13. RESPONSIVE BREAKPOINTS & MOBILE OPTIMIZATION
   =================================================================== */

/* Medium Laptops & Compact Desktops (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .navbar {
    gap: 10px;
  }
  .brand-logo-img {
    height: 68px;
    max-width: 220px;
  }
  .brand-text {
    font-size: 1.6rem;
    gap: 4px;
  }
  .nav-menu {
    gap: 2px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.88rem;
  }
  .nav-actions {
    gap: 6px;
  }
  .btn-tool-pill {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
  }
  .btn-tool-pill.lang-toggle {
    padding: 0 8px;
    font-size: 0.8rem;
  }
  .btn-hotline {
    padding: 6px 12px;
    font-size: 0.84rem;
    gap: 6px;
  }
  .btn-primary {
    padding: 8px 14px;
    font-size: 0.86rem;
    gap: 6px;
  }
}

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .nav-menu, .btn-hotline {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-actions .btn-primary,
  .nav-actions .btn-hotline {
    display: none !important;
  }
  .hero-section {
    padding: 100px 0 50px;
  }
  .calc-card-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .promo-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Tablets & Large Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Hide top hamburger toggle since it is moved to bottom nav */
  .mobile-toggle {
    display: none !important;
  }

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

  .site-header {
    padding: 8px 0;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }

  .navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
  }

  .brand-logo-img {
    height: 38px;
    width: 38px;
    max-width: 38px;
    object-fit: contain;
  }

  .site-header.scrolled .brand-logo-img {
    height: 34px;
    width: 34px;
  }

  .brand-text {
    font-size: 1.25rem;
    gap: 4px;
    white-space: nowrap;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .nav-actions .btn-primary,
  .nav-actions .btn-hotline {
    display: none !important;
  }

  .btn-tool-pill {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .btn-tool-pill.lang-toggle {
    width: auto;
    height: 34px;
    padding: 0 8px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .hero-section {
    padding: 85px 0 40px;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
  }

  .hero-tag {
    display: none !important;
  }

  .hero-title-prefix {
    display: none !important;
  }

  .hero-title-main {
    display: block !important;
    font-size: clamp(1.7rem, 5.5vw, 2.1rem) !important;
    font-weight: 700 !important;
  }

  .hero-title-br {
    display: none !important;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6.8vw, 2.35rem) !important;
    line-height: 1.22 !important;
    margin: 0 auto 14px !important;
    padding: 0 4px !important;
    text-align: center !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
    margin: 0 auto 20px !important;
    padding: 0 6px !important;
    text-align: center !important;
    max-width: 100% !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 24px;
    gap: 10px;
  }

  .btn-hero-main, 
  .btn-hero-video {
    width: 100%;
    max-width: 320px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 18px;
    font-size: 0.92rem;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .hero-filter-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 14px;
    margin: 20px auto 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
  }

  .btn-filter-search {
    width: 100%;
    height: 44px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    box-sizing: border-box;
  }

  .hero-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 8px !important;
    padding: 18px 0 0 !important;
    margin: 24px auto 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    border-top: 1px solid var(--border-subtle) !important;
  }

  .stat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 4px !important;
    box-sizing: border-box !important;
  }

  .stat-number {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
  }

  .stat-label {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  /* Filter Tabs on Mobile */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 8px;
    margin-bottom: 20px;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .project-filter-tabs {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 18px auto 14px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .project-filter-tabs .tab-btn {
    flex-shrink: 0;
    font-size: 0.82rem !important;
    padding: 7px 18px !important;
    border-radius: var(--radius-pill) !important;
  }

  /* Projects Section on Mobile */
  .projects-section {
    padding: 24px 14px 60px !important;
    scroll-margin-top: 60px !important;
  }

  .projects-section .container {
    width: 100% !important;
    max-width: 400px !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .projects-section .section-header {
    display: block !important;
    margin-bottom: 0 !important;
    text-align: center !important;
  }

  .projects-section .section-badge {
    display: inline-flex !important;
    margin-bottom: 2px !important;
    font-size: 0.78rem !important;
    padding: 4px 14px !important;
  }

  .projects-section .section-title,
  .projects-section .section-subtitle {
    display: none !important;
  }

  .projects-section .project-slider-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px !important;
    gap: 12px !important;
  }

  .projects-section .slider-nav-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.68rem !important;
  }

  .projects-section .slider-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .projects-section .slider-dot.active {
    width: 26px !important;
    height: 8px !important;
  }

  .projects-grid {
    width: 100% !important;
    max-width: 375px !important;
    margin: 0 auto !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .projects-grid .project-card {
    width: 100% !important;
    border-radius: 18px !important;
    background: #0c121e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  .projects-grid .project-card-media {
    aspect-ratio: 16 / 10 !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .projects-grid .project-badge-pill {
    top: 12px !important;
    left: 12px !important;
    font-size: 0.72rem !important;
    padding: 4px 11px !important;
    border-radius: 9999px !important;
  }

  .projects-grid .project-card-body {
    padding: 16px 16px 18px !important;
  }

  .projects-grid .project-location {
    font-size: 0.8rem !important;
    color: #ff9e00 !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
  }

  .projects-grid .project-card-title {
    font-size: 1.32rem !important;
    font-weight: 700 !important;
    margin-bottom: 3px !important;
  }

  .projects-grid .project-card-desc {
    font-size: 0.8rem !important;
    color: #94a3b8 !important;
    margin-bottom: 12px !important;
  }

  .projects-grid .project-specs-grid {
    padding: 10px 10px !important;
    margin-bottom: 12px !important;
    gap: 8px !important;
    border-radius: 10px !important;
  }

  .projects-grid .spec-title {
    font-size: 0.68rem !important;
  }

  .projects-grid .spec-val {
    font-size: 0.82rem !important;
  }

  .projects-grid .btn-card-detail {
    padding: 9px 16px !important;
    font-size: 0.82rem !important;
    margin-top: 0 !important;
  }

  .trust-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .trust-card {
    padding: 20px 16px;
  }

  /* Calculator on Mobile */
  .calculator-section {
    padding: 35px 0 45px !important;
  }

  .calculator-section .section-header {
    margin-bottom: 16px !important;
  }

  .calculator-section .section-title,
  .calculator-section .section-subtitle {
    display: none !important;
  }

  .calc-card-wrapper {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }

  .calc-result-box {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .monthly-pay-amount {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    white-space: nowrap;
  }

  .monthly-pay-amount span {
    font-size: 0.88rem;
  }

  .custom-range-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  /* Contact & Form */
  .contact-section {
    padding: 35px 0 45px !important;
  }

  .contact-section .section-header {
    margin-bottom: 16px !important;
  }

  .contact-section .section-title,
  .contact-section .section-subtitle {
    display: none !important;
  }

  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .contact-direct-box,
  .contact-form-box,
  .contact-info-card,
  .lead-form-card {
    padding: 16px 14px !important;
    border-radius: var(--radius-lg);
    height: fit-content !important;
    align-self: flex-start !important;
  }

  .contact-direct-list {
    gap: 12px !important;
    margin-top: 14px !important;
  }

  .contact-channels-buttons {
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .btn-line-cta,
  .btn-tel-cta {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-grid.full, .btn-submit-form {
    grid-column: span 1;
  }

  /* Prevent iOS automatic zoom on inputs */
  .form-control,
  .filter-select {
    font-size: 16px !important;
  }

  /* Modal on Mobile */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-dialog {
    border-radius: var(--radius-lg);
    max-height: 94vh;
  }

  .modal-header-hero {
    height: 180px;
  }

  .modal-hero-overlay {
    padding: 14px;
  }

  .modal-content-body {
    padding: 18px 14px;
  }

  .modal-close-btn {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .modal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .modal-tabs::-webkit-scrollbar {
    display: none;
  }

  .modal-tab-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .modal-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Datepicker on Mobile */
  .custom-calendar-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: calc(100vw - 32px) !important;
    max-width: 340px !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 35px var(--orange-glow) !important;
  }

  /* Floating Action Buttons */
  .floating-action-bar {
    bottom: 18px;
    right: 14px;
    gap: 8px;
  }

  .floating-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  /* Hide verbose link columns on mobile as requested */
  .footer-col-projects,
  .footer-col-services {
    display: none !important;
  }

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

  .footer-bottom-links {
    justify-content: center;
    gap: 12px;
  }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
  .brand-logo-img {
    height: 34px;
    width: 34px;
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .nav-actions .btn-primary,
  .nav-actions .btn-hotline {
    display: none !important;
  }


  .hero-title-prefix {
    display: none !important;
  }

  .hero-title-main {
    display: block !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
  }

  .hero-title-br {
    display: none !important;
  }


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

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 6px !important;
    padding: 14px 0 0 !important;
  }

  .stat-number {
    font-size: 1.55rem !important;
  }

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

  .section-title {
    font-size: 1.5rem !important;
  }

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

  .promo-card {
    padding: 20px 14px;
  }

  .modal-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Very Small Screens (<= 360px) */
@media (max-width: 360px) {
  .brand-text {
    display: none;
  }

  .hero-badge {
    font-size: 0.68rem !important;
    padding: 4px 8px !important;
  }

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

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

/* ===================================================================
   14. LUXURY IMAGE LIGHTBOX SLIDER MODAL
   =================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease-out;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  width: 94vw;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(18, 22, 31, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.lightbox-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lightbox-proj-title {
  font-family: 'Kanit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
}

.lightbox-counter {
  background: var(--orange-soft);
  color: var(--orange-bright);
  border: 1px solid var(--border-orange);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
}

.lightbox-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: transparent;
  transform: rotate(90deg) scale(1.08);
}

.lightbox-slider-area {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.lightbox-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 107, 0, 0.15);
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: zoomFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 22, 31, 0.85);
  border: 1px solid var(--border-orange);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.lightbox-nav-btn:hover {
  background: var(--orange-gradient);
  border-color: transparent;
  box-shadow: 0 0 25px var(--orange-glow);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 12px;
}

.lightbox-nav-btn.next {
  right: 12px;
}

.lightbox-filmstrip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(18, 22, 31, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.lightbox-filmstrip-thumb {
  width: 76px;
  height: 52px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: var(--transition);
  flex-shrink: 0;
}

.lightbox-filmstrip-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.lightbox-filmstrip-thumb.active {
  opacity: 1;
  border-color: var(--orange-primary);
  box-shadow: 0 0 14px var(--orange-glow);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .lightbox-content {
    width: 98vw;
    height: 95vh;
  }
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .lightbox-filmstrip-thumb {
    width: 58px;
    height: 42px;
  }
}

/* ==========================================================================
   Live Frontend Visual Editor Styles (When Manager is Logged In)
   ========================================================================== */
.live-editor-enabled [data-editable="true"] {
  position: relative;
  transition: all 0.2s ease;
}

.live-editor-enabled [data-editable="true"]:hover {
  outline: 2px dashed #ff8c00 !important;
  outline-offset: 4px;
  background-color: rgba(255, 140, 0, 0.08) !important;
  border-radius: 4px;
  cursor: text;
}

[data-editable="true"].live-editing-active {
  outline: 2px solid #10b981 !important;
  outline-offset: 4px;
  background-color: rgba(16, 185, 129, 0.12) !important;
  border-radius: 4px;
  cursor: text;
}

/* Floating Save / Cancel Toolbar */
.live-edit-toolbar {
  position: absolute;
  z-index: 999999;
  animation: liveToolbarPopIn 0.18s ease-out forwards;
}

@keyframes liveToolbarPopIn {
  from { opacity: 0; transform: translateY(6px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.live-edit-toolbar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 19, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 107, 0, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 107, 0, 0.2);
}

.live-edit-toolbar-label {
  font-size: 0.75rem;
  color: #ff8c00;
  font-weight: 600;
  padding-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-edit-btn-save {
  background: #10b981;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.15s;
}

.live-edit-btn-save:hover {
  background: #059669;
  transform: scale(1.04);
}

.live-edit-btn-cancel {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 16px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.15s;
}

.live-edit-btn-cancel:hover {
  background: rgba(239, 68, 68, 0.35);
}

/* Toast alert for Live Editor */
.live-editor-toast {
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 1000000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-editor-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.live-toast-content {
  background: #0f131a;
  color: #fff;
  font-family: 'Kanit', sans-serif;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-left: 4px solid #10b981;
}

.live-toast-content.error {
  border-left-color: #ef4444;
}

/* ===================================================================
   15. MODERN MOBILE BOTTOM APP NAVIGATION BAR (Native App Style)
   =================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important;
  }

  .floating-action-bar {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(13, 16, 23, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
    padding-bottom: env(safe-area-inset-bottom, 8px);
    border-radius: 20px 20px 0 0;
  }

  [data-theme="light"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
  }

  .bottom-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 60px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    padding: 0 8px;
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.72rem;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    gap: 3px;
    flex: 1;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    background: transparent;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item i {
    font-size: 1.15rem;
    color: #94a3b8;
    transition: all 0.2s ease;
  }

  [data-theme="light"] .bottom-nav-item {
    color: #64748b;
  }

  [data-theme="light"] .bottom-nav-item i {
    color: #64748b;
  }

  @media (hover: hover) {
    .bottom-nav-item:hover {
      color: var(--orange-bright);
    }
    .bottom-nav-item:hover i {
      color: var(--orange-bright);
    }
  }

  .bottom-nav-item.active {
    color: var(--orange-bright) !important;
  }

  .bottom-nav-item.active i {
    transform: translateY(-2px);
    color: var(--orange-bright) !important;
    filter: drop-shadow(0 2px 8px var(--orange-glow));
  }

  [data-theme="light"] .bottom-nav-item.active {
    color: var(--orange-primary) !important;
  }

  [data-theme="light"] .bottom-nav-item.active i {
    color: var(--orange-primary) !important;
    filter: drop-shadow(0 2px 6px rgba(255, 107, 0, 0.35));
  }

  .bottom-nav-center-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    text-decoration: none;
  }

  .center-btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--orange-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45), 0 0 15px var(--orange-glow);
    transform: translateY(-16px);
    border: 3px solid var(--bg-darkest);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-theme="light"] .center-btn-circle {
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
  }

  .bottom-nav-center-btn:hover .center-btn-circle {
    transform: translateY(-19px) scale(1.06);
  }

  .bottom-nav-center-btn:active .center-btn-circle {
    transform: translateY(-14px) scale(0.95);
  }
}


