/* ===================================================================
   KVG THE CAPELLA NHA TRANG - LUXURY RESORT RESIDENCE STYLE SYSTEM
   Master Agency-Grade Architecture (Powered by @antigravity-design-expert)
   Bilingual: Tiếng Việt (vi) & Русский (ru)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;0,900;1,600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* =================================================================
     1. COLOR SYSTEM (60-30-10 Luxury Coastal Obsidian & Champagne Gold)
     ================================================================= */
  --bg-obsidian: #050d1a;
  --bg-navy-deep: #08162b;
  --bg-navy-surface: #0e2340;
  --bg-navy-card: rgba(16, 38, 68, 0.65);
  
  --color-gold-dark: #9a763e;
  --color-gold-base: #c5a365;
  --color-gold-light: #e0c187;
  --color-gold-shimmer: #fae8ca;
  --color-gold-glow: rgba(197, 163, 101, 0.25);
  --color-gold-border: rgba(197, 163, 101, 0.35);

  --bg-sand-warm: #f7f5ef;
  --bg-sand-card: #ffffff;
  --border-sand: #e6dfcf;

  --text-light-pure: #ffffff;
  --text-light-body: #cbd5e1;
  --text-light-muted: #94a3b8;
  --text-dark-headline: #0c1c33;
  --text-dark-body: #334155;

  --color-emerald: #10b981;
  --color-cyan-glow: #06b6d4;

  /* =================================================================
     2. TYPOGRAPHY (100% Native Vietnamese & Cyrillic Diacritics Support)
     ================================================================= */
  --font-display: 'Playfair Display', 'Be Vietnam Pro', Georgia, serif;
  --font-body: 'Be Vietnam Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --type-hero: clamp(2.3rem, 4.8vw, 3.9rem);
  --type-h1: clamp(1.85rem, 3.2vw, 2.7rem);
  --type-h2: clamp(1.35rem, 2.2vw, 1.9rem);
  --type-lead: clamp(1.02rem, 1.25vw, 1.15rem);
  --type-body: 0.96rem;
  --type-sm: 0.82rem;

  /* =================================================================
     3. TACTILE ELEVATIONS & SHADOWS
     ================================================================= */
  --shadow-ambient: 0 10px 30px rgba(5, 13, 26, 0.4);
  --shadow-floating: 0 20px 50px rgba(5, 13, 26, 0.6);
  --shadow-gold-aura: 0 12px 35px rgba(197, 163, 101, 0.3);
  --shadow-inset-glass: inset 0 1px 1px rgba(255, 255, 255, 0.18);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  /* =================================================================
     4. MOTION PHYSICS (Cubic-Bezier Smoothness)
     ================================================================= */
  --ease-instant: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinematic: 0.65s cubic-bezier(0.16, 1, 0.3, 1);

  /* =================================================================
     5. DYNAMIC POINTER PARALLAX & SLIDER VARIABLES (MOSTAR ENGINE)
     ================================================================= */
  --mx: 0;
  --my: 0;
  --sights-shift: 0px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-obsidian);
  color: var(--text-dark-body);
  line-height: 1.68;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* ===================================================================
   SCROLL PROGRESS BAR
   =================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold-base), var(--color-gold-light), #ffffff);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ===================================================================
   TOP BAR & CLIMATE AMBIENT
   =================================================================== */
.top-bar {
  background: #040913;
  color: var(--text-light-muted);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(197, 163, 101, 0.2);
  padding: 9px 0;
  position: relative;
  z-index: 100;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  max-width: 1320px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d1d5db;
}

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

@keyframes pulseAura {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; filter: drop-shadow(0 0 6px var(--color-gold-base)); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.weather-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(197, 163, 101, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--color-gold-light);
  font-weight: 600;
  font-size: 0.76rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-hotline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-gold-light);
  font-weight: 700;
}

.top-bar-hotline:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(224, 193, 135, 0.5);
}

.lang-switch-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(197, 163, 101, 0.35);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  color: #94a3b8;
  transition: var(--ease-instant);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-base));
  color: var(--bg-obsidian);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lang-btn:hover:not(.active) {
  color: #ffffff;
}

/* ===================================================================
   STICKY GLASSMORPHISM NAVBAR
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 13, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 163, 101, 0.2);
  z-index: 99;
  transition: var(--ease-smooth);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
  max-width: 1320px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-msh-header {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform var(--ease-instant);
}

.logo-msh-header:hover {
  transform: scale(1.04);
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--color-gold-light);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 16px);
  list-style: none;
  white-space: nowrap;
}

.nav-link {
  color: #cbd5e1;
  font-size: clamp(0.78rem, 0.9vw, 0.86rem);
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.2px;
  white-space: nowrap;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-base), var(--color-gold-light));
  transition: var(--ease-smooth);
}

.nav-link:hover {
  color: #ffffff;
}

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

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-base) 100%);
  color: var(--bg-obsidian);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-gold-aura);
  transition: var(--ease-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(197, 163, 101, 0.45);
  background: linear-gradient(135deg, #ffffff 0%, var(--color-gold-light) 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(197, 163, 101, 0.45);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: var(--ease-smooth);
}

.btn-secondary:hover {
  background: rgba(197, 163, 101, 0.18);
  border-color: var(--color-gold-base);
  color: var(--color-gold-shimmer);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: var(--ease-instant);
}

/* ===================================================================
   HERO BENTO GRID & AMBIENT GLOW
   =================================================================== */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-obsidian);
  background-image: 
    radial-gradient(ellipse at 85% 30%, rgba(197, 163, 101, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(5, 13, 26, 0.88) 0%, rgba(5, 13, 26, 0.72) 60%, var(--bg-obsidian) 100%),
    url('../assets/images/hero-kvg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top, var(--bg-obsidian), transparent);
  pointer-events: none;
}

.hero-bento-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 163, 101, 0.15);
  border: 1px solid rgba(197, 163, 101, 0.4);
  color: var(--color-gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -8px), 0);
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--type-hero);
  font-weight: 900;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.hero-subtitle {
  font-size: var(--type-h2);
  font-weight: 700;
  color: var(--color-gold-shimmer);
  margin-bottom: 20px;
  line-height: 1.35;
}

.hero-desc {
  font-size: var(--type-lead);
  color: var(--text-light-body);
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 680px;
}

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

.hero-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
}

.hero-stat-pill {
  background: rgba(16, 38, 68, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(197, 163, 101, 0.25);
  padding: 14px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset-glass);
  transition: var(--ease-smooth);
}

.hero-stat-pill:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold-base);
  background: rgba(16, 38, 68, 0.9);
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--color-gold-light);
  margin-bottom: 3px;
}

.hero-stat-desc {
  font-size: 0.76rem;
  color: var(--text-light-body);
  line-height: 1.35;
}

/* Hero Right Featured Bento Card */
.hero-featured-card {
  background: rgba(14, 35, 64, 0.7);
  backdrop-filter: blur(24px);
  border: 2px solid var(--color-gold-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  position: relative;
  transform: perspective(1000px) rotateY(calc(var(--mx, 0) * 8deg)) rotateX(calc(var(--my, 0) * -8deg)) translate3d(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 14px), 0);
  transition: transform 0.12s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.hero-featured-card:hover {
  border-color: var(--color-gold-light);
  box-shadow: 0 25px 60px rgba(197, 163, 101, 0.35);
}

.hero-featured-img-wrap {
  position: relative;
  height: 380px;
  overflow: hidden;
}

.hero-featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-cinematic);
}

.hero-featured-card:hover .hero-featured-img-wrap img {
  transform: scale(1.06);
}

.hero-card-floating-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-gold-base);
  color: var(--color-gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.hero-featured-footer {
  padding: 22px 24px;
  background: rgba(8, 22, 43, 0.95);
  border-top: 1px solid rgba(197, 163, 101, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-featured-footer h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.hero-featured-footer p {
  font-size: 0.84rem;
  color: var(--color-gold-light);
}

/* ===================================================================
   SECTION COMMON STYLES
   =================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-navy-deep);
  color: #ffffff;
}

.section-sand {
  background-color: var(--bg-sand-warm);
  color: var(--text-dark-headline);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold-dark);
  margin-bottom: 12px;
}

.section-dark .section-badge {
  color: var(--color-gold-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--type-h1);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-sub {
  font-size: var(--type-lead);
  color: #4b5563;
  line-height: 1.75;
}

.section-dark .section-sub {
  color: var(--text-light-body);
}

/* ===================================================================
   OVERVIEW & CONNECTIVITY (SAND BACKGROUND)
   =================================================================== */
.overview-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.overview-lead {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-dark-headline);
  margin-bottom: 28px;
  font-weight: 500;
}

.specs-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-row {
  display: flex;
  background: var(--bg-sand-card);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--ease-instant);
}

.spec-row:hover {
  border-color: var(--color-gold-base);
  transform: translateX(4px);
}

.spec-label {
  width: 36%;
  font-weight: 800;
  color: var(--bg-navy-deep);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-val {
  width: 64%;
  color: var(--text-dark-body);
  font-size: 0.92rem;
  line-height: 1.5;
}

.overview-media-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  border: 2px solid var(--color-gold-base);
}

.overview-media-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform var(--ease-cinematic);
}

.overview-media-card:hover img {
  transform: scale(1.04);
}

.media-badge-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(14px);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-gold-base);
  color: #ffffff;
}

.media-badge-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--color-gold-light);
  margin-bottom: 4px;
}

.media-badge-overlay p {
  font-size: 0.85rem;
  color: var(--text-light-body);
}

/* ===================================================================
   04 REASONS FOR RUSSIAN COMMUNITY (DARK LUXURY BENTO)
   =================================================================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.reason-card {
  background: rgba(14, 35, 64, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 163, 101, 0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-ambient);
  transition: var(--ease-smooth);
}

.reason-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-gold-base);
  box-shadow: var(--shadow-floating);
}

.reason-img-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.reason-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-cinematic);
}

.reason-card:hover .reason-img-wrap img {
  transform: scale(1.07);
}

.reason-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(5, 13, 26, 0.88);
  backdrop-filter: blur(8px);
  color: var(--color-gold-light);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gold-border);
}

.reason-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.reason-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.38;
}

.reason-desc {
  color: var(--text-light-body);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ===================================================================
   CINEMATIC HIGHLIGHTS SLIDER (MOSTAR INFINITE LOOP ENGINE)
   =================================================================== */
.sights-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(197, 163, 101, 0.08) 0%, var(--bg-obsidian) 70%);
}

.sights-slider-container {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.sights-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 24px 0 16px;
}

.sights-track {
  display: flex;
  gap: clamp(18px, 1.8vw, 30px);
  align-items: stretch;
  transform: translate3d(var(--sights-shift, 0px), 0, 0);
  transition: transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sights-track.is-jumping {
  transition: none !important;
}

.sight-card {
  position: relative;
  flex: 0 0 clamp(320px, 28vw, 420px);
  height: 390px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(197, 163, 101, 0.32);
  background: #091527;
  box-shadow: 0 16px 45px rgba(2, 47, 64, 0.35);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.4s ease;
  outline: none;
}

.sight-card:hover,
.sight-card.is-active {
  border-color: var(--color-gold-base);
  box-shadow: 0 24px 60px rgba(197, 163, 101, 0.28);
  transform: translateY(-6px);
}

.sight-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sight-card:hover .sight-bg,
.sight-card.is-active .sight-bg {
  transform: scale(1.08);
}

.sight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 26, 0.2) 0%, rgba(5, 13, 26, 0.75) 55%, rgba(5, 13, 26, 0.95) 100%);
  transition: opacity 0.35s ease;
}

.sight-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
}

.sight-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gold-light);
  margin-bottom: 12px;
}

.sight-pin-wrap {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(5, 13, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 163, 101, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.sight-card:hover .sight-pin-wrap {
  transform: scale(1.12);
  background: rgba(197, 163, 101, 0.25);
  color: #ffffff;
}

.sight-pin-svg {
  width: 22px;
  height: 22px;
}

.sight-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sight-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Sights Controls */
.sights-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.sight-nav {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bg-navy-deep);
  background: var(--color-gold-base);
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.sight-nav:hover {
  background: #ffffff;
  color: var(--bg-navy-deep);
  transform: scale(1.1);
  box-shadow: 0 16px 40px rgba(197, 163, 101, 0.45);
}

.sight-nav:active {
  transform: scale(0.94);
}

.sights-indicator {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold-light);
  letter-spacing: 2px;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  background: rgba(14, 35, 64, 0.85);
  border: 1px solid rgba(197, 163, 101, 0.35);
  backdrop-filter: blur(8px);
}

/* ===================================================================
   SUBDIVISIONS (CAPELLA GARDEN & MOZZADISO)
   =================================================================== */
.subdiv-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.subdiv-tab-btn {
  padding: 15px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 800;
  background: #ffffff;
  color: var(--bg-navy-deep);
  border: 2px solid var(--border-sand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--ease-instant);
}

.subdiv-tab-btn.active {
  background: var(--bg-navy-deep);
  color: #ffffff;
  border-color: var(--bg-navy-deep);
  box-shadow: var(--shadow-ambient);
}

.subdiv-panel {
  display: none;
  animation: fadeInPanel 0.4s var(--ease-smooth);
}

.subdiv-panel.active {
  display: block;
}

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

.subdiv-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  border: 1px solid var(--border-sand);
}

.subdiv-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.subdiv-info-col {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subdiv-subtitle {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-navy-deep);
  margin-bottom: 16px;
  line-height: 1.4;
}

.subdiv-desc {
  font-size: 0.98rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 24px;
}

.subdiv-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}

.subdiv-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--text-dark-headline);
  font-weight: 600;
}

.subdiv-features-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: var(--color-gold-dark);
  margin-top: 2px;
}

.subdiv-media-col {
  position: relative;
  min-height: 440px;
}

.subdiv-media-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================================================================
   INTERACTIVE RENT CALCULATOR (EXCLUSIVE FEATURE)
   =================================================================== */
.calc-container {
  background: linear-gradient(145deg, #0b1d36 0%, #050d1a 100%);
  border: 2px solid var(--color-gold-base);
  border-radius: var(--radius-xl);
  padding: 48px;
  color: #ffffff;
  box-shadow: var(--shadow-floating);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

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

.calc-group-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 8px;
  display: block;
}

.calc-select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(16, 38, 68, 0.9);
  border: 1.5px solid var(--color-gold-border);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.calc-select:focus {
  border-color: var(--color-gold-light);
}

.calc-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.calc-slider-val-bubble {
  background: var(--color-gold-base);
  color: var(--bg-obsidian);
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

input[type="range"].calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  outline: none;
}

input[type="range"].calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--color-gold-light));
  cursor: pointer;
  box-shadow: 0 0 12px var(--color-gold-base);
  border: 2px solid var(--color-gold-base);
}

.calc-results-card {
  background: rgba(16, 38, 68, 0.85);
  border: 1px solid rgba(197, 163, 101, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-inset-glass);
}

.calc-results-header {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-gold-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
}

.calc-price-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.calc-price-digits {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.calc-multi-currency {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--color-gold-shimmer);
  font-weight: 600;
}

/* ===================================================================
   PRICING CARDS
   =================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-navy-surface);
  border: 2px solid var(--color-gold-base);
  border-radius: var(--radius-xl);
  padding: 42px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-floating);
  position: relative;
}

.pricing-card-featured {
  background: linear-gradient(145deg, #102a4e 0%, #091a33 100%);
}

.pricing-card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 20px;
}

.price-box {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.price-main {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-sub-unit {
  font-size: 0.92rem;
  color: var(--color-gold-shimmer);
  margin-top: 4px;
}

.pricing-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-items-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-light-body);
  line-height: 1.5;
}

.pricing-items-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: var(--color-gold-light);
  margin-top: 3px;
}

/* ===================================================================
   GALLERY & LIGHTBOX
   =================================================================== */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.gallery-filter-btn {
  padding: 9px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  background: #ffffff;
  color: var(--bg-navy-deep);
  border: 1px solid var(--border-sand);
  transition: var(--ease-instant);
}

.gallery-filter-btn.active {
  background: var(--color-gold-base);
  color: var(--bg-obsidian);
  border-color: var(--color-gold-base);
  box-shadow: 0 4px 12px rgba(197, 163, 101, 0.35);
}

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

.gallery-item {
  position: relative;
  height: 290px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-cinematic);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 26, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease-smooth);
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 26, 0.95);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.show {
  display: flex;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 1000px;
  max-height: 85vh;
  border: 2px solid var(--color-gold-base);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 2010;
  line-height: 1;
}

.lightbox-close-btn:hover {
  color: var(--color-gold-light);
}

/* ===================================================================
   CONTACT & BOOKING FORM SECTION
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: flex-start;
}

.form-wrapper {
  background: #ffffff;
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-floating);
  border: 1px solid var(--border-sand);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--bg-navy-deep);
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-sand);
  font-size: 0.95rem;
  color: var(--text-dark-headline);
  background: var(--bg-sand-warm);
  transition: border-color var(--ease-instant);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold-base);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(197, 163, 101, 0.2);
}

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

.form-hint {
  font-size: 0.78rem;
  color: #64748b;
}

.btn-submit-lead {
  width: 100%;
  padding: 16px;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 12px;
  text-align: center;
}

/* Contact Info Cards */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--bg-navy-surface);
  border: 1px solid rgba(197, 163, 101, 0.35);
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-ambient);
  transition: var(--ease-instant);
}

.contact-info-card:hover {
  border-color: var(--color-gold-base);
}

.contact-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(197, 163, 101, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: var(--color-gold-light);
}

.contact-card-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gold-light);
  margin-bottom: 4px;
  font-weight: 800;
}

.contact-card-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.contact-card-val a:hover {
  color: var(--color-gold-light);
}

.contact-card-sub {
  font-size: 0.84rem;
  color: var(--text-light-body);
  margin-top: 2px;
}

/* ===================================================================
   FLOATING ACTION BUTTONS (HOTLINE & BOOKING)
   =================================================================== */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  transition: transform var(--ease-instant);
  position: relative;
}

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

.float-hotline {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse-ring 2s infinite;
  position: relative;
}

.float-hotline svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  pointer-events: none;
}

.float-hotline[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.5px;
  border: 1px solid rgba(197, 163, 101, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.float-hotline:hover[data-tooltip]::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.float-telegram {
  background: #229ED9;
}

.float-book {
  background: var(--color-gold-base);
  color: var(--bg-obsidian);
}

.float-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ===================================================================
   MODAL DIALOG (SUCCESS POPUP)
   =================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  padding: 44px;
  text-align: center;
  box-shadow: var(--shadow-floating);
  border: 2px solid var(--color-gold-base);
  position: relative;
  animation: zoomIn 0.3s var(--ease-smooth);
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-icon {
  width: 68px;
  height: 68px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--color-emerald);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--bg-navy-deep);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-lead-summary {
  background: var(--bg-sand-warm);
  border: 1px dashed var(--color-gold-base);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
  text-align: left;
  font-size: 0.9rem;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: #030811;
  color: var(--text-light-muted);
  padding: 70px 0 34px;
  border-top: 1px solid rgba(197, 163, 101, 0.2);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  height: 50px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===================================================================
   RESPONSIVE (MEDIA QUERIES)
   Tablets & Laptops (<= 1024px) + Mobile Phones (<= 640px / <= 480px)
   =================================================================== */

@media (max-width: 1024px) {
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

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

  /* 1. TOP BAR ON TABLET & MOBILE */
  .top-bar-left {
    display: none !important;
  }

  .top-bar {
    padding: 6px 0 !important;
  }

  .top-bar .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .top-bar-right {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .top-bar-hotline {
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .top-bar-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .theme-toggle-btn {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    gap: 4px !important;
  }

  .lang-switch-wrap {
    padding: 2px !important;
    gap: 3px !important;
  }

  .lang-btn {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
    gap: 3px !important;
  }

  /* 2. NAVBAR ON TABLET & MOBILE (Prevent 1150px blowout, collapse to drawer) */
  .navbar .container {
    height: 60px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .brand-logo {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .logo-msh-header {
    height: 32px !important;
    flex-shrink: 0 !important;
  }

  .brand-title {
    font-size: 0.95rem !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .brand-sub {
    display: none !important; /* Hide long sub text to guarantee zero horizontal overflow */
  }

  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100vw !important;
    max-height: calc(100vh - 60px) !important;
    overflow-y: auto !important;
    background: rgba(5, 13, 26, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 24px 20px !important;
    border-bottom: 2px solid var(--color-gold-base) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    z-index: 99999 !important;
  }

  .nav-links.mobile-open {
    display: flex !important;
  }

  .nav-links .nav-link {
    display: block !important;
    padding: 12px 18px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-left: 3px solid transparent !important;
    color: #f1f5f9 !important;
    transition: all 0.2s ease !important;
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link:active {
    border-left-color: var(--color-gold-base) !important;
    background: rgba(197, 163, 101, 0.15) !important;
    color: var(--color-gold-light) !important;
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 2px solid #a6823c !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
  }

  [data-theme="light"] .nav-links .nav-link {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.03) !important;
  }

  [data-theme="light"] .nav-links .nav-link:hover {
    background: rgba(166, 130, 60, 0.12) !important;
    color: #8e6d2e !important;
  }

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

  .nav-actions .btn-primary {
    display: none !important; /* Hide to reserve clean header space for logo and menu */
  }

  .mobile-menu-toggle {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    padding: 8px !important;
    flex-shrink: 0 !important;
  }

  /* 3. HERO ON TABLET & MOBILE */
  .hero {
    min-height: auto !important;
    padding: 36px 0 30px !important;
  }

  .hero-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .hero-left-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .badge-gold {
    display: inline-block !important;
    white-space: normal !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.5px !important;
    padding: 6px 14px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    transform: none !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
  }

  .badge-gold .pulse-dot {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    margin-bottom: 2px;
  }

  .hero-title {
    font-size: clamp(1.75rem, 5.2vw, 2.5rem) !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3.4vw, 1.2rem) !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 14px !important;
    max-width: 100% !important;
  }

  .hero-desc {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 22px !important;
    max-width: 100% !important;
  }

  .hero-stats-ribbon {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-stat-pill {
    padding: 12px 10px !important;
  }

  .hero-stat-val {
    font-size: 1.05rem !important;
  }

  .hero-stat-desc {
    font-size: 0.72rem !important;
  }

  .hero-featured-card {
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-featured-img-wrap {
    height: clamp(220px, 45vw, 320px) !important;
  }

  /* 4. OTHER SECTIONS */
  .calc-container {
    grid-template-columns: 1fr !important;
    padding: 24px 18px !important;
  }

  .overview-grid,
  .reasons-grid,
  .pricing-grid,
  .contact-grid,
  .subdiv-content-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .specs-table .spec-row {
    flex-direction: column !important;
    gap: 4px !important;
    padding: 12px 14px !important;
  }

  .subdiv-tabs {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .subdiv-tab-btn {
    padding: 10px 18px !important;
    font-size: 0.88rem !important;
    flex: 1 1 auto !important;
    text-align: center !important;
  }

  .subdiv-info-col {
    padding: 24px 16px !important;
  }

  .calc-digits {
    font-size: 1.55rem !important;
  }

  .calc-result-panel {
    padding: 20px 14px !important;
  }

  .form-wrapper {
    padding: 22px 16px !important;
  }

  .floating-actions {
    bottom: 20px !important;
    right: 14px !important;
    gap: 10px !important;
    z-index: 999 !important;
  }

  .float-btn {
    width: 48px !important;
    height: 48px !important;
  }
}

/* ===================================================================
   MOBILE PHONES (<= 640px)
   =================================================================== */
@media (max-width: 640px) {
  .top-bar-hotline span {
    display: none !important; /* Hide 'Hotline:' text */
  }

  .top-bar-hotline strong::before {
    content: '📞 ';
    font-size: 0.82rem;
    font-weight: 400;
  }

  .theme-toggle-btn .theme-text {
    display: none !important; /* Icon only */
  }

  .theme-toggle-btn {
    padding: 4px 8px !important;
  }

  .lang-btn {
    padding: 3px 6px !important;
    font-size: 0.68rem !important;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 1.95rem) !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.92rem !important;
    min-height: 48px !important; /* 48px touch target! */
  }

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

/* ===================================================================
   DAY / LIGHT THEME SYSTEM ([data-theme="light"])
   =================================================================== */
.top-bar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 163, 101, 0.35);
  color: var(--color-gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease-smooth);
}

.theme-toggle-btn:hover {
  background: rgba(197, 163, 101, 0.25);
  color: #ffffff;
  border-color: var(--color-gold-base);
  transform: translateY(-1px);
}

[data-theme="light"] {
  --bg-obsidian: #f5f4ef;
  --bg-navy-deep: #ffffff;
  --bg-navy-surface: #edf1f7;
  --bg-navy-card: rgba(255, 255, 255, 0.95);
  
  --color-gold-dark: #7a5823;
  --color-gold-base: #a6823c;
  --color-gold-light: #8e6d2e;
  --color-gold-shimmer: #c5a365;
  --color-gold-glow: rgba(166, 130, 60, 0.2);
  --color-gold-border: rgba(166, 130, 60, 0.3);

  --bg-sand-warm: #ffffff;
  --bg-sand-card: #f8fafc;
  --border-sand: #e2e8f0;

  --text-light-pure: #0c1c33;
  --text-light-body: #334155;
  --text-light-muted: #64748b;
  --text-dark-headline: #0c1c33;
  --text-dark-body: #334155;

  --shadow-ambient: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-floating: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-gold-aura: 0 12px 35px rgba(166, 130, 60, 0.2);
}

[data-theme="light"] body {
  background: #f8f7f4;
  color: #334155;
}

[data-theme="light"] .top-bar {
  background: #edeae2;
  border-bottom: 1px solid rgba(166, 130, 60, 0.25);
  color: #334155;
}

[data-theme="light"] .top-bar-hotline {
  color: #0c1c33;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(0, 0, 0, 0.06);
  color: #0c1c33;
  border-color: rgba(166, 130, 60, 0.35);
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(166, 130, 60, 0.15);
  color: #0c1c33;
}

[data-theme="light"] .lang-btn {
  background: rgba(0, 0, 0, 0.05);
  color: #475569;
}

[data-theme="light"] .lang-btn.active {
  background: var(--color-gold-base);
  color: #ffffff;
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(166, 130, 60, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .logo-msh-header {
  filter: brightness(0.18) contrast(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

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

[data-theme="light"] .brand-sub {
  color: #8e6d2e;
}

[data-theme="light"] .nav-links a {
  color: #1e293b;
}

[data-theme="light"] .nav-links a:hover {
  color: var(--color-gold-base);
}

[data-theme="light"] .hero {
  background-color: #f7f5ef;
  background-image: 
    radial-gradient(ellipse at 85% 30%, rgba(197, 163, 101, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.82) 0%, rgba(247, 245, 239, 0.9) 65%, #f7f5ef 100%),
    url('../assets/images/hero-kvg.jpg');
  color: #0c1c33;
}

[data-theme="light"] .hero::after {
  background: linear-gradient(to top, #f7f5ef, transparent);
}

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

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

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

[data-theme="light"] .hero-stat-pill {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(166, 130, 60, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-stat-val {
  color: #8e6d2e;
}

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

[data-theme="light"] .hero-featured-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(166, 130, 60, 0.35);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-featured-footer h4 {
  color: #0c1c33;
}

[data-theme="light"] .hero-featured-footer p {
  color: #64748b;
}

[data-theme="light"] .section-dark {
  background-color: #f1f5f9;
  color: #0c1c33;
}

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

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

[data-theme="light"] .reason-card {
  background: #ffffff;
  border-color: rgba(166, 130, 60, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

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

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

[data-theme="light"] .sights-section {
  background: radial-gradient(circle at 50% 30%, rgba(197, 163, 101, 0.12) 0%, #e2e8f0 70%);
}

[data-theme="light"] .sight-card {
  border-color: rgba(166, 130, 60, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sights-indicator {
  background: #ffffff;
  border-color: rgba(166, 130, 60, 0.35);
  color: #8e6d2e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .calc-container {
  background: #ffffff;
  border-color: rgba(166, 130, 60, 0.3);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

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

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

[data-theme="light"] .calc-field label {
  color: #0c1c33;
}

[data-theme="light"] .calc-select {
  background: #f8fafc;
  color: #0c1c33;
  border-color: #cbd5e1;
}

[data-theme="light"] .calc-summary-card {
  background: #f8fafc;
  border-color: rgba(166, 130, 60, 0.25);
}

[data-theme="light"] .calc-digits {
  color: #0c1c33;
}

[data-theme="light"] .calc-sub-digits {
  color: #8e6d2e;
}

[data-theme="light"] .contact-info-card {
  background: #ffffff;
  border-color: rgba(166, 130, 60, 0.28);
  color: #0c1c33;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-info-card h4 {
  color: #0c1c33;
}

[data-theme="light"] .contact-info-card p {
  color: #475569;
}

/* ===================================================================
   STUDIO QUẢN LÝ HÌNH ẢNH & LOGO (ASSET CUSTOMIZER LIVE STUDIO)
   =================================================================== */
.admin-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(197, 163, 101, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(197, 163, 101, 0.12);
  border: 1px solid rgba(197, 163, 101, 0.3);
  transition: all 0.2s;
}

.admin-portal-link:hover {
  color: #050d1a;
  background: var(--color-gold-base);
  border-color: var(--color-gold-base);
}

/* ===================================================================
   ADMIN DIRECT ON-PAGE CMS (INLINE PENCIL EDITORS & ADMIN BAR)
   =================================================================== */

/* 1. Top Admin Bar */
.landing-admin-bar {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1.5px solid var(--color-gold-base);
  padding: 10px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  animation: slideDown 0.35s ease-out;
}

body.is-admin .landing-admin-bar {
  display: block;
}

.admin-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #f1f5f9;
}

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

.admin-bar-title {
  color: var(--color-gold-light);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.admin-bar-hint {
  color: #94a3b8;
  font-size: 0.82rem;
}

.admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(197, 163, 101, 0.15);
  border: 1px solid var(--color-gold-base);
  color: var(--color-gold-light);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-admin-bar-link:hover {
  background: var(--color-gold-base);
  color: #050d1a;
}

.btn-admin-bar-logout {
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin-bar-logout:hover {
  background: #ef4444;
  color: #ffffff;
}

/* 2. Inline Image Pencil Button */
.inline-img-edit-wrapper {
  position: relative !important;
}

.inline-edit-pencil-btn {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 99;
  background: linear-gradient(135deg, #c5a365 0%, #a6823c 100%);
  color: #050d1a;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(197, 163, 101, 0.5);
  cursor: pointer;
  opacity: 0.92;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-admin .inline-edit-pencil-btn {
  display: inline-flex;
}

.inline-edit-pencil-btn:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.06);
  background: linear-gradient(135deg, #dfc28d 0%, #b38b3f 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 20px rgba(197, 163, 101, 0.7);
}

body.is-admin .inline-img-edit-wrapper:hover {
  outline: 2px dashed rgba(197, 163, 101, 0.75);
  outline-offset: -2px;
}

/* Specific positioning for Hero & Logos */
.inline-edit-pencil-btn.pos-hero {
  top: 100px;
  right: 28px;
}

.inline-edit-pencil-btn.pos-logo-header {
  position: static;
  margin-left: 12px;
}

.inline-edit-pencil-btn.pos-logo-footer {
  position: static;
  margin-left: 14px;
}

/* 3. Quick Image Replace Modal */
.quick-img-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.quick-img-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.quick-img-modal-dialog {
  background: #ffffff;
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 35px rgba(197, 163, 101, 0.25);
  border: 1.5px solid rgba(197, 163, 101, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.quick-img-modal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: #f8fafc;
}

.quick-img-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #876525;
  background: rgba(197, 163, 101, 0.15);
  border: 1px solid rgba(197, 163, 101, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.quick-img-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.quick-img-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.quick-img-close-btn {
  background: #e2e8f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.quick-img-close-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.quick-img-modal-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quick-img-preview-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.quick-img-preview-frame {
  width: 110px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #050d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
}

.quick-img-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-img-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-img-status-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
}

.quick-img-file-info {
  font-size: 0.78rem;
  color: #64748b;
  word-break: break-all;
}

/* Upload Dropzone */
.quick-img-upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.quick-img-upload-box:hover, .quick-img-upload-box.drag-over {
  border-color: var(--color-gold-base);
  background: rgba(197, 163, 101, 0.05);
}

.upload-icon {
  font-size: 2rem;
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upload-text strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.upload-text span {
  font-size: 0.78rem;
  color: #64748b;
}

.btn-select-file {
  padding: 8px 18px;
  background: rgba(197, 163, 101, 0.15);
  color: #876525;
  border: 1.5px solid var(--color-gold-base);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-select-file:hover {
  background: var(--color-gold-base);
  color: #ffffff;
}

/* URL Input */
.quick-img-url-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-img-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.quick-img-url-row {
  display: flex;
  gap: 8px;
}

.quick-img-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s;
}

.quick-img-input:focus {
  border-color: var(--color-gold-base);
}

.btn-apply-url-inline {
  padding: 10px 16px;
  background: #e2e8f0;
  color: #1e293b;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-apply-url-inline:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.quick-img-modal-footer {
  padding: 16px 26px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-quick-reset {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
}

.btn-quick-reset:hover {
  color: #b91c1c;
}

.quick-img-footer-actions {
  display: flex;
  gap: 10px;
}

.btn-quick-cancel {
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quick-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-quick-save {
  padding: 10px 22px;
  background: linear-gradient(135deg, #c5a365 0%, #a6823c 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(166, 130, 60, 0.35);
  transition: all 0.2s;
}

.btn-quick-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(166, 130, 60, 0.5);
}

/* Toast */
.asset-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 100001;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--color-gold-base);
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.asset-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================================================
   IN-PAGE MODULE CONTENT EDITOR (VISUAL CMS ON LANDING PAGE)
   =================================================================== */
.module-edit-btn {
  display: none;
}

body.is-admin .module-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: rgba(197, 163, 101, 0.18);
  border: 1px solid var(--color-gold-base);
  color: var(--color-gold-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  vertical-align: middle;
}

body.is-admin .module-edit-btn:hover {
  background: var(--color-gold-base);
  color: #050d1a;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 163, 101, 0.4);
}

.hero-module-edit-wrap {
  display: none;
}

body.is-admin .hero-module-edit-wrap {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

/* Module Editor Modal Backdrop */
.module-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 9, 19, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.module-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Dialog */
.module-modal-dialog {
  background: #0d1a2d;
  border: 1.5px solid rgba(197, 163, 101, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(197, 163, 101, 0.15);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f5f9;
}

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

/* Header */
.module-modal-header {
  padding: 18px 24px;
  background: rgba(5, 13, 26, 0.95);
  border-bottom: 1px solid rgba(197, 163, 101, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.module-modal-badge {
  background: var(--color-gold-base);
  color: #050d1a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.module-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.module-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.module-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Module Selector Bar Inside Modal */
.module-modal-selector-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(6, 15, 30, 0.98);
  border-bottom: 1px solid rgba(197, 163, 101, 0.25);
}

.module-selector-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-gold-light);
  white-space: nowrap;
}

.module-selector-select {
  flex: 1;
  padding: 8px 14px;
  background: #050d1a;
  border: 1px solid rgba(197, 163, 101, 0.4);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.module-selector-select:focus {
  border-color: var(--color-gold-base);
  box-shadow: 0 0 0 3px rgba(197, 163, 101, 0.25);
}

/* Bilingual Language Switcher Inside Modal */
.module-modal-lang-tabs {
  display: flex;
  padding: 10px 24px;
  background: rgba(8, 20, 38, 0.98);
  border-bottom: 1px solid rgba(197, 163, 101, 0.2);
  gap: 12px;
}

.module-lang-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(197, 163, 101, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.module-lang-tab:hover {
  color: #ffffff;
  border-color: var(--color-gold-base);
  background: rgba(197, 163, 101, 0.15);
}

.module-lang-tab.active {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-base));
  color: #050d1a;
  border-color: var(--color-gold-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Body & Form Fields */
.module-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.module-field-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.module-field-label small {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.74rem;
}

.module-input,
.module-textarea {
  width: 100%;
  padding: 10px 14px;
  background: #050d1a;
  border: 1px solid rgba(197, 163, 101, 0.35);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.module-input:focus,
.module-textarea:focus {
  outline: none;
  border-color: var(--color-gold-base);
  box-shadow: 0 0 0 3px rgba(197, 163, 101, 0.25);
  background: #050d1a;
}

.module-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

/* Footer */
.module-modal-footer {
  padding: 16px 24px;
  background: rgba(5, 13, 26, 0.95);
  border-top: 1px solid rgba(197, 163, 101, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-module-reset {
  padding: 8px 14px;
  background: transparent;
  color: #cbd5e1;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-module-reset:hover {
  color: #f87171;
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}

.module-footer-actions {
  display: flex;
  gap: 10px;
}

.btn-module-cancel {
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-module-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-module-save {
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-base));
  border: none;
  color: #050d1a;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(197, 163, 101, 0.35);
  transition: all 0.2s ease;
}

.btn-module-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 163, 101, 0.5);
}

.btn-module-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===================================================================
   LIGHT THEME MODAL OVERRIDES (Guarantees Crystal Clear Contrast)
   =================================================================== */
[data-theme="light"] .module-modal-dialog {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #c5a365 !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25) !important;
}
[data-theme="light"] .module-modal-header {
  background: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] .module-modal-title {
  color: #0f172a !important;
}
[data-theme="light"] .module-modal-close {
  color: #64748b !important;
}
[data-theme="light"] .module-modal-close:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .module-modal-selector-bar {
  background: #f1f5f9 !important;
  border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] .module-selector-label {
  color: #7a5823 !important;
}
[data-theme="light"] .module-selector-select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .module-modal-lang-tabs {
  background: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}
[data-theme="light"] .module-lang-tab {
  background: #ffffff !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .module-lang-tab.active {
  background: linear-gradient(135deg, #d4af37, #c5a365) !important;
  color: #050d1a !important;
  border-color: #c5a365 !important;
}
[data-theme="light"] .module-field-label {
  color: #7a5823 !important;
}
[data-theme="light"] .module-field-label small {
  color: #64748b !important;
}
[data-theme="light"] .module-input,
[data-theme="light"] .module-textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .module-input:focus,
[data-theme="light"] .module-textarea:focus {
  border-color: #c5a365 !important;
  box-shadow: 0 0 0 3px rgba(197, 163, 101, 0.2) !important;
}
[data-theme="light"] .module-modal-footer {
  background: #f8fafc !important;
  border-top-color: #e2e8f0 !important;
}
[data-theme="light"] .btn-module-cancel {
  background: #e2e8f0 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}
[data-theme="light"] .btn-module-reset {
  color: #64748b !important;
  border-color: #cbd5e1 !important;
}

/* ===================================================================
   ADMIN & MODAL RESPONSIVE (<= 1024px)
   =================================================================== */
@media (max-width: 1024px) {
  .landing-admin-bar {
    padding: 8px 14px;
  }
  .admin-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .admin-bar-hint {
    display: none;
  }

  .quick-img-modal-dialog,
  .module-modal-dialog {
    max-height: 94vh;
    width: 95vw !important;
    margin: 10px;
  }
  .module-modal-header {
    padding: 14px 18px;
  }
  .module-modal-selector-bar {
    padding: 10px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .module-modal-lang-tabs {
    padding: 10px 18px;
  }
  .module-modal-body {
    padding: 16px 18px;
  }
  .module-modal-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
    gap: 10px;
  }
  .module-footer-actions {
    width: 100%;
  }
  .btn-module-cancel, .btn-module-save {
    flex: 1;
    text-align: center;
  }
}
