/* ============================================================
   Desert Crest Properties — site styles
   ============================================================ */

/* ---- Design tokens (change these to re-theme the whole site) ---- */
:root {
  --brand:        #198754;   /* primary green */
  --brand-dark:   #146c43;
  --accent:       #28a745;   /* bright green */
  --accent-dark:  #1e7e34;
  --cta:          #f7941d;   /* orange call-to-action */
  --cta-dark:     #e8641e;
  --lime:         #b6d90a;   /* hero lime end */
  --ink:          #212529;
  --muted:        #5b6472;
  --bg:           #f6f7f9;
  --card:         #ffffff;
  --line:         #e4e7ec;
  --shadow:       0 6px 20px rgba(0,0,0,.08);
  --radius:       14px;
  --wrap:         1140px;
  --hero-end:     #5bb318;   /* page banner gradient end */
  --footer-bg:    #1b1f26;
  --team-bg:      #0f4bd1;   /* home page team section */
}

/* ---- Reset-ish ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

/* ---- Top bar ---- */
.topbar {
  background: var(--accent-dark);
  color: #eafff1;
  font-size: 13px;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 10px; padding: 6px 18px; flex-wrap: wrap; }
.topbar a { opacity: .9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

/* ---- Header / logo ---- */
.masthead { background: var(--card); border-bottom: 3px solid var(--brand); }
.masthead .wrap { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.logo-mark {
  width: 58px; height: 58px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5fd39a, var(--brand));
  display: grid; place-items: center;
  color: #ffffff; font-weight: 800; font-size: 22px;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--brand);
}
.logo-text h1 { margin: 0; font-size: 22px; color: var(--brand-dark); line-height: 1.15; }
.logo-text p  { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---- Navigation ---- */
.nav { background: var(--brand); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.nav a {
  display: block; color: #fff; font-weight: 600; font-size: 14.5px;
  padding: 13px 16px; border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a.active { background: var(--brand-dark); border-bottom-color: #fff; }
.nav-cta {
  margin: 6px 0; background: linear-gradient(90deg, var(--cta-dark), var(--cta)); color: #fff !important;
  border-radius: 30px; padding: 10px 22px !important; border: 0 !important;
  font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 6px 14px rgba(232,100,30,.35);
}
.nav-cta:hover { filter: brightness(1.06); }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff; font-size: 26px;
  cursor: pointer; padding: 8px 12px;
}

/* ---- Carousel / slider ---- */
.slider { position: relative; overflow: hidden; background: #111; }
.slides { display: flex; transition: transform .5s ease; }
.slide {
  min-width: 100%; height: 340px; position: relative;
  display: grid; place-items: center; color: #fff; text-align: center;
}
.slide h2 { font-size: clamp(24px, 4vw, 40px); margin: 0 0 8px; text-shadow: 0 2px 10px rgba(0,0,0,.75); }
.slide p  { margin: 0; font-size: 16px; opacity: .95; text-shadow: 0 2px 10px rgba(0,0,0,.75); }
/* Each slide layers a dark scrim over an illustration so white text stays readable */
.slide-1 { background: linear-gradient(rgba(10,20,30,.35),rgba(10,20,30,.55)), url('../images/hero-skyline.svg') center/cover no-repeat; }
.slide-2 { background: linear-gradient(rgba(10,20,30,.35),rgba(10,20,30,.55)), url('../images/hero-villa.svg') center/cover no-repeat; }
.slide-3 { background: linear-gradient(rgba(10,20,30,.35),rgba(10,20,30,.55)), url('../images/hero-interior.svg') center/cover no-repeat; }
.slider button.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); color: #fff; border: 0; width: 44px; height: 44px;
  border-radius: 50%; font-size: 22px; cursor: pointer;
}
.slider .prev { left: 14px; } .slider .next { right: 14px; }
.slider button.arrow:hover { background: rgba(0,0,0,.6); }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.dots span.on { background: #fff; }

/* ---- Sections ---- */
section { padding: 46px 0; }
.section-title { text-align: center; margin: 0 0 6px; font-size: 26px; color: var(--brand-dark); }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 30px; }

/* ---- Service cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--accent);
}
.card h3 { margin: 0 0 8px; color: var(--ink); }
.card p  { margin: 0 0 16px; color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; cursor: pointer; border: 0; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 9px; background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-dark); }
.btn-green { background: var(--accent); }
.btn-green:hover { background: var(--accent-dark); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-cta { background: linear-gradient(90deg, var(--cta-dark), var(--cta)); }
.btn-cta:hover { background: var(--cta-dark); }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
thead th { background: var(--accent); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr:hover { background: #fff7e6; }

/* ---- Forms ---- */
.form-card {
  max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; background: #fdfdfe;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note { font-size: 12.5px; color: var(--muted); }
.alert {
  background: #fff4d6; border: 1px solid #f2d98a; color: #6b5200;
  padding: 12px 14px; border-radius: 9px; margin-bottom: 18px; font-size: 13.5px;
}
.result-box {
  margin-top: 18px; padding: 16px; border-radius: 10px; background: #eafaf0;
  border: 1px solid #b9e6c9; color: var(--accent-dark); font-weight: 600;
}

/* ---- Page hero (inner pages) ---- */
.page-hero { background: linear-gradient(100deg, var(--brand-dark), var(--hero-end)); color: #fff; padding: 40px 0; text-align: center; }
.page-hero h2 { margin: 0 0 6px; font-size: 30px; }
.page-hero p { margin: 0; opacity: .9; }

/* ---- Footer ---- */
footer { background: var(--footer-bg); color: #c7ccd4; padding: 40px 0 18px; margin-top: 20px; }
footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
footer a:hover { color: #fff; text-decoration: underline; }
footer p, footer li { font-size: 14px; margin: 6px 0; }
footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid #333; margin-top: 26px; padding-top: 16px; text-align: center; font-size: 12.5px; color: #8b94a0; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .cards, footer .cols, .row2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav ul {
    display: none; flex-direction: column; width: 100%;
    background: var(--brand-dark);
  }
  .nav ul.open { display: flex; }
  .nav .wrap { flex-wrap: wrap; }
  .slide { height: 260px; }
}

/* ============================================================
   Admin Dashboard (demo control panel)
   ============================================================ */
.admin-body { background: #eef1f5; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.admin-side { background: #1b2130; color: #cdd4e0; padding: 20px 0; }
.admin-side .brand { padding: 0 20px 18px; border-bottom: 1px solid #2c3446; }
.admin-side .brand strong { color: #fff; font-size: 17px; }
.admin-side .brand small { display: block; color: #8b94a8; font-size: 12px; margin-top: 2px; }
.admin-side nav { margin-top: 14px; }
.admin-side a {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  color: #cdd4e0; font-size: 14.5px; cursor: pointer; border-left: 3px solid transparent;
}
.admin-side a:hover { background: #232b3d; }
.admin-side a.active { background: #232b3d; border-left-color: var(--brand); color: #fff; }
.admin-side .back { margin: 18px 20px 0; }

.admin-main { padding: 24px 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.admin-top h2 { margin: 0; color: #1b2130; }
.pill { font-size: 12px; background: #ffe9a8; color: #6b5200; padding: 4px 10px; border-radius: 20px; }

.panel { display: none; }
.panel.show { display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stat .n { font-size: 30px; font-weight: 800; color: var(--brand-dark); }
.stat .l { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.admin-card h3 { margin: 0 0 14px; color: #1b2130; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table input { width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.admin-table th { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; border: 0; cursor: pointer; color: #fff; background: var(--brand); font-weight: 600; }
.btn-danger { background: #c23b3b; }
.btn-grey { background: #667; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.saved-toast {
  position: fixed; bottom: 22px; right: 22px; background: #12703b; color: #fff;
  padding: 12px 18px; border-radius: 9px; box-shadow: var(--shadow); display: none; z-index: 50;
}

/* Login gate */
.gate { max-width: 380px; margin: 8vh auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.gate h2 { margin: 0 0 6px; color: var(--brand-dark); }
.gate .hint { background: #eef6ff; border: 1px solid #cfe3fb; color: #2b5a8c; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; margin: 12px 0; }

@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; padding: 12px; }
  .admin-side .brand { width: 100%; border: 0; padding-bottom: 10px; }
  .admin-side nav { display: flex; flex-wrap: wrap; margin: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Floating action buttons (Call + WhatsApp) — from settings
   ============================================================ */
.fab-wrap {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column; gap: 14px;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .15s ease; position: relative;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; fill: #fff; }
.fab-call { background: #28a745; }
.fab-wa   { background: #25d366; }
/* gentle pulse ring */
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5);
  animation: fabPulse 2s infinite;
}
.fab-call::before { box-shadow: 0 0 0 0 rgba(40,167,69,.5); }
@keyframes fabPulse {
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 820px) {
  .fab { width: 50px; height: 50px; }
  .fab svg { width: 24px; height: 24px; }
}

/* ============================================================
   Home page sections
   ============================================================ */
/* CTA band (green→lime with orange pill) */
.cta-band { background: linear-gradient(90deg,#2f8f2f,var(--lime)); padding: 36px 0; text-align: center; }
.cta-band .big-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(90deg,var(--cta-dark),var(--cta)); color: #fff;
  font-weight: 800; font-size: 20px; letter-spacing: .5px;
  padding: 16px 42px; border-radius: 40px; box-shadow: 0 10px 24px rgba(232,100,30,.4);
}
.cta-band .big-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ============================================================
   Two-column welcome section (text + image)
   ============================================================ */
.welcome-split { background: linear-gradient(180deg,#f2f9f3,#ffffff); }
.ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.ws-text h2 { font-size: 42px; line-height: 1.1; color: var(--brand-dark); margin: 0 0 20px; }
.ws-text p { color: #3a4250; font-size: 16px; margin: 0 0 18px; }
.ws-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 8px; font-size: 17px; margin-top: 6px;
}
.ws-btn .i {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.28);
  display: grid; place-items: center; font-size: 13px; font-style: normal;
}
.ws-media img { width: 100%; border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
@media (max-width: 820px) {
  .ws-grid { grid-template-columns: 1fr; gap: 26px; }
  .ws-text h2 { font-size: 30px; }
  .ws-media { order: -1; }   /* image on top on mobile */
}

/* ============================================================
   Team section (2x2 grid with blue cross dividers)
   ============================================================ */
.officials-section { background: var(--team-bg); padding: 0; }
.officials-head { text-align: center; padding: 44px 0 26px; color: #fff; }
.officials-head h2 { margin: 0 0 6px; font-size: 28px; }
.officials-head p { margin: 0; opacity: .85; font-size: 14.5px; }
/* the blue background shows through the gap, forming the cross */
.officials-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: var(--team-bg); padding-bottom: 8px;
}
.official { background: #fff; padding: 44px 20px; text-align: center; }
.official-photo {
  width: 160px; height: 160px; margin: 0 auto 18px; border-radius: 14px; overflow: hidden;
  background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.14); border: 1px solid #edf0f4;
}
.official-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.official-underline { width: 46px; height: 4px; border-radius: 2px; background: #f6c945; margin: 0 auto 16px; }
.official-name { font-size: 24px; font-weight: 800; color: #14181f; margin: 0 0 8px; }
.official-role { color: #7a828e; font-size: 15px; }
@media (max-width: 700px) { .officials-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Dashboard card-row editors (agents, properties)
   ============================================================ */
.off-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.off-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex: none; background: #fff; }
.off-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; flex: 1; }
.off-fields input[type="text"], .off-fields input:not([type]) { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.off-actions { display: flex; gap: 8px; }
.off-actions .btn-sm { cursor: pointer; }
@media (max-width: 700px) { .off-fields { grid-template-columns: 1fr; } }

/* ============================================================
   Property cards (home + properties.html)
   ============================================================ */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prop-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.prop-card:hover { transform: translateY(-4px); }
.prop-img { position: relative; height: 200px; background: #dfe4ec center/cover no-repeat; }
.prop-purpose, .prop-badge {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .3px;
}
.prop-purpose { left: 12px; background: var(--brand); }
.prop-badge { right: 12px; background: #667; }
.prop-badge-reserved { background: var(--cta-dark); }
.prop-badge-sold, .prop-badge-rented { background: #c23b3b; }
.prop-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.prop-price { font-size: 21px; font-weight: 800; color: var(--brand-dark); }
.prop-title { margin: 4px 0 6px; font-size: 16.5px; line-height: 1.35; }
.prop-loc { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.prop-specs { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--ink); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prop-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.prop-foot small { color: var(--muted); font-size: 11.5px; }
.btn-sm-inline { padding: 8px 16px; font-size: 14px; white-space: nowrap; }
@media (max-width: 960px) { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prop-grid { grid-template-columns: 1fr; } }

.filter-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px 2px; margin-bottom: 18px;
}
@media (max-width: 700px) { .filter-bar { grid-template-columns: 1fr; } }

/* ============================================================
   Enquiry + contact
   ============================================================ */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 18px; font-size: 13.5px; }
.consent input { width: auto; margin-top: 3px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; max-width: 460px; width: 100%; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.3); padding: 28px; text-align: center; }
.modal-box h2 { margin: 6px 0; color: var(--brand-dark); }
.modal-box p { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card p { margin: 6px 0; }
.contact-card a { color: var(--brand-dark); font-weight: 600; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Dashboard extras
   ============================================================ */
.prop-row .off-fields { grid-template-columns: repeat(4, 1fr); }
.prop-row .off-fields .wide { grid-column: span 2; }
.prop-row .off-fields select, .prop-row .off-fields input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font: inherit; width: 100%; }
.prop-row .off-fields label.chk { display: flex; gap: 6px; align-items: center; font-size: 13.5px; }
.prop-row .off-fields label.chk input { width: auto; }
.prop-row .off-thumb { width: 110px; height: 76px; }
.mini-label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.enq-status { font-size: 12px; padding: 3px 9px; border-radius: 20px; font-weight: 700; }
.enq-new { background: #ffe9a8; color: #6b5200; }
.enq-contacted { background: #d8ecff; color: #1d4f86; }
.enq-closed { background: #e4e7ec; color: #5b6472; }
.enq-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.enq-card .top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.enq-card dl { display: grid; grid-template-columns: 140px 1fr; gap: 4px 10px; margin: 10px 0; font-size: 14px; }
.enq-card dt { color: var(--muted); }
.enq-card dd { margin: 0; word-break: break-word; }
@media (max-width: 900px) { .prop-row .off-fields { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   Unit selector (register.html)
   ============================================================ */
.units-panel { background: #f7f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 16px; margin: 6px 0 20px; }
.units-panel h3 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.pick-hint { color: var(--muted); font-size: 13.5px; margin: 4px 0 10px; }
.units-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 14px; }
.units-filter select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.units-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.unit-item {
  display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 2px solid var(--line);
  border-radius: 10px; padding: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.unit-item:hover { border-color: #b9e6c9; }
.unit-item input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; cursor: pointer; }
.unit-item:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(40,167,69,.2); background: #f3fbf5; }
.unit-off { opacity: .55; cursor: not-allowed; }
.unit-off input { cursor: not-allowed; }
.unit-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.unit-top { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.unit-top strong { font-size: 15.5px; letter-spacing: .3px; }
.unit-meta { font-size: 12.5px; color: var(--muted); }
.unit-price { font-size: 14px; font-weight: 700; color: var(--brand-dark); margin-top: 3px; }
.unit-st { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.unit-st-available { background: #d8efdc; color: #0d5a2e; }
.unit-st-reserved { background: #ffe9a8; color: #6b5200; }
.unit-st-sold { background: #f6d5d5; color: #8a1f1f; }
@media (max-width: 960px) { .units-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .units-grid { grid-template-columns: 1fr; } }
.units-table input, .units-table select { width: 100%; padding: 6px 7px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13.5px; }
.units-table td { padding: 5px 4px; }
.admin-main { min-width: 0; }
.units-table { min-width: 900px; }
.units-table select { min-width: 110px; }
.units-table thead th { background: transparent; color: var(--muted); }

/* ============================================================
   Register thank-you popup: brand, upload, WhatsApp
   ============================================================ */
.modal-box { position: relative; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-x {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #f1f3f6; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-x:hover { background: #e4e7ec; color: var(--ink); }
.modal-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 14px; }
.modal-brand .logo-mark { width: 64px; height: 64px; font-size: 24px; }
.modal-brand strong { color: var(--brand-dark); font-size: 16px; letter-spacing: .2px; }
.upload-box { border: 1px dashed #c9d2dc; border-radius: 10px; padding: 14px; margin: 16px 0; background: #fafbfc; }
.upload-box .upload-title { margin: 0; color: var(--ink); font-weight: 600; }
.upload-box .note { margin: 2px 0 10px; }
.btn-grey-outline { background: #fff; color: var(--ink); border: 1px solid var(--line); font-size: 14px; padding: 9px 18px; }
.btn-grey-outline:hover { background: #f1f3f6; }
.upload-list { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; font-size: 13px; }
.upload-list li { padding: 5px 8px; border-radius: 6px; margin-top: 4px; background: #f1f3f6; word-break: break-all; }
.upload-list li.upload-ok { background: #eafaf0; color: var(--accent-dark); }
.upload-list li.upload-err { background: #fdecec; color: #8a1f1f; }
.btn-wa { background: #25d366; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-wa:hover { background: #1ebe5b; }
.wa-ico { width: 20px; height: 20px; background: #fff; -webkit-mask: var(--wa-svg) center/contain no-repeat; mask: var(--wa-svg) center/contain no-repeat; }
:root { --wa-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 00-8.6 15l-1.3 4.7 4.8-1.3A10 10 0 1012 2zm0 2a8 8 0 11-4.2 14.8l-.3-.2-2.6.7.7-2.5-.2-.3A8 8 0 0112 4zm-3 4c-.2 0-.5 0-.7.4-.3.4-1 1-1 2.4s1 2.8 1.2 3 2 3.1 4.9 4.3c2.4 1 2.9.8 3.4.8.5 0 1.6-.6 1.9-1.3.2-.6.2-1.2.1-1.3l-.6-.3-1.6-.8c-.2-.1-.4-.1-.6.1l-.8 1c-.2.2-.3.2-.6.1a6.6 6.6 0 01-1.9-1.2 7.3 7.3 0 01-1.4-1.7c-.1-.3 0-.4.1-.6l.5-.5.3-.6c.1-.2 0-.4 0-.5l-.8-1.9c-.2-.5-.4-.4-.6-.4h-.2z'/%3E%3C/svg%3E"); }
body:has(.modal[style*="flex"]) .fab-wrap { display: none; }
/* popup logo: square, centred under the units line */
.modal-brand { margin: 12px auto 16px; }
.modal-brand .logo-mark { width: 72px; height: 72px; border-radius: 12px; }
.modal-brand .logo-mark img { border-radius: 12px !important; }

/* ============================================================
   Status page (status.html) + reference number in the register popup
   ============================================================ */
.ref-box { background: #f3fbf5; border: 1px solid #b9e6c9; border-radius: 12px; padding: 14px; margin: 14px 0; }
.ref-box .ref-label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.ref-box .ref-code { display: block; font-size: 28px; letter-spacing: 3px; color: var(--brand-dark); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; margin: 2px 0 4px; user-select: all; }
.ref-box .note { margin: 0 0 12px; }

.st-result { max-width: 760px; margin: 24px auto 0; }
.win-card {
  background: linear-gradient(135deg, #2f6fe4, #2355d6); color: #fff; text-align: center;
  border-radius: var(--radius); padding: 30px 22px 26px; box-shadow: 0 14px 34px rgba(35,85,214,.35);
}
.win-card-pending { background: linear-gradient(135deg, #3b6fd8, #2c4fae); }
.win-card-rejected { background: linear-gradient(135deg, #5b6472, #3d4450); box-shadow: var(--shadow); }
.win-title {
  margin: 0 0 18px; font-size: clamp(28px, 6vw, 46px); font-weight: 900; line-height: 1.15;
  color: #ffe45c; text-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.win-row { margin: 0 0 14px; font-size: clamp(17px, 3.4vw, 24px); font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.28); word-break: break-word; }
.win-row:last-child { margin-bottom: 0; }
.win-name { color: #ffe45c; }
.win-sub { margin: -8px 0 14px; font-size: 14px; opacity: .85; }
.win-amount { color: #ffe45c; font-size: clamp(24px, 5.4vw, 38px); font-weight: 900; text-shadow: 0 0 16px rgba(255,228,92,.55), 0 2px 8px rgba(0,0,0,.25); }
.win-status { display: inline-block; padding: 2px 16px; border-radius: 30px; text-shadow: none; font-size: .9em; }
.win-status-pending { background: #ffc233; color: #4a3500; }
.win-status-rejected { background: #f6d5d5; color: #8a1f1f; }
.st-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #eef6ff; border: 1px solid #cfe3fb; color: #1d4f86; }
.st-note p { margin: 4px 0 0; white-space: pre-line; color: var(--ink); }
.st-cert { margin: 16px 0 0; }
.st-cert-canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: #f4efe2; box-shadow: var(--shadow); }
.st-cert-btn { margin-top: 10px; padding: 13px 22px; font-size: 16px; }
.st-cert-btn:disabled { opacity: .6; cursor: default; }
.win-contact { margin-top: 16px; padding: 15px 22px; font-size: 17px; letter-spacing: .3px; box-shadow: 0 8px 20px rgba(232,100,30,.35); }

.builder-form { text-align: left; margin-top: 12px; }
.builder-form .field { margin-bottom: 12px; }
.visit-icon { font-size: 50px; line-height: 1; margin: 6px 0 4px; }
.visit-box p { font-size: 15px; color: var(--ink); margin: 10px 0 20px; }

/* Dashboard: unit approvals on a registration */
.review-box { background: #f7f9fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 4px 0 8px; }
.review-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.review-units { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.review-unit { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; }
.review-unit select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 400; font-size: 13px; }
.review-approved { border-color: #9fd6ae; background: #f0faf2; }
.review-rejected { border-color: #e6b3b3; background: #fdf3f3; }
.review-box textarea { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: 13.5px; margin-bottom: 8px; }

/* ============================================================
   Status page extras: visit process, authorised seller, gallery
   ============================================================ */
.st-extras { max-width: 760px; margin: 28px auto 0; display: grid; gap: 24px; }
.visit-steps h3 { margin: 0 0 12px; text-align: center; font-size: 22px; color: var(--brand-dark); }
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.visit-note {
  position: relative; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--cta);
  border-radius: 12px; padding: 18px 16px 14px; box-shadow: var(--shadow);
}
.visit-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cta-dark), var(--cta)); color: #fff; font-weight: 800; margin-bottom: 8px;
}
.visit-note h4 { margin: 0 0 4px; font-size: 16px; }
.visit-note p { margin: 0; font-size: 13.5px; color: var(--muted); }

.seller-card { position: relative; background: var(--card); border: 2px solid #b9e6c9; border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: var(--shadow); }
.seller-badge {
  position: absolute; top: -13px; left: 22px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12.5px;
  letter-spacing: .4px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.seller-body { display: flex; gap: 18px; align-items: flex-start; }
.seller-body .logo-mark { width: 64px; height: 64px; }
.seller-info h3 { margin: 0 0 4px; color: var(--brand-dark); }
.seller-info > p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.seller-facts { display: grid; grid-template-columns: 90px 1fr; gap: 4px 10px; margin: 0; font-size: 14px; }
.seller-facts dt { color: var(--muted); }
.seller-facts dd { margin: 0; font-weight: 600; word-break: break-word; }
.seller-facts a { color: var(--brand-dark); }

.st-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dfe4ec; position: relative; }
.st-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.st-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; color: #fff; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
@media (max-width: 700px) {
  .visit-grid { grid-template-columns: 1fr; }
  .seller-body { flex-direction: column; }
}
@media (max-width: 480px) { .st-gallery { grid-template-columns: 1fr; } }

/* ============================================================
   Site footer (all public pages)
   ============================================================ */
.site-footer .cols { grid-template-columns: 1.4fr repeat(var(--footer-cols, 2), 1fr) 1.3fr; }
.site-footer a { color: #c7ccd4; }
.site-footer a:hover { color: #fff; }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-logo .logo-mark { width: 48px; height: 48px; font-size: 18px; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--brand); }
.footer-logo .site-title { color: #fff; font-weight: 800; font-size: 17px; }
.footer-brand p { color: #9aa3ae; }
@media (max-width: 960px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ============================================================
   Image lightbox (click a gallery image to view it full size)
   ============================================================ */
img[data-lightbox] { cursor: zoom-in; transition: transform .25s ease, filter .25s ease; }
.st-gallery figure:hover img[data-lightbox], img[data-lightbox]:focus-visible { transform: scale(1.04); filter: brightness(1.05); }
img[data-lightbox]:focus-visible { outline: 3px solid var(--cta); outline-offset: -3px; }
.st-gallery figure::after {
  content: "⤢"; position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 18px;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.st-gallery figure:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(10, 14, 22, 0); backdrop-filter: blur(0); transition: background .22s ease, backdrop-filter .22s ease;
  cursor: zoom-out;
}
.lightbox.show { background: rgba(10, 14, 22, .88); backdrop-filter: blur(4px); }
.lightbox-fig { margin: 0; text-align: center; transform: scale(.6); opacity: 0; transition: transform .28s cubic-bezier(.2,.9,.3,1.2), opacity .22s ease; }
.lightbox.show .lightbox-fig { transform: scale(1); opacity: 1; }
.lightbox-fig img { max-width: min(92vw, 900px); max-height: 84vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.6); cursor: default; }
.lightbox-fig figcaption { color: #fff; font-weight: 700; font-size: 18px; margin-top: 12px; }
.lightbox-x {
  position: absolute; top: 16px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.lightbox-x:hover { background: rgba(255,255,255,.28); }
.lightbox[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }
body.lightbox-open .fab-wrap { display: none; }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox-fig, img[data-lightbox] { transition: none; } }

/* Unit table on register.html: every unit with its details (edited in Dashboard → Project units) */
.units-grid.units-grid { display: block; }
/* Register page: ticket numbers only, side by side. The search box and building / unit type dropdowns are not used. */
#rgUnitSearch, #rgUnitBuilding, #rgUnitType { display: none; }
.units-filter:has(#rgUnitCount:empty) { display: none; }
.units-caption { margin: 4px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.unit-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 2px; }
.unit-chip {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fff; border: 2px solid var(--line); border-radius: 9px;
  font-weight: 700; font-size: 14.5px; letter-spacing: .3px; cursor: pointer; transition: border-color .15s, background .15s;
}
.unit-chip:hover { border-color: #b9e6c9; }
.unit-chip input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.unit-chip span { min-width: 0; overflow-wrap: anywhere; }
.unit-chip:has(input:checked) { border-color: var(--accent); background: #eef9f1; }
.unit-chip.unit-off { opacity: .55; cursor: not-allowed; }
.unit-chip.unit-off:hover { border-color: var(--line); }
.unit-chip.unit-off input { cursor: not-allowed; }
@media (max-width: 640px) {
  .units-panel { padding: 16px 12px 10px; margin-left: -8px; margin-right: -8px; }
  .unit-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 420px; }
  .unit-chip { padding: 9px 10px; font-size: 14px; }
}

/* Register popup: compact reference box with the logo beside it */
.ref-box { display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-align: left; }
.ref-brand { flex: none; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ref-brand .logo-mark { width: 88px; height: 88px; border-radius: 14px; font-size: 32px; }
.ref-brand .logo-mark img { border-radius: 14px !important; }
.ref-brand strong { color: var(--brand-dark); font-size: 12px; line-height: 1.25; }
.ref-main { min-width: 0; flex: 1; }
.ref-box .ref-label { font-size: 11px; }
.ref-box .ref-code { font-size: 20px; letter-spacing: 2px; margin: 0 0 2px; }
.ref-box .note { margin: 0 0 8px; font-size: 12px; line-height: 1.45; }
.ref-btn { padding: 7px 14px; font-size: 13.5px; }
@media (max-width: 380px) { .ref-box { flex-direction: column; text-align: center; } }

/* Register popup: highlighted units, small reference line */
.thanks-units {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px;
  margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(90deg, #fff4e0, #ffe8c7); border: 1px solid #f7c98a;
}
.thanks-units-label { width: 100%; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--cta-dark); }
.thanks-unit {
  background: linear-gradient(90deg, var(--cta-dark), var(--cta)); color: #fff; font-weight: 800; font-size: 16px;
  letter-spacing: .5px; padding: 5px 14px; border-radius: 20px; box-shadow: 0 4px 10px rgba(232,100,30,.3);
}
.ref-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ref-small { margin: 0; font-size: 11.5px; color: var(--muted); }
.ref-small #rgRef { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 1px; user-select: all; }
.ref-box { padding: 10px 14px; }
.ref-brand { width: auto; flex-direction: row; gap: 10px; text-align: left; }
.ref-brand .logo-mark { width: 72px; height: 72px; font-size: 26px; }
.ref-brand strong { font-size: 14px; max-width: 110px; }
@media (max-width: 380px) { .ref-main { align-items: center; } .ref-brand { flex-direction: column; text-align: center; } }
/* Register popup: logo centred above the button */
.ref-box { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 14px; }
.ref-brand { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.ref-brand .logo-mark { width: 84px; height: 84px; font-size: 30px; }
.ref-brand strong { max-width: none; font-size: 15px; }
.ref-main { align-items: center; }
.ref-brand .logo-mark { width: 120px; height: 120px; font-size: 42px; border-radius: 18px; }
.ref-brand .logo-mark img { border-radius: 18px !important; }
.ref-brand strong { font-size: 16px; }

/* ============================================================
   Team page (team.html)
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.team-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.team-photo { aspect-ratio: 1 / 1; background: linear-gradient(180deg, #e9f5ee, #d5ebdd); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.team-name { margin: 0; font-size: 17px; line-height: 1.25; color: var(--ink); }
.team-nick { color: var(--cta-dark); font-weight: 700; font-size: 14px; margin-top: 2px; }
.team-role { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.team-facts { margin: 12px 0; border-top: 1px solid var(--line); text-align: left; }
.team-fact { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.team-fact span { color: var(--muted); }
.team-fact strong { color: var(--brand-dark); text-align: right; word-break: break-word; }
.team-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.team-actions .btn { padding: 8px 6px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.team-actions .wa-ico { width: 15px; height: 15px; }
.team-thanks { text-align: center; margin: 30px 0 0; font-size: 18px; font-weight: 700; color: var(--brand-dark); }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 880px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .team-actions { grid-template-columns: 1fr; } }

.topbar[hidden] { display: none; }
.fab-wrap.fab-left { right: auto; left: 18px; }

/* ============================================================
   Dashboard live preview (page shown inside the editor with ?edit=1)
   ============================================================ */
.dcp-editing [data-txt], .dcp-editing [data-txt-ph], .dcp-editing [data-img], .dcp-editing [data-href], .dcp-editing [data-edit],
.dcp-editing .site-title, .dcp-editing .site-tagline, .dcp-editing .site-logo, .dcp-editing .site-helpline, .dcp-editing .site-email,
.dcp-editing .site-address, .dcp-editing .site-hours, .dcp-editing .site-rera, .dcp-editing .site-cta {
  cursor: pointer; transition: outline-color .15s ease, box-shadow .15s ease;
}
.dcp-editing [data-txt]:hover, .dcp-editing [data-txt-ph]:hover, .dcp-editing [data-img]:hover, .dcp-editing [data-href]:hover,
.dcp-editing .site-title:hover, .dcp-editing .site-tagline:hover, .dcp-editing .site-logo:hover, .dcp-editing .site-helpline:hover,
.dcp-editing .site-email:hover, .dcp-editing .site-address:hover, .dcp-editing .site-hours:hover, .dcp-editing .site-rera:hover, .dcp-editing .site-cta:hover {
  outline: 2px dashed #7c5cff; outline-offset: 3px; border-radius: 3px;
}
.dcp-editing [data-edit]:hover { box-shadow: inset 0 0 0 2px rgba(124, 92, 255, .55); }
.dcp-flash { animation: dcpFlash 1.4s ease; }
@keyframes dcpFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
  15%, 60% { box-shadow: 0 0 0 6px rgba(124, 92, 255, .55); background-color: rgba(124, 92, 255, .08); }
}

/* ============================================================
   Sections switched off in the dashboard + custom form fields
   ============================================================ */
.dcp-off { display: none !important; }
.dcp-editing .dcp-off-preview { opacity: .38; filter: grayscale(1); outline: 2px dashed #f59e0b; outline-offset: -2px; }
.dcp-page-off { position: sticky; top: 0; z-index: 400; background: #fff4e5; color: #8a4b00; border-bottom: 2px solid #f59e0b; padding: 10px 16px; text-align: center; font-weight: 700; font-size: 14px; }
.row2:has(> .dcp-off) { grid-template-columns: 1fr; }
.form-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-extra:empty { display: none; }
.form-extra .cf-wide { grid-column: 1 / -1; }
.builder-form .form-extra { grid-template-columns: 1fr; }
.cf-req { color: #c23b3b; }
@media (max-width: 820px) { .form-extra { grid-template-columns: 1fr; } }

/* Register popup: own image instead of the logo */
.ref-brand .ref-img { display: block; max-width: 100%; width: auto; max-height: 180px; object-fit: contain; border-radius: 16px; }
