/* ==========================================================================
   REALTOR PRO PARTNERS — LUXURY REAL ESTATE THEME DESIGN SYSTEM
   Palette: Obsidian Black (#08090C), Charcoal Velvet (#11131A),
            Champagne Gold (#D4AF37 / #E6C762), Warm Ivory (#FAF7F0)
   ========================================================================== */

:root {
  --bg-obsidian: #07080b;
  --bg-elevated: #0e1017;
  --bg-card: #131620;
  --bg-card-hover: #181c29;
  --bg-glass: rgba(19, 22, 32, 0.85);
  --ivory: #faf7f0;
  --ivory-muted: #c9c4b8;
  --ivory-dim: #8a857a;
  --gold-light: #f3df9b;
  --gold: #d4af37;
  --gold-deep: #aa821c;
  --gold-border: rgba(212, 175, 55, 0.28);
  --gold-border-strong: rgba(212, 175, 55, 0.65);
  --gold-glow: rgba(212, 175, 55, 0.14);
  --emerald: #2dd4bf;
  --emerald-bg: rgba(45, 212, 191, 0.12);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.14);
  --rose: #fb7185;
  --rose-bg: rgba(251, 113, 133, 0.14);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-luxury: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 1px rgba(212, 175, 55, 0.4);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--ivory);
  font-family: var(--font-sans);
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(212, 175, 55, 0.11) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    var(--bg-obsidian);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Development Status Ribbon */
.dev-ribbon {
  background: linear-gradient(90deg, #10131c 0%, #1d1910 50%, #10131c 100%);
  border-bottom: 1px solid var(--gold-border);
  padding: 8px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dev-ribbon strong {
  color: var(--gold-light);
}

/* Top Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gold-border);
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
}

.brand-crest {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: #07080b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.32);
  flex-shrink: 0;
}

.brand-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--ivory-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-tab:hover {
  color: var(--ivory);
  border-color: var(--gold-border);
  background: rgba(212, 175, 55, 0.06);
}

.nav-tab.active {
  color: #07080b;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: #08090c;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.42);
  filter: brightness(1.05);
}

.btn-outline {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ivory);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-border);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 0.98rem;
}

/* Layout Containers */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 28px;
}

.view-section {
  display: none;
  padding: 32px 0 90px;
  animation: fadeIn 0.35s ease;
}

.view-section.active {
  display: block;
}

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

/* Luxury Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--gold-border-strong);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.display-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.3vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ivory);
  margin-bottom: 20px;
}

.display-title .gold-italic {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.15;
}

.lead-copy {
  font-size: 1.06rem;
  color: var(--ivory-muted);
  max-width: 680px;
}

/* ==========================================================================
   REAL ESTATE LUXURY HERO & PHOTOGRAPHY SHOWCASE
   ========================================================================== */
.realestate-hero-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--gold-border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  margin-bottom: 52px;
  background:
    linear-gradient(105deg, rgba(7, 8, 11, 0.94) 0%, rgba(7, 8, 11, 0.82) 52%, rgba(7, 8, 11, 0.45) 100%),
    url('assets/luxury-estate-exterior.png') center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
  padding: 48px 44px;
  position: relative;
  z-index: 2;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.metric-card {
  background: rgba(14, 16, 23, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
}

.metric-card .value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.metric-card .label {
  font-size: 0.78rem;
  color: var(--ivory-muted);
  margin-top: 6px;
}

/* Hero Right Photo Frame: Happy Homeowners Receiving Keys */
.hero-photo-showcase {
  background: linear-gradient(160deg, rgba(22, 26, 38, 0.95) 0%, rgba(11, 13, 19, 0.98) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.8);
  position: relative;
}

.hero-photo-frame {
  position: relative;
  height: 295px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-border-strong);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-photo-showcase:hover .hero-photo-frame img {
  transform: scale(1.04);
}

.closing-key-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 8, 11, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.closing-rebate-float {
  position: absolute;
  bottom: 14px;
  right: 16px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  color: #07080b;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
}

.hero-photo-body {
  padding: 24px 26px;
}

/* ==========================================================================
   REAL ESTATE CLOSING & LIFESTYLE GALLERY STRIP
   ========================================================================== */
.lifestyle-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 34px 0 56px;
}

.estate-story-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.estate-story-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.estate-story-img {
  position: relative;
  height: 225px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-border);
}

.estate-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.estate-story-card:hover .estate-story-img img {
  transform: scale(1.05);
}

.estate-tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 8, 11, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold-light);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 999px;
}

.estate-story-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Three Simple Pillars */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.luxury-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-luxury);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.luxury-card:hover {
  border-color: var(--gold-border-strong);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Executive Rewards Showcase (Mercedes + Full Medical/401k) */
.rewards-banner {
  margin-top: 64px;
  background: linear-gradient(135deg, #12151f 0%, #090b10 60%, #19150c 100%);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow-luxury);
}

.rewards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.reward-tier-card {
  background: rgba(7, 8, 11, 0.78);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.reward-tier-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.1) 0%, rgba(7, 8, 11, 0.9) 100%);
}

.reward-photo-banner {
  height: 195px;
  margin: -28px -28px 22px -28px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-border-strong);
  position: relative;
}

.reward-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #07080b;
  background: var(--gold);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* Interactive Pitch Video Section */
.video-showcase-box {
  margin-top: 64px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-luxury);
}

.cinema-stage {
  margin-top: 24px;
  background: #07080c;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  min-height: 390px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
}

.cinema-slide-content {
  max-width: 780px;
  margin: auto;
  text-align: center;
  z-index: 2;
  background: rgba(7, 8, 11, 0.76);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 28px 34px;
}

.cinema-slide-tag {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.cinema-slide-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  color: var(--ivory);
  margin-bottom: 14px;
  line-height: 1.15;
}

.cinema-slide-sub {
  font-size: 1.02rem;
  color: var(--ivory-muted);
  max-width: 640px;
  margin: 0 auto;
}

.cinema-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  z-index: 2;
  flex-wrap: wrap;
}

.cinema-progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  min-width: 140px;
}

.cinema-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: 20%;
  transition: width 0.25s linear;
}

/* Continuous presentation flow: stacked crossfading backdrops + soft text fades */
.cinema-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
  z-index: 0;
}
.cinema-bg-layer.cinema-bg-active {
  opacity: 1;
  animation: cinemaKenBurns 9s ease-out forwards;
}
@keyframes cinemaKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
#cinema-stage-el > *:not(.cinema-bg-layer) {
  position: relative;
  z-index: 2;
}
#cinema-slide-content {
  transition: opacity 0.26s ease, transform 0.26s ease;
}
#cinema-slide-content.cinema-fading {
  opacity: 0;
  transform: translateY(10px);
}

/* ==========================================================================
   VOUCHER STUDIO & LIVE CERTIFICATE PREVIEW
   ========================================================================== */
.studio-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 32px;
  align-items: start;
}

.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-luxury);
}

.form-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gold-border);
}

.form-section-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-light);
}

.form-group {
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ivory-muted);
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  background: #090b10;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Voucher Preview Toolbar */
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 20px;
}

.mode-switch {
  display: inline-flex;
  background: #08090c;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 4px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--ivory-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: var(--gold);
  color: #08090c;
}

/* THE LUXURY VOUCHER CERTIFICATE */
.voucher-certificate {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16), transparent 60%),
    linear-gradient(145deg, #0b0d14 0%, #121622 50%, #090a0f 100%);
  color: var(--ivory);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
}

.voucher-inner-frame {
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 10px;
  padding: 32px 36px;
  position: relative;
  background:
    radial-gradient(circle at 90% 90%, rgba(212, 175, 55, 0.08), transparent 45%);
}

/* Corner Ornaments */
.voucher-inner-frame::before,
.voucher-inner-frame::after {
  content: '🔑';
  position: absolute;
  color: var(--gold);
  font-size: 1.05rem;
}
.voucher-inner-frame::before { top: 10px; left: 14px; }
.voucher-inner-frame::after { bottom: 10px; right: 14px; }

.voucher-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding-bottom: 18px;
  margin-bottom: 22px;
  gap: 16px;
}

.voucher-brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.voucher-crest-seal {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #07080b;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.voucher-crest-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.voucher-certificate.bw-mode .voucher-crest-seal {
  border-color: #000000 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.voucher-issuer {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.voucher-title-main {
  font-family: var(--font-serif);
  font-size: 2.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ivory);
  line-height: 1.1;
  margin-top: 4px;
}

.voucher-meta-box {
  text-align: right;
  font-size: 0.78rem;
  color: var(--ivory-muted);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 195px;
}

.voucher-meta-box strong {
  color: var(--gold-light);
  font-family: monospace;
  font-size: 0.9rem;
}

.voucher-hero-value {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.04) 100%);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 12px;
  padding: 20px 26px;
  margin-bottom: 24px;
}

.voucher-amount {
  font-family: var(--font-serif);
  font-size: 3.7rem;
  font-weight: 700;
  line-height: 0.95;
  color: var(--gold-light);
  text-shadow: 0 4px 24px rgba(212, 175, 55, 0.35);
}

.voucher-amount span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}

.voucher-bonus-desc h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--ivory);
  margin-bottom: 6px;
}

.voucher-bonus-desc p {
  font-size: 0.86rem;
  color: var(--ivory-muted);
  line-height: 1.45;
}

.voucher-parties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.voucher-party-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  padding: 14px 18px;
}

.voucher-party-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
  font-weight: 700;
}

.voucher-party-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ivory);
}

.voucher-party-sub {
  font-size: 0.82rem;
  color: var(--ivory-muted);
  margin-top: 2px;
}

.voucher-footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  padding-top: 18px;
}

.voucher-redeem-box {
  font-size: 0.82rem;
  color: var(--ivory-muted);
}

.voucher-redeem-box strong {
  color: var(--gold-light);
}

.voucher-qr-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  color: #08090c;
  padding: 10px 14px;
  border-radius: 8px;
  border: 2px solid var(--gold);
}

.voucher-qr-box canvas {
  width: 68px;
  height: 68px;
  display: block;
}

/* BLACK & WHITE PRINT-FRIENDLY MODE */
.voucher-certificate.bw-mode {
  background: #ffffff !important;
  color: #000000 !important;
  border: 3px solid #000000 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.voucher-certificate.bw-mode .voucher-inner-frame {
  background: #ffffff !important;
  border: 1.5px solid #000000 !important;
}

.voucher-certificate.bw-mode .voucher-inner-frame::before,
.voucher-certificate.bw-mode .voucher-inner-frame::after,
.voucher-certificate.bw-mode .voucher-issuer,
.voucher-certificate.bw-mode .voucher-title-main,
.voucher-certificate.bw-mode .voucher-amount,
.voucher-certificate.bw-mode .voucher-amount span,
.voucher-certificate.bw-mode .voucher-bonus-desc h4,
.voucher-certificate.bw-mode .voucher-party-label,
.voucher-certificate.bw-mode .voucher-party-name,
.voucher-certificate.bw-mode .voucher-meta-box strong,
.voucher-certificate.bw-mode .voucher-redeem-box strong {
  color: #000000 !important;
  text-shadow: none !important;
}

.voucher-certificate.bw-mode .voucher-bonus-desc p,
.voucher-certificate.bw-mode .voucher-party-sub,
.voucher-certificate.bw-mode .voucher-meta-box,
.voucher-certificate.bw-mode .voucher-redeem-box {
  color: #000000 !important;
}

/* Black ink only: catch every remaining text node in B&W mode,
   including lines whose color is set by an inline style (e.g. the Expires line) */
.voucher-certificate.bw-mode,
.voucher-certificate.bw-mode *,
.voucher-certificate.bw-mode *::before,
.voucher-certificate.bw-mode *::after {
  color: #000000 !important;
  text-shadow: none !important;
}

.voucher-certificate.bw-mode .voucher-hero-value,
.voucher-certificate.bw-mode .voucher-party-card,
.voucher-certificate.bw-mode .voucher-meta-box {
  background: #f8f8f8 !important;
  border-color: #000000 !important;
}

.voucher-certificate.bw-mode .voucher-top-row,
.voucher-certificate.bw-mode .voucher-footer-row {
  border-color: #000000 !important;
}

.voucher-certificate.bw-mode .voucher-qr-box {
  border-color: #000000 !important;
}

/* Share Action Strip */
.share-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

/* ==========================================================================
   GAMIFIED REALTOR DASHBOARD & SQUADS
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-box {
  background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.kpi-box .kpi-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ivory-muted);
}

.kpi-box .kpi-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin: 6px 0;
}

.kpi-box .kpi-sub {
  font-size: 0.78rem;
  color: var(--emerald);
}

.gamification-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-bottom: 32px;
}

.progress-track {
  width: 100%;
  height: 14px;
  background: #07080b;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Data Tables */
.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th {
  text-align: left;
  padding: 13px 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-border-strong);
  background: rgba(212, 175, 55, 0.05);
}

td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--ivory);
  vertical-align: middle;
}

tr:hover td {
  background: rgba(212, 175, 55, 0.03);
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-purchased {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.status-activated {
  background: rgba(45, 212, 191, 0.22);
  color: #5eead4;
  border: 1px solid #2dd4bf;
}

.status-pending, .status-scheduled, .status-contacted {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-not-purchased {
  background: var(--rose-bg);
  color: var(--rose);
  border: 1px solid rgba(251, 113, 133, 0.35);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #131620;
  border: 1px solid var(--gold);
  color: var(--ivory);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-luxury);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.25s ease;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid,
  .studio-layout,
  .gamification-grid,
  .rewards-grid,
  .lifestyle-gallery-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid,
  .share-action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .navbar {
    padding: 14px 18px;
  }
  .hero-grid {
    padding: 28px 20px;
  }
  .hero-highlights,
  .kpi-grid,
  .share-action-grid,
  .voucher-parties-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .voucher-hero-value,
  .voucher-footer-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRINT MEDIA RULES — PRINTS ONLY THE CERTIFICATE CLEANLY
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .dev-ribbon,
  .navbar,
  .form-panel,
  .preview-toolbar,
  .share-action-grid,
  .no-print,
  footer {
    display: none !important;
  }
  .view-section {
    display: none !important;
    padding: 0 !important;
  }
  #view-voucher {
    display: block !important;
  }
  .studio-layout {
    display: block !important;
  }
  .voucher-certificate {
    box-shadow: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Voucher/contact forms: placeholder hint disappears as soon as a field is clicked */
input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent !important;
}
