/* =========================================================
   ROYAL CHILGHOZA PINE NUTS — PREMIUM LUXURY STYLESHEET
   FINAL VERSION — Integrated Fix Pack v1
   (Gallery frame + Hub media + Office straight + Hub 3D + WA button)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --card-accent: #0a2618;
  --font-scale: 1;
  --heading-scale: 1;
  --forest: #03140a;
  --forest2: #062015;
  --forest3: #0a2f1e;
  --gold: #d4af37;
  --gold2: #f2d77a;
  --gold3: #9e7919;
  --cream: #f5f1e8;
  --text: #e8e4d9;
  --muted: #8fa89a;
  --line: rgba(212, 175, 55, 0.22);
  --line-soft: rgba(212, 175, 55, 0.12);
  --glass: rgba(10, 38, 24, 0.55);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.5);
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Inter", Arial, sans-serif;
  --caption-font-size: 1.05rem;
  --caption-font-weight: 500;
  --caption-text-color: #f5f1e8;
  --caption-bg-color: transparent;
  --media-box-bg: #0a2f1e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--font-scale, 1)) !important;
}

body {
  margin: 0;
  background: var(--forest);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(10, 47, 30, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(10, 47, 30, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body.subview { background: var(--forest); }
body.subview .site-header { display: none; }
body.lightbox-open { overflow: hidden; }

.ambient {
  position: fixed;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.ambient-a { top: 10%; left: -15%; background: var(--gold); }
.ambient-b { right: -15%; bottom: 5%; background: #1a6b45; }

/* HEADER */
.site-header {
  height: 78px;
  padding: 0 clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 20, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  min-width: max-content;
}
.royal-logo {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 0.1));
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}
.brand-copy b {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cream);
  line-height: 1.1;
}
.brand-copy small {
  display: block;
  color: var(--gold);
  letter-spacing: 0.42em;
  font-weight: 600;
  font-size: 0.65rem;
  margin-top: 2px;
}
.desktop-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.desktop-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.25s;
  position: relative;
  padding: 6px 0;
}
.desktop-nav a:hover { color: var(--gold2); }
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.desktop-nav a:hover::after { width: 100%; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions select, .view-topbar select {
  border: 1px solid var(--line);
  background: rgba(10, 38, 24, 0.7);
  color: var(--gold2);
  border-radius: 6px;
  padding: 8px 30px 8px 12px;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  max-width: 130px;
}
.header-actions select:hover, .view-topbar select:hover {
  border-color: var(--gold);
  background-color: rgba(10, 38, 24, 0.9);
}
.header-actions select:focus, .view-topbar select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}
.menu-trigger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--gold2);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s;
}
.menu-trigger:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.06); }
.admin-trigger {
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold2);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.admin-trigger:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.14); }

/* HERO */
.hero {
  min-height: auto;
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("001.jpg") center / cover no-repeat;
  background-color: var(--forest);
  background-blend-mode: luminosity;
  opacity: 0.85;
  filter: brightness(0.55) saturate(1.1) contrast(1.05);
  transform: scale(1.05);
  z-index: 0;
}
.hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 20, 10, 0.96) 0%, rgba(3, 20, 10, 0.75) 50%, rgba(3, 20, 10, 0.4) 100%),
    linear-gradient(0deg, var(--forest) 0%, transparent 40%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 120px);
}
.hero .eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  margin: 0 0 22px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(clamp(3.2rem, 7vw, 6.4rem) * var(--heading-scale, 1));
  line-height: 0.95;
  margin: 0 0 30px;
  color: var(--cream);
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero h1 .gold {
  display: block;
  color: var(--gold2);
  font-weight: 600;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
}
.hero p:not(.eyebrow) {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(232, 228, 217, 0.88);
  max-width: 620px;
  margin-bottom: 0;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* BUTTONS */
.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 14px 26px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.btn-gold {
  position: relative;
  background: linear-gradient(180deg, #ffe89a 0%, #f2d77a 25%, #d4af37 60%, #b8941f 85%, #8b6b14 100%);
  color: #0a1810;
  border: 1px solid rgba(139, 107, 20, 0.9);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(212, 175, 55, 0.35), 0 8px 24px rgba(212, 175, 55, 0.25);
  overflow: hidden;
  font-weight: 700;
}
.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.7s;
  pointer-events: none;
}
.btn-gold:hover::before { left: 150%; }
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(212, 175, 55, 0.5), 0 12px 32px rgba(212, 175, 55, 0.4);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold2);
}

/* SECTIONS */
.section-shell {
  width: min(1240px, 100%);
  margin: auto;
  padding: 90px 20px;
  position: relative;
  z-index: 2;
}
.section-heading { max-width: 820px; }
.section-heading .eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.section-heading h2 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(clamp(2.2rem, 4.5vw, 4.2rem) * var(--heading-scale, 1));
  margin: 0 0 18px;
  color: var(--cream);
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.7;
}

/* GATEWAYS */
.gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 42px;
}
.glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 50%, rgba(0, 0, 0, 0.15) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.35), 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.gateway-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 0;
  min-height: auto;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, var(--line-soft) 0%, transparent 60%),
    linear-gradient(160deg, var(--forest3) 0%, var(--forest2) 50%, var(--forest) 100%);
  border: 0.3px solid var(--line-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.gateway-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
  z-index: 1;
}
.gateway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 0;
}
.gateway-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 0 60px rgba(212, 175, 55, 0.1), 0 4px 8px rgba(0, 0, 0, 0.4), 0 12px 24px rgba(0, 0, 0, 0.4), 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 80px rgba(212, 175, 55, 0.2);
}
.gateway-icon {
  font-size: 2.2rem;
  color: var(--gold2);
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.4)) drop-shadow(0 4px 8px rgba(212, 175, 55, 0.5)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
  transition: all 0.5s;
}
.gateway-card:hover .gateway-icon { transform: translateY(-4px) scale(1.1); }
.gateway-card .eyebrow {
  color: rgba(212, 175, 55, 0.7);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin: 0 0 10px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.gateway-card h2, .gateway-title {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(clamp(1.5rem, 3vw, 2.4rem) * var(--heading-scale, 1));
  margin: 10px 0 12px;
  color: #f5f1e8;
  line-height: 1.15;
  letter-spacing: 0.01em;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #f5f1e8;
  filter: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.gateway-card > p:not(.eyebrow) {
  color: rgba(232, 228, 217, 0.75);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: auto;
}
.gateway-card .btn-gold { padding: 12px 22px; font-size: 0.84rem; }

/* =========================================================
   GALLERY — 1080×1350 (4:5) premium cards
   [FIX-INTEGRATED] Gallery frame removal — mobile + desktop
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 42px;
  max-width: none;
  /* Negative margin to cancel .section-shell's 20px side padding */
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
}
.gallery-item {
  margin: 0;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: transparent;
  box-shadow: none;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  display: flex;
  flex-direction: column;
}
.gallery-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.45), 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(212, 175, 55, 0.2);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  border-radius: 0;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item img.failed { display: none; }
.gallery-item figcaption {
  position: relative;
  inset: auto;
  padding: 26px 24px 28px;
  background: var(--caption-bg-color);
  font-family: var(--heading-font);
  font-style: italic;
  font-size: var(--caption-font-size);
  font-weight: var(--caption-font-weight);
  color: var(--caption-text-color);
  line-height: 1.75;
  letter-spacing: 0.02em;
  flex: 1;
  border-top: 0.3px solid rgba(212, 175, 55, 0.15);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: color 0.3s ease, background 0.3s ease, font-size 0.2s ease;
}
.gallery-item figcaption span {
  display: block;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  margin-bottom: 8px;
}

/* AI PANEL */
.ai-panel {
  padding: clamp(32px, 4.5vw, 56px);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  position: relative;
  overflow: hidden;
}
.ai-panel:after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -140px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 68%);
  pointer-events: none;
}
.ai-orb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold2);
  font-family: var(--heading-font);
  font-size: 2.4rem;
  font-weight: 500;
  border: 1px solid var(--gold);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent);
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.15), inset 0 -10px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(212, 175, 55, 0.35), 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 80px rgba(212, 175, 55, 0.2);
  animation: float 5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.ai-panel .eyebrow {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin: 0 0 12px;
}
.ai-panel h2 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(clamp(1.6rem, 3vw, 2.4rem) * var(--heading-scale, 1));
  margin: 0 0 12px;
  color: var(--cream);
}
.ai-panel > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 16px;
}
.ai-mode {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
#aiForm { display: flex; gap: 10px; margin-top: 8px; position: relative; z-index: 2; }
#aiInput {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(3, 20, 10, 0.6);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.92rem;
  transition: all 0.25s;
}
#aiInput::placeholder { color: rgba(143, 168, 154, 0.6); }
#aiInput:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(3, 20, 10, 0.85);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.ai-messages { position: relative; z-index: 2; margin-top: 20px; max-height: 240px; overflow-y: auto; }
.ai-messages p { padding: 10px 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
/* WHATSAPP GATEWAY */
.whatsapp-gateway {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 0% 50%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, #0d4a2c 0%, #08361f 50%, #062b18 100%);
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.2), 0 4px 10px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(212, 175, 55, 0.1);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.whatsapp-gateway:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.3), 0 8px 20px rgba(0, 0, 0, 0.5), 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 80px rgba(212, 175, 55, 0.25);
}
.whatsapp-gateway span:first-child { font-size: 2rem; color: var(--gold); }
.whatsapp-gateway small {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.whatsapp-gateway b {
  display: block;
  margin-top: 6px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--cream);
}
.whatsapp-gateway i { margin-left: auto; color: var(--gold); font-size: 1.8rem; font-style: normal; }

/* =========================================================
   OFFICES
   [FIX-INTEGRATED 2.5] Straight cards — transform reset + fill-mode
   ========================================================= */
.offices-section {
  background: linear-gradient(110deg, #f5f1e8, #ebe5d5);
  color: #0a1810;
  padding: 20px 0;
}
.offices-section .section-heading .eyebrow { color: var(--gold3); }
.offices-section .section-heading h2 {
  color: #0a1810;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 4px rgba(10, 24, 16, 0.1);
}
.office-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}
.office-card {
  padding: 28px 26px;
  border: 1px solid rgba(10, 24, 16, 0.1);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, #faf7ee 50%, #f0ebdc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.05), 0 1px 3px rgba(10, 24, 16, 0.08), 0 8px 20px rgba(10, 24, 16, 0.1), 0 20px 40px rgba(10, 24, 16, 0.08);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  position: relative;
  /* [FIX 2.5] Prevent leftover tilt from royalFadeIn animation */
  transform: none;
  animation-fill-mode: forwards;
}
.office-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 10px rgba(10, 24, 16, 0.12), 0 16px 32px rgba(10, 24, 16, 0.15), 0 32px 64px rgba(10, 24, 16, 0.12), 0 0 40px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.4);
}
.office-card > span {
  color: var(--gold3);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  font-weight: 700;
}
.office-card h3 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(1.25rem * var(--heading-scale, 1));
  margin: 10px 0;
  color: #0a1810;
}
.office-card p {
  line-height: 1.65;
  color: #4a5a52;
  font-size: 0.9rem;
}

/* FULL VIEW */
.full-view {
  display: none;
  min-height: 100vh;
  background: var(--forest);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(10, 47, 30, 0.7) 0%, transparent 60%);
}
.full-view.open { display: block; }
.view-topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 60px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 20, 10, 0.92);
  backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 5;
  gap: 16px;
}
.view-topbar button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold2);
  padding: 9px 16px;
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}
.view-topbar button:hover { background: rgba(212, 175, 55, 0.08); border-color: var(--gold); }
.view-topbar b {
  font-family: var(--heading-font);
  font-weight: 500;
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.view-topbar b span { color: var(--gold); }
.gateway-hero {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
  padding: 100px 0 60px;
}
.gateway-hero .eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.gateway-hero h1 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(clamp(2.8rem, 6.5vw, 5.5rem) * var(--heading-scale, 1));
  margin: 0 0 16px;
  color: var(--cream);
  line-height: 1.05;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.5);
}
.gateway-hero p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 700px;
}

/* HUB GRID (legacy) */
.hub-grid-page {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
  padding: 20px 0 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hub-card {
  position: relative;
  text-align: left;
  padding: 26px 28px;
  min-height: auto;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 18px;
  background: radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, #0d3a26 0%, #0a2f1e 30%, #062015 70%, #03140a 100%);
  color: var(--text);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -2px 4px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.35), 0 20px 40px rgba(0, 0, 0, 0.35);
  font-family: var(--body-font);
  overflow: hidden;
}
.hub-card:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.04), transparent 35%);
  pointer-events: none;
}
.hub-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.45), 0 32px 64px rgba(0, 0, 0, 0.4), 0 0 60px rgba(212, 175, 55, 0.15);
}
.hub-card span {
  color: var(--gold);
  letter-spacing: 0.25em;
  font-weight: 700;
  font-size: 0.64rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hub-card h2 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(clamp(1.1rem, 2vw, 1.5rem) * var(--heading-scale, 1));
  margin: 12px 0 8px;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.4);
}
.hub-card p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}
.hub-card b {
  position: absolute;
  right: 26px;
  bottom: 22px;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 400;
}
.hub-page {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
  padding: 80px 0;
}
.hub-page .eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hub-page h1 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(clamp(2.4rem, 5.5vw, 4.5rem) * var(--heading-scale, 1));
  margin: 0 0 16px;
  color: var(--cream);
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.5);
}
.hub-lead {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.7;
  max-width: 820px;
}
.hub-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 42px;
}
.hub-content, .hub-media { padding: 34px; border-radius: 20px; }
.hub-content h3, .hub-media h3 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(1.6rem * var(--heading-scale, 1));
  color: var(--gold2);
  margin: 0 0 16px;
}
.hub-content p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 20px;
}

/* MOBILE DRAWER */
.mobile-drawer {
  position: fixed;
  right: 0;
  top: 0;
  width: min(340px, 90vw);
  height: 100vh;
  padding: 80px 28px;
  background: #062015;
  z-index: 100;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--line-soft);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  transition: all 0.25s;
}
.mobile-drawer a:hover { color: var(--gold2); padding-left: 8px; }
.mobile-drawer button, #adminClose {
  position: absolute;
  right: 20px;
  top: 15px;
  background: none;
  border: 0;
  color: var(--gold2);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 6px;
}
.drawer-admin-access {
  position: static !important;
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 13px 16px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.05);
  color: rgba(242, 215, 122, 0.75);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s;
}
.drawer-admin-access:hover {
  color: var(--gold2);
  border-color: var(--line);
  background: rgba(212, 175, 55, 0.1);
}

/* DIALOG / ADMIN */
dialog { border: 0; background: transparent; padding: 0; max-width: 100vw; }
dialog::backdrop { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); }
.admin-wide { max-height: 88vh; overflow: auto; }
.admin-panel {
  position: relative;
  width: min(620px, 92vw);
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(145deg, #0a2f1e, #03140a);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.admin-panel .eyebrow {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin: 0 0 8px;
}
.admin-panel h2 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--cream);
  margin: 0 0 12px;
}
.admin-panel h3 {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 32px 0 10px;
  color: var(--gold2);
}
.admin-panel input, .admin-panel select, .admin-panel textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(3, 20, 10, 0.7);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.9rem;
  resize: vertical;
}
.admin-panel input:focus, .admin-panel select:focus, .admin-panel textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.admin-note { color: var(--muted); font-size: 0.86rem; line-height: 1.55; margin: 10px 0; }
.admin-input {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(3, 20, 10, 0.7);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.9rem;
}
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.admin-actions input, .admin-actions select {
  padding: 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(3, 20, 10, 0.7);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.86rem;
  max-width: 100%;
}

/* ROYAL PROFILE SECTION */
.royal-profile-section { padding: 50px 20px 80px; position: relative; z-index: 2; }
.royal-profile-shell {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 48px 36px;
  text-align: center;
  border: 0.3px solid var(--line-soft);
  border-radius: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--line-soft) 0%, transparent 50%),
    linear-gradient(160deg, var(--forest3) 0%, var(--forest2) 50%, var(--forest) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}
.royal-profile-image-wrap {
  position: relative;
  width: 190px;
  height: 190px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.royal-profile-ring {
  width: 170px;
  height: 170px;
  padding: 4px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), rgba(3, 20, 10, 0.9));
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.1), 0 0 0 12px rgba(212, 175, 55, 0.04), 0 0 40px rgba(212, 175, 55, 0.35), 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(212, 175, 55, 0.1);
}
.royal-profile-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  transition: transform 0.5s;
}
.royal-profile-ring:hover .royal-profile-image { transform: scale(1.06); }
.royal-profile-image.profile-image-failed { display: none; }
.royal-profile-ring:has(.profile-image-failed):after {
  content: "♛";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  color: var(--gold);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent);
}
.royal-profile-crown {
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gold);
  font-size: 22px;
  background: radial-gradient(circle, #0a2f1e, #03140a);
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
  animation: crownPulse 3s ease-in-out infinite;
}
@keyframes crownPulse {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--gold), 0 4px 16px rgba(212, 175, 55, 0.6), 0 0 40px rgba(212, 175, 55, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 2px var(--gold), 0 6px 24px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.7);
    transform: scale(1.05);
  }
}
.royal-profile-content { max-width: 650px; }
.royal-profile-eyebrow {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.royal-profile-content h2 {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(clamp(1.8rem, 3.5vw, 2.8rem) * var(--heading-scale, 1));
  color: var(--cream);
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.royal-profile-role {
  color: var(--gold2);
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.royal-profile-line {
  width: 90px;
  height: 1px;
  margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.royal-profile-description {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  margin: 0;
}
.royal-profile-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.royal-profile-tags span {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  transition: all 0.25s;
}
.royal-profile-tags span:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.1); }

/* GALLERY LIGHTBOX */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.gallery-lightbox.open { display: flex; }
.lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.lightbox-stage.dragging { cursor: grabbing; }
.lightbox-stage img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: transform 0.15s ease-out;
  transform-origin: center center;
  will-change: transform;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--gold2);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover { background: rgba(212, 175, 55, 0.3); transform: scale(1.1); }
.lightbox-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(3, 20, 10, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50px;
  padding: 8px;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.lightbox-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold2);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body-font);
  line-height: 1;
}
.lightbox-controls button:hover { background: rgba(212, 175, 55, 0.3); border-color: var(--gold); transform: scale(1.08); }
.lightbox-controls .zoom-level {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 60px;
  justify-content: center;
  letter-spacing: 0.05em;
}
.lightbox-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 241, 232, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  background: rgba(3, 20, 10, 0.7);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

/* TABLET */
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-trigger { display: block; }
  .gateway-grid, .hub-columns { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .office-grid { grid-template-columns: repeat(2, 1fr); }
}

/* DESKTOP PROFILE */
@media (min-width: 768px) {
  .royal-profile-shell { flex-direction: row; text-align: left; padding: 56px; }
  .royal-profile-image-wrap { width: 210px; height: 210px; }
  .royal-profile-ring { width: 188px; height: 188px; }
  .royal-profile-line { margin-left: 0; margin-right: 0; }
  .royal-profile-tags { justify-content: flex-start; }
}

/* MOBILE */
@media (max-width: 620px) {
  .site-header { height: 68px; padding: 0 14px; gap: 14px; }
  .royal-logo { width: 36px; height: 36px; font-size: 17px; }
  .brand-copy b { font-size: 0.92rem; }
  .brand-copy small { font-size: 0.58rem; letter-spacing: 0.32em; }
  .header-actions select {
    max-width: 100px;
    font-size: 0.72rem;
    padding: 7px 24px 7px 10px;
    background-size: 12px;
    background-position: right 6px center;
  }
  .admin-trigger { display: none; }
  .menu-trigger { padding: 7px 11px; font-size: 1rem; }
  .hero { padding: 60px 0 55px; align-items: flex-start; }
  .hero-content { width: calc(100% - 36px); margin: 0 auto; text-align: center; }
  .hero .eyebrow { font-size: 0.62rem; letter-spacing: 0.3em; margin-bottom: 18px; }
  .hero h1 {
    font-size: calc(clamp(2.6rem, 12vw, 3.8rem) * var(--heading-scale, 1));
    line-height: 0.98;
    margin-bottom: 24px;
  }
  .hero p:not(.eyebrow) { font-size: 0.95rem; line-height: 1.7; margin: 0 auto; max-width: 100%; }
  .hero-actions { justify-content: center; gap: 10px; margin-top: 28px; }
  .hero-actions .btn { flex: 1; min-width: 0; padding: 13px 14px; font-size: 0.82rem; }
  .section-shell { width: calc(100% - 32px); padding: 56px 0; }
  .section-heading h2 { font-size: calc(clamp(1.6rem, 7vw, 2.2rem) * var(--heading-scale, 1)); }
  .gateway-card { padding: 26px 22px; border-radius: 20px; }
  .gateway-card h2 { font-size: calc(1.35rem * var(--heading-scale, 1)); margin: 8px 0 10px; }
  .gateway-card > p:not(.eyebrow) { min-height: auto; font-size: 0.86rem; }
  .gallery-grid, .hub-grid-page, .office-grid { grid-template-columns: 1fr; }
  /* [FIX-INTEGRATED] Mobile gallery breakout from .section-shell's calc(100% - 32px) */
  .gallery-grid {
    max-width: none;
    gap: 6px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }
  .ai-panel { grid-template-columns: 1fr; padding: 28px 24px; text-align: center; gap: 24px; }
  .ai-orb { margin: 0 auto; width: 110px; height: 110px; font-size: 2rem; }
  #aiForm { flex-direction: column; }
  #aiForm .btn { width: 100%; }
  .whatsapp-gateway { padding: 22px 20px; gap: 14px; }
  .whatsapp-gateway span:first-child { font-size: 1.6rem; }
  .whatsapp-gateway b { font-size: 0.95rem; }
  .hub-card { padding: 22px 22px; min-height: auto; border-radius: 16px; }
  .hub-card h2 { font-size: calc(1.1rem * var(--heading-scale, 1)); margin: 12px 0 8px; }
  .hub-page { padding: 60px 0; }
  .hub-page h1 { font-size: calc(clamp(1.8rem, 8vw, 2.4rem) * var(--heading-scale, 1)); }
  .hub-content, .hub-media { padding: 24px; }
  .view-topbar { height: 68px; padding: 0 14px; gap: 10px; }
  .view-topbar button { font-size: 0.78rem; padding: 8px 12px; }
  .view-topbar b { font-size: 0.72rem; letter-spacing: 0.08em; }
  .view-topbar select { max-width: 90px; font-size: 0.7rem; padding: 7px 22px 7px 8px; }
  .gateway-hero { padding: 70px 0 40px; }
  .royal-profile-section { padding: 40px 16px 60px; }
  .royal-profile-shell { padding: 36px 22px; gap: 24px; border-radius: 20px; }
  .royal-profile-image-wrap { width: 170px; height: 170px; }
  .royal-profile-ring { width: 152px; height: 152px; }
  .royal-profile-crown { width: 44px; height: 44px; font-size: 19px; }
  .royal-profile-content h2 { font-size: calc(1.7rem * var(--heading-scale, 1)); }
  .royal-profile-description { font-size: 0.92rem; }
  .theme-grid { grid-template-columns: 1fr; }
  .admin-panel { padding: 26px 20px; border-radius: 16px; }
  .admin-actions { align-items: stretch; flex-direction: column; }
  .admin-actions .btn { width: 100%; text-align: center; }
  .gateway-card:hover, .hub-card:hover { transform: translateY(-4px); }
  .lightbox-close { top: 10px; right: 12px; width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox-controls { bottom: 16px; padding: 6px; }
  .lightbox-controls button { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-hint { top: 12px; font-size: 0.68rem; padding: 6px 14px; }
}

/* VERY SMALL MOBILE */
@media (max-width: 390px) {
  .hero { padding: 50px 0 45px; }
  .hero h1 { font-size: calc(2.4rem * var(--heading-scale, 1)); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ROYAL THEME CUSTOMIZER */
.royal-theme-customizer { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.theme-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 20, 10, 0.5);
}
.theme-label { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.theme-label > span:first-child { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.theme-hex {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.theme-picker { width: 130px; height: 130px; flex-shrink: 0; }
.typo-row { margin: 14px 0; }
.typo-row label { display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--text); }
.typo-row select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #071a10;
  color: var(--text);
  font-family: var(--body-font);
  cursor: pointer;
}
.typo-row select:focus { outline: none; border-color: var(--gold); }
.typo-row input[type="range"] { width: 100%; accent-color: var(--gold); }
.typo-row b { color: var(--gold); font-weight: 600; }
.color-swatch {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  vertical-align: middle;
  margin-right: 6px;
}
.text-preview-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 20, 10, 0.6);
  margin-top: 12px;
}
.text-preview-box .preview-heading {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  margin: 0 0 8px;
}
.text-preview-box .preview-body {
  font-family: var(--body-font);
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 620px) {
  .theme-item { flex-direction: column; align-items: stretch; }
  .theme-picker { width: 100%; height: 180px; display: flex; justify-content: center; }
}

/* MEDIA MANAGER — Cloudinary */
.media-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
}
.media-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 20, 10, 0.5);
  transition: all 0.25s;
}
.media-item:hover { border-color: var(--gold); background: rgba(3, 20, 10, 0.7); }
.media-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0a2f1e;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--gold);
}
.media-info { flex: 1; min-width: 0; }
.media-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.media-meta { font-size: 0.7rem; color: var(--muted); margin-top: 2px; display: block; }
.media-actions { display: flex; gap: 6px; flex-shrink: 0; }
.media-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--body-font);
}
.media-btn:hover { background: rgba(212, 175, 55, 0.1); border-color: var(--gold); }
.media-btn.danger { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.3); }
.media-btn.danger:hover { background: rgba(255, 107, 107, 0.1); border-color: #ff6b6b; }
.media-empty {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* INLINE EDIT MODE */
.edit-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe89a 0%, #f2d77a 30%, #d4af37 70%, #b8941f 100%);
  color: #0a1810;
  border: 1px solid rgba(139, 107, 20, 0.8);
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(212, 175, 55, 0.5);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  align-items: center;
  justify-content: center;
}
.edit-btn:hover {
  transform: scale(1.15) translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 8px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(212, 175, 55, 0.7);
}
body.admin-mode .edit-btn { display: flex; }
#editModal { border: 0; background: transparent; padding: 0; max-width: 100vw; }
#editModal::backdrop { background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(6px); }
.edit-modal-panel {
  width: min(560px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  border-radius: 20px;
  background: linear-gradient(145deg, #0a2f1e, #03140a);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.edit-modal-panel h3 {
  font-family: var(--heading-font);
  color: var(--gold2);
  margin: 0 0 20px;
  font-size: 1.4rem;
  padding-right: 30px;
}
.edit-modal-panel label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 16px 0 8px;
  font-weight: 500;
}
.edit-modal-panel input[type="text"],
.edit-modal-panel textarea,
.edit-modal-panel input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(3, 20, 10, 0.7);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 0.9rem;
  resize: vertical;
}
.edit-modal-panel input[type="text"]:focus,
.edit-modal-panel textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}
.edit-modal-panel .modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.edit-modal-panel .modal-actions .btn { flex: 1; min-width: 120px; text-align: center; }
.edit-modal-panel .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--gold2);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.edit-modal-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #0a2f1e;
}
.edit-status {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
  min-height: 20px;
  word-break: break-word;
}
.edit-status.success { color: #5ee88a; }
.edit-status.error { color: #ff6b6b; }
.hero { position: relative; }
.royal-profile-image-wrap { position: relative; }
.gateway-card { position: relative; }
.gallery-item { position: relative; }

/* HUB CRUD */
.hub-card-wrapper { position: relative; display: flex; }
.hub-card-wrapper .hub-card { width: 100%; flex: 1; }
.hub-card-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  gap: 6px;
  z-index: 20;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 28px);
}
body.admin-mode .hub-card-actions { display: flex; }
.hub-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe89a 0%, #f2d77a 30%, #d4af37 70%, #b8941f 100%);
  color: #0a1810;
  border: 1px solid rgba(139, 107, 20, 0.8);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(212, 175, 55, 0.5);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  padding: 0;
  line-height: 1;
  font-family: var(--body-font);
}
.hub-action-btn:hover {
  transform: scale(1.15) translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 8px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(212, 175, 55, 0.7);
}
.hub-action-btn.danger {
  background: linear-gradient(180deg, #ff9999 0%, #ff6b6b 40%, #d63030 100%);
  color: #fff;
  border-color: rgba(160, 30, 30, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(214, 48, 48, 0.5);
}
.hub-action-btn.danger:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 8px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(214, 48, 48, 0.7);
}
.create-hub-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 22px;
  min-height: 180px;
  border: 2px dashed rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.03);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--body-font);
  text-align: center;
  width: 100%;
}
.create-hub-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
}
.create-hub-btn span { font-size: 2.2rem; color: var(--gold); line-height: 1; }
.create-hub-btn b {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cream);
}
.create-hub-btn small {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 240px;
  line-height: 1.5;
}
.office-card { position: relative; }
.office-card .edit-btn { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 0.95rem; }
@media (max-width: 620px) {
  .hub-card-actions { top: 10px; right: 10px; gap: 5px; }
  .hub-action-btn { width: 30px; height: 30px; font-size: 0.8rem; }
  .create-hub-btn { padding: 24px 18px; min-height: 160px; }
  .create-hub-btn b { font-size: 1.05rem; }
  .create-hub-btn span { font-size: 1.8rem; }
}

/* GATEWAY CARD — Dynamic + Hidden Badge */
.gateway-card-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: none;
  gap: 6px;
  z-index: 20;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 28px);
}
body.admin-mode .gateway-card-actions { display: flex; }
.gateway-card.gateway-hidden {
  opacity: 0.75;
  border: 1px dashed rgba(212, 175, 55, 0.5);
}
.gateway-hidden-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffcc66;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 204, 102, 0.5);
  border-radius: 20px;
  z-index: 15;
  backdrop-filter: blur(8px);
}
.gw-visibility-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 20, 10, 0.4);
}
.gw-radio {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 0.88rem !important;
  color: var(--text) !important;
  margin: 0 !important;
}
.gw-radio input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--gold);
  cursor: pointer;
  margin: 0 !important;
}
.gw-radio b { color: var(--gold2); font-weight: 600; }

/* =========================================================
   HUB MEDIA — Grid & Items
   [FIX-INTEGRATED 2] Aggressive reset + breakout (mobile + desktop)
   ========================================================= */
#hubMedia {
  display: block;
  padding: 0;
  min-height: auto;
  border: none;
  border-radius: 14px;
  text-align: left;
}
.hubMediaUploadBtn { width: 100%; margin-bottom: 16px; }
.hub-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
/* [FIX 2] Strip all framing from media item and its children */
.hub-media-item,
.hub-media-item a,
.hub-media-item figure,
.hub-media-item picture {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.hub-media-item {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.25s;
}
.hub-media-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.hub-media-item a { display: block; text-decoration: none; color: inherit; line-height: 0; font-size: 0; }
.hub-media-item img,
.hub-media-item video {
  width: 100%;
  display: block;
  max-height: 380px;
  object-fit: cover;
  border-radius: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: #000;
  margin: 0 !important;
  padding: 0 !important;
}
.hub-media-pdf {
  padding: 28px 20px;
  text-align: center;
  color: var(--gold);
  background: linear-gradient(135deg, #0a2f1e, #062015);
  border: 0 !important;
}
.hub-media-pdf span { display: block; font-size: 2.6rem; margin-bottom: 10px; line-height: 1; }
.hub-media-pdf b {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.92rem;
  word-break: break-word;
  display: block;
}
.hub-media-item-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  gap: 6px;
  z-index: 5;
}
body.admin-mode .hub-media-item-actions { display: flex; }
.hub-media-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 20px 8px;
  margin: 0;
}
@media (max-width: 620px) {
  .gateway-card-actions { top: 10px; right: 10px; gap: 5px; }
  .gateway-card-actions .hub-action-btn { width: 30px; height: 30px; font-size: 0.8rem; }
  .gateway-hidden-badge { top: 10px; left: 10px; font-size: 0.6rem; padding: 5px 9px; }
}

/* ROYAL 3D LUXURY */
.section-heading h2,
.gateway-hero h1,
.hub-page h1,
.royal-profile-content h2 {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 2px 0 rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.01em;
}
.hub-card h2 { text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 3px 8px rgba(0, 0, 0, 0.4); }
.hero h1 .gold {
  background: linear-gradient(180deg, #fff8dc 0%, #f2d77a 30%, #d4af37 60%, #8b6b14 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
}
.gateway-card, .hub-card, .glass-card, .office-card, .gallery-item, .whatsapp-gateway {
  will-change: transform, box-shadow;
}

/* =========================================================
   HUB SECTIONS PAGE
   [FIX-INTEGRATED 3] 3D + 👑 crown + smaller size
   ========================================================= */
.hub-sections-page {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
  padding: 20px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.hub-section {
  position: relative;
  padding: 0;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 55%),
    linear-gradient(160deg, #0d3a26 0%, #0a2f1e 35%, #062015 75%, #03140a 100%);
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2),
    box-shadow 0.5s ease,
    border-color 0.4s ease;
  overflow: hidden;
  perspective: 1200px;
  will-change: transform, box-shadow;
}
.hub-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
  z-index: 1;
}
.hub-section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
  z-index: 0;
}
.hub-section:hover {
  transform: translateY(-6px) rotateX(1.2deg);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 40px rgba(212, 175, 55, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 18px 36px rgba(0, 0, 0, 0.45),
    0 36px 72px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(212, 175, 55, 0.2);
}
.hub-section-header {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  padding: 64px 28px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
/* [FIX 3] 👑 crown icon above the number badge */
.hub-section-header::before {
  content: "👑";
  position: absolute;
  top: 20px;
  left: 28px;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5))
    drop-shadow(0 4px 10px rgba(212, 175, 55, 0.55))
    drop-shadow(0 0 18px rgba(212, 175, 55, 0.35));
  transition: transform 0.4s ease;
  z-index: 3;
}
.hub-section:hover .hub-section-header::before {
  transform: translateY(-3px) scale(1.12);
}
.hub-section-number {
  display: inline-block;
  color: var(--gold);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.05);
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.hub-section-title {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: calc(clamp(1.6rem, 3.2vw, 2.4rem) * var(--heading-scale, 1));
  color: var(--cream);
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.hub-section-desc {
  color: rgba(232, 228, 217, 0.75);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
  max-width: 820px;
}
.hub-section-media {
  position: relative;
  z-index: 2;
   /* [FINAL FIX] Break out from .hub-section-header padding — edge-to-edge media */
  margin: 0 -28px;
  padding: 0;
  border: none;
  background: transparent;
  width: calc(100% + 56px);
  transition: background 0.3s ease;
}
.hub-section-media .hubMediaUploadBtn { width: 100%; margin-bottom: 18px; }
.hub-media-loading {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 20px;
}
.hub-section-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  padding: 0 28px 24px;
}

/* =========================================================
   [FIX-INTEGRATED 4] WhatsApp Button — Compact + 3D Premium + 👑
   ========================================================= */
.hub-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: fit-content;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 10px;
  margin: 0;
  background: linear-gradient(180deg, #ffe89a 0%, #f2d77a 25%, #d4af37 60%, #b8941f 85%, #8b6b14 100%);
  color: #0a1810;
  border: 1px solid rgba(139, 107, 20, 0.9);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(212, 175, 55, 0.4),
    0 8px 22px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.3s ease;
}
.hub-wa-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transition: left 0.7s ease;
  pointer-events: none;
}
.hub-wa-btn:hover::before { left: 150%; }
.hub-wa-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(212, 175, 55, 0.55),
    0 12px 30px rgba(212, 175, 55, 0.42);
}
/* 👑 crown inside button — placed at start via order */
.hub-wa-btn::after {
  content: "👑";
  order: -1;
  font-size: 0.95em;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}
.hub-section-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: none;
  gap: 6px;
  z-index: 10;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 36px);
}
body.admin-mode .hub-section-actions { display: flex; }

/* [FIX] Negative margin ہٹا دیا — parent (.hub-section-media) پر ہے */
.hub-section-media .hub-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}
.hub-section-media .hub-media-item img,
.hub-section-media .hub-media-item video { max-height: 320px; }

/* HUB SECTIONS — Tablet */
@media (max-width: 900px) {
  .hub-sections-page { gap: 32px; padding: 16px 0 100px; }
}

/* HUB SECTIONS — Mobile */
@media (max-width: 620px) {
  .hub-sections-page {
    width: calc(100% - 32px);
    padding: 12px 0 80px;
    gap: 24px;
  }
  .hub-section { padding: 0; border-radius: 16px; }
  .hub-section-header { padding: 54px 16px 12px; }
  .hub-section-header::before { left: 16px; top: 16px; font-size: 24px; }
  .hub-section-number {
    font-size: 0.62rem;
    padding: 5px 12px;
    margin-bottom: 14px;
    letter-spacing: 0.26em;
  }
  .hub-section-title { font-size: calc(1.3rem * var(--heading-scale, 1)); margin: 0 0 10px; }
  .hub-section-desc { font-size: 0.9rem; line-height: 1.65; }

  /* [FIX-MOBILE] Edge-to-edge — parent پر negative margin */
  .hub-section-media {
    margin: 0 -16px;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: calc(100% + 32px);
  }
  /* [FIX-MOBILE] Negative margin ہٹا دیا */
  .hub-section-media .hub-media-grid {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    gap: 0;
  }
  .hub-section-media .hub-media-item img,
  .hub-section-media .hub-media-item video { max-height: 260px; }
  .hub-wa-btn { width: auto; max-width: 180px; padding: 9px 16px; font-size: 0.78rem; }
  .hub-section-footer { padding: 0 16px 20px; }
  .hub-section-actions { top: 12px; right: 12px; gap: 5px; }
  .hub-section-actions .hub-action-btn { width: 30px; height: 30px; font-size: 0.8rem; }
}

/* [FIX] 768px MQ — negative margin ہٹا دیا، extra } بھی ہٹا دیا */
@media (min-width: 768px) {
  .hub-section-media .hub-media-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* HUB MEDIA — PREMIUM CAPTION */
.hub-media-caption {
  position: relative;
  /* [FIX] سائیڈ padding تاکہ edge-to-edge پر متن کنارے سے نہ چپکے */
  padding: 20px 28px 0;
  margin-top: 0;
  font-family: var(--heading-font);
  font-size: var(--caption-font-size);
  font-weight: var(--caption-font-weight);
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--caption-text-color);
  text-align: start;
  background: transparent;
  border-top: none;
  border-radius: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: color 0.3s ease, background 0.3s ease, font-size 0.2s ease;
}
.hub-media-caption::before {
  content: "❖";
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.4em;
  margin-bottom: 8px;
  opacity: 0.7;
}
.hub-media-item:hover .hub-media-caption { color: var(--gold2); }
.hub-media-pdf + .hub-media-caption { border-top: none; }
@media (max-width: 620px) {
  .hub-media-caption { padding: 16px 16px 0; border-radius: 0; }
  .hub-media-caption::before { font-size: 0.6rem; margin-bottom: 6px; }
}

/* ROYAL PREMIUM FADE-IN EFFECT — [FIX 2.5] forwards to prevent leftover transforms */
@keyframes royalFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.gallery-item img,
.gallery-item figcaption {
  animation: royalFadeIn 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.office-card {
  animation: royalFadeIn 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.hub-media-item img,
.hub-media-item video,
.hub-media-pdf,
.hub-media-caption {
  animation: royalFadeIn 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.gateway-card {
  animation: royalFadeIn 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* TESTIMONIALS / REVIEWS SECTION */
.reviews-section { position: relative; z-index: 2; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 42px;
}
.review-card {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, #0d3a26 0%, #0a2f1e 30%, #062015 70%, #03140a 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.35);
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  right: 24px;
  font-family: var(--heading-font);
  font-size: 5rem;
  color: rgba(212, 175, 55, 0.15);
  line-height: 1;
  pointer-events: none;
}
.review-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 16px 32px rgba(0, 0, 0, 0.45),
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(212, 175, 55, 0.2);
}
.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
.review-text {
  color: rgba(232, 228, 217, 0.9);
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #8b6b14);
  color: #03140a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
}
.review-author-info { flex: 1; min-width: 0; }
.review-author-name {
  display: block;
  color: var(--cream);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 2px;
}
.review-author-meta {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.review-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1rem;
}
@media (max-width: 620px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .review-card { padding: 26px 22px 22px; border-radius: 16px; }
  .review-card::before { font-size: 4rem; right: 18px; }
  .review-text { font-size: 0.95rem; }
}
/* =========================================================
   [FINAL CLEAN] — Flat corners + Edge-to-edge media + Padded button & caption
   ========================================================= */

/* --- Bug fixes --- */
.hub-section {
  perspective: none !important;
  will-change: auto !important;
}

/* --- Hub page full width --- */
.hub-sections-page {
  width: 100% !important;
  padding: 20px 0 120px !important;
  gap: 32px !important;
}

/* --- Hub card flat --- */
.hub-section {
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

/* --- Hub media edge-to-edge --- */
.hub-section-media {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
}
.hub-section-media .hub-media-grid {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  gap: 0 !important;
}
.hub-section-media .hub-media-item {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
}
.hub-section-media .hub-media-item a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.hub-section-media .hub-media-item img,
.hub-section-media .hub-media-item video {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
}

/* --- Header: 👑 + HUB number + title: سائیڈ padding 20px --- */
.hub-section-header {
  padding: 56px 20px 14px !important;
}

/* --- Footer (WhatsApp button): سائیڈ padding 20px — edge-to-edge نہیں --- */
.hub-section-footer {
  padding: 0 20px 20px !important;
}

/* --- Caption: سائیڈ padding 28px — کنارے سے نہ چپکے --- */
.hub-media-caption {
  padding: 20px 28px 0 !important;
}

/* --- Gallery flat corners --- */
.gallery-item,
.gallery-item img {
  border-radius: 0 !important;
}

/* --- WhatsApp button: چھوٹا + مضبوط 3D --- */
.hub-wa-btn {
  padding: 8px 15px !important;
  font-size: 0.75rem !important;
  gap: 6px !important;
  border-radius: 7px !important;
  max-width: 155px !important;
  font-weight: 700 !important;
  background: linear-gradient(180deg, #ffe89a 0%, #f2d77a 20%, #d4af37 55%, #b8941f 80%, #8b6b14 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 2px 3px rgba(0, 0, 0, 0.55),
    0 6px 16px rgba(212, 175, 55, 0.55),
    0 12px 32px rgba(212, 175, 55, 0.35) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}
.hub-wa-btn::after {
  font-size: 0.9em !important;
}
.hub-wa-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4),
    0 4px 10px rgba(212, 175, 55, 0.7),
    0 16px 40px rgba(212, 175, 55, 0.55) !important;
}

/* --- Mobile --- */
@media (max-width: 620px) {
  .hub-sections-page {
    gap: 22px !important;
    padding: 16px 0 80px !important;
  }
  .hub-section-header {
    padding: 50px 14px 12px !important;
  }
  .hub-section-footer {
    padding: 0 16px 18px !important;
  }
  .hub-media-caption {
    padding: 16px 20px 0 !important;
  }
  .hub-wa-btn {
    padding: 7px 13px !important;
    font-size: 0.72rem !important;
    max-width: 140px !important;
    border-radius: 6px !important;
  }
  .hub-wa-btn::after {
    font-size: 0.85em !important;
  }
}
/* =========================================================
   END OF FILE — Royal Chilghoza Pine Nuts
   Fix Pack v1 (Integrated): Gallery frame + Hub media + Office straight + Hub 3D + WA button
   ========================================================= */
