/* BrandX admin — merged snapshot of public site CSS; admin-only rules follow. */

/* ============================================================
   BrandX — premium real estate theme (sample: Mayukha Infra)
   Design: Dark Navy + Warm Gold | Luxury Real Estate
   ============================================================ */

/* ----- Google Fonts (loaded via HTML) ----- */

/* ----- CSS Variables ----- */
:root {
  --navy-darkest: #060C18;
  --navy-dark:    #0B1526;
  --navy:         #0F1E38;
  --navy-light:   #162A4A;
  --navy-card:    #111D33;
  --gold:         #C9A55C;
  --gold-light:   #E8C880;
  --gold-dark:    #9A7A35;
  --gold-pale:    rgba(201, 165, 92, 0.12);
  --cream:        #F8F3EA;
  --white:        #FFFFFF;
  --gray-100:     #F6F6F6;
  --gray-200:     #EAEAEA;
  --gray-400:     #BBBBBB;
  --gray-500:     #888888;
  --gray-700:     #444444;
  --text-on-dark: #E8E2D8;
  --text-muted:   #8B8070;
  --brand-border: rgba(201, 165, 92, 0.28);
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-link-size: clamp(15px, 0.35vw + 14px, 17px);
  --nav-cta-size: clamp(13px, 0.25vw + 12px, 15px);
  --nav-link-tracking: 0.055em;
  --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:       8px;
  --radius-lg:    16px;
  --shadow-card:  0 8px 40px rgba(0,0,0,0.35);
  --shadow-gold:  0 4px 30px rgba(201, 165, 92, 0.25);
  --gradient-gold: linear-gradient(135deg, #B8820A 0%, #E8C880 50%, #B8820A 100%);
  --gradient-overlay: linear-gradient(to bottom, rgba(6,12,24,0.3) 0%, rgba(6,12,24,0.78) 100%);
  /* Navbar — readable over bright hero imagery */
  --navbar-bg: linear-gradient(
    180deg,
    rgba(10, 18, 36, 0.97) 0%,
    rgba(6, 12, 22, 0.92) 45%,
    rgba(5, 10, 20, 0.88) 100%
  );
  --navbar-bg-scrolled: linear-gradient(
    180deg,
    rgba(8, 14, 28, 0.99) 0%,
    rgba(4, 8, 16, 0.98) 100%
  );
  --navbar-edge: rgba(201, 165, 92, 0.22);
  --navbar-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --navbar-shadow-scrolled: 0 6px 32px rgba(0, 0, 0, 0.55);
  /* Space below fixed .navbar before hero copy (bar uses ~72–110px depending on scroll) */
  --hero-top-clearance: clamp(96px, 11vh, 132px);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }
input, select, textarea { font-family: var(--font-sans); }

/* ----- Typography ----- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.25;
  font-weight: 700;
}
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy-dark); }
.text-cream  { color: var(--cream); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

/* ----- Layout Utilities ----- */
.container {
  width: 90%;
  max-width: 1260px;
  margin: 0 auto;
}
.section { padding: 100px 0; }
.section-dark { background: var(--navy-dark); }
.section-darker { background: var(--navy-darkest); }
.section-cream { background: var(--cream); }
.section-light { background: var(--gray-100); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-40  { margin-top: 40px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }

/* ----- Section Header ----- */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  position: relative;
}
.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.section-tag::before { right: calc(100% + 8px); }
.section-tag::after  { left:  calc(100% + 8px); }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy-dark);
  margin-bottom: 16px;
}
.section-title-light { color: var(--white); }
.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-subtitle-light { color: rgba(232, 226, 216, 0.7); }
.title-underline {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gradient-gold);
  color: var(--navy-darkest);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(201, 165, 92, 0.45);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-darkest);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy-dark);
}
.btn-dark {
  background: var(--navy-dark);
  color: var(--gold);
  border: 1px solid rgba(201,165,92,0.3);
}
.btn-dark:hover {
  background: var(--navy-light);
  border-color: var(--gold);
}
.btn-lg { padding: 17px 46px; font-size: 14px; }
.btn-sm { padding: 10px 24px; font-size: 12px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease;
  background: var(--navbar-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--navbar-edge);
  box-shadow: var(--navbar-shadow);
  overflow: visible;
}
/* Thin accent line — separates bar from hero without heavy chrome */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 165, 92, 0.35) 20%,
    rgba(232, 200, 128, 0.5) 50%,
    rgba(201, 165, 92, 0.35) 80%,
    transparent 100%
  );
  opacity: 0.85;
  pointer-events: none;
}
.navbar.scrolled {
  background: var(--navbar-bg-scrolled);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  padding: 14px 0;
  box-shadow: var(--navbar-shadow-scrolled), inset 0 -1px 0 rgba(201, 165, 92, 0.08);
  border-bottom-color: var(--brand-border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 24px);
  overflow: visible;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  /* Do not use min-width:0 here — it lets the row shrink and crushes .logo-text to ~0 width */
  min-width: min-content;
  max-width: min(58vw, 600px);
}
.logo-icon {
  width: 46px;
  height: 46px;
  background: var(--gradient-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-darkest);
  flex-shrink: 0;
}
.logo-icon.logo-icon-img {
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.logo-icon.logo-icon-img img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Critical: must not shrink below the brand line — min-width:0 caused one-char “columns” */
  min-width: max-content;
  flex: 0 1 auto;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.02em;
  overflow: visible;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}
/* Only on very narrow viewports allow wrapping (hamburger layout uses full row width first) */
@media (max-width: 380px) {
  .logo-name {
    white-space: normal;
    overflow-wrap: break-word;
  }
}
.logo-tagline {
  font-size: 10px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}
/* Pill tagline only in header — reads clearly on high-contrast bar */
.navbar .logo-tagline {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  font-size: 9px;
  font-weight: 500;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--brand-border);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: clamp(12px, 2.2vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0 4px;
  overflow: visible;
}
.navbar-nav > li {
  list-style: none;
  flex: 0 0 auto;
  position: relative;
  overflow: visible;
}
/* Top-level links only — avoid nowrap on submenu rows */
.navbar-nav > li > .nav-link {
  font-family: var(--font-sans);
  font-size: var(--nav-link-size);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: var(--nav-link-tracking);
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  position: relative;
  display: inline-block;
  transition: color 0.25s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  line-height: 1.25;
  padding: 10px 6px;
}
.navbar-nav > li > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.navbar-nav > li > .nav-link:hover,
.navbar-nav > li > .nav-link.active {
  color: var(--gold-light);
}
.navbar-nav > li > .nav-link:hover::after,
.navbar-nav > li > .nav-link.active::after {
  width: 100%;
}
.navbar-cta {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  flex-shrink: 0;
}
.navbar-cta .btn,
.navbar-cta .navbar-cta__btn {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.055em;
  font-size: var(--nav-cta-size);
  line-height: 1.25;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  padding-top: 11px;
  padding-bottom: 11px;
  padding-left: clamp(18px, 2vw, 26px);
  padding-right: clamp(18px, 2vw, 26px);
}
.navbar-item--dropdown { position: relative; }
.navbar-item--dropdown > .nav-link {
  padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23C9A55C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 top 55%;
  background-size: 10px auto;
}
.mobile-nav .mobile-nav__cta-btn {
  align-self: stretch;
  margin-left: min(28px, 6vw);
  margin-right: min(28px, 6vw);
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: clamp(13px, 0.35vw + 12px, 15px);
  font-weight: 600;
}
.navbar-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: max(100%, 200px);
  max-width: min(280px, calc(100vw - 32px));
  padding: 8px 0;
  margin: 0;
  background: var(--navy-darkest);
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  box-shadow: var(--navbar-shadow);
  flex-direction: column;
  gap: 0;
  z-index: 1200;
}
.navbar-item--dropdown:hover .navbar-submenu,
.navbar-item--dropdown:focus-within .navbar-submenu {
  display: flex;
}
.navbar-submenu .navbar-submenu__link {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: clamp(13px, 0.2vw + 12px, 15px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
  text-shadow: none;
}
.navbar-submenu .navbar-submenu__link::after {
  display: none;
}
.navbar-submenu .navbar-submenu__link:hover {
  color: var(--gold);
  background: rgba(201, 165, 92, 0.08);
}
.mobile-nav__sub {
  font-size: 17px !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  opacity: 0.88;
  padding-left: 1.25rem !important;
  align-self: stretch;
  text-align: center;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--navy-darkest);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-nav .nav-link {
  font-size: 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
}
/* Generic nav link fallback (e.g. static index.html) */
.nav-link {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   HERO — HOME
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--hero-top-clearance) + env(safe-area-inset-top, 0px));
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(6,12,24,0.35) 0%, rgba(6,12,24,0.82) 100%),
    url('https://images.unsplash.com/photo-1613977257363-707ba9348227?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 165, 92, 0.15);
  border: 1px solid rgba(201, 165, 92, 0.4);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge i { font-size: 10px; }
.hero-title {
  font-size: clamp(38px, 6vw, 78px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
}
.hero-title span { color: var(--gold); display: block; }
.hero-body {
  max-width: 640px;
  margin: 0 auto 22px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(232, 226, 216, 0.8);
  margin-bottom: 44px;
  max-width: 560px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Hero Search Bar */
.hero-search {
  margin-top: 60px;
  background: rgba(6, 12, 24, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 165, 92, 0.2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  max-width: 820px;
}
.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  border-right: 1px solid rgba(201, 165, 92, 0.15);
}
.search-field:last-of-type { border-right: none; }
.search-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.search-field select {
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-on-dark);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.search-field select option { background: var(--navy-dark); color: var(--text-on-dark); }
.hero-search .btn { border-radius: 8px; padding: 14px 30px; flex-shrink: 0; align-self: center; }

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(201,165,92,0.8), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--navy-darkest);
  border-top: 1px solid rgba(201, 165, 92, 0.1);
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 20px 30px;
  border-right: 1px solid rgba(201, 165, 92, 0.12);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-suffix { font-size: 28px; }
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(232, 226, 216, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  position: relative;
  padding-left: 44px;
}
.about-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 34px;
  height: 2px;
  background: var(--gold);
}
.about-title {
  font-size: clamp(26px, 3.5vw, 44px);
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-title em { font-style: italic; color: var(--gold-dark); }
.about-desc {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.9;
  margin-bottom: 32px;
}
.about-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.about-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--gray-700);
  font-weight: 500;
}
.about-feature i {
  width: 32px;
  height: 32px;
  background: var(--gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
}
.about-rera {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  padding: 12px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
}
.about-rera strong { color: var(--navy-dark); }
.about-image-wrap { position: relative; }
.about-image-main {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.about-image-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--navy-dark);
  border: 1px solid rgba(201, 165, 92, 0.25);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: center;
  min-width: 160px;
}
.badge-number {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.badge-text {
  font-size: 12px;
  color: rgba(232, 226, 216, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================================
   FEATURED PROPERTIES
   ============================================================ */
.properties-section { background: var(--gray-100); }
.section-action {
  text-align: center;
  margin-top: 50px;
}

/* Property Card */
.property-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border-color: rgba(201, 165, 92, 0.4);
}
.property-image {
  position: relative;
  overflow: hidden;
  height: 240px;
}
.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.property-card:hover .property-image img { transform: scale(1.07); }
.property-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,24,0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.property-card:hover .property-image-overlay { opacity: 1; }
.property-overlay-actions {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
  white-space: nowrap;
}
.property-card:hover .property-overlay-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
}
.badge-ready   { background: #1a7a4a; color: #fff; }
.badge-under   { background: #1a4a7a; color: #fff; }
.badge-launch  { background: #7a1a1a; color: #fff; }
.badge-sold    { background: #4a4a4a; color: #fff; }
.wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--gray-500);
  font-size: 15px;
  transition: var(--transition);
  z-index: 1;
}
.wishlist-btn:hover, .wishlist-btn.active { color: #e74c3c; background: var(--white); }
.property-body { padding: 24px; }
.property-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
  transition: color 0.3s;
}
.property-card:hover .property-name { color: var(--gold-dark); }

/* Web design — gallery block (no listing CTAs / overlays) */
.section-gallery .gallery-grid {
  gap: 28px;
}
#gallery .property-card--gallery .property-image {
  height: 220px;
}
#gallery .property-card--gallery.property-card--gallery-no-media .property-body {
  padding: 26px 24px 30px;
}
#gallery .property-card--gallery .property-body .feature-desc {
  margin-top: 10px !important;
  line-height: 1.55;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
}
.property-location i { color: var(--gold); font-size: 12px; }
.property-location--muted { margin-bottom: 12px; }
.property-specs--product { flex-wrap: wrap; gap: 12px 18px; margin-bottom: 12px; }
.property-card--product .property-footer { align-items: flex-start; gap: 12px; }
.property-price--product {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 1.05rem;
}
.product-mrp { color: var(--gray-500); font-size: 0.9em; }
.product-mrp del { text-decoration-thickness: 1px; }
.product-sale { font-weight: 700; color: var(--gold-dark); font-size: 1.12em; }
.property-spec--stock-out_of_stock { color: #a33; }
.property-spec--stock-low_stock { color: #9a7b1a; }
.property-spec--stock-preorder { color: var(--navy-dark); }
.property-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 16px 0;
}
.property-specs {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
}
.property-spec {
  display: flex;
  align-items: center;
  gap: 6px;
}
.property-spec i { color: var(--gold); font-size: 13px; }
.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.property-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
}
.property-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-500);
  font-family: var(--font-sans);
  display: block;
}
.property-price sub {
  font-size: 13px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 500;
}

/* Dark card variant */
.property-card-dark {
  background: var(--navy-card);
  border-color: rgba(201, 165, 92, 0.1);
}
.property-card-dark:hover { border-color: rgba(201, 165, 92, 0.4); }
.property-card-dark .property-name { color: var(--text-on-dark); }
.property-card-dark:hover .property-name { color: var(--gold-light); }
.property-card-dark .property-location { color: var(--text-muted); }
.property-card-dark .property-specs { color: var(--text-muted); }
.property-card-dark .property-divider { background: rgba(201,165,92,0.1); }
.property-card-dark .property-price { color: var(--gold-light); }
.property-card-dark .property-price span { color: var(--text-muted); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section { background: var(--navy-dark); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201, 165, 92, 0.12);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(201,165,92,0.1) 0%, transparent 70%);
  transition: var(--transition-slow);
}
.feature-card:hover {
  background: rgba(201, 165, 92, 0.05);
  border-color: rgba(201, 165, 92, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(201,165,92,0.08);
}
.feature-card:hover::before { bottom: -20px; }
.feature-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(201,165,92,0.15), rgba(201,165,92,0.05));
  border: 1px solid rgba(201,165,92,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 26px;
  color: var(--gold);
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--gold);
  color: var(--navy-darkest);
  box-shadow: 0 0 30px rgba(201,165,92,0.3);
}
.feature-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 14px;
  color: rgba(232, 226, 216, 0.55);
  line-height: 1.8;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--white); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 36px 30px;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.testimonial-card:hover {
  border-color: rgba(201, 165, 92, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--gold);
  opacity: 0.12;
  line-height: 1;
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 18px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 28px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,165,92,0.3);
}
.author-initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-darkest);
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
}
.author-role { font-size: 13px; color: var(--gray-500); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(6,12,24,0.88) 0%, rgba(11,21,38,0.72) 100%),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(30px, 5vw, 56px);
  color: var(--white);
  margin-bottom: 20px;
}
.cta-title span { color: var(--gold); }
.cta-subtitle {
  font-size: 18px;
  color: rgba(232, 226, 216, 0.75);
  margin-bottom: 44px;
  line-height: 1.8;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { background: var(--navy-darkest); }
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-block-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px 56px;
  align-items: start;
  margin-bottom: 48px;
}
.contact-block-row--split {
  grid-template-columns: 1fr 1fr;
}
.contact-block-row--map-only,
.contact-block-row--details-only {
  grid-template-columns: 1fr;
  max-width: 960px;
}
.contact-block-row--map-top.contact-block-row--map-only {
  max-width: none;
  width: 100%;
}
.contact-block-row--details-only {
  margin-left: auto;
  margin-right: auto;
}
.contact-map-col {
  min-width: 0;
}
.contact-map-col .contact-map-embed {
  margin-top: 0;
}
.contact-details-col {
  min-width: 0;
  padding-top: 4px;
}
.contact-details-col .contact-info-title {
  margin-top: 0;
  margin-bottom: 20px;
}
.contact-enquire-row {
  width: 100%;
}
.contact-enquire-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: start;
}
.contact-enquire-form-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.contact-enquire-form-col > .contact-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-enquire-form-col .contact-main-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-enquire-form-col .contact-enquire-cta {
  margin-top: auto;
}
.contact-enquire-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.contact-enquire-aside--plain {
  padding: 4px 0 0 8px;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.contact-enquire-aside .contact-details-legacy,
.contact-enquire-aside .contact-details-rich {
  flex: 1;
}
.contact-enquire-aside--plain .contact-info-title {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--white);
  margin-bottom: 20px;
}
.contact-enquire-aside--plain .contact-item-value {
  color: var(--text-on-dark);
}
.contact-enquire-aside--plain .contact-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 165, 92, 0.22);
}
.contact-enquire-aside--plain .contact-details-rich {
  color: var(--text-on-dark);
}
.contact-enquire-aside--plain .contact-details-rich h3,
.contact-enquire-aside--plain .contact-details-rich h4 {
  font-family: var(--font-serif);
  color: var(--white);
}
.contact-enquire-cta {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  gap: 10px;
}
.contact-enquire-cta .fab {
  font-size: 1.15em;
}
.contact-enquire-aside .contact-details-rich,
.contact-enquire-aside .contact-details-legacy {
  margin-top: 0;
}
.contact-details-rich {
  font-size: 15px;
  color: var(--text-on-dark);
  line-height: 1.75;
}
.contact-details-rich a {
  color: var(--gold);
}
.contact-details-rich a:hover {
  color: var(--white);
}
.contact-details-legacy .contact-info-title {
  margin-top: 0;
}
.contact-enquire-row--solo {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.contact-form-wrap {
  background: var(--navy-card);
  border: 1px solid rgba(201, 165, 92, 0.15);
  border-radius: 16px;
  padding: 50px 44px;
}
.contact-form-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--white);
  margin-bottom: 8px;
}
.contact-form-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 165, 92, 0.15);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-on-dark);
  outline: none;
  transition: border-color 0.3s;
}
.form-control:focus {
  border-color: rgba(201, 165, 92, 0.5);
  background: rgba(201, 165, 92, 0.03);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control option { background: var(--navy-dark); }
textarea.form-control { resize: vertical; min-height: 120px; }
.contact-info { padding-top: 20px; }
.contact-info-title {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--white);
  margin-bottom: 16px;
}
.contact-info-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(201, 165, 92, 0.1);
  border: 1px solid rgba(201, 165, 92, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  flex-shrink: 0;
  transition: var(--transition);
}
.contact-item:hover .contact-icon {
  background: var(--gold);
  color: var(--navy-darkest);
}
.contact-item-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-item-value {
  font-size: 15px;
  color: var(--text-on-dark);
  font-weight: 500;
}
.contact-item-value a { color: var(--text-on-dark); }
.contact-item-value a:hover { color: var(--gold); }
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}
.social-link {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 165, 92, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--gold);
  color: var(--navy-darkest);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-darkest);
  border-top: 1px solid rgba(201, 165, 92, 0.1);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.35fr)
    minmax(200px, 2.15fr)
    minmax(180px, 1fr);
  gap: 48px 40px;
  padding-bottom: 60px;
  align-items: start;
}
.footer-about { }
.footer-main-nav {
  min-width: 0;
}
.footer-nav-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px 32px;
  align-items: start;
}
.footer-nav-group {
  min-width: 0;
}
.footer-nav-group .footer-title {
  margin-bottom: 16px;
}
.footer-nav-group .footer-links {
  gap: 10px;
}
.footer-link--sub {
  padding-left: 2px;
}
.footer-contact-col {
  min-width: 0;
}
.footer-about .social-links--footer-about {
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer .social-link {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 165, 92, 0.15);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}
.footer .social-link:hover {
  background: var(--gold);
  color: var(--navy-darkest);
  border-color: var(--gold);
  transform: translateY(-3px);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 28px;
}
.footer-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 14px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--gold);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-link i { font-size: 10px; color: var(--gold); }
.footer-link:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-contact-item i {
  color: var(--gold);
  margin-top: 3px;
  font-size: 14px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-text {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--gold); }
.rera-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 165, 92, 0.1);
  border: 1px solid rgba(201, 165, 92, 0.25);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  margin-top: 16px;
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 998;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-whatsapp 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  background: #1ebe5b;
}
@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 40px rgba(37, 211, 102, 0.65); }
}
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 997;
  width: 44px;
  height: 44px;
  background: var(--navy-dark);
  border: 1px solid rgba(201, 165, 92, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--gold); color: var(--navy-darkest); }

/* ============================================================
   PAGE HERO (Properties & Details pages)
   ============================================================ */
.page-hero {
  padding: 160px 0 80px;
  background-image:
    linear-gradient(to bottom, rgba(6,12,24,0.7) 0%, rgba(6,12,24,0.9) 100%),
    url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  text-align: center;
}
.page-hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.page-hero-title {
  font-size: clamp(32px, 5vw, 62px);
  color: var(--white);
  margin-bottom: 18px;
}
.page-hero-subtitle {
  font-size: 17px;
  color: rgba(232, 226, 216, 0.7);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(232, 226, 216, 0.6);
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; }

/* ============================================================
   PROPERTIES LISTING PAGE
   ============================================================ */
.filter-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
  position: sticky;
  top: 72px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}
.filter-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.filter-select {
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--gray-700);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s;
  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='%23C9A55C' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.filter-select:focus { border-color: var(--gold); }
.filter-btn { display: flex; gap: 12px; align-items: flex-end; }
.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.results-count { font-size: 15px; color: var(--gray-500); }
.results-count strong { color: var(--navy-dark); font-weight: 600; }
.sort-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-500);
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  background: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: var(--transition);
}
.view-btn.active, .view-btn:hover {
  background: var(--navy-dark);
  color: var(--gold);
  border-color: var(--navy-dark);
}
.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.properties-grid.list-view { grid-template-columns: 1fr; }
.properties-grid.list-view .property-card {
  display: grid;
  grid-template-columns: 300px 1fr;
}
.properties-grid.list-view .property-image { height: auto; min-height: 220px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}
.page-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  background: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--gold);
}

/* ============================================================
   PROPERTY DETAILS PAGE
   ============================================================ */
.detail-hero {
  padding-top: 90px;
  background: var(--navy-darkest);
}
.detail-gallery-main {
  position: relative;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}
.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}
.gallery-btn {
  width: 48px;
  height: 48px;
  background: rgba(6,12,24,0.8);
  border: 1px solid rgba(201,165,92,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition);
}
.gallery-btn:hover { background: var(--gold); color: var(--navy-darkest); }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.gallery-thumb {
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb:hover { border-color: rgba(201,165,92,0.6); transform: scale(1.02); }

/* Detail Content */
.detail-section { padding: 60px 0; background: var(--white); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: start;
}
.detail-header { margin-bottom: 32px; }
.detail-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.detail-title {
  font-size: clamp(26px, 4vw, 42px);
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.detail-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.detail-location i { color: var(--gold); }
.detail-price-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 24px;
  background: var(--cream);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  margin-bottom: 32px;
}
.detail-price {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1;
}
.detail-price-note {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 2px;
}
.detail-specs-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 32px;
}
.detail-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.detail-spec-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
  margin-bottom: 4px;
}
.detail-spec-value {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1;
}
.detail-spec-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tabs */
.detail-tabs { margin-bottom: 36px; }
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 32px;
  gap: 0;
  overflow-x: auto;
}
.tab-btn {
  padding: 14px 28px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--navy-dark); }
.tab-btn.active { color: var(--gold-dark); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.detail-desc-text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* Amenities */
.amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 14px;
  color: var(--gray-700);
  transition: var(--transition);
  border: 1px solid transparent;
}
.amenity-item:hover {
  background: var(--cream);
  border-color: rgba(201,165,92,0.3);
  color: var(--navy-dark);
}
.amenity-item i {
  color: var(--gold);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

/* Enquiry Sidebar */
.enquiry-card {
  background: var(--navy-dark);
  border-radius: 16px;
  padding: 36px 30px;
  border: 1px solid rgba(201, 165, 92, 0.15);
  position: sticky;
  top: 100px;
}
.enquiry-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 6px;
}
.enquiry-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.enquiry-agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(201, 165, 92, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.15);
  margin-bottom: 24px;
}
.agent-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-darkest);
}
.agent-name {
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
}
.agent-title { font-size: 12px; color: var(--text-muted); }
.enquiry-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.quick-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 165, 92, 0.15);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: var(--transition);
}
.quick-action:hover {
  background: rgba(201, 165, 92, 0.1);
  border-color: var(--gold);
  color: var(--gold);
}
.quick-action i { font-size: 14px; color: var(--gold); }
.enquiry-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.enquiry-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(201,165,92,0.15);
}
.enquiry-divider span {
  background: var(--navy-dark);
  padding: 0 14px;
  position: relative;
}

/* Map embed */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--gray-200);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* Similar Properties */
.similar-section { background: var(--gray-100); padding: 80px 0; }

/* Contact map (trusted embed from sitedata) */
.contact-map-embed {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 165, 92, 0.25);
  min-height: 200px;
}
.contact-map-embed iframe {
  width: 100%;
  min-height: 280px;
  height: 320px;
  border: 0;
  display: block;
}

/* Property quick-view modal */
.property-modal {
  max-width: 960px;
  width: calc(100% - 32px);
  border: none;
  border-radius: 16px;
  padding: 0;
  background: var(--navy-card);
  color: var(--text-on-dark);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.property-modal::backdrop {
  background: rgba(6, 12, 24, 0.75);
  backdrop-filter: blur(4px);
}
.property-modal-inner {
  position: relative;
  padding: 20px 20px 24px;
}
.property-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.property-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.property-modal-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.property-modal-visual img {
  width: 100%;
  display: block;
  max-height: 320px;
  object-fit: cover;
}
.property-modal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.property-modal-body h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--white);
}
.property-modal-loc {
  color: var(--gold-light);
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.property-modal-price {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}
.property-modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.property-modal-spec strong {
  color: var(--gold);
  margin-right: 4px;
}
.property-modal-section h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.property-modal-section p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(232, 226, 216, 0.9);
}
.property-modal-amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  font-size: 0.88rem;
}
.property-modal-amenities li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark);
}
.property-modal-amenities i {
  color: var(--gold);
}
.property-modal-body .btn {
  margin-top: 20px;
}
@media (max-width: 768px) {
  .property-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.gold-shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite linear;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-nav-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :root {
    --nav-link-size: clamp(14px, 0.3vw + 12px, 16px);
    --nav-cta-size: clamp(12px, 0.2vw + 11px, 14px);
    --nav-link-tracking: 0.05em;
  }
  .navbar-logo {
    max-width: min(54vw, 520px);
  }
  .navbar-nav {
    gap: clamp(8px, 1.5vw, 18px);
  }
}

@media (max-width: 960px) {
  .about-grid   { grid-template-columns: 1fr; gap: 50px; }
  .contact-block-row {
    grid-template-columns: 1fr;
  }
  .contact-enquire-row--split {
    grid-template-columns: 1fr;
  }
  .detail-grid  { grid-template-columns: 1fr; }
  .enquiry-card { position: static; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .hero-search { flex-wrap: wrap; }
  .search-field { border-right: none; border-bottom: 1px solid rgba(201,165,92,0.15); min-width: 40%; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --hero-top-clearance: clamp(84px, 12vh, 112px);
  }
  .section { padding: 70px 0; }
  .navbar-nav, .navbar-cta { display: none; }
  .hamburger { display: flex; }
  /* Use space up to the hamburger; keep min-content so the brand never collapses to zero width */
  .navbar-logo {
    flex: 1 1 auto;
    min-width: min-content;
    max-width: none;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .about-image-badge { left: 16px; bottom: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-gallery-main { height: 300px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .detail-specs-row { gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .enquiry-quick-actions { grid-template-columns: 1fr; }
  .cta-section { padding: 80px 0; }
}

@media (max-width: 540px) {
  .properties-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 38px; }
  .hero-search { display: none; }
  .amenities-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .results-info { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Public theme — parity helpers */
.pub-float-stack {
  position: fixed;
  bottom: 170px;
  right: 30px;
  z-index: 996;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.pub-float-stack a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-dark);
  border: 1px solid rgba(201, 165, 92, 0.35);
  color: var(--gold);
  font-size: 18px;
  transition: var(--transition);
}
.pub-float-stack a:hover {
  background: var(--gold);
  color: var(--navy-darkest);
  border-color: var(--gold);
}

/* Floating actions — right sticky (WordPress-like); classic uses .whatsapp-float + .pub-float-stack above */
.pub-float-wrap--dock {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 998;
}
.pub-float-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 10px 0 0 10px;
  overflow: visible;
  background: rgba(6, 12, 24, 0.92);
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-right: 0;
  box-shadow: -8px 10px 30px rgba(0, 0, 0, 0.38);
}
.pub-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-dark);
  border: 1px solid rgba(201, 165, 92, 0.38);
  color: var(--gold);
  font-size: 18px;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}
.pub-float-btn:hover {
  background: var(--gold);
  color: var(--navy-darkest);
  border-color: var(--gold);
}
.pub-float-btn--dock {
  width: 44px;
  height: 42px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 18, 34, 0.95);
  color: #fff;
  font-size: 18px;
  position: relative;
}
.pub-float-btn--dock:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 9px;
}
.pub-float-btn--dock:first-child {
  border-top-left-radius: 9px;
}
.pub-float-btn--dock::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #1f7ed6;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.pub-float-btn--dock:hover::before {
  opacity: 1;
}
.pub-float-btn--dock:hover {
  background: #0ea5e9;
  color: #fff;
  transform: none;
}
.pub-float-btn--wa {
  width: 44px;
  height: 42px;
  background: #25d366;
  border-color: transparent;
  color: #fff;
  font-size: 20px;
  box-shadow: none;
  animation: none;
}
.pub-float-btn--wa:hover {
  background: #1ebe5b;
  color: #fff;
  border-color: transparent;
  transform: none;
}
@media (max-width: 540px) {
  .pub-float-wrap--dock {
    right: 0;
  }
}
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.why-split__text { text-align: left; }
.why-split__media { text-align: right; }
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  justify-content: center;
  align-items: center;
}
.client-logo-wrap { min-height: 52px; display: flex; align-items: center; justify-content: center; }
.client-logo {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.35s, opacity 0.35s, transform 0.35s;
}
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.client-name-fallback {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-dark);
  padding: 12px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
}
.award-card {
  padding: 24px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
}
.award-card:hover {
  border-color: rgba(201, 165, 92, 0.45);
  transform: translateY(-4px);
}
.award-card__image {
  width: 100%;
  max-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.award-card__image img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}
.award-card__title {
  margin: 0;
  font-size: 15px;
  color: rgba(232, 226, 216, 0.92);
  line-height: 1.55;
  text-align: left;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-details {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}
.faq-summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy-dark);
  list-style: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-details[open] .faq-summary { border-bottom: 1px solid var(--gray-200); }
.faq-answer { padding: 16px 22px 22px; color: var(--gray-700); line-height: 1.85; }
.flyer-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.flyer-card:hover {
  border-color: rgba(201, 165, 92, 0.45);
  box-shadow: var(--shadow-card);
}
.flyer-card__media {
  display: block;
  height: 180px;
  overflow: hidden;
  background: var(--gray-100);
}
.flyer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flyer-card__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.flyer-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy-dark);
}

/* ----- Web design: popups — frameless overlay (image + controls, no card) ----- */
.wd-popups {
  border: none;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  margin: auto;
  width: min(100vw, 100%);
  max-width: 100vw;
  max-height: 100dvh;
  max-height: 100vh;
  background: transparent;
  color: var(--text-on-dark);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wd-popups::backdrop {
  background: rgba(6, 12, 24, 0.82);
  backdrop-filter: blur(3px);
}
.wd-popups__stack {
  position: relative;
  z-index: 5;
  display: block;
  width: fit-content;
  max-width: min(94vw, 100%);
  margin: 0 auto;
  isolation: isolate;
}
.wd-popups__figure {
  position: relative;
  display: block;
  width: fit-content;
  max-width: min(94vw, 920px);
  max-height: min(86dvh, 880px);
  max-height: min(86vh, 880px);
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.45);
}
.wd-popups__img {
  position: relative;
  z-index: 0;
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 920px);
  max-height: min(86dvh, 880px);
  max-height: min(86vh, 880px);
  object-fit: contain;
  transition: opacity 0.2s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.wd-popups__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(6, 12, 24, 0.55);
  color: var(--white);
  font-size: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.wd-popups__close-x {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  margin-top: -2px;
}
.wd-popups__close:hover {
  background: rgba(6, 12, 24, 0.78);
  color: var(--gold-light);
}
.wd-popups__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.wd-popups__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 10px 12px;
  flex-wrap: wrap;
  background: linear-gradient(to top, rgba(6, 12, 24, 0.72) 0%, rgba(6, 12, 24, 0.35) 55%, transparent 100%);
  pointer-events: none;
}
.wd-popups__nav .wd-popups__btn,
.wd-popups__nav .wd-popups__dots,
.wd-popups__nav .wd-popups__dot {
  pointer-events: auto;
}
.wd-popups__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(6, 12, 24, 0.45);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wd-popups__btn:hover {
  background: rgba(201, 165, 92, 0.35);
  border-color: rgba(201, 165, 92, 0.55);
  color: var(--gold-light);
}
.wd-popups__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.wd-popups__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  max-width: 200px;
}
.wd-popups__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.wd-popups__dot.is-active {
  background: var(--gold);
  transform: scale(1.2);
}
.wd-popups__dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.wd-popups-fx-canvas {
  position: fixed;
  inset: 0;
  flex: none;
  z-index: 3;
  pointer-events: none;
}
.wd-popups__figure--pulse {
  animation: wdPopFigPulse 0.85s ease-in-out infinite;
}
@keyframes wdPopFigPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.035); opacity: 0.9; }
}
.wd-popups__figure--sparkle {
  position: relative;
}
.wd-popups__figure--sparkle::after {
  content: "";
  position: absolute;
  inset: -8px;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.5) 0%, transparent 38%),
    radial-gradient(circle at 82% 28%, rgba(232, 200, 128, 0.55) 0%, transparent 42%),
    radial-gradient(circle at 52% 88%, rgba(201, 165, 92, 0.4) 0%, transparent 48%);
  animation: wdPopSparkleFade 1.15s ease-in-out infinite;
}
@keyframes wdPopSparkleFade {
  0%, 100% { opacity: 0.3; transform: scale(0.995); }
  50% { opacity: 1; transform: scale(1.012); }
}
@media (prefers-reduced-motion: reduce) {
  .wd-popups__img,
  .wd-popups__btn,
  .wd-popups__dot,
  .wd-popups__close {
    transition: none;
  }
  .wd-popups__figure--pulse,
  .wd-popups__figure--sparkle::after {
    animation: none !important;
  }
}
@media (max-width: 960px) {
  .why-split { grid-template-columns: 1fr; text-align: center; }
  .why-split__media { text-align: center; }
}

/* Routed pages: home hero background */
.page-home .hero-bg {
  background-image:
    linear-gradient(to bottom, rgba(6,12,24,0.32) 0%, rgba(6,12,24,0.80) 100%),
    url('https://images.unsplash.com/photo-1613977257363-707ba9348227?auto=format&fit=crop&w=1920&q=80');
}

/* Static index.html — compact footer (distinct from .footer) */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(201, 165, 92, 0.12);
  padding: 28px 0;
}
.site-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer__sep {
  color: var(--text-muted);
  user-select: none;
}

/* Web design live preview: class + viewport set in lib/public_theme_render.php; font scaling like real mobile */
html.wd-pv {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.wd-pv body {
  min-height: 100%;
}
html.wd-pv .wd-block-anchor {
  scroll-margin-top: 96px;
}
html.wd-pv .wd-block-anchor:target {
  outline: 2px solid rgba(201, 165, 92, 0.45);
  outline-offset: 4px;
}

/* Business profile policy pages (/privacy, /terms, …) */
.section-policy {
  padding-top: 32px;
  padding-bottom: 64px;
}
.policy-page__title {
  text-align: left;
  margin-top: 8px;
  margin-bottom: 24px;
}
.policy-prose {
  max-width: 720px;
  line-height: 1.65;
  color: var(--text-on-dark);
}
.policy-prose p {
  margin: 0 0 1em;
}
.policy-prose h1,
.policy-prose h2,
.policy-prose h3,
.policy-prose h4 {
  font-family: var(--font-serif);
  margin: 1.25em 0 0.5em;
  color: var(--cream);
}
.policy-prose ul,
.policy-prose ol {
  margin: 0 0 1em 1.25em;
  padding: 0;
}
.policy-prose a {
  color: var(--gold-light);
  text-decoration: underline;
}
.policy-prose a:hover {
  color: var(--gold);
}

/* Public blog (/blog, /blog/slug) — light canvas, dark type, gold accents */
.section-blog,
.section-blog-article {
  padding-top: clamp(28px, 5vw, 48px);
  padding-bottom: clamp(56px, 8vw, 88px);
}
main.blog-page,
main.blog-article {
  padding-top: var(--hero-top-clearance);
  background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 18%, var(--white) 100%);
}
body:has(main.blog-page) .navbar,
body:has(main.blog-article) .navbar {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.18);
}
.blog-page .catalogue-back,
.blog-article .catalogue-back {
  margin: 0 0 20px;
}
.blog-page .section-header {
  text-align: left;
  margin-bottom: clamp(32px, 5vw, 48px);
  max-width: 42rem;
}
.blog-page .section-tag::before,
.blog-page .section-tag::after {
  display: none;
}
.blog-page .section-tag {
  margin-bottom: 10px;
}
.blog-page .title-underline {
  margin: 16px 0 0;
}
.blog-page__empty {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}
.blog-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(8px, 2vw, 16px);
}
.blog-card {
  margin: 0;
}
.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid rgba(15, 30, 56, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(6, 12, 24, 0.06);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.blog-card__link:hover {
  border-color: rgba(201, 165, 92, 0.45);
  box-shadow: 0 16px 48px rgba(6, 12, 24, 0.1);
  transform: translateY(-3px);
}
.blog-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--navy-card);
}
.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
}
.blog-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.1rem + 0.2vw, 1.25rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.35;
}
.blog-card__ex {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--gray-700);
}
.blog-article__hero {
  margin: 8px 0 clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(15, 30, 56, 0.1);
  box-shadow: 0 12px 40px rgba(6, 12, 24, 0.08);
}
.blog-article__hero-img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.blog-article__head {
  margin-bottom: clamp(20px, 3vw, 28px);
  padding-bottom: 4px;
}
.blog-article__title {
  text-align: left;
  margin-bottom: 12px;
  max-width: 48rem;
}
.blog-article__date {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.blog-article__date time {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.blog-article__lead {
  max-width: 42rem;
  font-size: clamp(1.02rem, 0.2vw + 1rem, 1.12rem);
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0 0 clamp(28px, 4vw, 40px);
}
.blog-article__body {
  margin-top: 0;
}
/* Article body — readable on light background (replaces dark-theme .policy-prose here) */
.blog-prose {
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--gray-700);
}
.blog-prose > *:first-child {
  margin-top: 0;
}
.blog-prose p {
  margin: 0 0 1.15em;
}
.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  font-family: var(--font-serif);
  color: var(--navy-dark);
  font-weight: 700;
  line-height: 1.28;
  margin: 1.85em 0 0.55em;
}
.blog-prose h2 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}
.blog-prose h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
}
.blog-prose h4 {
  font-size: 1.08rem;
}
.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}
.blog-prose ul {
  list-style: disc;
}
.blog-prose ol {
  list-style: decimal;
}
.blog-prose li {
  margin: 0.4em 0;
}
.blog-prose li::marker {
  color: var(--gold-dark);
}
.blog-prose a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 165, 92, 0.55);
}
.blog-prose a:hover {
  color: var(--navy);
  text-decoration-color: var(--gold);
}
.blog-prose strong {
  color: var(--navy-dark);
  font-weight: 600;
}
.blog-prose em {
  color: var(--gray-700);
}
.blog-prose blockquote {
  margin: 1.25em 0;
  padding: 14px 18px 14px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(201, 165, 92, 0.08);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--navy);
}
.blog-prose hr {
  border: none;
  height: 1px;
  margin: 2em 0;
  background: linear-gradient(90deg, transparent, rgba(15, 30, 56, 0.12), transparent);
}

.sign-in-page {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 18px 32px;
  color: var(--text-on-dark);
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(201, 165, 92, 0.12), transparent 52%),
    var(--navy-darkest);
}
.sign-in-page[hidden] {
  display: none !important;
}
.sign-in-page__inner {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 16px;
  background: var(--navy-dark);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
  padding: 28px 28px 22px;
}
.sign-in-page__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.15);
}
.sign-in-page__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), #8a6b2f);
  color: var(--navy-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.sign-in-page__name {
  font-weight: 600;
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.sign-in-page__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.sign-in-page__title {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 600;
}
.sign-in-page__form.login-form {
  padding: 0;
}
.sign-in-page__site-link {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
}
.sign-in-page__site-anchor {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.sign-in-page__site-anchor:hover {
  text-decoration: underline;
}

/* PWA install prompt (sign-in) */
.sign-in-pwa-dialog.user-modal[open] {
  z-index: 40;
  max-width: min(92vw, 380px);
  width: min(92vw, 380px);
  border-radius: 16px;
  border: 1px solid rgba(201, 165, 92, 0.4);
  background: linear-gradient(165deg, rgba(22, 36, 58, 0.98) 0%, #0a121c 45%, #070d14 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 28px 72px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(201, 165, 92, 0.08);
}
.sign-in-pwa-dialog .user-modal__head {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  margin-bottom: 4px;
}
.sign-in-pwa-dialog__form.user-modal__form {
  padding: 18px 20px 20px;
  gap: 16px;
}
.sign-in-pwa-dialog__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 8px 4px 4px;
}
.sign-in-pwa-dialog__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(201, 165, 92, 0.2), rgba(201, 165, 92, 0.05));
  border: 1px solid rgba(201, 165, 92, 0.35);
  color: var(--gold);
  font-size: 1.5rem;
}
.sign-in-pwa-dialog__line {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(240, 236, 228, 0.88);
}
.sign-in-pwa-dialog__actions.user-modal__actions {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 165, 92, 0.1);
  justify-content: stretch;
}
.sign-in-pwa-dialog__actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}
@media (max-width: 480px) {
  .sign-in-pwa-dialog.user-modal[open] {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(calc(100vw - 28px), 380px);
    max-width: min(calc(100vw - 28px), 380px);
    height: auto;
    max-height: min(88dvh, 420px);
    border-radius: 16px;
    padding-top: 0;
    padding-bottom: 0;
  }
}
html {
  height: 100%;
}
html:has(body.is-admin) {
  overflow: hidden;
  height: 100%;
}
body.is-admin {
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  color-scheme: dark;
}
.public-site[hidden] {
  display: none !important;
}
.admin-app[hidden] {
  display: none !important;
}
.admin-app:not([hidden]) {
  display: flex;
  width: 100%;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: var(--navy-darkest);
  color: var(--text-on-dark);
}
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(201, 165, 92, 0.2);
  background: var(--navy-dark);
  padding: 0 0 16px;
  overflow: hidden;
}
a.admin-sidebar__brand,
.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.15);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
a.admin-sidebar__brand:hover {
  background: rgba(201, 165, 92, 0.08);
}
a.admin-sidebar__brand:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: -2px;
  z-index: 1;
}
.admin-sidebar__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #8a6b2f);
  color: var(--navy-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.admin-sidebar__name {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
}
.admin-sidebar__sub {
  font-size: 12px;
  color: var(--text-muted);
}
.admin-sidebar__nav {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 165, 92, 0.4) rgba(4, 8, 14, 0.85);
}
.admin-sidebar__nav::-webkit-scrollbar {
  width: 8px;
}
.admin-sidebar__nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.admin-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(201, 165, 92, 0.35);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.admin-sidebar__nav::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 165, 92, 0.55);
  background-clip: padding-box;
}
.admin-nav__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-on-dark);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.admin-nav__btn:hover {
  background: rgba(201, 165, 92, 0.12);
  color: var(--gold-light);
}
.admin-nav__btn.is-active {
  background: rgba(201, 165, 92, 0.2);
  color: var(--gold-light);
  font-weight: 600;
}
.admin-sidebar__out {
  flex-shrink: 0;
  margin: 16px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--gold);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.admin-sidebar__out:hover {
  background: rgba(201, 165, 92, 0.15);
  color: var(--gold-light);
}
.admin-frame {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  background: #0a1018;
}
.admin-header {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px 16px;
  box-sizing: border-box;
  min-height: 64px;
  padding: env(safe-area-inset-top, 0px) calc(8px + env(safe-area-inset-right, 0px)) 0 calc(16px + env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(201, 165, 92, 0.2);
  background: var(--navy-dark);
  flex-shrink: 0;
  z-index: 50;
  position: relative;
}
.admin-header__left {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 10px;
  align-self: center;
}
.admin-header__tail {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-height: 64px;
  align-self: stretch;
}
.admin-header__iconnav {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 4px 0 0;
  border-right: 1px solid rgba(201, 165, 92, 0.2);
  margin-right: 2px;
}
.admin-header__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(232, 226, 216, 0.88);
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.admin-header__iconbtn:hover {
  background: rgba(201, 165, 92, 0.1);
  border-color: rgba(201, 165, 92, 0.5);
  color: var(--gold-light);
}
.admin-header__iconbtn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.admin-header__iconbtn.is-active {
  color: var(--gold);
  border-color: rgba(201, 165, 92, 0.55);
  background: rgba(201, 165, 92, 0.12);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.15);
}
.admin-header__site-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  flex-shrink: 0;
}
.admin-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(201, 165, 92, 0.45);
  background: #141c28;
  color: #f0ece4;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.admin-header__btn:hover {
  background: #1a2535;
  border-color: rgba(201, 165, 92, 0.65);
  color: #fff;
}
.admin-header__btn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.admin-header__btn--gold {
  color: #0a0f16;
  background: linear-gradient(180deg, #f0d896 0%, #c9a55c 50%, #a8863e 100%);
  border: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 4px rgba(0, 0, 0, 0.25);
}
.admin-header__btn--gold:hover {
  color: #05080c;
  background: linear-gradient(180deg, #f5e4b0 0%, #d4b86a 50%, #b8944a 100%);
  border-color: rgba(0, 0, 0, 0.4);
}
.admin-header__right {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}
.admin-profile-menu {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  margin-right: 0;
}
.admin-profile__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  line-height: 0;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.admin-profile__trigger:hover .admin-profile__avatar,
.admin-profile__trigger:focus-visible .admin-profile__avatar {
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.45);
}
.admin-profile__trigger:focus-visible {
  outline: none;
}
.admin-profile__trigger[aria-expanded="true"] .admin-profile__avatar {
  box-shadow: 0 0 0 2px var(--gold);
}
.admin-profile__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 165, 92, 0.25);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(201, 165, 92, 0.35);
  box-sizing: border-box;
  pointer-events: none;
}
.admin-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 1px);
  margin-top: 0;
  min-width: 220px;
  max-width: min(90vw, 280px);
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  background: var(--navy-dark);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 80;
  box-sizing: border-box;
}
.admin-profile-dropdown[hidden] {
  display: none !important;
}
.admin-profile-dropdown__user {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-profile__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  word-wrap: break-word;
}
.admin-profile__role {
  font-size: 12px;
  color: var(--text-muted);
}
.admin-profile-dropdown__signout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 16px 14px;
  border: none;
  border-radius: 0 0 9px 9px;
  background: rgba(0, 0, 0, 0.15);
  color: var(--gold);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.admin-profile-dropdown__signout:hover,
.admin-profile-dropdown__signout:focus-visible {
  background: rgba(201, 165, 92, 0.12);
  color: var(--gold-light);
  outline: none;
}
.admin-main {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 24px calc(16px + env(safe-area-inset-right, 0px)) calc(36px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 165, 92, 0.45) rgba(4, 8, 14, 0.9);
}
.admin-main::-webkit-scrollbar {
  width: 8px;
}
.admin-main::-webkit-scrollbar-track {
  background: rgba(4, 8, 14, 0.75);
  border-radius: 0 4px 4px 0;
}
.admin-main::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201, 165, 92, 0.35) 0%, rgba(168, 134, 62, 0.45) 100%);
  border-radius: 4px;
  border: 2px solid rgba(4, 8, 14, 0.75);
  background-clip: padding-box;
}
.admin-main::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(220, 190, 120, 0.55) 0%, rgba(201, 165, 92, 0.55) 100%);
  background-clip: padding-box;
}
.admin-panel[hidden] {
  display: none;
}
.admin-panel {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.admin-panel__title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 0.95rem + 1.4vw, 1.9rem);
  color: var(--white);
  margin: 0 0 12px;
}
.admin-panel__lede {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}
.settings-general__h {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.admin-statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.admin-stat {
  padding: 20px;
  border-radius: 10px;
  background: var(--navy-dark);
  border: 1px solid rgba(201, 165, 92, 0.15);
}
.admin-stat__val {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
}
.admin-stat__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}
.admin-stat__sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
  opacity: 0.9;
}
.admin-statgrid--overview {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.admin-stat--locked {
  opacity: 0.58;
}
.admin-stat--locked .admin-stat__val {
  color: var(--text-muted);
  font-weight: 500;
}
.overview-charts {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.overview-chart {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--navy-dark);
  border: 1px solid rgba(201, 165, 92, 0.14);
  box-sizing: border-box;
  min-width: 0;
}
.overview-chart__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}
.overview-chart__empty {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.overview-chart--combined .overview-chart__section + .overview-chart__section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.overview-chart--combined .overview-chart__section .overview-chart__title {
  margin-bottom: 10px;
}
.overview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.overview-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.overview-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  font-style: normal;
}
.overview-stack {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.06);
}
.overview-stack__seg {
  min-width: 0;
  height: 100%;
  transition: width 0.4s ease;
}
.overview-stack__seg--lead {
  background: linear-gradient(90deg, #5a6a8a, #8fa0c8);
}
.overview-stack__seg--client {
  background: linear-gradient(90deg, #2d6a45, #5cb87a);
}
.overview-stack__seg--pub {
  background: linear-gradient(90deg, #7a6630, #c9a55c);
}
.overview-stack__seg--draft {
  background: rgba(180, 180, 190, 0.35);
}
.overview-hbar {
  margin-bottom: 11px;
}
.overview-hbar:last-child {
  margin-bottom: 0;
}
.overview-hbar__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 12px;
}
.overview-hbar__label {
  color: var(--text-on-dark);
  font-weight: 500;
}
.overview-hbar__val {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.overview-hbar__track {
  height: 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.overview-hbar__fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(201, 165, 92, 0.2), #c9a55c);
  transition: width 0.4s ease;
  max-width: 100%;
}
.overview-hbar__fill--muted {
  background: rgba(160, 170, 190, 0.35);
}
.admin-header__navdrawer-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 8px 0 0;
  padding: 0;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.28);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(232, 226, 216, 0.88);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.admin-header__navdrawer-toggle:hover {
  background: rgba(201, 165, 92, 0.1);
  border-color: rgba(201, 165, 92, 0.5);
  color: var(--gold-light);
}
.admin-header__navdrawer-toggle:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.admin-header__brand {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 2.8vw, 1.32rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
a.admin-header__brand:hover {
  color: var(--gold-light);
}
a.admin-header__brand:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}
.admin-footer-nav {
  display: none;
  box-sizing: border-box;
  flex-shrink: 0;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  min-height: 0;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(201, 165, 92, 0.22);
  background: rgba(6, 10, 18, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.admin-footer-nav__btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 72px;
  margin: 0;
  padding: 6px 4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(232, 226, 216, 0.72);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.admin-footer-nav__btn:hover {
  color: var(--gold-light);
  background: rgba(201, 165, 92, 0.08);
}
.admin-footer-nav__btn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 1px;
}
.admin-footer-nav__btn.is-active {
  color: var(--gold);
  background: rgba(201, 165, 92, 0.12);
}
.admin-footer-nav__btn--menu {
  flex: 1 1 0;
  min-width: 0;
  max-width: 72px;
}
.admin-mode-fab {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 245;
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(201, 165, 92, 0.34);
  background: rgba(6, 10, 18, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.admin-mode-fab__btn {
  margin: 0;
  min-width: 96px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  color: rgba(232, 226, 216, 0.76);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.admin-mode-fab__btn:hover {
  color: var(--gold-light);
  background: rgba(201, 165, 92, 0.1);
}
.admin-mode-fab__btn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 1px;
}
.admin-mode-fab__btn.is-active {
  color: #061018;
  background: linear-gradient(180deg, rgba(222, 192, 128, 0.98), rgba(201, 165, 92, 0.98));
}
.admin-lite-launcher {
  display: none;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding: 24px calc(16px + env(safe-area-inset-right, 0px)) calc(76px + env(safe-area-inset-bottom, 0px))
    calc(16px + env(safe-area-inset-left, 0px));
  overflow-y: auto;
}
.admin-lite-launcher__inner {
  width: min(840px, 100%);
  margin: 0 auto;
}
.admin-lite-launcher__title {
  margin: 0 0 16px;
  text-align: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 0.95rem + 1.4vw, 1.9rem);
}
.admin-lite-launcher__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
.admin-lite-launcher__item {
  margin: 0;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 14px;
  background: rgba(11, 18, 29, 0.9);
  color: var(--text-on-dark);
  min-height: 112px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}
.admin-lite-launcher__item:hover {
  border-color: rgba(201, 165, 92, 0.5);
  background: rgba(201, 165, 92, 0.08);
  transform: translateY(-1px);
}
.admin-lite-launcher__item:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 1px;
}
.admin-lite-launcher__item.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.admin-lite-launcher__ico {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(201, 165, 92, 0.36);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.08rem;
}
.admin-lite-launcher__label {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.admin-app--lite-mode .admin-sidebar,
.admin-app--lite-mode .admin-header,
.admin-app--lite-mode .admin-main,
.admin-app--lite-mode .admin-footer-nav {
  display: none !important;
}
.admin-app--lite-mode .admin-lite-launcher {
  display: block;
}
.admin-lite-workspace[hidden] {
  display: none;
}
.admin-lite-workspace {
  position: fixed;
  inset: 0;
  z-index: 230;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px))
    max(14px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
  background: rgba(2, 7, 14, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.admin-lite-workspace--website .admin-lite-workspace__surface {
  width: min(1280px, 100%);
  max-height: min(96dvh, 1180px);
  max-height: min(96vh, 1180px);
}
.admin-lite-workspace__surface {
  width: min(1120px, 100%);
  max-height: min(94dvh, 1100px);
  max-height: min(94vh, 1100px);
  border: 1px solid rgba(201, 165, 92, 0.25);
  border-radius: 14px;
  background: #090f18;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.admin-lite-workspace__head.user-modal__head {
  padding: 14px 18px 12px;
}
.admin-lite-workspace__mount {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  box-sizing: border-box;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.admin-lite-workspace__mount .admin-panel {
  padding-bottom: 0;
}
.admin-mobile-more-dialog.user-modal[open] {
  z-index: 220;
}
.wd-context-sheet__mount {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
}
.admin-mobile-more__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 12px;
  max-height: min(64dvh, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-mobile-more__row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
  background: transparent;
  color: #f0ece4;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease;
}
.admin-mobile-more__row:hover {
  background: rgba(201, 165, 92, 0.08);
}
.admin-mobile-more__row:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: -2px;
}
.admin-mobile-more__row--danger {
  color: #f0b0a8;
}
.admin-mobile-more__ico {
  width: 22px;
  text-align: center;
  color: rgba(201, 165, 92, 0.85);
  flex-shrink: 0;
}
.admin-mobile-more__row--danger .admin-mobile-more__ico {
  color: rgba(240, 160, 150, 0.9);
}
.admin-mobile-more__list--tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
  padding: 14px max(16px, env(safe-area-inset-left, 0px)) calc(20px + env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-right, 0px));
  max-height: min(70dvh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.admin-mobile-more__list--tiles .admin-mobile-more__row {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  margin: 0;
  padding: 12px 6px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.22);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}
.admin-mobile-more__list--tiles .admin-mobile-more__row:hover {
  background: rgba(201, 165, 92, 0.12);
}
.admin-mobile-more__list--tiles .admin-mobile-more__ico {
  width: auto;
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(248, 243, 234, 0.92);
  flex-shrink: 0;
}
.admin-mobile-more__list--tiles .admin-mobile-more__row span {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 2px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-mobile-more__list--tiles .admin-mobile-more__row--danger {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 10px;
  min-height: 52px;
  padding: 14px 16px;
  border-color: rgba(200, 100, 90, 0.35);
}
.admin-mobile-more__list--tiles .admin-mobile-more__row--danger span {
  display: inline;
  white-space: normal;
}
.admin-mobile-more-dialog .user-modal__head {
  box-sizing: border-box;
  padding: 14px max(14px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  background: rgba(0, 0, 0, 0.12);
}
.admin-mobile-more-dialog .user-modal__head .user-modal__title {
  padding-top: 2px;
}
.admin-nav-backdrop {
  display: none;
}
@media (max-width: 900px) {
  .admin-app:not([hidden]) {
    flex-direction: column;
    min-height: 0;
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    max-height: 100svh;
    position: relative;
    --admin-footer-h: 58px;
  }
  .admin-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 180;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }
  .admin-app--nav-open .admin-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .admin-header__navdrawer-toggle {
    display: inline-flex;
  }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, calc(100vw - 48px));
    max-width: 300px;
    max-height: none;
    height: 100dvh;
    height: 100svh;
    flex-shrink: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: env(safe-area-inset-top, 0px) 0 calc(16px + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid rgba(201, 165, 92, 0.22);
    border-bottom: none;
    transform: translate3d(-102%, 0, 0);
    transition: transform 0.22s ease;
    z-index: 200;
    overflow: hidden;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
    overscroll-behavior: contain;
  }
  .admin-app--nav-open .admin-sidebar {
    transform: translate3d(0, 0, 0);
  }
  .admin-sidebar__brand {
    border-bottom: 1px solid rgba(201, 165, 92, 0.15);
    min-height: 56px;
    padding: 0 16px;
    flex: 0 0 auto;
  }
  .admin-sidebar__nav {
    flex: 1 1 0;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 12px 0;
    -webkit-overflow-scrolling: touch;
  }
  .admin-nav__btn {
    flex: 0 0 auto;
    min-width: 0;
    justify-content: flex-start;
  }
  .admin-sidebar__out {
    margin: 12px 12px 0;
    flex: 0 0 auto;
  }
  .admin-frame {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
  }
  .admin-header {
    position: relative;
    flex-wrap: nowrap;
  }
  .admin-header__site-btns,
  .admin-header__iconnav {
    display: none !important;
  }
  .admin-header__brand {
    display: block;
  }
  .admin-header__left {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }
  .admin-header__tail {
    margin-left: auto;
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    min-height: 0;
  }
  .admin-header__iconnav {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  .admin-main {
    padding-bottom: calc(24px + var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
  }
  .admin-footer-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 170;
  }
  .admin-mode-fab {
    bottom: calc(8px + var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
  }
  .admin-app--lite-mode .admin-mode-fab {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .admin-mobile-more-dialog.user-modal[open] {
    left: 0;
    top: auto;
    bottom: calc(var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
    border-radius: 14px 14px 0 0;
    max-height: min(72dvh, 560px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #panel-business .business-panel__head .business-panel__toolbar,
  #panel-properties .business-panel__head .business-panel__toolbar,
  #panel-settings .settings-panel__head .business-panel__toolbar,
  #panel-users .users-panel-head,
  #panel-contacts .users-panel-head,
  #panel-blog .users-panel-head,
  #panel-profile .users-panel-head {
    position: sticky;
    bottom: calc(var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    margin-top: 8px;
    padding-top: 10px;
    padding-bottom: 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 16, 24, 0.92) 28%, #0a1018 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  #panel-webdesign .business-panel__head.wd-panel-head {
    position: sticky;
    top: 0;
    z-index: 35;
    margin-bottom: 6px;
    padding-bottom: 4px;
    background: rgba(10, 16, 24, 0.95);
    border-bottom: 1px solid rgba(201, 165, 92, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  #panel-webdesign .wd-add-item-slot:not([hidden]) {
    display: block;
    position: sticky;
    bottom: calc(var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
    z-index: 32;
    padding: 10px 0 4px;
    margin: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 16, 24, 0.9) 35%, #0a1018 100%);
  }
  #panel-properties .prop-panel-head .admin-panel__title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-business .business-panel__title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-contacts .contacts-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-users .team-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-blog .blog-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-profile .profile-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-settings .settings-panel-title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
  }
  #panel-home .admin-panel__title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    line-height: 1.2;
    margin: 0 0 10px;
  }
  #panel-business .business-panel__head,
  #panel-properties .prop-panel-head,
  #panel-webdesign .business-panel__head.wd-panel-head.settings-panel__head,
  #panel-users .team-panel-head,
  #panel-contacts .contacts-panel-head,
  #panel-blog .blog-panel-head,
  #panel-profile .profile-panel-head,
  #panel-settings .settings-panel__head {
    margin-bottom: 8px;
    gap: 8px 10px;
  }
  /* Brand / properties / settings: title row + actions; Brand section select lives in .business-form (see Team / Contacts). */
  #panel-business .business-panel__head,
  #panel-properties .prop-panel-head,
  #panel-settings .settings-panel__head {
    flex-wrap: nowrap;
    align-items: center;
  }
  #panel-business .business-form > .admin-tabs-mobile-select-wrap--biz {
    display: block;
    margin: 0 0 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #panel-business .business-form > .admin-tabs-mobile-select-wrap--biz .biz-panel-section-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
  }
  #panel-business .business-form > .admin-tabs-mobile-select-wrap--biz .biz-panel-section-field .admin-input {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    font-size: 13px;
    padding: 8px 26px 8px 10px;
    line-height: 1.25;
    box-sizing: border-box;
  }
  #panel-business .business-panel__head .business-panel__toolbar,
  #panel-properties .prop-panel-head .business-panel__toolbar,
  #panel-settings .settings-panel__head .business-panel__toolbar {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
  }
  #panel-business .business-panel__title {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
  }
  #panel-properties .prop-panel-head .admin-panel__title,
  #panel-settings .settings-panel__head .admin-panel__title {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
  }
  .admin-tabs-mobile-select-wrap--settings {
    display: block;
    margin: 0 0 8px;
  }
  #panel-properties:not(.panel-properties--products) .admin-tabs-mobile-select-wrap--prop {
    display: block;
    margin: 0 0 8px;
  }
  #panel-properties #propListToolbar {
    display: none !important;
  }
  #panel-properties.panel-properties--products .admin-tabs-mobile-select-wrap--prop {
    display: none !important;
  }
  #panel-business .business-form > .admin-tabs[role="tablist"] {
    display: none !important;
  }
  #panel-properties:not(.panel-properties--products) .prop-shell > .admin-tabs.prop-tabs {
    display: none !important;
  }
  #panel-settings .settings-form > .admin-tabs[role="tablist"] {
    display: none !important;
  }
  #panel-contacts .contacts-shell > .admin-tabs.contacts-tabs {
    display: none !important;
  }
  #panel-contacts .admin-tabs-mobile-select-wrap--contacts {
    display: block;
    margin: 0 0 8px;
  }
  #panel-users .team-shell > .admin-tabs.team-role-tabs {
    display: none !important;
  }
  #panel-users .admin-tabs-mobile-select-wrap--team {
    display: block;
    margin: 0 0 8px;
  }
  #panel-blog .wd-card--blog .wd-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  #panel-blog .wd-card--blog .wd-card__head--blog {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  #panel-blog .wd-card--blog .blog-card__ex {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 2px;
  }
  #panel-properties .wd-card--prop .wd-card__prop-meta {
    display: none;
  }
  #panel-properties .wd-card--prop .wd-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }
  #panel-properties .wd-card--prop .wd-card__head {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}
@media (min-width: 901px) {
  .admin-app--nav-open .admin-sidebar {
    transform: none;
  }
  .admin-app--nav-open .admin-nav-backdrop {
    display: none !important;
  }
  #panel-blog .wd-card--blog .blog-card__ex {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 2px;
  }
}
.login-form {
  padding: 24px 28px 28px;
}
.login-form__title {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
}
.login-form__err {
  background: rgba(180, 60, 60, 0.2);
  border: 1px solid rgba(200, 100, 100, 0.5);
  color: #f0b0b0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
}
.login-form code {
  color: var(--gold-light);
  font-size: 12px;
}
.login-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  margin-top: 12px;
}
.login-label:first-of-type {
  margin-top: 0;
}
.login-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  background: var(--navy-darkest);
  color: var(--text-on-dark);
  font-size: 15px;
}
.login-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-pale);
}
.login-form__actions {
  margin-top: 22px;
}

/* â€”â€” Admin: business form (tabbed) â€”â€” */
.business-form {
  margin-top: 8px;
  max-width: 100%;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.14);
  margin-bottom: 20px;
  padding-bottom: 0;
}
.admin-tabs__tab {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(201, 165, 92, 0.1);
  border-bottom: none;
  color: rgba(240, 236, 228, 0.55);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
}
.admin-tabs__tab:hover {
  color: var(--text-on-dark);
  background: rgba(201, 165, 92, 0.1);
  border-color: rgba(201, 165, 92, 0.18);
}
.admin-tabs__tab.is-active {
  color: var(--gold);
  background: var(--navy-card);
  border-color: rgba(201, 165, 92, 0.32);
  border-bottom: 1px solid var(--navy-card);
  box-shadow: 0 1px 0 rgba(201, 165, 92, 0.22) inset;
}
.admin-tabpanel {
  display: block;
  padding: 0 0 8px;
}
.admin-tabpanel[hidden] {
  display: none !important;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}
@media (max-width: 640px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-tabs__tab {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
  }
}
.admin-field--full,
.admin-form-grid .admin-field--full {
  grid-column: 1 / -1;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.admin-field__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold);
}
.admin-field__hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}
.admin-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.admin-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
  justify-items: center;
  width: 100%;
}
.admin-image-block {
  min-width: 0;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .admin-image-pair {
    grid-template-columns: 1fr;
  }
  .admin-image-block--favicon {
    justify-self: stretch;
  }
}
/* Site logo / Favicon — compact dark-styled upload areas */
.admin-media-card {
  min-width: 0;
}
.admin-media-card__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 10px 2px;
}
.admin-media-card__outer {
  background: rgba(12, 20, 32, 0.55);
  border: 1px solid rgba(201, 165, 92, 0.28);
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.admin-media-card__dashed {
  position: relative;
  width: 100%;
  max-width: min(200px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 2px solid rgba(201, 165, 92, 0.45);
  border-radius: 8px;
  background: linear-gradient(165deg, #2a3a50 0%, #1e2c3e 45%, #162536 100%);
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 18px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.admin-media-card__dashed:hover {
  border-color: rgba(232, 200, 130, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(201, 165, 92, 0.2),
    0 6px 22px rgba(0, 0, 0, 0.4);
}
/* Fill the square: drop target covers full dashed area (click + drag) */
.admin-media-card__dashed .admin-dropzone--card {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 7px;
}
/* Hint behind; invisible file input covers full square (reliable browse on click) */
.admin-media-card__dashed .admin-dropzone--card .admin-dropzone__emptyui {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  box-sizing: border-box;
}
.admin-media-card__dashed .admin-dropzone--card .admin-dropzone__file {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  clip: auto;
  white-space: nowrap;
}
.admin-media-card__dashed .admin-dropzone__emptitle {
  font-size: 12px;
  font-weight: 700;
  color: #f6f1e8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.admin-media-card__dashed .admin-dropzone__emptype {
  font-size: 10px;
  max-width: 11rem;
  line-height: 1.25;
  color: rgba(230, 222, 208, 0.88);
  font-weight: 500;
}
.admin-media-card__preview {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px;
  background: rgba(6, 10, 16, 0.92);
  box-sizing: border-box;
  border-radius: 7px;
}
.admin-media-card__img {
  display: block;
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  vertical-align: middle;
}
.admin-media-card__x {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 8px;
  background: rgba(4, 8, 14, 0.85);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: system-ui, "Segoe UI", sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.admin-media-card__x:hover,
.admin-media-card__x:focus {
  background: rgba(201, 165, 92, 0.12);
  color: var(--gold-light);
  border-color: rgba(201, 165, 92, 0.45);
  outline: none;
  transform: scale(1.04);
}
.admin-dropzone--card {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 7px;
}
.admin-dropzone__emptyui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: var(--text-muted);
  pointer-events: none;
  padding: 4px 8px;
}
.admin-media-card__dashed .admin-dropzone--card .admin-dropzone__ico {
  color: #e8c880;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  margin-bottom: 0;
  opacity: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.admin-dropzone--card .admin-dropzone__ico {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 2px;
  opacity: 0.88;
}
.admin-dropzone__emptitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark);
  line-height: 1.3;
}
.admin-dropzone__emptype {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 220px;
}
.admin-media-card__dashed .admin-dropzone--card:hover,
.admin-media-card__dashed .admin-dropzone--card.is-dragover {
  background: rgba(201, 165, 92, 0.12);
}
.admin-dropzone--card:hover,
.admin-dropzone--card.is-dragover {
  background: rgba(201, 165, 92, 0.06);
}
.admin-media-card__dashed .admin-dropzone--card.is-dragover {
  background: rgba(201, 165, 92, 0.18);
}
.admin-dropzone--card.is-dragover {
  box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.45);
  outline: none;
}
.admin-dropzone--card.is-error {
  background: rgba(196, 92, 74, 0.12);
}
.admin-media-card.is-filled .admin-dropzone--card[hidden] {
  display: none !important;
}
.admin-image-slot {
  min-width: 0;
}
.admin-dropzone[hidden] {
  display: none !important;
}
.admin-dropzone {
  position: relative;
  box-sizing: border-box;
  border: 1.5px dashed rgba(201, 165, 92, 0.35);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.2) 0%, rgba(12, 20, 32, 0.55) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0;
  margin: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}
.admin-dropzone--logo {
  width: 100%;
  min-height: 128px;
}
.admin-dropzone--logo .admin-dropzone__hit {
  min-height: 128px;
}
.admin-dropzone--favicon {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
@media (min-width: 641px) {
  .admin-image-block--favicon {
    justify-self: center;
  }
}
.admin-dropzone:hover {
  border-color: rgba(201, 165, 92, 0.65);
  background: linear-gradient(145deg, rgba(201, 165, 92, 0.07) 0%, rgba(0, 0, 0, 0.15) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(201, 165, 92, 0.12);
}
.admin-dropzone.is-dragover {
  border-color: var(--gold);
  border-style: solid;
  background: rgba(201, 165, 92, 0.1);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.2);
  transform: scale(1.01);
}
.admin-dropzone.is-busy {
  pointer-events: none;
  opacity: 0.6;
  filter: grayscale(0.2);
}
.admin-dropzone.is-error {
  border-color: #c45c4a;
  background: rgba(196, 92, 74, 0.08);
  animation: admin-drop-shake 0.45s ease;
}
@keyframes admin-drop-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
.admin-dropzone:focus-within {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.25);
}
.admin-dropzone__hit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 11px;
  outline: none;
}
.admin-dropzone--favicon .admin-dropzone__hit {
  min-height: 88px;
}
.admin-dropzone__file {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-dropzone__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
.admin-dropzone:hover .admin-dropzone__visual,
.admin-dropzone.is-dragover .admin-dropzone__visual {
  color: #e4cf96;
  opacity: 1;
  transform: scale(1.04);
}
.admin-dropzone__plus .admin-dropzone__cell {
  stroke: rgba(201, 165, 92, 0.4);
  stroke-width: 1.25;
}
.admin-dropzone:hover .admin-dropzone__plus .admin-dropzone__cell,
.admin-dropzone.is-dragover .admin-dropzone__plus .admin-dropzone__cell {
  stroke: rgba(201, 165, 92, 0.75);
}
.admin-image-preview[hidden] {
  display: none !important;
}
.admin-image-preview {
  margin-top: 12px;
}
.admin-image-preview__box {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.3) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  vertical-align: top;
}
.admin-image-preview__img {
  display: block;
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.admin-image-preview--sm {
  margin-top: 0;
  align-self: start;
}
.admin-image-pair .admin-image-block--favicon .admin-image-preview--sm {
  margin-top: 12px;
}
.admin-image-preview--sm .admin-image-preview__img {
  max-width: 48px;
  max-height: 48px;
}
.admin-image-preview--sm .admin-image-preview__box {
  padding: 8px;
}
.admin-image-preview__dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.admin-image-preview__dismiss::before,
.admin-image-preview__dismiss::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.admin-image-preview__dismiss::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.admin-image-preview__dismiss::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.admin-image-preview__dismiss:hover,
.admin-image-preview__dismiss:focus {
  background: #a94442;
  transform: scale(1.05);
  outline: none;
}
.admin-input,
.admin-textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  background: #080e16;
  color: var(--text-on-dark);
  font: inherit;
  font-size: 15px;
  box-sizing: border-box;
}
.admin-input::placeholder,
.admin-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}
.admin-input:focus,
.admin-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-pale);
}
.admin-input[aria-invalid="true"] {
  border-color: #c45c5c;
  box-shadow: 0 0 0 1px rgba(196, 92, 92, 0.4);
}
.admin-input[aria-invalid="true"]:focus {
  border-color: #e07070;
  box-shadow: 0 0 0 1px rgba(224, 112, 112, 0.45);
}
.admin-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.admin-textarea--code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}
.bf-palette-toolbar--presets {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
}
.admin-palette {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.admin-color-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
}
.admin-color-row:last-of-type {
  border-bottom: none;
}
.admin-color-row__label {
  flex: 0 0 160px;
  min-width: 0;
  font-size: 14px;
  color: var(--text-on-dark);
}
.admin-color-swatch {
  width: 44px;
  height: 36px;
  padding: 2px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 6px;
  background: #080e16;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-color-hex {
  max-width: 200px;
  flex: 1 1 140px;
}
.admin-palette-presets-trigger {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  background: rgba(201, 165, 92, 0.08);
  color: var(--gold, #c9a55c);
  font-size: 16px;
  cursor: pointer;
  flex: 0 0 auto;
  box-sizing: border-box;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.admin-palette-presets-trigger .fas {
  flex-shrink: 0;
}
.admin-palette-presets-trigger__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-on-dark, #f0ece4);
  white-space: nowrap;
}
.admin-palette-presets-trigger:hover {
  background: rgba(201, 165, 92, 0.18);
  border-color: rgba(201, 165, 92, 0.6);
  color: #e8c880;
}
.admin-palette-presets-dialog__inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  gap: 0;
}
.admin-palette-presets-dialog__tabs {
  margin-top: 4px;
  flex-shrink: 0;
}
.admin-palette-presets-dialog__tabs--shades {
  flex-wrap: wrap;
  gap: 6px 8px;
  padding-bottom: 4px;
}
.admin-palette-presets-dialog__shade-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.admin-palette-presets-dialog__shade-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.admin-palette-presets-dialog__shade-dot--light {
  border-color: rgba(0, 0, 0, 0.2);
}
.admin-palette-presets-dialog__shade-dot--dark {
  border-color: rgba(255, 255, 255, 0.35);
}
.admin-palette-presets-dialog__panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 10px;
}
.admin-palette-presets-dialog__panel {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px;
}
.admin-palette-presets-dialog__empty {
  margin: 12px 4px;
  font-size: 13px;
  line-height: 1.45;
}
.admin-palette-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 14px;
}
.admin-palette-preset-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  background: rgba(255, 255, 255, 0.03);
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  appearance: none;
}
.admin-palette-preset-card:hover {
  border-color: rgba(201, 165, 92, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.admin-palette-preset-card__strip {
  display: flex;
  gap: 2px;
  border-radius: 4px;
  overflow: hidden;
}
.admin-palette-preset-card__strip span {
  flex: 1;
  height: 28px;
  min-width: 0;
}
.admin-palette-preset-card__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-on-dark, #e8e2d8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-palette-preset-card__cat {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted, #8b8070);
  opacity: 0.7;
}
.admin-palette-preview {
  margin-top: 18px;
  border: 1px solid rgba(201, 165, 92, 0.12);
  border-radius: 8px;
  overflow: hidden;
}
.admin-palette-preview__toggle {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #8b8070);
  cursor: pointer;
  user-select: none;
}
.admin-palette-preview[open] .admin-palette-preview__toggle {
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
}
.admin-palette-preview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding: 12px 16px 16px;
}
.admin-palette-preview__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted, #8b8070);
}
.admin-palette-preview__swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
/* Business — title + save top row */
.business-panel__head,
.settings-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}
/* Web design toolbar: one row [title | theme + pages] + status (right) */
.business-panel__head.wd-panel-head.settings-panel__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
  flex-wrap: unset !important;
  justify-content: stretch;
}
.business-panel__head.wd-panel-head .wd-panel-head__left .admin-panel__title {
  align-self: center;
  margin: 0;
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
  font-size: clamp(1.35rem, 1.2rem + 0.9vw, 1.85rem);
}
.business-panel__title {
  margin: 0;
}
.business-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  margin-left: auto;
  max-width: 100%;
}
.business-panel__bf-status {
  margin: 0;
  text-align: right;
  max-width: min(100%, 320px);
}
#panel-business .business-panel__head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 16px;
  min-width: 0;
  box-sizing: border-box;
}
#panel-business .biz-brand-panel-head.business-panel__head {
  margin-bottom: 12px;
}
#panel-business .business-panel__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-business .biz-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-business .business-panel__bf-status {
  max-width: min(160px, 40vw);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-business .bf-panel-savebtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#panel-business .bf-panel-savebtn .fas {
  font-size: 1rem;
}
.admin-tabs-mobile-select-wrap {
  display: none;
}
.admin-tabs-mobile-select-wrap__field {
  margin-bottom: 0;
}
#panel-business .biz-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
#panel-business .biz-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-business .biz-panel-title__text {
  min-width: 0;
}
/* Sticky toolbars use z-index; keep titles above when the row is tight (narrow flex). */
#panel-business .business-panel__head .admin-panel__title,
#panel-properties .prop-panel-head .admin-panel__title,
#panel-settings .settings-panel__head .admin-panel__title {
  position: relative;
  z-index: 31;
}
.wd-panel-head {
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px 14px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.wd-panel-head .business-panel__toolbar {
  flex-shrink: 0;
  margin-left: 0;
  justify-self: end;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 0;
}
.wd-panel-head .business-panel__bf-status {
  max-width: min(200px, 28vw);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-panel-head__left {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 20px;
  min-width: 0;
  max-width: 100%;
  justify-self: start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.wd-panel-head__left::-webkit-scrollbar {
  height: 6px;
}
.wd-panel-head__left::-webkit-scrollbar-thumb {
  background: rgba(201, 165, 92, 0.25);
  border-radius: 3px;
}
/* Theme + pages: label + control on one line; theme gets more width, page select stays compact */
.wd-panel-head__theme-pages {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 18px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: clamp(300px, 42vw, 640px);
  box-sizing: border-box;
}
#panel-webdesign .wd-panel-head__theme-pages {
  flex: 1 1 auto;
  max-width: min(100%, clamp(320px, 56vw, 720px));
}
.wd-panel-head__theme-pages .wd-toolbar-field {
  flex-direction: row;
  align-items: center;
  gap: 8px 10px;
}
.wd-panel-head__theme-pages .wd-toolbar-field__label {
  white-space: nowrap;
  line-height: 1;
  margin: 0;
}
.wd-panel-head__theme-pages .wd-toolbar-field--theme {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(400px, 52vw);
}
.wd-panel-head__theme-pages .wd-theme-cluster {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.38);
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.16), rgba(201, 165, 92, 0.04));
  overflow: hidden;
}
.wd-panel-head__theme-pages .wd-theme-launch--picker {
  border: none;
  border-radius: 0;
  background: transparent;
  min-height: 40px;
  padding-right: 6px;
}
.wd-panel-head__theme-pages .wd-theme-launch--picker:hover:not(:disabled) {
  background: rgba(201, 165, 92, 0.08);
}
.wd-panel-head__theme-pages .wd-theme-launch__settings {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(201, 165, 92, 0.32);
  border-radius: 0;
  background: transparent;
  color: rgba(248, 243, 234, 0.95);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.wd-panel-head__theme-pages .wd-theme-launch__settings:hover:not(:disabled) {
  background: rgba(201, 165, 92, 0.14);
  color: #fff;
}
.wd-panel-head__theme-pages .wd-theme-launch__settings:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: -2px;
}
.wd-panel-head__theme-pages .wd-theme-launch__settings .fas {
  font-size: 15px;
}
.wd-panel-head__theme-pages .wd-theme-launch {
  max-width: 100%;
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-field__pages-control {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage {
  overflow: hidden;
  align-self: center;
  line-height: 1;
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-select {
  flex: 0 1 auto;
  min-width: clamp(96px, 10vw, 140px);
  width: min(200px, 22vw);
  max-width: min(240px, 30vw);
}
/* Website — page selector: stronger frame; manage button matches theme launcher */
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row select.wd-toolbar-select.admin-input {
  min-height: 40px;
  border-width: 2px;
  border-color: rgba(201, 165, 92, 0.5);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row select.wd-toolbar-select.admin-input:hover {
  border-color: rgba(201, 165, 92, 0.62);
}
.wd-panel-head__theme-pages .wd-toolbar-field--pages-row select.wd-toolbar-select.admin-input:focus {
  border-color: var(--gold);
  box-shadow:
    0 0 0 2px rgba(201, 165, 92, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage.btn.btn-ghost {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0 !important;
  border-width: 2px;
  border-color: rgba(201, 165, 92, 0.5);
  border-radius: 8px;
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.16), rgba(201, 165, 92, 0.04));
  color: rgba(248, 243, 234, 0.95);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage.btn.btn-ghost:hover:not(:disabled) {
  border-color: rgba(201, 165, 92, 0.68);
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.26), rgba(201, 165, 92, 0.08));
  color: #fff;
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage.btn.btn-ghost:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.32);
}
.wd-panel-head__theme-pages .wd-toolbar-pages-manage .fas {
  font-size: 15px;
}
.wd-panel-head__center {
  display: flex;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
}
.wd-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 0 1 auto;
}
.wd-toolbar-field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.wd-toolbar-select {
  min-width: 72px;
  max-width: min(28vw, 168px);
  width: 100%;
}
.wd-toolbar-icon-btn {
  flex-shrink: 0;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-sizing: border-box;
}
.wd-toolbar-icon-btn .fas {
  font-size: 14px;
}
.wd-toolbar-field--pages-row .wd-toolbar-field__pages-control {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.wd-toolbar-field--pages-row .wd-toolbar-select {
  flex: 0 1 auto;
  min-width: 96px;
  width: min(28vw, 200px);
  max-width: min(36vw, 240px);
}
/* Web design: theme launcher — icon + name in one bordered control */
.wd-theme-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px 0 10px;
  min-height: 36px;
  max-width: min(48vw, 340px);
  min-width: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.38);
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.16), rgba(201, 165, 92, 0.04));
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
}
.wd-theme-launch:hover:not(:disabled) {
  border-color: rgba(201, 165, 92, 0.52);
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.22), rgba(201, 165, 92, 0.07));
}
.wd-theme-launch:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 3px;
}
.wd-theme-launch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wd-theme-launch__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.wd-theme-launch__ico {
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(240, 232, 216, 0.92);
  line-height: 1;
}
.wd-theme-launch__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f4efe6;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#panel-webdesign .user-modal.wd-item-modal.wd-site-effects-dialog[open] {
  max-width: min(480px, 94vw);
  width: min(480px, 94vw);
}
.wd-site-effects-dialog__hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
}
.wd-site-effects-dialog__toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wd-site-effects-dialog__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}
.wd-site-effects-dialog__row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
#panel-webdesign .user-modal.wd-item-modal.wd-theme-picker-dialog[open],
#wdThemePickerDialog.wd-theme-picker-dialog[open] {
  max-width: min(560px, 94vw);
  width: min(560px, 94vw);
  max-height: min(88vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.wd-theme-picker-dialog__inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(88vh, 640px);
  overflow: hidden;
}
.wd-theme-picker-dialog__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.wd-theme-picker-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  max-height: min(52vh, 400px);
  overflow-y: auto;
  margin-top: 10px;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
}
.wd-theme-picker-tile {
  border: 1px solid rgba(201, 165, 92, 0.2);
  border-radius: 8px;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  background: rgba(4, 10, 20, 0.35);
}
.wd-theme-picker-tile__title {
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
}
.wd-theme-picker-tile__sub {
  font-size: 12px;
  line-height: 1.4;
  margin-top: -4px;
}
.wd-theme-picker-tile__apply {
  margin-top: auto;
  width: 100%;
}
.wd-theme-picker-tile__apply--applied {
  font-weight: 600;
  color: rgba(236, 228, 210, 0.98);
  background: rgba(46, 72, 58, 0.55);
  border: 1px solid rgba(120, 188, 152, 0.45);
  box-shadow: inset 0 0 0 1px rgba(120, 188, 152, 0.12);
  cursor: default;
}
.wd-theme-picker-tile__apply--applied:hover {
  background: rgba(46, 72, 58, 0.55);
  border-color: rgba(120, 188, 152, 0.45);
}
.wd-theme-picker-tile:has(.wd-theme-picker-tile__apply--applied) {
  border-color: rgba(120, 188, 152, 0.35);
  background: rgba(46, 72, 58, 0.22);
}
/* Block exists on another page layout — dim panel (Header/Footer never get this) */
.wd-panel--not-on-page {
  position: relative;
  min-height: 120px;
}
.wd-panel--not-on-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.78);
  border-radius: 8px;
  z-index: 4;
  pointer-events: none;
}
.wd-panel--not-on-page::before {
  content: "Hidden on the public page — use Show (eye) in the block list above to publish again.";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  max-width: 92%;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(232, 226, 216, 0.92);
  pointer-events: none;
}
@media (max-width: 900px) {
  .wd-panel-head .business-panel__toolbar {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .business-panel__toolbar {
    width: 100%;
    margin-left: 0;
  }
  .wd-panel-head .business-panel__toolbar {
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .business-panel__bf-status {
    flex: 1 1 100%;
    text-align: left;
    max-width: none;
  }
  .wd-panel-head .business-panel__bf-status {
    flex: 0 1 auto;
    text-align: right;
    max-width: min(160px, 42vw);
  }
}
@media (max-width: 640px) {
  .admin-header__iconbtn {
    width: 44px;
    height: 44px;
  }
  .admin-profile__trigger {
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
    box-sizing: border-box;
  }
  .wd-toolbar-icon-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .wd-panel-head__theme-pages .wd-toolbar-pages-manage.btn.btn-ghost {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .business-panel__head.wd-panel-head.settings-panel__head {
    grid-template-columns: 1fr;
  }
  .wd-panel-head .business-panel__toolbar {
    justify-self: stretch;
    width: 100%;
    justify-content: flex-start;
  }
  .wd-panel-head__left {
    flex-wrap: wrap;
  }
  .wd-panel-head__theme-pages {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    max-width: 100%;
  }
  .wd-panel-head__theme-pages .wd-toolbar-field {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .wd-panel-head__theme-pages .wd-toolbar-field__label {
    white-space: normal;
  }
  .wd-panel-head__theme-pages .wd-toolbar-field--theme {
    max-width: 100%;
  }
  .wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-select {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .wd-theme-launch {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }
}
/* Website module: one compact toolbar row on narrow screens (title + theme icon + page select + manage) */
@media (max-width: 900px) {
  #panel-webdesign .wd-panel-head .business-panel__bf-status {
    max-width: min(140px, 26vw);
  }
  #panel-webdesign .wd-panel-head__left {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px 10px;
    min-width: 0;
  }
  #panel-webdesign .wd-panel-head__left .admin-panel__title {
    font-size: clamp(1.14rem, 5vw, 1.62rem);
    flex: 0 0 auto;
    align-self: flex-end;
    min-width: 0;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    line-height: 1.15;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  #panel-webdesign .wd-panel-head__theme-pages {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    gap: 8px;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field {
    flex-direction: row;
    align-items: center;
    gap: 0;
    width: auto;
    min-width: 0;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field--theme {
    flex: 0 0 auto;
    max-width: none;
    position: relative;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field--pages-row {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  #panel-webdesign .wd-shell {
    margin-top: 4px;
  }
  #panel-webdesign .wd-theme-launch {
    width: 44px;
    min-width: 44px;
    height: 44px;
    max-width: 44px;
    padding: 0;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  #panel-webdesign .wd-theme-launch__inner {
    gap: 0;
    justify-content: center;
    max-width: none;
  }
  #panel-webdesign .wd-theme-launch__label {
    display: none !important;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-field__pages-control {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  #panel-webdesign .wd-panel-head__theme-pages .wd-toolbar-field--pages-row .wd-toolbar-select {
    min-width: 0;
    width: 0;
    flex: 1 1 clamp(4.5rem, 34vw, 15rem);
    max-width: 100%;
  }
  #panel-webdesign .wd-panel-head__theme-slot:empty {
    display: none;
  }
  #wdMobileContextMount .wd-panel-head__theme-pages {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  #wdMobileContextMount .wd-toolbar-field {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 6px;
  }
  #wdMobileContextMount .wd-toolbar-field__label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip-path: none;
    clip: auto;
    white-space: normal;
    border: 0;
  }
  #wdMobileContextMount .wd-theme-launch {
    width: 100%;
    max-width: none;
    min-height: 44px;
    justify-content: flex-start;
    padding: 0 14px;
    box-sizing: border-box;
  }
  #wdMobileContextMount .wd-theme-launch__inner {
    justify-content: flex-start;
    gap: 10px;
    max-width: 100%;
  }
  #wdMobileContextMount .wd-theme-launch__label {
    display: inline !important;
    min-width: 0;
  }
  #wdMobileContextMount .wd-toolbar-field--pages-row .wd-toolbar-field__pages-control {
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }
  #wdMobileContextMount .wd-toolbar-field--pages-row .wd-toolbar-select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
  }
}
.business-form__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 165, 92, 0.2);
}
.bf-status {
  margin: 0;
  font-size: 14px;
  min-height: 1.25em;
  color: var(--text-muted);
}
.bf-status.is-ok {
  color: #8ecf9a;
}
.bf-status.is-err {
  color: #f0a0a0;
}
.business-form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* â€”â€” Access: users table & role matrix â€”â€” */
.access-mount {
  min-height: 48px;
}
.access-table-wrap,
.access-users-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(201, 165, 92, 0.2);
  border-radius: 8px;
  background: #080e16;
}
.access-matrix {
  display: table;
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 14px;
}
.access-matrix thead {
  display: table-header-group;
}
.access-matrix tbody {
  display: table-row-group;
}
.access-matrix tr {
  display: table-row;
}
.access-matrix th,
.access-matrix td {
  display: table-cell;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  color: var(--text-on-dark);
  vertical-align: middle;
}
.access-matrix th {
  font-weight: 600;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.25);
}
.access-matrix th:first-child,
.access-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #0a1018;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
}
.access-matrix tr:last-child td {
  border-bottom: none;
}
.access-matrix__rowhead {
  font-weight: 500;
  color: var(--text-on-dark);
  white-space: nowrap;
  min-width: 120px;
}
/* Do not use display:flex on <td> — it breaks table layout and stacks cells. */
.access-matrix td.access-toggle {
  text-align: center;
  vertical-align: middle;
}
.access-matrix td.access-toggle label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
}
.access-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.access-toggle__ui {
  display: block;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: #2a2f38;
  border: 1px solid rgba(201, 165, 92, 0.25);
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.access-toggle__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ccc;
  transition: var(--transition);
}
.access-toggle input:checked + .access-toggle__ui {
  background: rgba(201, 165, 92, 0.35);
  border-color: var(--gold);
}
.access-toggle input:checked + .access-toggle__ui::after {
  left: 20px;
  background: var(--gold);
}
.access-toggle input:focus-visible + .access-toggle__ui {
  box-shadow: 0 0 0 2px var(--gold-pale);
}
.access-toggle--disabled {
  pointer-events: none;
  opacity: 0.45;
}
.access-users__role {
  min-width: 160px;
  max-width: 200px;
}
.access-users__user {
  font-weight: 500;
  color: var(--white);
}
.access-users-wrap .access-matrix td {
  line-height: 1.3;
}
.access-users__hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.access-mount .admin-input {
  max-width: 200px;
}

/* Defeat legacy .admin-dropzone (gold) when using .admin-dropzone--card — rules must come after generic .admin-dropzone* blocks */
.admin-dropzone.admin-dropzone--card,
.admin-dropzone.admin-dropzone--card:hover,
.admin-dropzone.admin-dropzone--card.is-dragover,
.admin-dropzone.admin-dropzone--card.is-busy,
.admin-dropzone.admin-dropzone--card.is-error,
.admin-dropzone.admin-dropzone--card:focus-within {
  border: none;
  background: transparent;
  box-shadow: none;
  transform: none;
  filter: none;
}
.admin-dropzone.admin-dropzone--card:hover {
  background: rgba(201, 165, 92, 0.05);
}
.admin-dropzone.admin-dropzone--card.is-dragover {
  background: rgba(201, 165, 92, 0.08);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.4);
}
.admin-dropzone.admin-dropzone--card.is-error {
  background: rgba(196, 92, 74, 0.12);
  animation: admin-drop-shake 0.45s ease;
}
.admin-dropzone.admin-dropzone--card:focus-within {
  box-shadow: 0 0 0 1px rgba(201, 165, 92, 0.35);
  border: none;
}
.admin-dropzone.admin-dropzone--card .admin-dropzone__visual,
.admin-dropzone.admin-dropzone--card:hover .admin-dropzone__visual {
  display: none;
}

/* Users list + modals */
.users-panel-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 4px;
}
.users-table-wrap {
  overflow: auto;
  max-width: 100%;
  border: 1px solid rgba(201, 165, 92, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}
.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.users-table th,
.users-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  vertical-align: middle;
}
.users-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gold);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
}
.users-table tr:last-child td {
  border-bottom: none;
}
.users-table__sn {
  width: 3.5rem;
  text-align: center;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.users-table__act {
  min-width: 200px;
}
.users-table__ending {
  display: inline-block;
  max-width: 14rem;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
  color: var(--text-muted);
}
.users-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.users-restrict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.users-restrict input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.users-table-wrap--team .users-table__act {
  min-width: 200px;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.users-table-wrap--team .users-actions {
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}
.team-iconbtn,
.blog-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
}
.team-iconbtn i,
.blog-iconbtn i {
  pointer-events: none;
  font-size: 15px;
  line-height: 1;
}
.users-restrict--toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.users-restrict--toggle .user-block-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0.01;
}
.users-restrict-toggle__track {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 165, 92, 0.28);
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.users-restrict-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f0ece4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.users-restrict--toggle:has(.user-block-toggle:checked) .users-restrict-toggle__track {
  background: rgba(180, 60, 50, 0.32);
  border-color: rgba(200, 80, 70, 0.55);
}
.users-restrict--toggle:has(.user-block-toggle:checked) .users-restrict-toggle__thumb {
  transform: translateX(18px);
}
.users-restrict--toggle:focus-within .users-restrict-toggle__track {
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.45);
}
.users-restrict--toggle:has(.user-block-toggle:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}
.users-restrict--toggle:has(.user-block-toggle:disabled) .users-restrict-toggle__track {
  opacity: 0.6;
}
.contacts-table-wrap .contacts-table .admin-input {
  width: 100%;
  max-width: 220px;
  min-width: 0;
  box-sizing: border-box;
}
.contacts-table .users-table__act {
  /* Room for two 40px icon buttons + gap inside padded td (avoid flex-wrap stack) */
  min-width: 124px;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.contacts-table .users-table__act .users-actions {
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
}
.contacts-toolbar-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
}
.contacts-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-contacts .contacts-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
#panel-contacts .contacts-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-contacts .contacts-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-contacts .contacts-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-contacts .contacts-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-contacts .contacts-panel-addbtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#panel-users .team-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
#panel-users .team-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-users .team-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-users .team-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-users .team-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-users .team-panel-addbtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.team-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-users .wd-card--team .wd-card__team-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.1);
}
#panel-users .wd-card--team .wd-card__team-foot-label {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}
#panel-users .wd-card--team .wd-card__team-foot .users-restrict--toggle {
  margin: 0;
  flex-shrink: 0;
}
#panel-blog .blog-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
#panel-blog .blog-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-blog .blog-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-blog .blog-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-blog .blog-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-blog .blog-panel-addbtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-blog .wd-card--blog .wd-card__title {
  margin: 0 0 6px;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: #f4efe8;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#panel-blog .wd-card--blog .wd-card__head--blog {
  margin-top: 0;
  margin-bottom: 6px;
  padding-top: 6px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#panel-blog .wd-card--blog .wd-card__head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
  flex: 1 1 auto;
}
#panel-blog .wd-card--blog .wd-card__head--blog .wd-card__actions {
  margin-left: auto;
}
#panel-blog .wd-card--blog .blog-card__updated {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.03em;
}
#panel-profile .profile-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 12px;
}
#panel-profile .profile-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-profile .profile-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-profile .profile-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-profile .profile-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-profile .profile-panel-savebtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-settings .settings-panel__head {
  flex-wrap: nowrap;
  align-items: center;
}
#panel-settings .settings-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-settings .settings-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-settings .settings-panel-toolbar.business-panel__toolbar {
  flex-shrink: 0;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 8px 10px;
  max-width: min(100%, 280px);
}
#panel-settings .settings-panel-toolbar .business-panel__bf-status {
  max-width: min(160px, 40vw);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  font-size: 12px;
}
#panel-settings .settings-panel-savebtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-toolbar-iconbtn i {
  font-size: 18px;
  line-height: 1;
}
#panel-contacts .wd-card--contact .wd-card__title,
#panel-users .wd-card--team .wd-card__title {
  margin: 0 0 6px;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: #f4efe8;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#panel-contacts .wd-card--contact .wd-card__head--contact,
#panel-users .wd-card--team .wd-card__head--contact {
  margin-top: 0;
  padding-top: 6px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
#panel-contacts .wd-card--contact .wd-card__head--contact {
  margin-bottom: 6px;
}
#panel-users .wd-card--team .wd-card__head--contact {
  margin-bottom: 0;
}
#panel-contacts .wd-card--contact .wd-card__head-left,
#panel-users .wd-card--team .wd-card__head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
  flex: 1 1 auto;
}
#panel-contacts .wd-card--contact .wd-card__head--contact .wd-card__actions,
#panel-users .wd-card--team .wd-card__head--contact .wd-card__actions {
  margin-left: auto;
}
#panel-contacts .wd-card--contact .wd-card__contact-line {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
#panel-contacts .wd-card--contact .wd-card__contact-line--email {
  font-size: 12px;
}
.contacts-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
}
.contacts-iconbtn i {
  pointer-events: none;
  font-size: 15px;
  line-height: 1;
}
.contacts-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 165, 92, 0.35);
}
.contacts-badge--lead {
  color: #c9d4e8;
  background: rgba(80, 120, 200, 0.2);
}
.contacts-badge--client {
  color: #d8efd8;
  background: rgba(60, 140, 90, 0.28);
}
.contacts-badge--team-editor {
  color: #f4efe8;
  background: rgba(201, 165, 92, 0.16);
  border-color: rgba(201, 165, 92, 0.42);
}
.blog-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 165, 92, 0.35);
}
.blog-badge--draft {
  color: #c9c3b8;
  background: rgba(120, 120, 120, 0.2);
}
.blog-badge--published {
  color: #d8efd8;
  background: rgba(60, 140, 90, 0.28);
}
.user-modal.blog-article-modal[open] {
  width: min(96vw, 920px);
  max-width: min(96vw, 920px);
  height: min(94vh, 860px);
  min-height: min(94vh, 480px);
  max-height: min(94vh, 860px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.user-modal.blog-article-modal[open] #blogArticleForm.blog-article-modal__form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  max-height: 100%;
  height: 100%;
  box-sizing: border-box;
}
.blog-article-modal__head {
  flex-shrink: 0;
  padding: 16px 20px 8px;
}
.blog-article-modal__title {
  margin: 0;
}
.blog-article-modal__tabs.admin-tabs {
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0 20px 8px;
  padding-bottom: 0;
}
.blog-article-modal__tabs .admin-tabs__tab {
  padding: 8px 14px;
  font-size: 12px;
  margin-bottom: -1px;
}
.blog-article-modal__panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 20px 12px;
  margin-right: 0;
}
.blog-article-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  box-sizing: border-box;
}
.blog-article-modal__panel[hidden] {
  display: none !important;
}
.blog-article-modal__row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 12px 16px;
  align-items: start;
}
@media (max-width: 560px) {
  .blog-article-modal__row2 {
    grid-template-columns: 1fr;
  }
}
.blog-article-modal__hint {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
}
.blog-article-modal__cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: -4px;
}
.blog-article-modal__err {
  flex-shrink: 0;
  margin: 0 20px;
}
.blog-article-modal__actions {
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.admin-media-card--blog-modal .admin-media-card__dashed {
  min-height: 140px;
}
.blog-article-modal__excerpt {
  min-height: 5rem;
  max-height: min(22vh, 200px);
  resize: vertical;
  line-height: 1.45;
}
.blog-article-modal__body {
  min-height: 14rem;
  max-height: min(52vh, 520px);
  resize: vertical;
  line-height: 1.45;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
}
.btn-ghost {
  border: 1px solid rgba(201, 165, 92, 0.35);
  background: rgba(0, 0, 0, 0.15);
  color: var(--text-on-dark);
  cursor: pointer;
  font: inherit;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: rgba(201, 165, 92, 0.12);
  color: var(--gold-light);
}
.user-del {
  background: rgba(180, 60, 50, 0.25);
  border: 1px solid rgba(200, 80, 70, 0.45);
  color: #f0c0bc;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
}
.user-del:hover:not(:disabled) {
  background: rgba(200, 70, 60, 0.45);
  color: #fff;
}
.user-del:disabled,
.user-edit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* User add/edit dialogs live outside .admin-app (body-level); do not scope under .admin-app */
.user-modal[open] {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 400px;
  width: min(92vw, 400px);
  max-height: min(90vh, 640px);
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 12px;
  background: #0a121c;
  color: #f0ece4;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
dialog.admin-dialog.user-modal.admin-palette-presets-dialog[open] {
  max-width: min(1140px, 98vw) !important;
  width: min(1140px, 98vw) !important;
  min-height: min(82vh, 800px);
  max-height: min(94vh, 920px) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
dialog.admin-dialog.user-modal.admin-palette-presets-dialog[open] .admin-palette-presets-dialog__inner {
  max-height: none;
  min-height: 0;
}
.user-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}
@media (max-width: 480px) {
  .admin-mobile-more-dialog.user-modal[open] {
    top: auto;
    bottom: calc(var(--admin-footer-h, 58px) + env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    height: auto;
    max-height: min(72dvh, 560px);
    border-radius: 14px 14px 0 0;
    padding-top: 0;
  }
  .user-modal[open]:not(.admin-mobile-more-dialog):not(.admin-palette-presets-dialog) {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100dvh;
    max-height: 100svh;
    margin: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
  }
  .user-modal[open] .user-modal__form {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .user-modal.wd-item-modal[open],
  .user-modal.wd-item-modal.wd-nav-submenu-modal[open] {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100dvh;
    max-height: 100svh;
    margin: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 0;
  }
  #panel-webdesign .user-modal.wd-item-modal.wd-theme-picker-dialog[open],
  #wdThemePickerDialog.wd-theme-picker-dialog[open] {
    max-width: none;
    width: 100%;
    max-height: 100dvh;
    max-height: 100svh;
  }
}
.user-modal__form {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.user-modal__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 4px;
}
/* Dismiss (X) — top-right row with title; use on .admin-dialog.user-modal */
.user-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  flex-shrink: 0;
}
.user-modal__head .user-modal__title,
.user-modal__head .wd-item-modal__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
button.user-modal__dismiss,
.user-modal__dismiss.btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 10px;
  margin: 0;
  border-radius: 8px;
}
.user-modal__dismiss i {
  font-size: 16px;
  line-height: 1;
}
.user-modal.wd-item-modal form.wd-item-modal__form--stacked > .user-modal__head {
  flex-shrink: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  background: rgba(0, 0, 0, 0.15);
}
.blog-article-modal__head.user-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wd-nav-submenu-modal__body .user-modal__head .wd-item-modal__title {
  margin: 0;
}
.user-modal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--gold);
}
.user-modal__field .admin-input {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.user-modal__err {
  color: #f0a8a0;
  font-size: 13px;
  margin: 0;
}
.user-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 4px;
  padding-top: 4px;
}
/* User modals: high-contrast action buttons on dark surface */
.user-modal__actions .btn {
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.user-modal__actions .btn-gold {
  color: #0a0f16;
  background: linear-gradient(180deg, #f0d896 0%, #c9a55c 50%, #a8863e 100%);
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.2) inset, 0 2px 8px rgba(0, 0, 0, 0.35);
}
.user-modal__actions .btn-gold:hover {
  color: #05080c;
  background: linear-gradient(180deg, #f5e0a8 0%, #d4b86a 50%, #b8944a 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}
.user-modal__actions .btn-gold:focus-visible {
  outline: 2px solid #e8c880;
  outline-offset: 2px;
}
.user-modal__actions .btn-ghost {
  color: #f0ece4;
  background: #141c28;
  border-color: rgba(201, 165, 92, 0.55);
  box-shadow: none;
}
.user-modal__actions .btn-ghost:hover {
  color: #fff;
  background: #1a2535;
  border-color: #d4b57a;
}
.user-modal__actions .btn-ghost:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.65);
  outline-offset: 2px;
}

/* Full-size image lightbox (admin thumbnails) */
.admin-lightbox[open] {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(96vw, 1280px);
  max-height: min(92dvh, 960px);
  margin: 0;
  padding: 48px 16px 16px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 12px;
  background: #0a121c;
  color: #f0ece4;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.admin-lightbox::backdrop {
  background: rgba(2, 6, 12, 0.88);
  backdrop-filter: blur(4px);
}
.admin-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-lightbox__close:hover,
.admin-lightbox__close:focus-visible {
  background: rgba(201, 165, 92, 0.15);
  color: #fff;
  outline: none;
}
.admin-lightbox__frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.admin-lightbox__img {
  max-width: 100%;
  max-height: min(78dvh, 860px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.admin-app img.admin-media-card__img,
.admin-app img.wd-card__thumb,
.admin-app img.prop-gallery-item__thumb,
.admin-app img.wd-dyn-thumb:not([hidden]) {
  cursor: zoom-in;
}

/* Public site preview (modal + responsive frame)
   Only style when [open] — a bare `display: flex` on <dialog> overrides the UA
   `display: none` for closed dialogs, so the preview was visible on every load. */
.admin-preview-dialog[open] {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(96vw, 1280px);
  height: min(92dvh, 900px);
  max-height: 92dvh;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 12px;
  background: #0a121c;
  color: #f0ece4;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.admin-preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
}
.admin-preview-dialog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.2);
  background: #060c12;
  flex-shrink: 0;
}
.admin-preview-dialog__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  flex: 0 0 auto;
}
.admin-preview-devices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.admin-preview-devices__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  background: #121a24;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-preview-devices__btn:hover {
  color: #f0ece4;
  border-color: rgba(201, 165, 92, 0.45);
  background: #1a2430;
}
.admin-preview-devices__btn.is-active {
  color: #0a0f16;
  background: linear-gradient(180deg, #e0c27a, #b89245);
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.admin-preview-devices__btn:focus-visible {
  outline: 2px solid #e8c880;
  outline-offset: 2px;
}
/* Icon-only device toggles (Web Design live preview + site preview dialog) */
.wd-live-preview__devices.admin-preview-devices,
.admin-preview-dialog .admin-preview-devices {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
}
.wd-live-preview__devices .admin-preview-devices__btn,
.admin-preview-dialog .admin-preview-devices__btn {
  gap: 0;
  padding: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
}
.wd-live-preview__devices .admin-preview-devices__btn i,
.admin-preview-dialog .admin-preview-devices__btn i {
  font-size: 1.05rem;
}
.admin-preview-dialog__close {
  margin: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 8px;
  background: #121a24;
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-preview-dialog__close:hover,
.admin-preview-dialog__close:focus-visible {
  background: rgba(201, 165, 92, 0.12);
  color: #fff;
  outline: none;
}
.admin-preview-dialog__body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #05080c;
}
.admin-preview-canvas {
  flex: 1 1 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.admin-preview-frame-wrap {
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  transition: width 0.2s ease, max-width 0.2s ease, min-height 0.2s ease;
}
.admin-preview-frame-wrap[data-device="mobile"] {
  width: 100%;
  max-width: 390px;
  min-height: min(80dvh, 700px);
  height: min(80dvh, 700px);
  border: 3px solid #1a1a1a;
  border-radius: 12px;
}
.admin-preview-frame-wrap[data-device="tablet"] {
  width: 100%;
  max-width: 768px;
  min-height: min(78dvh, 720px);
  height: min(78dvh, 720px);
  border: 3px solid #2a2a2a;
  border-radius: 10px;
}
.admin-preview-frame-wrap[data-device="desktop"] {
  width: 100%;
  max-width: 100%;
  min-height: min(80dvh, 760px);
  height: min(80dvh, 760px);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  align-self: stretch;
  margin: 0;
}
.admin-preview-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: none;
  vertical-align: top;
  background: #fff;
}
@media (max-width: 600px) {
  .admin-preview-devices {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .admin-preview-dialog__head {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding-right: 50px;
  }
  .admin-preview-dialog__title {
    order: 0;
  }
  .admin-preview-dialog__close {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}

/* Web design CMS (gallery, testimonials, hero, why, about) */
.wd-shell {
  margin-top: 8px;
}
.wd-mobile-view-toggle {
  display: none;
  flex-direction: row;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
}
.wd-mobile-view-toggle__btn {
  flex: 1 1 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
  border: 1px solid rgba(201, 165, 92, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.wd-mobile-view-toggle__btn:hover {
  color: var(--text-on-dark);
  border-color: rgba(201, 165, 92, 0.5);
}
.wd-mobile-view-toggle__btn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.wd-mobile-view-toggle__btn.is-active {
  color: var(--gold-light);
  border-color: rgba(201, 165, 92, 0.55);
  background: rgba(201, 165, 92, 0.14);
}
/* Web design: block list (left) + live preview (right) */
.wd-design-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px 22px;
  min-height: min(72vh, 760px);
  max-height: min(82vh, 920px);
}
.wd-design-split__blocks {
  display: flex;
  flex-direction: column;
  flex: 0 0 clamp(260px, 34vw, 560px);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  align-items: stretch;
}
.wd-design-split__preview {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.wd-live-preview__toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.18);
}
.wd-live-preview__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.52);
  margin: 0;
  white-space: nowrap;
}
.wd-live-preview__devices {
  min-width: 0;
  justify-content: center;
}
.wd-live-preview__toolbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.wd-live-preview__refresh.btn {
  min-height: 32px;
  padding: 4px 10px;
}
/* Canvas: pan when device is taller than view — scrollbar hidden, scroll still works */
.wd-live-preview__canvas {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px 20px;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(120% 80% at 50% 0%, rgba(25, 35, 55, 0.55) 0%, #050a10 45%);
}
.wd-live-preview__canvas::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.wd-live-preview__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  padding: 0 8px 10px;
  box-sizing: border-box;
}
/* Outer chassis: real-world–style aspect ratios (portrait phone / portrait tablet / 16:9 monitor) */
.wd-live-preview__device-frame {
  --lv-bezel: 11px;
  --lv-bezel-bottom: 13px;
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* Avoid full-width “landscape bar” before JS pins chassis width */
  width: auto;
  max-width: 100%;
  overflow: visible;
  border-radius: 28px;
  background: linear-gradient(165deg, #3a3a3e 0%, #0c0c0e 42%, #1e1e22 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 2px rgba(0, 0, 0, 0.85) inset,
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  padding: var(--lv-bezel) var(--lv-bezel) var(--lv-bezel-bottom);
  /* Do not transition width — JS sets it; animating width caused a visibly wrong first frame */
  transition:
    max-width 0.2s ease,
    max-height 0.2s ease,
    border-radius 0.2s ease,
    padding 0.2s ease;
}
.wd-live-preview__device-bezel {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* Mobile: glass width/zoom from JS; outer width hugs scaled viewport + bezel (no wide “tablet” shell). */
.wd-live-preview__device-frame[data-device="mobile"] {
  --lv-bezel: 10px;
  --lv-bezel-bottom: 12px;
  width: min(100%, 300px);
  max-width: min(100%, 360px);
  align-self: center;
  max-height: min(74dvh, 780px);
  border-radius: 36px;
  padding-top: 8px;
}
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-bezel {
  height: 22px;
  margin-bottom: 2px;
}
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-notch {
  display: block;
  width: 36%;
  min-width: 100px;
  max-width: 150px;
  height: 22px;
  border-radius: 0 0 16px 16px;
  background: #050505;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-cam,
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-dots {
  display: none;
}
/* Tablet: glass/zoom from JS; outer width hugs scaled 834×1112 + bezel (no wide empty chassis). */
.wd-live-preview__device-frame[data-device="tablet"] {
  --lv-bezel: 12px;
  --lv-bezel-bottom: 14px;
  width: min(100%, 520px);
  max-width: min(100%, 720px);
  align-self: center;
  max-height: min(70dvh, 960px);
  border-radius: 20px;
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-bezel {
  height: 12px;
  margin-bottom: 4px;
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-notch {
  display: none;
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-cam {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3d4a5c, #0d1016 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-dots {
  display: none;
}
/* Desktop: glass/zoom from JS; outer width hugs scaled 1280×720 + tiny screen margins. */
.wd-live-preview__device-frame[data-device="desktop"] {
  --lv-bezel: 0;
  --lv-bezel-bottom: 0;
  width: min(100%, 960px);
  max-width: 100%;
  align-self: center;
  max-height: min(70dvh, 800px);
  border-radius: 10px;
  padding: 0;
  background: linear-gradient(180deg, #2c2c30 0%, #121214 8%, #0a0a0c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.5);
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-bezel {
  height: 28px;
  background: linear-gradient(180deg, #3a3a40 0%, #1e1e24 100%);
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  justify-content: flex-start;
  padding-left: 10px;
  gap: 5px;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-notch,
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-cam {
  display: none;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  font-size: 0;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-dots i:nth-child(2) {
  background: #febc2e;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-dots i:nth-child(3) {
  background: #28c840;
}
.wd-live-preview__device-stand {
  display: none;
  flex: 0 0 auto;
  width: 38%;
  min-width: 80px;
  max-width: 180px;
  height: 8px;
  margin: 2px auto 0;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #1a1a1e, #3a3a42, #1a1a1e);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}
.wd-live-preview__device-frame[data-device="desktop"] + .wd-live-preview__device-stand {
  display: block;
}
.wd-live-preview__device-screen {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) inset;
}
.wd-live-preview__iframe-fit {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
}
/* Logical viewport aspect until JS scale runs — prevents flat wide first paint */
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__iframe-fit {
  aspect-ratio: 390 / 844;
}
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__iframe-fit {
  aspect-ratio: 834 / 1112;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__iframe-fit {
  aspect-ratio: 1280 / 720;
}
/* Clips to scaled logical viewport; sized in JS so content + zoom fit the device “glass” */
.wd-live-preview__iframe-scale-box {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 2px;
}
.wd-live-preview__iframe-fit-inner {
  /* top left + scale: keeps logical viewport flush with glass; top center clips unevenly in some engines */
  transform-origin: top left;
  flex: 0 0 auto;
  min-height: 0;
  width: auto;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.wd-live-preview__device-frame[data-device="mobile"] .wd-live-preview__device-screen,
.wd-live-preview__device-frame[data-device="tablet"] .wd-live-preview__device-screen {
  border-radius: 2px 2px 20px 20px;
}
.wd-live-preview__device-frame[data-device="desktop"] .wd-live-preview__device-screen {
  border-radius: 0 0 4px 4px;
  margin: 0 1px 1px;
  flex: 1 1 auto;
}
/* Home indicator: mobile + tablet */
.wd-live-preview__device-frame[data-device="mobile"]::after,
.wd-live-preview__device-frame[data-device="tablet"]::after {
  content: "";
  flex: 0 0 auto;
  height: 5px;
  width: 32%;
  min-width: 56px;
  max-width: 100px;
  margin: 6px auto 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  align-self: center;
}
.wd-live-preview__device-frame[data-device="desktop"]::after {
  display: none;
}
.wd-live-preview__iframe {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  height: 100%;
  border: none;
  background: #060c18;
  vertical-align: top;
  /* width/height set in JS to logical viewport (390×844, 834×1112, 1280×720); long pages scroll inside iframe */
}
@media (max-width: 960px) {
  .wd-mobile-view-toggle {
    display: flex;
  }
  /* Editor tab: blocks only — live preview column hidden (use Preview tab for iframe) */
  .wd-shell--mobile-editor .wd-design-split__preview {
    display: none !important;
  }
  .wd-shell--mobile-editor .wd-design-split__blocks {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
  }
  .wd-shell--mobile-editor .wd-design-split {
    flex: 1 1 auto;
    min-height: 0;
  }
  .wd-shell--mobile-preview .wd-design-split__blocks {
    display: none;
  }
  .wd-shell--mobile-preview .wd-design-split {
    flex: 1 1 auto;
    min-height: min(52dvh, 560px);
  }
  .wd-shell--mobile-preview .wd-design-split__preview {
    flex: 1 1 auto;
    min-height: min(55dvh, 620px);
    max-height: none;
  }
  .wd-design-split {
    flex-direction: column;
    max-height: none;
    min-height: 0;
  }
  .wd-design-split__blocks {
    flex: 0 0 auto;
    max-height: min(48dvh, 520px);
  }
  .wd-design-split__preview {
    min-height: min(42dvh, 480px);
    flex: 1 1 min(42dvh, 480px);
  }
}
.wd-tabs.admin-tabs {
  flex-wrap: wrap;
}
.wd-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 20px;
  align-items: start;
}
.wd-modal-dynamic {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.wd-dyn-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.wd-dyn-inline .admin-input {
  flex: 1 1 180px;
  min-width: 0;
}
.wd-dyn-thumb {
  display: block;
  max-width: 160px;
  max-height: 90px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}
.wd-dyn-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow: auto;
  padding: 8px 4px 4px;
  margin-top: 6px;
  border: 1px solid rgba(201, 165, 92, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}
.wd-dyn-icon-btn {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(201, 165, 92, 0.25);
  border-radius: 8px;
  background: #121a24;
  color: #c9a55c;
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.wd-dyn-icon-btn:hover {
  border-color: rgba(201, 165, 92, 0.55);
  color: #f0ece4;
}
.wd-dyn-icon-btn.is-active {
  border-color: rgba(201, 165, 92, 0.85);
  background: rgba(201, 165, 92, 0.12);
  color: #f0ece4;
}
.wd-nav-tree.wd-items {
  gap: 16px;
}
.wd-nav-block {
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  padding: 10px 12px 12px;
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}
.wd-nav-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
}
.wd-nav-row__grip {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 4px 2px;
  margin: -2px 0;
  border-radius: 6px;
  color: rgba(240, 236, 228, 0.42);
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.wd-nav-row__grip:active {
  cursor: grabbing;
}
.wd-nav-row__grip[draggable="false"] {
  cursor: not-allowed;
  opacity: 0.35;
  pointer-events: none;
}
.wd-nav-block--dragging {
  opacity: 0.55;
}
.wd-nav-block--drag-over {
  outline: 2px dashed rgba(201, 165, 92, 0.45);
  outline-offset: 2px;
}
.wd-nav-row--sub {
  padding: 6px 0 6px 12px;
  margin: 4px 0 0 8px;
  border-left: 2px solid rgba(201, 165, 92, 0.28);
}
.wd-nav-row__main {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.wd-nav-row__btn-icon {
  min-width: 2.25rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.wd-nav-row__actions .btn i {
  pointer-events: none;
}
.wd-nav-row__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #f0ece4;
  line-height: 1.35;
}
.wd-nav-row__url {
  margin: 0;
  font-size: 12px;
  word-break: break-word;
}
.wd-nav-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}
.wd-nav-children {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.wd-nav-submenu-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}
.wd-nav-submenu-rows > .wd-nav-submodal-empty {
  margin: 0;
  padding: 8px 2px 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}
.wd-nav-submodal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.wd-nav-submodal-row__main {
  grid-column: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  align-items: end;
}
@media (max-width: 520px) {
  .wd-nav-submodal-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .wd-nav-submodal-row__main {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .wd-nav-submodal-row__actions {
    grid-column: 1;
    justify-content: flex-start;
  }
}
.wd-nav-submodal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wd-nav-submodal__lbl {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.wd-nav-submodal-row__actions {
  grid-column: 2;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
}
.wd-nav-submodal-row__actions .btn {
  margin: 0;
  padding: 8px 11px;
  min-height: 36px;
  min-width: 38px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid rgba(201, 165, 92, 0.32);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-on-dark);
  box-sizing: border-box;
  transition: var(--transition);
}
.wd-nav-submodal-row__actions .btn:hover {
  background: rgba(201, 165, 92, 0.12);
  border-color: rgba(201, 165, 92, 0.48);
  color: var(--gold-light);
  transform: none;
  box-shadow: none;
}
.wd-nav-submodal-row__actions .btn:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}

/* Manage pages modal — compact width, grid rows, scroll list only */
.user-modal.wd-item-modal.wd-mp-modal[open] {
  max-width: min(96vw, 640px);
  width: min(96vw, 640px);
  max-height: min(88vh, 520px);
}
.user-modal.wd-item-modal.wd-mp-modal .user-modal__form.wd-item-modal__form.wd-mp-modal__form {
  gap: 8px;
  padding: 12px 14px 12px;
  overflow: hidden;
  min-height: 0;
}
.wd-mp-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 56px;
  max-height: min(52vh, 380px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  box-sizing: border-box;
}
.wd-mp-rows__empty,
.wd-mp-rows__hint {
  font-size: 12px;
  margin: 0;
  line-height: 1.45;
  padding: 6px 2px 4px;
}
.wd-mp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
  padding: 8px 10px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}
.wd-mp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.wd-mp-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.wd-mp-row .admin-input--sm {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 13px;
}
.wd-mp-row--title-dup .wd-mp-title {
  border-color: rgba(220, 90, 90, 0.85);
  box-shadow: 0 0 0 1px rgba(220, 90, 90, 0.25);
}
.wd-mp-row--path-reserved .wd-mp-path {
  border-color: rgba(220, 90, 90, 0.85);
  box-shadow: 0 0 0 1px rgba(220, 90, 90, 0.25);
}
.wd-mp-iconbtn {
  min-width: 36px;
  min-height: 34px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.wd-mp-iconbtn i {
  font-size: 14px;
  line-height: 1;
}
.wd-mp-row__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1px;
  flex-shrink: 0;
}
.wd-mp-auto-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(28vh, 220px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  box-sizing: border-box;
}
.wd-mp-row--auto {
  align-items: center;
  opacity: 0.95;
  border-style: dashed;
}
.wd-mp-field--readonly .wd-mp-auto__value {
  font-size: 13px;
  line-height: 1.35;
  color: var(--cream, #e8e2d8);
  padding: 6px 9px;
  min-height: 34px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}
.wd-mp-auto__path {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  color: var(--gold-light, #e8c880);
}
.wd-mp-row__actions--auto {
  align-self: center;
  padding-bottom: 0;
}
.wd-mp-auto__tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}
.wd-mp-modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
  flex-shrink: 0;
}
.wd-mp-modal__footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.wd-mp-modal__add {
  margin: 0;
}

.user-modal.wd-item-modal.wd-mp-auto-dialog[open] {
  max-width: min(96vw, 520px);
  width: min(96vw, 520px);
  max-height: min(86vh, 520px);
  z-index: 90080;
}
.user-modal.wd-item-modal.wd-mp-auto-dialog .wd-mp-auto-dialog__form {
  gap: 10px;
  padding: 12px 14px 12px;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.wd-mp-auto-dialog__rows {
  flex: 1 1 auto;
  min-height: 80px;
  max-height: min(62vh, 420px);
}

.user-modal.wd-item-modal.wd-mp-details-modal[open] {
  max-width: min(94vw, 440px);
  width: min(94vw, 440px);
  max-height: min(88vh, 420px);
  z-index: 90070;
}
.user-modal.wd-mp-details-modal .wd-mp-details-modal__form {
  gap: 10px;
  padding: 12px 14px 12px;
}
.wd-mp-details-modal__field {
  margin: 0;
}
.wd-mp-details-modal__textarea {
  min-height: 96px;
  resize: vertical;
}

/* Manage blocks order modal */
.user-modal.wd-item-modal.wd-mb-modal[open] {
  max-width: min(94vw, 420px);
  width: min(94vw, 420px);
  max-height: min(88vh, 520px);
}
.user-modal.wd-item-modal.wd-mb-modal .user-modal__form.wd-item-modal__form.wd-mb-modal__form {
  gap: 8px;
  padding: 12px 14px 12px;
  overflow: hidden;
  min-height: 0;
}
.wd-mb-modal__hint {
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}
.wd-mb-sort-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 80px;
  max-height: min(50vh, 340px);
  overflow-y: auto;
  padding: 4px 2px 4px 0;
}
.wd-mb-sort-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 13px;
  color: #f0ece4;
  box-sizing: border-box;
}
.wd-mb-sort-row--frozen {
  opacity: 0.92;
  flex-shrink: 0;
}
.wd-mb-sort-row--drag {
  cursor: grab;
}
.wd-mb-sort-row--drag:active {
  cursor: grabbing;
}
.wd-mb-sort-row.is-dragging {
  opacity: 0.55;
}
.wd-mb-sort-row__handle {
  color: var(--text-muted);
  font-size: 14px;
  flex-shrink: 0;
}
.wd-mb-sort-row__label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}
.user-modal.wd-mb-modal .wd-mb-modal__actions {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}

/* Web design: block order list + block content dialog */
.wd-block-order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 4px;
  padding-right: 8px;
  box-sizing: border-box;
}
.wd-bo-section__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.52);
}
.wd-bo-section--off {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.wd-bo-section__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.wd-bo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    outline 0.2s ease,
    outline-offset 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.2s ease;
}
.wd-bo-row--off {
  opacity: 0.9;
}
.wd-bo-row--active {
  outline: 2px solid rgba(201, 165, 92, 0.42);
  outline-offset: 1px;
}
.wd-bo-row--draggable {
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.wd-bo-row--draggable:active {
  cursor: grabbing;
}
.wd-bo-row--draggable .wd-bo-row__grip {
  cursor: inherit;
}
.wd-bo-row--dragging {
  opacity: 0.5;
  transform: scale(0.993);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  z-index: 3;
  position: relative;
}
.wd-bo-row--drop-target {
  outline: 2px solid rgba(201, 165, 92, 0.88);
  outline-offset: 2px;
  border-color: rgba(201, 165, 92, 0.5);
}
@media (prefers-reduced-motion: reduce) {
  .wd-bo-row {
    transition: none;
  }
  .wd-bo-row--dragging {
    transform: none;
  }
}
.wd-bo-row__grip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  color: rgba(240, 236, 228, 0.42);
  line-height: 1;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.wd-bo-row__grip:active {
  cursor: grabbing;
}
.wd-bo-row__grip--frozen {
  cursor: default;
  opacity: 0.65;
}
.wd-bo-row__grip[draggable="false"] {
  cursor: not-allowed;
  opacity: 0.35;
  pointer-events: none;
}
.wd-bo-row__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
}
.wd-bo-row__label {
  font-weight: 600;
  font-size: 14px;
  color: #f0ece4;
}
.wd-bo-row__badge {
  font-size: 11px;
  font-weight: 500;
}
.wd-bo-row__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.wd-bo-row__btn-icon {
  min-width: 2.25rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.wd-bo-row__btn-icon i {
  pointer-events: none;
}
.wd-tabpanels-placeholder {
  display: none;
}
#panel-webdesign .user-modal.wd-item-modal.wd-block-content-dialog[open] {
  max-width: min(1120px, 96vw);
  width: min(1120px, 96vw);
  max-height: min(90vh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 90040;
}
#wdItemDialog.admin-dialog.user-modal.wd-item-modal[open]:not(.wd-block-content-dialog) {
  z-index: 90050;
}
#wdBlockCopyDialog.admin-dialog.user-modal.wd-block-copy-dialog[open] {
  z-index: 90060;
  max-width: min(92vw, 480px);
  width: min(92vw, 480px);
  max-height: min(90vh, 640px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wd-block-copy-footer-opts .wd-footer-opts-fs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 6px;
}
.wd-block-copy-footer-opts .wd-footer-opts-fs legend {
  padding: 0 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 200, 128, 0.85);
}
.wd-footer-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}
.wd-footer-opt input {
  flex-shrink: 0;
}
.wd-fc-strip-wrap > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 200, 128, 0.85);
  margin-bottom: 6px;
}
.wd-fc-strip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
  max-height: min(40vh, 280px);
  overflow-y: auto;
}
.wd-url-field {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.wd-url-field .admin-input {
  flex: 1 1 auto;
  min-width: 0;
}
.wd-internal-link-btn {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 6px 10px;
  min-width: 42px;
}
.wd-nav-submodal__field--url .wd-url-field {
  margin-top: 4px;
}
.wd-fc-strip-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.wd-fc-strip-row .wd-fc-strip-remove {
  flex-shrink: 0;
  padding: 6px 10px;
  min-width: auto;
}
@media (max-width: 420px) {
  .wd-fc-strip-row {
    grid-template-columns: 1fr;
  }
}
.wd-block-content-dialog__head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  width: 100%;
}
.wd-block-content-dialog__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.wd-block-content-dialog__title-row .wd-item-modal__title {
  margin: 0;
}
.wd-block-content-dialog__heading-btn {
  flex-shrink: 0;
}
#wdBlockCopyOpenBtn[hidden] {
  display: none !important;
}
.wd-block-content-dialog__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  max-height: min(90vh, 920px);
  padding: 0;
  overflow: hidden;
}
.wd-block-content-dialog__inner.user-modal__form.wd-item-modal__form {
  gap: 0;
  padding: 0;
}
.wd-block-content-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.15);
  flex-shrink: 0;
}
.wd-block-content-dialog__head .user-modal__title {
  margin: 0;
  font-size: 1.15rem;
  flex: 1 1 auto;
  min-width: 0;
}
.wd-block-content-dialog__head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wd-block-content-dialog__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wd-block-content-dialog__toolbar .btn.btn-gold {
  white-space: nowrap;
}
.wd-block-content-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
  -webkit-overflow-scrolling: touch;
}
.wd-block-content-dialog__body .wd-tabpanels {
  width: 100%;
  min-height: min(52vh, 520px);
}

@media (max-width: 560px) {
  .user-modal.wd-item-modal.wd-mp-modal[open] {
    max-width: min(96vw, 100%);
    width: min(96vw, 100%);
  }
  .wd-mp-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .wd-mp-row__actions {
    justify-content: flex-end;
    padding-bottom: 0;
  }
}

.wd-section-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 16px 0 14px;
}
.wd-section-toolbar__hint {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.wd-view-toggle {
  display: inline-flex;
  border: 1px solid rgba(201, 165, 92, 0.3);
  border-radius: 8px;
  overflow: hidden;
}
.wd-view-toggle__btn {
  margin: 0;
  padding: 6px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  background: #121a24;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.wd-view-toggle__btn:hover {
  color: #f0ece4;
  background: #1a2430;
}
.wd-view-toggle__btn.is-active {
  background: linear-gradient(180deg, #e0c27a, #b89245);
  color: #0a0f16;
}
.wd-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wd-items--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}
.wd-items--grid .wd-card {
  margin: 0;
}
.wd-card {
  position: relative;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  padding: 12px 14px 14px;
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}
.wd-card__layout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.wd-card__body {
  flex: 1 1 0;
  min-width: 0;
}
.wd-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 165, 92, 0.12);
}
.wd-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #f0ece4;
  line-height: 1.35;
}
.wd-card__subtitle {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
}
.wd-card__slug {
  word-break: break-word;
}
.wd-card__excerpt {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.wd-card__empty {
  opacity: 0.45;
  font-weight: 500;
}
.wd-card__n {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.wd-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.wd-card__actions--iconrow {
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.wd-card__actions--iconrow .btn.btn-sm {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#panel-properties .prop-panel-head {
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}
#panel-properties .prop-panel-head .admin-panel__title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}
#panel-properties .prop-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
#panel-properties .prop-panel-title__text {
  min-width: 0;
}
#panel-properties .prop-panel-title__ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 165, 92, 0.92);
  font-size: 1.35rem;
  line-height: 1;
}
#panel-properties .prop-panel-head__toolbar.business-panel__toolbar {
  flex-shrink: 0;
  margin-left: 0;
  flex-wrap: nowrap;
  gap: 8px 10px;
  max-width: none;
}
#panel-properties .prop-panel-addbtn.btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#panel-properties .wd-card--prop .wd-card__title {
  margin: 0 0 6px;
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: #f4efe8;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#panel-properties .wd-card--prop .wd-card__head {
  margin-top: 0;
  margin-bottom: 6px;
  padding-top: 6px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
}
#panel-properties .wd-card--prop .wd-card__subtitle {
  margin-top: 2px;
}
.wd-items--grid .wd-card--gallery .wd-card__grip {
  display: none;
}
.wd-card--gallery .wd-card__grip {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  min-height: 44px;
  margin: -2px 0 0;
  color: var(--text-muted, #8a8a8a);
  cursor: grab;
  border-radius: 6px;
  user-select: none;
  touch-action: pan-y;
}
.wd-card--gallery .wd-card__grip i,
.wd-card--gallery .wd-card__grip svg {
  pointer-events: none;
}
.wd-card--gallery .wd-card__grip:active {
  cursor: grabbing;
}
.wd-card--gallery.is-dragging {
  opacity: 0.65;
}
.wd-card--gallery.is-dragover {
  outline: 1px dashed rgba(201, 165, 92, 0.55);
  background: rgba(201, 165, 92, 0.06);
}
.wd-card--gallery .wd-card__thumbwrap {
  cursor: pointer;
}
.wd-card--gallery .wd-card__thumbwrap:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}
#wdItemDialog .admin-media-card--wd-modal .admin-media-card__preview,
#wdItemDialog .admin-media-card--wd-modal .admin-media-card__preview img {
  cursor: default;
}
.wd-card__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.wd-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.wd-card__imgrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.wd-card__file {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.wd-card__thumbwrap {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 165, 92, 0.2);
  max-width: 280px;
  background: rgba(0, 0, 0, 0.25);
}
.wd-card__thumbwrap--sm {
  margin-top: 0;
  width: 72px;
  height: 72px;
  max-width: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wd-card__thumbwrap--sm .wd-card__thumb {
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wd-card__thumbwrap--empty {
  border-style: dashed;
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.15);
}
.wd-card__thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  vertical-align: top;
}
.wd-modal__upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.wd-modal__preview {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 165, 92, 0.25);
  max-width: 100%;
}
.wd-modal__preview-img {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}
.user-modal.wd-item-modal[open] {
  max-width: min(92vw, 500px);
  width: min(92vw, 500px);
  max-height: min(90vh, 560px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.user-modal.wd-nav-submenu-modal.wd-item-modal[open] {
  max-width: min(92vw, 640px);
  width: min(92vw, 640px);
  max-height: min(90vh, 620px);
}
/* Manage submenu — stacked shell: scroll list in body, footer fixed */
.user-modal.wd-item-modal.wd-nav-submenu-modal .user-modal__form.wd-item-modal__form.wd-nav-submenu-modal__inner {
  gap: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.wd-nav-submenu-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px 14px;
}
.wd-nav-submenu-modal__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.wd-nav-submenu-modal__err {
  margin: 0;
}
.wd-nav-submenu-modal__body .wd-nav-submenu-rows {
  flex: 1 1 auto;
  min-height: 108px;
  max-height: min(46vh, 400px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 6px 4px 0;
  margin: 0;
}
.wd-nav-submenu-modal__add {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  box-sizing: border-box;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-light);
  cursor: pointer;
  border-radius: 10px;
  border: 1px dashed rgba(201, 165, 92, 0.42);
  background: rgba(0, 0, 0, 0.14);
  transition: var(--transition);
}
.wd-nav-submenu-modal__add:hover {
  color: #fff;
  border-color: rgba(201, 165, 92, 0.58);
  background: rgba(201, 165, 92, 0.08);
}
.wd-nav-submenu-modal__add:focus-visible {
  outline: 2px solid rgba(201, 165, 92, 0.55);
  outline-offset: 2px;
}
.user-modal.wd-item-modal.wd-nav-submenu-modal .wd-nav-submenu-modal__footer.user-modal__actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  background: rgba(0, 0, 0, 0.22);
  gap: 10px;
}
.user-modal.wd-item-modal .user-modal__form.wd-item-modal__form:not(.wd-item-modal__form--stacked) {
  gap: 10px;
  padding: 14px 16px 16px;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}
.user-modal.wd-item-modal form.user-modal__form.wd-item-modal__form--stacked {
  gap: 0;
  padding: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wd-item-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.user-modal.wd-item-modal form.wd-item-modal__form--stacked > .wd-item-modal__actions {
  flex-shrink: 0;
  margin-top: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(201, 165, 92, 0.14);
  background: rgba(0, 0, 0, 0.2);
}
.wd-item-modal__title {
  margin-bottom: 2px;
}
.wd-item-modal__section {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--gold);
}
.wd-item-modal__grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: start;
}
@media (max-width: 440px) {
  .wd-item-modal__grid2 {
    grid-template-columns: 1fr;
  }
}
.wd-item-modal__textarea {
  min-height: 4.25rem;
  max-height: 9rem;
  resize: vertical;
  line-height: 1.45;
}
.wd-item-modal__media {
  display: block;
  width: 100%;
  max-width: 100%;
}
.wd-item-modal__url-field {
  margin: 0;
  min-width: 0;
  align-self: stretch;
}
.wd-item-modal__url-hint {
  font-weight: 400;
  text-transform: none;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0;
}
.wd-item-modal__actions {
  margin-top: 0;
  padding-top: 0;
  gap: 8px;
  justify-content: flex-end;
}
.wd-nav-style-fieldset {
  margin: 4px 0 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(201, 165, 92, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}
.wd-nav-style-fieldset__legend {
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.wd-nav-style-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 8px;
}
.wd-nav-style-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-on-dark);
  cursor: pointer;
}
.wd-nav-style-radio input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}
.wd-nav-style-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.wd-nav-row__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-darkest);
  background: var(--gold);
  border-radius: 999px;
  vertical-align: middle;
}
.admin-input--sm {
  font-size: 13px;
  padding: 7px 10px;
  min-height: 36px;
}
.admin-media-card--wd-modal {
  min-width: 0;
  width: 100%;
  max-width: min(220px, 100%);
  margin: 0 auto;
}
.admin-media-card--wd-modal .admin-media-card__label {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.admin-media-card--wd-modal .admin-media-card__outer {
  padding: 8px;
  max-width: none;
  width: 100%;
  margin: 0;
}
.admin-media-card--wd-modal .admin-media-card__dashed {
  max-width: min(200px, 100%);
  width: 100%;
  max-height: none;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.admin-media-card--wd-modal .admin-dropzone__emptitle {
  font-size: 13px;
}
.admin-media-card--wd-modal .admin-dropzone__emptype {
  font-size: 11px;
  max-width: none;
}
.admin-media-card--wd-modal .admin-media-card__dashed .admin-dropzone--card .admin-dropzone__ico {
  font-size: 1.3rem;
}
#panel-properties.panel-properties--products #propTypeTabs {
  display: none !important;
  margin: 0;
  padding: 0;
  border: none;
  min-height: 0;
}
.user-modal.prop-item-modal[open] {
  width: min(96vw, 960px);
  min-width: min(96vw, 320px);
  max-width: min(96vw, 960px);
  height: min(92vh, 780px);
  min-height: min(92vh, 520px);
  max-height: min(92vh, 780px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.user-modal.prop-item-modal[open] #propItemForm.prop-item-modal__form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  max-height: 100%;
  height: 100%;
  box-sizing: border-box;
}
.prop-type-step {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px 22px;
  box-sizing: border-box;
  justify-content: flex-start;
}
.prop-type-step[hidden] {
  display: none !important;
}
.prop-type-step__lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  max-width: 42rem;
}
.prop-type-step__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}
@media (max-width: 560px) {
  .prop-type-step__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.prop-type-step__btn {
  margin: 0;
  padding: 14px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(201, 165, 92, 0.35);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.prop-type-step__btn:hover {
  border-color: rgba(201, 165, 92, 0.55);
  background: rgba(201, 165, 92, 0.08);
}
.prop-type-step__btn.is-selected {
  border-color: var(--gold);
  background: rgba(201, 165, 92, 0.14);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 92, 0.25);
}
.prop-type-step__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.prop-type-step__actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.prop-form-step {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
  padding: 14px 22px 16px;
  overflow: hidden;
}
.prop-form-step[hidden] {
  display: none !important;
}
.prop-item-modal__title {
  margin-bottom: 2px;
  flex-shrink: 0;
}
.prop-item-modal__tabs.admin-tabs {
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-bottom: 8px;
  padding-bottom: 0;
}
.prop-item-modal__tabs .admin-tabs__tab {
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: -1px;
}
.prop-item-modal__panels {
  flex: 1 1 auto;
  min-height: 420px;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -2px;
}
.prop-item-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 400px;
  box-sizing: border-box;
}
.prop-item-modal__panel[hidden] {
  display: none !important;
}
.prop-item-modal__textarea {
  max-height: 10rem;
  resize: vertical;
  line-height: 1.45;
}
.prop-item-modal__cover-preview.wd-modal__preview {
  max-height: 200px;
  margin-bottom: 0;
}
.prop-item-modal__err {
  flex-shrink: 0;
  margin: 0;
}
.prop-item-modal__actions {
  flex-shrink: 0;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(201, 165, 92, 0.12);
}
.prop-modal__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
@media (max-width: 560px) {
  .prop-modal__row2 {
    grid-template-columns: 1fr;
  }
}
.prop-modal__row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 14px;
}
@media (max-width: 640px) {
  .prop-modal__row3 {
    grid-template-columns: 1fr;
  }
}
.prop-modal__check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.prop-modal__check input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.prop-modal__cover-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-media-card--prop-modal .admin-media-card__dashed {
  min-height: 120px;
}
.admin-media-card--prop-gallery .admin-media-card__dashed {
  min-height: 110px;
}
.prop-gallery-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}
.prop-gallery-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 165, 92, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  cursor: grab;
}
.prop-gallery-item:active {
  cursor: grabbing;
}
.prop-gallery-item.is-dragging {
  opacity: 0.55;
}
.prop-gallery-item.is-dragover {
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.55);
}
.prop-gallery-item__handle {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 14px;
  user-select: none;
}
.prop-gallery-item__thumbwrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.prop-gallery-item__thumbwrap--empty {
  border: 1px dashed rgba(201, 165, 92, 0.25);
}
.prop-gallery-item__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prop-gallery-item__url {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

/* Business profile — policy rows */
.bf-policies-list {
  max-width: 920px;
}
.bf-policies-row {
  border: 1px solid rgba(201, 165, 92, 0.18);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.12);
}
.bf-policies-row__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

/* Brand Contact — country phone picker */
.admin-phone-input-wrap {
  display: grid;
  grid-template-columns: 108px 1fr;
  min-height: 44px;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  overflow: visible;
  background: rgba(0, 0, 0, 0.2);
}
.admin-phone-input-wrap:focus-within {
  border-color: rgba(201, 165, 92, 0.55);
  box-shadow: 0 0 0 2px rgba(201, 165, 92, 0.12);
}
.admin-country-picker.country-picker {
  position: relative;
  z-index: 45;
  border-right: 1px solid rgba(201, 165, 92, 0.2);
  background: rgba(0, 0, 0, 0.15);
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
}
.admin-country-picker .country-picker-toggle {
  width: 100%;
  border: 0;
  height: 100%;
  min-height: 42px;
  padding: 0.5rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-on-dark);
  background: transparent;
  cursor: pointer;
}
.admin-country-picker .country-picker-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.admin-country-picker .country-flag-img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
}
.admin-country-picker .country-code-text {
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.admin-country-picker .country-caret {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.admin-country-picker .country-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 240px;
  background: var(--navy-card);
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
  z-index: 80;
  padding: 0.45rem;
  display: none;
}
.admin-country-picker.open .country-picker-menu {
  display: block;
}
.admin-country-picker .country-search-wrap {
  margin-bottom: 0.4rem;
}
.admin-country-picker .country-search-input {
  width: 100%;
  font-size: 0.82rem;
}
.admin-country-picker .country-options-list {
  max-height: 220px;
  overflow-y: auto;
}
.admin-country-picker .country-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-on-dark);
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
}
.admin-country-picker .country-option:hover,
.admin-country-picker .country-option:focus-visible {
  background: var(--gold-pale);
  outline: none;
}
.admin-phone-national.admin-input {
  border: 0;
  border-radius: 0;
  border-top-right-radius: 9px;
  border-bottom-right-radius: 9px;
  background: transparent;
  min-height: 42px;
}
.admin-phone-national.admin-input:focus {
  box-shadow: none;
}
.admin-social-wa-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  padding: 0.5rem 0;
}