/* ==========================================================================
   PUBHIGH — COMPONENT STYLESHEET
   ========================================================================== */

/* ==========================================================================
   1. HEADER & STICKY NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(252, 135, 78, 0.15));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
  min-width: 44px;
  min-height: 44px;
  position: relative;
}

.mobile-toggle::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #FFFFFF;
  box-shadow: 0 -7px 0 #FFFFFF, 0 7px 0 #FFFFFF;
}

/* Mobile Drawer (Item 43) */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 40px 28px 36px;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow-y: auto;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 700;
  color: #F8FAFC;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #FC874E;
  padding-left: 8px;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 3.5rem auto;
}

.hero-headline {
  margin-bottom: 1.5rem;
  line-height: 1.08;
}

.hero-subheadline {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust-micro {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   3. HERO INTERACTIVE ANALYTICS DASHBOARD
   ========================================================================== */

.hero-visual-wrapper {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
}

.hero-dashboard-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04), 0 0 40px rgba(252, 135, 78, 0.12);
  padding: 32px;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.dashboard-header-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.metric-box {
  background: rgba(250, 250, 249, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: all var(--transition-fast);
}

.metric-box:hover {
  background: #FFFFFF;
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.metric-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.metric-change {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Chart Canvas Area */
.dashboard-chart-area {
  position: relative;
  background: #FAFAF9;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
}

.chart-svg-container {
  width: 100%;
  height: 220px;
  position: relative;
  cursor: crosshair;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Chart Interactive Tooltip */
.chart-tooltip {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translate(-50%, 0);
  background: var(--bg-dark);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.15s ease, left 0.1s ease;
  z-index: 10;
}

.chart-tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--bg-dark);
}

/* Floating Badges Surrounding Hero */
.hero-floating-item {
  position: absolute;
  z-index: 3;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-1 { top: -20px; left: -30px; animation-delay: 0s; }
.floating-2 { top: 35%; left: -50px; animation-delay: 1.5s; }
.floating-3 { bottom: 10px; left: -25px; animation-delay: 3s; }
.floating-4 { top: -15px; right: -30px; animation-delay: 0.8s; }
.floating-5 { top: 45%; right: -55px; animation-delay: 2.2s; }
.floating-6 { bottom: 15px; right: -25px; animation-delay: 3.5s; }

/* ==========================================================================
   4. TRUST BAR & DUAL-LANE MOVING DEMAND STREAM (INTERACTIVE & ANIMATED)
   ========================================================================== */

.trust-section {
  padding: 4rem 0 4.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.trust-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Dual Marquee Streaming Container */
.dual-marquee-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 8px 0;
}

.dual-marquee-row {
  display: flex;
  overflow: hidden;
  width: 100%;
  position: relative;
}

.dual-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

/* Lane 1: Scrolling Left (Right-to-Left) */
.dual-marquee-track.scroll-left {
  animation: marqueeScrollLeft 30s linear infinite;
}

/* Lane 2: Scrolling Right (Left-to-Right) — Opposite Direction */
.dual-marquee-track.scroll-right {
  animation: marqueeScrollRight 30s linear infinite;
}

/* Interactive Pause on Hover */
.dual-marquee-container:hover .dual-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Individual Brand Badge Styling */
.demand-brand-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 12px 24px;
  height: 64px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-sizing: border-box;
  flex-shrink: 0;
}

.demand-brand-badge:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(252, 135, 78, 0.5);
  box-shadow: 0 12px 28px -4px rgba(233, 107, 53, 0.2), 0 0 0 2px rgba(252, 135, 78, 0.2);
  background: #FFFFFF;
  z-index: 10;
}

.demand-brand-img {
  display: block;
  max-height: 32px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: contrast(105%);
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.demand-brand-badge:hover .demand-brand-img {
  transform: scale(1.08);
}

.demand-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ecosystem-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.ecosystem-badge:hover {
  background: #FFFFFF;
  border-color: var(--color-primary);
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(252, 135, 78, 0.25);
  color: var(--color-primary);
}

.ecosystem-badge .eco-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Ecosystem Tooltip */
.eco-card-tooltip {
  position: fixed;
  background: var(--bg-dark);
  color: #FFFFFF;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  box-shadow: var(--shadow-xl);
  pointer-events: none;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.2s ease;
  max-width: 260px;
}

/* ==========================================================================
   5. VALUE PROPOSITION (4 PILLARS)
   ========================================================================== */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.value-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.value-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  margin-bottom: 24px;
  font-size: 1rem;
}

.value-card-visual {
  background: rgba(250, 250, 249, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

/* Value Visual 1: Auction Pressure Gauge */
.auction-pressure-bar {
  height: 10px;
  width: 100%;
  background: #E5E7EB;
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
  margin: 10px 0;
}

.auction-pressure-fill {
  height: 100%;
  width: 88%;
  background: var(--grad-primary);
  border-radius: var(--radius-pill);
  animation: pulseBar 3s ease-in-out infinite alternate;
}

@keyframes pulseBar {
  0% { width: 72%; }
  100% { width: 94%; }
}

/* ==========================================================================
   6. INTERACTIVE YIELD ENGINE & AUCTION SIMULATION
   ========================================================================== */

.yield-engine-wrapper {
  background: #121214;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  color: #FFFFFF;
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.4), 0 0 50px rgba(252, 135, 78, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.yield-engine-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  background: radial-gradient(circle, rgba(252, 135, 78, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.yield-pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.pipeline-node {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
  font-size: clamp(0.75rem, 0.85vw, 0.82rem);
  font-weight: 700;
  color: #E4E4E7;
  flex: 1 1 150px;
  min-width: 130px;
  box-sizing: border-box;
  transition: all var(--transition-fast);
  line-height: 1.35;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
  user-select: none;
}

.pipeline-node:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(252, 135, 78, 0.4);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.pipeline-node.active {
  background: rgba(252, 135, 78, 0.18);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  box-shadow: 0 0 22px rgba(252, 135, 78, 0.3), inset 0 0 12px rgba(252, 135, 78, 0.15);
  transform: translateY(-2px);
}

.pipeline-node.pulse-step {
  animation: stepPulse 0.6s ease-in-out;
}

@keyframes stepPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(252, 135, 78, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(252, 135, 78, 0.6); border-color: #FFFFFF; }
  100% { transform: scale(1); }
}

.pipeline-node-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #94A3B8;
}

.pipeline-node.active .pipeline-node-num {
  color: #FC874E;
}

.pipeline-node-title {
  font-weight: 700;
}

.pipeline-arrow {
  color: rgba(252, 135, 78, 0.6);
  font-size: 1.1rem;
  font-weight: 800;
  flex: 0 0 auto;
  user-select: none;
}

/* Stage Info Box */
.pipeline-stage-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #FC874E;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.pipeline-stage-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #FC874E;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.pipeline-stage-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.pipeline-stage-desc {
  font-size: 0.85rem;
  color: #A1A1AA;
  line-height: 1.5;
  margin: 0;
}

/* Yield Simulation Controls */
.yield-sim-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 24px;
}

.sim-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sim-control-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sim-pill-group {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-pill {
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sim-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(252, 135, 78, 0.4);
}

.sim-pill.active {
  background: linear-gradient(135deg, #E96B35, #FC874E);
  color: #FFFFFF;
  border-color: #FC874E;
  box-shadow: 0 0 14px rgba(233, 107, 53, 0.45);
}

.sim-control-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10B981;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-live-toggle:hover {
  background: rgba(16, 185, 129, 0.2);
}

.btn-live-toggle.active .live-dot {
  animation: livePulse 1.4s infinite;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.auction-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}

.bids-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bid-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.bid-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(252, 135, 78, 0.4);
  transform: translateX(4px);
}

.bid-card.is-winner {
  background: rgba(252, 135, 78, 0.14);
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(252, 135, 78, 0.25);
}

.bid-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bid-partner-name {
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  color: #FFFFFF;
}

.bid-partner-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

.bid-value {
  font-size: 1.12rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-mono);
}

.bid-card.is-winner .bid-value {
  color: #FC874E;
}

.bid-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.bid-progress-bar {
  height: 100%;
  background: #64748B;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.bid-card.is-winner .bid-progress-bar {
  background: linear-gradient(90deg, #E96B35, #FC874E);
  box-shadow: 0 0 6px rgba(252, 135, 78, 0.6);
}

/* Winner Showcase Card */
.winner-showcase {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.winner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.winner-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FC874E;
  background: rgba(252, 135, 78, 0.15);
  border: 1px solid rgba(252, 135, 78, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.winner-protocol-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #A1A1AA;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.winning-amount-wrap {
  text-align: center;
  margin: 10px 0;
}

.winning-amount {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  font-family: var(--font-mono);
  line-height: 1;
  text-shadow: 0 0 30px rgba(252, 135, 78, 0.35);
}

.winning-ecpm-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A1A1AA;
  margin-top: 4px;
  display: block;
}

.yield-upside-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #10B981;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 8px;
  margin: 8px auto 18px auto;
}

.winner-details-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
}

.winner-partner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.winner-partner-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.winner-speed-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.winner-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.winner-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-k {
  font-size: 0.68rem;
  color: #71717A;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-v {
  font-size: 0.82rem;
  color: #E4E4E7;
  font-weight: 800;
}

/* ==========================================================================
   7. HOW IT WORKS
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all var(--transition-base);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-lg), var(--shadow-glow-sm);
}

.step-number {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-primary);
  opacity: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

/* ==========================================================================
   8. INTERACTIVE REVENUE CALCULATOR
   ========================================================================== */

.calculator-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.calc-input-group {
  margin-bottom: 24px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.calc-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.calc-current-val {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
}

.calc-range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #E5E7EB;
  outline: none;
  cursor: pointer;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(252, 135, 78, 0.5);
  transition: transform 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-output-panel {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.calc-output-panel::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(252, 135, 78, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.calc-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-stat-row:last-child {
  border-bottom: none;
}

.calc-stat-label {
  font-size: 0.9rem;
  color: var(--text-light-secondary);
}

.calc-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}

.calc-stat-value.highlight {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-primary-light);
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.4;
}

/* ==========================================================================
   9. INTERACTIVE AD FORMAT LABORATORY & VIEWPORT SANDBOX
   ========================================================================== */

.ad-format-lab-wrapper {
  margin-bottom: 3.5rem;
}

.ad-format-nav-tabs,
.ad-format-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.ad-format-tab-btn,
.ad-format-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ad-format-tab-btn:hover,
.ad-format-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(252, 135, 78, 0.4);
  color: #0F172A;
  box-shadow: 0 6px 16px rgba(252, 135, 78, 0.08);
}

.ad-format-tab-btn.active,
.ad-format-btn.active {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  box-shadow: 0 4px 14px rgba(233, 107, 53, 0.15);
}

.format-tab-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #64748B;
}

.ad-format-tab-btn.active .format-tab-badge,
.ad-format-btn.active .format-tab-badge {
  background: rgba(233, 107, 53, 0.15);
  color: var(--color-primary-deep);
}

/* Home Showcase Topbar Styles */
.ad-showcase-wrapper {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ad-showcase-topbar {
  background: #F8FAFC;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
  gap: 14px;
  flex-wrap: wrap;
}

.ad-env-toggle-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.ad-env-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* ── Interactive Workbench Grid ── */
.ad-format-workbench-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .ad-format-workbench-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Sandbox Frame ── */
.mock-sandbox-container {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mock-browser-header {
  background: #F8FAFC;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E2E8F0;
  gap: 14px;
  flex-wrap: wrap;
}

.mock-browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.browser-dot.dot-red { background: #FF5F56; }
.browser-dot.dot-yellow { background: #FFBD2E; }
.browser-dot.dot-green { background: #27C93F; }

.device-switcher-group {
  display: flex;
  align-items: center;
  background: #EDF2F7;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.device-tab-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.device-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

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

.btn-sandbox-toggle {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sandbox-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.cls-badge-shield {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 9px;
  border-radius: 6px;
}

/* ── Live Stage Viewport ── */
.mock-preview-stage {
  padding: 32px 24px;
  background: #F8FAF9;
  min-height: 480px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: background 0.3s ease;
  overflow-x: auto;
}

.ad-device-frame {
  width: 100%;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.ad-device-frame.device-desktop { max-width: 100%; }
.ad-device-frame.device-tablet { max-width: 768px; }
.ad-device-frame.device-mobile { max-width: 385px; }

.ad-device-frame.dark-theme {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 16px;
}

/* ── Gemini Nano Banana SVG Icon System ── */
.pub-icon-nano {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.ad-format-tab-btn:hover .pub-icon-nano {
  transform: scale(1.1);
}

/* ── 100% Authentic Google AdSense / Google Ad Manager Styling ── */
.google-adsense-card {
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  text-align: left;
  transition: all var(--transition-fast);
}

.google-adsense-card.dark-unit {
  background: #202124;
  border-color: #3C4043;
  color: #E8EAED;
}

/* Official Google AdChoices Overlay */
.google-ad-badge-top {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #70757A;
  background: rgba(255, 255, 255, 0.92);
  padding: 1px 5px;
  border-radius: 2px;
  z-index: 15;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}
.dark-unit .google-ad-badge-top {
  background: rgba(32, 33, 36, 0.9);
  color: #9AA0A6;
}

.google-ad-label {
  font-size: 10px;
  font-weight: 500;
  color: #70757A;
}
.dark-unit .google-ad-label { color: #9AA0A6; }

.google-adchoices-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
}

.google-ad-close {
  font-size: 10px;
  color: #70757A;
  margin-left: 2px;
}
.google-ad-close:hover { color: #202124; }

/* Google AdSense Text Styles */
.google-ad-headline {
  color: #1A0DAB;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.google-ad-headline:hover {
  text-decoration: underline;
  color: #1A0DAB;
}
.dark-unit .google-ad-headline {
  color: #8AB4F8 !important;
}
.dark-unit .google-ad-headline:hover {
  color: #8AB4F8 !important;
}

.google-ad-displayurl {
  color: #006621;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 1px;
}
.dark-unit .google-ad-displayurl {
  color: #81C995 !important;
}

.google-ad-snippet {
  color: #4D5156;
  font-size: 12.5px;
  line-height: 1.4;
  margin-top: 3px;
}
.dark-unit .google-ad-snippet {
  color: #BDC1C6 !important;
}

.google-ad-cta-btn {
  background-color: #1A73E8;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  transition: background-color .15s ease;
  white-space: nowrap;
}
.google-ad-cta-btn:hover {
  background-color: #1557B0;
  color: #FFFFFF;
}

/* 1. Google Leaderboard Unit (728x90) */
.google-unit-leaderboard {
  max-width: 728px;
  min-height: 90px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.device-mobile .google-unit-leaderboard,
.device-tablet .google-unit-leaderboard {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  min-height: auto;
}
.device-mobile .google-unit-leaderboard > div:last-child,
.device-tablet .google-unit-leaderboard > div:last-child {
  align-self: flex-end;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .google-unit-leaderboard {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    min-height: auto;
  }
  .google-unit-leaderboard > div:last-child {
    align-self: flex-end;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.google-ad-brand-favicon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #F1F3F4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #DADCE0;
}
.dark-unit .google-ad-brand-favicon {
  background: #303134;
  border-color: #5F6368;
}

/* 2. Google Medium Rectangle Unit (300x250) */
.google-unit-mpu {
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.google-mpu-banner-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #202124;
}

.google-mpu-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

/* 3. Google Half Page / Monster Unit (300x600) */
.google-unit-halfpage {
  width: 300px;
  max-width: 100%;
  min-height: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.device-mobile .google-unit-halfpage {
  min-height: auto;
}

@media (max-width: 600px) {
  .google-unit-halfpage {
    min-height: auto;
  }
}

.google-halfpage-banner-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #202124;
}

.google-halfpage-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.google-feature-checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px 0;
}
.google-feature-checklist li {
  font-size: 12px;
  color: #4D5156;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dark-unit .google-feature-checklist li { color: #BDC1C6; }

/* 4. Google Native In-Feed Unit */
.google-unit-native {
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
  box-sizing: border-box;
}
.device-mobile .google-unit-native {
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (max-width: 650px) {
  .google-unit-native {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.google-native-img {
  width: 100%;
  height: 110px;
  border-radius: 6px;
  object-fit: cover;
}

/* 5. Google Sticky Anchor Ad Unit */
.google-unit-sticky {
  border: 1px solid #DADCE0;
  box-shadow: 0 -3px 12px rgba(60, 64, 67, 0.12);
  border-radius: 6px 6px 0 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  margin-top: 18px;
  box-sizing: border-box;
  width: 100%;
}

.device-mobile .google-unit-sticky {
  flex-wrap: wrap;
  padding: 8px 12px;
  gap: 8px;
}
.device-mobile .google-unit-sticky > div:last-child {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 650px) {
  .google-unit-sticky {
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
  }
  .google-unit-sticky > div:last-child {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.google-anchor-top-tab {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border: 1px solid #DADCE0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 2px 14px;
  font-size: 10px;
  font-weight: 500;
  color: #70757A;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.dark-unit .google-anchor-top-tab {
  background: #202124;
  border-color: #3C4043;
  color: #9AA0A6;
}

/* 6. Google Outstream Video Unit */
.google-unit-video {
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
  position: relative;
  margin: 16px 0;
  box-sizing: border-box;
  width: 100%;
}

.google-video-screen {
  width: 100%;
  height: 230px;
  object-fit: cover;
  opacity: 0.9;
  display: block;
}

.device-mobile .google-video-screen {
  height: 180px;
}
.device-mobile .google-video-bottom-overlay {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

@media (max-width: 650px) {
  .google-video-screen {
    height: 180px;
  }
  .google-video-bottom-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.google-video-top-bar {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.google-video-tag-pill {
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
}

.google-video-scrub-timeline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}
.google-video-scrub-progress {
  height: 100%;
  width: 45%;
  background: #FBBC04;
}

.google-video-bottom-overlay {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
}

/* Editorial Mock Layout */
.mock-article-header {
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.dark-theme .mock-article-header { border-color: #334155; }

.mock-article-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.dark-theme .mock-article-title { color: #FFFFFF; }

.mock-article-meta {
  font-size: 0.78rem;
  color: #64748B;
  display: flex;
  gap: 8px;
}
.dark-theme .mock-article-meta { color: #94A3B8; }

.mock-article-content-grid {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
}
@media (max-width: 768px) {
  .mock-article-content-grid {
    grid-template-columns: 1fr;
  }
}

.mock-article-text p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
}
.dark-theme .mock-article-text p { color: #CBD5E1; }

.mock-complementary-slot, .mock-sidebar-card {
  background: #F1F5F9;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
}
.dark-box {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #FFFFFF !important;
}

.mock-slot-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #64748B;
  margin-bottom: 4px;
}

/* ── Inspector & Telemetry Sidebar Card ── */
.format-inspector-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.inspector-card-header {
  border-bottom: 1px solid #F1F5F9;
  padding-bottom: 14px;
}

.inspector-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.inspector-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.telemetry-label {
  color: #64748B;
  font-weight: 600;
}

.telemetry-val {
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-mono);
}

.viewability-gauge-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viewability-bar-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.viewability-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.btn-trigger-auction {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-deep));
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(233, 107, 53, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-trigger-auction:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 107, 53, 0.35);
}

.auction-status-box {
  font-size: 0.78rem;
  text-align: center;
  min-height: 20px;
}

/* ── Dynamic Revenue Calculator Box ── */
.format-revenue-calc-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px;
}

.revenue-slider-row {
  margin-top: 10px;
  margin-bottom: 14px;
}

.revenue-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.revenue-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.revenue-kpi-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-primary-deep);
  font-family: var(--font-mono);
}

.revenue-kpi-label {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   10. WHY PUBHIGH COMPARISON MATRIX
   ========================================================================== */

.comparison-table-wrapper {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 22px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.comparison-table tbody tr {
  transition: background 0.2s ease;
}

.comparison-table tbody tr:hover {
  background: #F8FAFC;
}

.comp-col-category {
  font-size: 0.76rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comp-header-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legacy-header-box {
  padding: 6px 0;
}

.legacy-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 4px;
}

.comp-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.comp-header-sub {
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 500;
}

.pubhigh-header-box {
  padding: 6px 0;
}

.pubhigh-recom-chip {
  font-size: 0.68rem;
  font-weight: 800;
  color: #EA580C;
  background: rgba(252, 135, 78, 0.15);
  border: 1px solid rgba(252, 135, 78, 0.35);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.comparison-table th {
  background: #F8FAFC;
  padding-top: 22px;
  padding-bottom: 20px;
}

.comparison-table th.col-pubhigh {
  background: linear-gradient(180deg, rgba(252, 135, 78, 0.12) 0%, rgba(252, 135, 78, 0.04) 100%);
  border-left: 2px solid rgba(252, 135, 78, 0.4);
  border-right: 2px solid rgba(252, 135, 78, 0.4);
  border-top: 3px solid #FC874E;
}

.comparison-table td.col-pubhigh {
  background: rgba(252, 135, 78, 0.025);
  border-left: 2px solid rgba(252, 135, 78, 0.2);
  border-right: 2px solid rgba(252, 135, 78, 0.2);
}

.comparison-table tbody tr:hover td.col-pubhigh {
  background: rgba(252, 135, 78, 0.055);
}

.comp-feature-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0F172A;
  font-size: 0.92rem;
}

.comp-feature-icon {
  color: var(--color-primary-deep);
  flex-shrink: 0;
}

.comp-cell-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.limitation-cell {
  color: #475569;
}

.advantage-cell {
  color: #0F172A;
}

.comp-status-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-check {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-cross {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.comp-pill-tag {
  background: rgba(252, 135, 78, 0.12);
  color: #C2410C;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.comp-table-footer {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.comp-footer-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.comp-stat-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.comp-stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #090D16;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.comp-stat-desc {
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 600;
}

/* ==========================================================================
   11. FAQ ACCORDION
   ========================================================================== */

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.is-open {
  border-color: var(--color-primary-border);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 26px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.is-open .faq-answer {
  max-height: 300px;
  padding: 0 26px 22px 26px;
}

/* ==========================================================================
   12. APPLICATION MULTI-STEP MODAL & WIZARD
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.application-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  transform: scale(0.95) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-active .application-modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F4F4F5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #E4E4E7;
  color: var(--text-main);
}

.wizard-progress-bar {
  height: 6px;
  background: #F4F4F5;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  width: 20%;
  background: var(--grad-primary);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.wizard-step-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 20px;
}

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

.form-grid.full-width {
  grid-template-columns: 1fr;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #D4D4D8;
  background: #FAFAF9;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(252, 135, 78, 0.15);
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   13. APPLICATION CONFIRMATION SCREEN
   ========================================================================== */

.confirmation-view {
  text-align: center;
  padding: 20px 0;
}

.confirmation-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 2rem;
}

.app-ref-badge {
  display: inline-block;
  background: var(--color-primary-subtle);
  border: 1px dashed var(--color-primary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 16px 0 24px 0;
}

.status-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0 28px 0;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.timeline-step.completed {
  color: #10B981;
}

.timeline-step.active {
  color: var(--color-primary-dark);
}

.timeline-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: #E5E7EB;
}

.timeline-step.completed .timeline-step-icon {
  background: #10B981;
  color: #FFFFFF;
}

.timeline-step.active .timeline-step-icon {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(252, 135, 78, 0.5);
}

/* ==========================================================================
   14. TRANSACTIONAL EMAIL PREVIEW MODAL
   ========================================================================== */

.email-preview-wrapper {
  background: #F3F4F6;
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.email-mockup-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 32px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.email-header-logo {
  height: 32px;
  margin-bottom: 24px;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-dark);
  color: #FFFFFF;
  padding-top: 5rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-cta {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5rem;
  box-shadow: 0 20px 40px rgba(252, 135, 78, 0.3);
}

.footer-top-cta h2 {
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-top-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-light-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-light-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ADMIN PANEL — ENTERPRISE ADTECH CONSOLE
   ========================================================================== */

/* ── Login Gate ──────────────────────────────────────────── */

.admin-login-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 40px);
  padding: 40px 20px;
  position: relative;
}

.admin-login-gate::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(252, 135, 78, 0.15) 0%, rgba(255, 176, 140, 0.05) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.admin-login-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.admin-login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-primary);
  border-radius: 20px 20px 0 0;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.admin-login-header img {
  filter: drop-shadow(0 4px 12px rgba(252, 135, 78, 0.2));
  margin-bottom: 18px;
}

.admin-login-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  color: #171717;
}

.admin-login-header p {
  font-size: 0.88rem;
  color: #6B7280;
  line-height: 1.5;
}

/* ── Top Bar ─────────────────────────────────────────────── */

.admin-panel {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px 80px 28px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  margin-bottom: 28px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-topbar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #171717;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-topbar-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #FC874E;
  border-radius: 50%;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-smtp-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.admin-smtp-badge.smtp-live {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.admin-smtp-badge.smtp-live::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.admin-smtp-badge.smtp-offline {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ── Stats Grid ──────────────────────────────────────────── */

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #E5E7EB;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
}

.admin-stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #171717;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 6px;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

.admin-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-stat-card.stat-review::before { background: #F59E0B; }
.admin-stat-card.stat-review .admin-stat-value { color: #D97706; }
.admin-stat-card.stat-approved::before { background: #10B981; }
.admin-stat-card.stat-approved .admin-stat-value { color: #059669; }
.admin-stat-card.stat-rejected::before { background: #EF4444; }
.admin-stat-card.stat-rejected .admin-stat-value { color: #DC2626; }
.admin-stat-card.stat-hold::before { background: #8B5CF6; }
.admin-stat-card.stat-hold .admin-stat-value { color: #7C3AED; }
.admin-stat-card.stat-emails::before { background: var(--color-primary); }
.admin-stat-card.stat-emails .admin-stat-value { color: #FC874E; }

/* ── Toolbar (Filter Tabs + Search) ──────────────────────── */

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-filter-tabs {
  display: flex;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.admin-tab {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6B7280;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.admin-tab:hover {
  background: #F4F4F5;
  color: #171717;
}

.admin-tab.active {
  background: #171717;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tab-count {
  display: inline-block;
  font-size: 0.72rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  margin-left: 6px;
  font-weight: 700;
}

.admin-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.admin-search-wrap {
  flex: 0 1 380px;
  position: relative;
}

.admin-search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  font-size: 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #FFFFFF;
  color: #171717;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-search-wrap::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.admin-search-input:focus {
  border-color: #FC874E;
  box-shadow: 0 0 0 3px rgba(252, 135, 78, 0.15);
}

/* ── Data Table ──────────────────────────────────────────── */

.admin-table-container {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table thead {
  background: #FAFAF9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.admin-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #F4F4F5;
  color: #27272A;
  vertical-align: middle;
}

.admin-table-row {
  transition: background-color 0.12s ease;
}

.admin-table-row:hover {
  background-color: #FAFAF9;
}

.admin-table-row.is-expanded {
  background-color: #FFF7ED;
}

.admin-table-footer {
  padding: 14px 18px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9CA3AF;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #FAFAF9;
}

.admin-table-compact td {
  padding: 10px 14px;
  font-size: 0.8rem;
}

/* ── Table Cell Helpers ──────────────────────────────────── */

.admin-ref-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FC874E;
  background: rgba(252, 135, 78, 0.08);
  border: 1px solid rgba(252, 135, 78, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.admin-site-cell strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #171717;
  margin-bottom: 2px;
}

.admin-url-link {
  font-size: 0.75rem;
  color: #FC874E;
  text-decoration: none;
  font-weight: 500;
}

.admin-url-link:hover { text-decoration: underline; }

.admin-sub-text {
  font-size: 0.75rem;
  color: #71717A;
}

.admin-email-link {
  color: #2563EB;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.admin-email-link:hover { text-decoration: underline; }

.admin-date-text {
  font-size: 0.78rem;
  color: #71717A;
  white-space: nowrap;
}

.admin-action-btn {
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s ease;
  color: #52525B;
}

.admin-action-btn:hover {
  background: #F4F4F5;
  border-color: #D4D4D8;
  color: #171717;
  transform: translateY(-1px);
}

/* ── Status Badges ───────────────────────────────────────── */

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.admin-status-badge.status-under-review {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.admin-status-badge.status-under-review::before {
  content: '●';
  color: #F59E0B;
}

.admin-status-badge.status-approved {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.admin-status-badge.status-approved::before {
  content: '✓';
  font-weight: 900;
}

.admin-status-badge.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.admin-status-badge.status-rejected::before {
  content: '✗';
  font-weight: 900;
}

.admin-status-badge.status-on-hold {
  background: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.admin-status-badge.status-on-hold::before {
  content: '⏸';
  font-size: 0.65rem;
}

/* ── Email Type Badges ───────────────────────────────────── */

.admin-email-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
}

.admin-email-type-badge.type-publisher {
  background: rgba(59, 130, 246, 0.1);
  color: #2563EB;
}

.admin-email-type-badge.type-internal {
  background: rgba(252, 135, 78, 0.1);
  color: #EA580C;
}

.admin-method-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.admin-method-badge.method-smtp {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-method-badge.method-local_store {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.admin-subject-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

/* ── Detail Panel (Expanded Row) ─────────────────────────── */

.admin-detail-row td {
  padding: 0 !important;
  border-bottom: 2px solid #FC874E;
}

.admin-detail-panel {
  padding: 28px;
  background: #FFFFFF;
  border-top: 1px solid #F4F4F5;
  animation: slideDownDetail 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.admin-detail-section {
  background: #FAFAF9;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.admin-detail-section h4 {
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #171717;
  letter-spacing: -0.01em;
}

.admin-detail-field {
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: #27272A;
  line-height: 1.5;
}

.admin-detail-field span {
  color: #71717A;
  font-weight: 500;
  margin-right: 4px;
}

.admin-detail-field a {
  color: #FC874E;
  text-decoration: none;
  font-weight: 600;
}

.admin-detail-field a:hover { text-decoration: underline; }

/* ── Detail Action Buttons ───────────────────────────────── */

.admin-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.admin-detail-actions-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 6px;
}

.admin-status-action {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #E4E4E7;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  background: #FFFFFF;
}

.admin-status-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-status-action.btn-approve {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.admin-status-action.btn-approve:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.admin-status-action.btn-reject {
  color: #DC2626;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.04);
}

.admin-status-action.btn-reject:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

.admin-status-action.btn-hold {
  color: #7C3AED;
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.04);
}

.admin-status-action.btn-hold:hover {
  background: #8B5CF6;
  color: #FFFFFF;
  border-color: #8B5CF6;
}

.admin-status-action.btn-review {
  color: #D97706;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.04);
}

.admin-status-action.btn-review:hover {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #F59E0B;
}

.admin-delete-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
  color: #DC2626;
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-delete-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* ── Collapsible Section (Emails Log) ────────────────────── */

.admin-section {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.admin-section-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  background: none;
  border: none;
  cursor: pointer;
  color: #171717;
  transition: background 0.1s ease;
}

.admin-section-toggle:hover { background: #FAFAF9; }

.admin-section-body {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
}

/* ── Empty State ─────────────────────────────────────────── */

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: #71717A;
}

.admin-empty h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #171717;
  margin-bottom: 6px;
}

.admin-empty p {
  font-size: 0.88rem;
}

/* ── Admin Responsive ────────────────────────────────────── */

@media (max-width: 1200px) {
  .admin-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .admin-panel { padding: 0 16px 60px 16px; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-search-wrap { flex: 1; }
  .admin-filter-tabs { overflow-x: auto; }
  .admin-topbar { flex-direction: column; gap: 14px; align-items: flex-start; }
  .admin-table { font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: 10px 10px; }
}

/* ==========================================================================
   BLOG & ARTICLE READER STYLES
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(252, 135, 78, 0.12);
  border-color: rgba(252, 135, 78, 0.4);
}

.blog-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #F4F4F5;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 600;
}

/* Standalone Article Reader Page */
.article-reader-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-hero-banner {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  margin: 24px 0 36px 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-header {
  margin-bottom: 28px;
}

.article-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 900;
  color: #0F172A;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 14px 0 18px 0;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #334155;
}

.article-content h1 {
  font-size: 2rem;
  font-weight: 900;
  color: #0F172A;
  margin: 44px 0 20px 0;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  margin: 40px 0 16px 0;
  letter-spacing: -0.025em;
  line-height: 1.35;
  padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}

.article-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin: 32px 0 14px 0;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.article-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
  margin: 24px 0 10px 0;
}

.article-content p {
  margin-bottom: 22px;
  color: #334155;
}

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.article-content a:hover {
  color: var(--color-primary-dark);
}

.article-content strong {
  font-weight: 700;
  color: #0F172A;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: #FFF7ED;
  color: #9A3412;
  padding: 20px 24px;
  border-radius: 0 14px 14px 0;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.15rem;
  box-shadow: 0 2px 6px rgba(252, 135, 78, 0.06);
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content .article-callout {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #3B82F6;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 1rem;
}

.article-content .callout-tip {
  border-left-color: #10B981;
  background: rgba(16, 185, 129, 0.05);
}

.article-content .callout-warning {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.05);
}

.article-content ul, .article-content ol {
  padding-left: 28px;
  margin-bottom: 24px;
}

.article-content li {
  margin-bottom: 10px;
  color: #334155;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 28px 0;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1);
  border: 1px solid #E2E8F0;
  display: block;
}

.article-content figure {
  margin: 32px 0;
  text-align: center;
}

.article-content figcaption {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 10px;
  font-style: italic;
}

.article-content pre {
  background: #0F172A;
  color: #F8FAFC;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 28px 0;
  border: 1px solid #1E293B;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-content code {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  background: #F1F5F9;
  color: #E26E35;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: 600;
}

.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-weight: normal;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.article-content table th {
  background: #F8FAFC;
  padding: 14px 18px;
  font-weight: 800;
  color: #0F172A;
  text-align: left;
  border-bottom: 2px solid #E2E8F0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-content table td {
  padding: 14px 18px;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
  vertical-align: middle;
}

.article-content table tr:hover {
  background: #FAFAF9;
}

.article-content hr {
  border: none;
  height: 1px;
  background: #E2E8F0;
  margin: 40px 0;
}

.article-cta-box {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border-radius: 20px;
  padding: 40px;
  color: #FFFFFF;
  margin-top: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.article-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FC874E 0%, #FFB08C 100%);
}

/* ── Blog Hub & Reader Enhanced Components ───────────────────── */

.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #FC874E 0%, #FFB08C 100%);
  z-index: 99999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(252, 135, 78, 0.5);
}

.blog-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 32px 0 36px 0;
  flex-wrap: wrap;
}

.blog-search-box {
  position: relative;
  min-width: 280px;
  max-width: 380px;
  width: 100%;
}

.blog-search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-size: 0.9rem;
  color: #0F172A;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.blog-search-box input:focus {
  border-color: #FC874E;
  box-shadow: 0 0 0 3px rgba(252, 135, 78, 0.15);
}

.blog-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

.blog-filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
}

.blog-filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: #64748B;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.blog-filter-pill:hover {
  border-color: #FC874E;
  color: #FC874E;
}

.blog-filter-pill.active {
  background: #FC874E;
  border-color: #FC874E;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(252, 135, 78, 0.25);
}

/* Featured Hero Article Card */
.blog-featured-hero {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  margin-bottom: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-featured-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(252, 135, 78, 0.12);
  border-color: rgba(252, 135, 78, 0.4);
}

.blog-featured-hero-img-wrap {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #F4F4F5;
}

.blog-featured-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-featured-hero:hover .blog-featured-hero-img {
  transform: scale(1.04);
}

.blog-featured-hero-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #FC874E;
  background: rgba(252, 135, 78, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  align-self: flex-start;
}

.blog-featured-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 900;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.blog-featured-excerpt {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94A3B8;
  margin-bottom: 18px;
}

.blog-breadcrumbs a {
  color: #64748B;
  text-decoration: none;
  font-weight: 600;
}

.blog-breadcrumbs a:hover {
  color: #FC874E;
}

.related-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .blog-featured-hero {
    grid-template-columns: 1fr;
  }
  .blog-featured-hero-img-wrap {
    height: 240px;
    min-height: 240px;
  }
  .blog-featured-hero-body {
    padding: 24px;
  }
}

/* ── Spinner Brand Circular Animation ─────────────────────────── */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

.spinner-brand {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 auto 20px auto !important;
  border: 3.5px solid rgba(233, 107, 53, 0.2) !important;
  border-top-color: #E96B35 !important;
  border-right-color: #FC874E !important;
  border-radius: 50% !important;
  animation: spin 0.85s linear infinite !important;
  -webkit-animation: spin 0.85s linear infinite !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   REAL ADTECH MEDIA CARDS, EDITORIAL BADGES & DEVICE FRAMES
   ========================================================================== */

.adtech-media-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  background: #FFFFFF;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.adtech-media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -15px rgba(233, 107, 53, 0.18), 0 0 0 1px rgba(233, 107, 53, 0.2);
}

.adtech-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.adtech-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(9, 13, 22, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFFFFF;
}

.adtech-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(233, 107, 53, 0.28);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 0 16px rgba(233, 107, 53, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  color: #090D16;
}

.adtech-stat-chip .beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E96B35;
  box-shadow: 0 0 8px #FC874E;
}

/* Device Mockup Frame for Ad Format Lab */
.device-frame-desktop {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.device-frame-topbar {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.device-dot.red { background: #EF4444; }
.device-dot.yellow { background: #F59E0B; }
.device-dot.green { background: #10B981; }

.device-frame-mobile {
  max-width: 320px;
  margin: 0 auto;
  background: #090D16;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  border: 4px solid #1E293B;
}

.device-screen-mobile {
  background: #FFFFFF;
  border-radius: 26px;
  overflow: hidden;
  height: 480px;
  position: relative;
}

/* ==========================================================================
   DEMAND LOGO CLOUD & BRAND ECOSYSTEM (ITEM 8)
   ========================================================================== */
.demand-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 1024px) {
  .demand-logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .demand-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.demand-logo-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  cursor: default;
}

.demand-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 135, 78, 0.4);
  box-shadow: 0 12px 28px -6px rgba(233, 107, 53, 0.18), 0 0 0 1px rgba(252, 135, 78, 0.2);
  background: #FFFFFF;
}

.demand-logo-icon {
  height: 32px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(40%) contrast(110%);
  transition: filter 0.3s ease;
}

.demand-logo-card:hover .demand-logo-icon {
  filter: grayscale(0%) contrast(100%);
}

.demand-logo-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  text-align: center;
  transition: color 0.3s ease;
}

.demand-logo-card:hover .demand-logo-meta {
  color: var(--color-primary-deep);
}

/* ==========================================================================
   PUBLISHER CATEGORY CARDS & HOVER SYSTEM (ITEMS 9 & 10)
   ========================================================================== */
.pub-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .pub-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .pub-cat-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.pub-cat-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.pub-cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(252, 135, 78, 0.45);
  box-shadow: 0 24px 50px -12px rgba(233, 107, 53, 0.22), 0 0 0 1px rgba(252, 135, 78, 0.2);
  background: #FFFFFF;
}

.pub-cat-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  margin-bottom: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #090D16;
}

.pub-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.pub-cat-card:hover .pub-cat-img {
  transform: scale(1.06);
}

.pub-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FC874E;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(252, 135, 78, 0.3);
}

.pub-cat-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #090D16;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pub-cat-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.pub-cat-metrics-bar {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.pub-cat-card:hover .pub-cat-metrics-bar {
  background: #FFF0E9;
  border-color: rgba(252, 135, 78, 0.25);
  color: var(--color-primary-dark);
}

.pub-cat-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-primary-deep);
  text-decoration: none;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
}

.pub-cat-action-arrow {
  transition: transform 0.3s ease;
}

.pub-cat-card:hover .pub-cat-action-arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   INTERACTIVE AD FORMAT SHOWCASE & LIVE INSPECTOR (ITEMS 11–17)
   ========================================================================== */
.ad-showcase-wrapper {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-top: 24px;
  transition: all 0.3s ease;
}

.ad-showcase-wrapper.dark-theme {
  background: #090D16;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.5);
  color: #F8FAFC;
}

.ad-showcase-topbar {
  padding: 16px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ad-showcase-wrapper.dark-theme .ad-showcase-topbar {
  background: #0F172A;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ad-env-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F172A;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ad-showcase-wrapper.dark-theme .ad-env-toggle-btn {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}

.ad-env-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-deep);
}

.ad-publisher-layout {
  padding: 32px 24px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Realistic Mock Article Structure */
.mock-article-header {
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.ad-showcase-wrapper.dark-theme .mock-article-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.mock-article-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #090D16;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ad-showcase-wrapper.dark-theme .mock-article-title {
  color: #FFFFFF;
}

.mock-article-meta {
  font-size: 0.8rem;
  color: #64748B;
  display: flex;
  gap: 12px;
}

.ad-showcase-wrapper.dark-theme .mock-article-meta {
  color: #94A3B8;
}

.mock-article-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

@media (max-width: 900px) {
  .mock-article-content-grid {
    grid-template-columns: 1fr;
  }
}

.mock-article-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.ad-showcase-wrapper.dark-theme .mock-article-text {
  color: #CBD5E1;
}

/* Programmatic Creative Cards */
.programmatic-ad-unit {
  position: relative;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

.ad-showcase-wrapper.dark-theme .programmatic-ad-unit {
  background: #111827;
  border-color: #1F2937;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ad-tag-label {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.8);
  padding: 1px 5px;
  border-radius: 3px;
}

.ad-showcase-wrapper.dark-theme .ad-tag-label {
  background: rgba(0, 0, 0, 0.6);
  color: #64748B;
}

/* Live Format Inspector Telemetry Bar */
.live-inspector-panel {
  background: #090D16;
  color: #FFFFFF;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .live-inspector-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.inspector-node-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.inspector-node-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseBeaconAnim 1.8s infinite;
}

@keyframes pulseBeaconAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #10B981; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   INTERACTIVE CASE STUDIES & PIPELINE (ITEMS 18–23)
   ========================================================================== */
/* ==========================================================================
   INTERACTIVE CASE STUDIES & PIPELINE (APPLE DESIGN SYSTEM)
   ========================================================================== */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.case-study-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  box-sizing: border-box;
}

.case-study-card:hover {
  transform: translateY(-8px);
  border-color: rgba(252, 135, 78, 0.45);
  box-shadow: 0 24px 48px -10px rgba(233, 107, 53, 0.18), 0 0 0 1px rgba(252, 135, 78, 0.12);
  background: #FFFFFF;
}

.case-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.case-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-primary-deep);
  background: rgba(252, 135, 78, 0.12);
  border: 1px solid rgba(252, 135, 78, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-traffic-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.case-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #090D16;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 12px 0;
}

.case-kpi-large {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.3vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #FC874E 0%, #E96B35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.case-kpi-large.kpi-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Segmented Comparative Capsule */
.case-metric-capsule {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.case-metric-label {
  color: #64748B;
  font-weight: 600;
}

.case-metric-val-before {
  font-family: var(--font-mono);
  color: #64748B;
  font-weight: 700;
}

.case-metric-val-after {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary-deep);
}

.case-metric-val-after.green {
  color: #059669;
}

.case-uplift-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed #CBD5E1;
  font-size: 0.78rem;
  font-weight: 800;
}

.case-chart-bar-wrap {
  background: #E2E8F0;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
  margin: 12px 0 16px 0;
  position: relative;
}

.case-chart-bar-fill {
  background: linear-gradient(90deg, #FC874E, #E96B35);
  height: 100%;
  border-radius: 8px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-chart-bar-fill.fill-green {
  background: linear-gradient(90deg, #10B981, #059669);
}

.case-drivers-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.case-drivers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.case-driver-badge {
  font-size: 0.74rem;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #334155;
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.case-study-card:hover .case-driver-badge {
  border-color: #CBD5E1;
}

.case-card-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-link-btn {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-primary-deep);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
  font-family: inherit;
}

.case-link-btn:hover {
  gap: 8px;
  color: #C2410C;
}

/* ── Hero Social Proof Avatar Bar ── */
.hero-social-proof-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(252, 135, 78, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 18px 6px 8px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 0 16px rgba(252, 135, 78, 0.12);
  margin-top: 1.5rem;
}

.hero-avatar-stack {
  display: flex;
  align-items: center;
}

.hero-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  margin-right: -10px;
  position: relative;
  transition: transform 0.2s ease, z-index 0.2s ease;
}

.hero-avatar-img:hover {
  transform: scale(1.15) translateY(-2px);
  z-index: 10;
}

.hero-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FC874E, #E96B35);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(233, 107, 53, 0.3);
  position: relative;
  z-index: 3;
}

.hero-social-proof-text {
  text-align: left;
}

.hero-stars-row {
  font-size: 0.8rem;
  color: #F59E0B;
  letter-spacing: 1px;
  line-height: 1.2;
}

.hero-rating-score {
  color: #0F172A;
  font-weight: 800;
  font-size: 0.78rem;
  margin-left: 4px;
}

.hero-trust-caption {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748B;
  line-height: 1.3;
}

/* ── Case Study Author / Partner Spotlight ── */
.case-author-spotlight {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease;
}

.case-study-card:hover .case-author-spotlight {
  border-color: rgba(252, 135, 78, 0.3);
}

.case-author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(252, 135, 78, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.case-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.case-author-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.case-author-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary-deep);
}

.case-author-quote {
  font-size: 0.78rem;
  color: #475569;
  font-style: italic;
  line-height: 1.35;
  margin-top: 2px;
}

/* Horizontal Yield Pipeline (Item 23) */
.yield-pipeline-box {
  background: #090D16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 28px;
  color: #FFFFFF;
  margin-top: 16px;
}

.pipeline-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  overflow-x: auto;
  padding: 12px 0;
}

.pipeline-node {
  background: #111827;
  border: 1px solid rgba(252, 135, 78, 0.3);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  min-width: 140px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.pipeline-node:hover {
  transform: translateY(-3px);
  border-color: #FC874E;
  box-shadow: 0 8px 24px rgba(233, 107, 53, 0.3);
  background: #1E293B;
}

.pipeline-node-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #FC874E;
  margin-bottom: 4px;
}

.pipeline-node-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
}

.pipeline-connector-line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  background: linear-gradient(90deg, rgba(252, 135, 78, 0.3), #FC874E, rgba(252, 135, 78, 0.3));
  position: relative;
}

.pipeline-connector-line::after {
  content: '';
  position: absolute;
  top: -4px;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid #FC874E;
  border-right: 2px solid #FC874E;
  transform: rotate(45deg);
}

/* ==========================================================================
   20. REDESIGNED PREMIUM FOOTER (ITEMS 25-32)
   ========================================================================== */

.footer-premium-wrapper {
  background: #090D16;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-premium-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(circle, rgba(252, 135, 78, 0.12) 0%, rgba(9, 13, 22, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Top Banner CTA (Item 31) */
.footer-cta-banner {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(25, 33, 49, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(252, 135, 78, 0.25);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.8rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: -3rem;
  margin-bottom: 4.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 35px rgba(252, 135, 78, 0.15);
}

.footer-cta-content {
  flex: 1 1 400px;
}

.footer-cta-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.footer-cta-content p {
  font-size: 1.05rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.5;
}

.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* 4-Column Responsive Footer Nav (Item 30 & 32) */
.footer-nav-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 4rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-brand-desc {
  color: #94A3B8;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.footer-direct-link {
  color: #CBD5E1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.footer-direct-link:hover {
  color: #FC874E;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav-list a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: #FC874E;
  transform: translateX(4px);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  position: relative;
  z-index: 2;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748B;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34D399;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Responsive Footer Breakpoints (Item 32) */
@media (max-width: 1024px) {
  .footer-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.8rem 1.4rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
  }
  .footer-cta-actions {
    width: 100%;
  }
  .footer-cta-actions .btn {
    width: 100%;
  }
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   21. COMMUNICATION CENTER SPLIT HUB (ITEMS 33-36)
   ========================================================================== */

.comm-center-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-top: 2.5rem;
}

.comm-left-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comm-category-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 26px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.comm-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #FC874E;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.comm-category-card:hover {
  transform: translateY(-3px);
  border-color: #FC874E;
  box-shadow: 0 12px 28px rgba(252, 135, 78, 0.12);
}

.comm-category-card:hover::before {
  opacity: 1;
}

.comm-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comm-cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #FC874E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comm-cat-email-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  text-decoration: none;
}

.comm-cat-email-link:hover {
  text-decoration: underline;
}

.comm-cat-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #090D16;
  margin-bottom: 6px;
}

.comm-cat-desc {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0;
}

/* Right Pane: Glass Form & Visual (Item 34 & 35) */
.comm-right-pane {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.comm-form-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.comm-form-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #090D16;
  margin-bottom: 6px;
}

.comm-form-sub {
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 24px;
}

.comm-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comm-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.comm-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.comm-form-group input,
.comm-form-group select,
.comm-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  font-size: 0.9rem;
  color: #090D16;
  transition: all 0.2s ease;
  font-family: inherit;
}

.comm-form-group input:focus,
.comm-form-group select:focus,
.comm-form-group textarea:focus {
  outline: none;
  border-color: #FC874E;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(252, 135, 78, 0.15);
}

/* Authority Real Person Visual Element (Item 35) */
.comm-visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 240px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.comm-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comm-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.1) 0%, rgba(9, 13, 22, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 24px;
}

.comm-floating-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comm-float-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #090D16;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: floatSubtle 4s ease-in-out infinite;
}

.comm-float-badge:nth-child(2) {
  animation-delay: 1.5s;
}

.comm-float-badge:nth-child(3) {
  animation-delay: 3s;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Mobile Stacking Order (Item 36) */
@media (max-width: 900px) {
  .comm-center-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .comm-input-row {
    grid-template-columns: 1fr;
  }
  .comm-right-pane {
    order: 2;
  }
}


/* ==========================================================================
   22. GLOBAL ANIMATIONS & CORE WEB VITALS (ITEMS 37-42)
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(3px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-on-scroll.delay-100 { transition-delay: 0.1s; }
.reveal-on-scroll.delay-200 { transition-delay: 0.2s; }
.reveal-on-scroll.delay-300 { transition-delay: 0.3s; }
.reveal-on-scroll.delay-400 { transition-delay: 0.4s; }

/* Page Initial Load Animation (Item 38) */
@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim-header {
  animation: heroEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim-sub {
  animation: heroEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-anim-actions {
  animation: heroEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

.hero-anim-visual {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

/* ==========================================================================
   STANDARDS & GOVERNANCE TRUST CARDS (APPLE DESIGN SYSTEM)
   ========================================================================== */
.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 1120px) {
  .trust-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .trust-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.trust-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
  box-sizing: border-box;
}

.trust-card:hover {
  transform: translateY(-8px);
  border-color: rgba(252, 135, 78, 0.45);
  box-shadow: 0 20px 40px -10px rgba(233, 107, 53, 0.16), 0 0 0 1px rgba(252, 135, 78, 0.12);
  background: #FFFFFF;
}

.trust-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(252, 135, 78, 0.12);
  border: 1px solid rgba(252, 135, 78, 0.25);
  color: var(--color-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.trust-card:hover .trust-icon-box {
  transform: scale(1.08);
}

.trust-status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trust-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #090D16;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.trust-card-desc {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.trust-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.trust-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trust-card:hover .trust-pill {
  border-color: #CBD5E1;
}

/* ==========================================================================
   16. EDITORIAL VISION & EMPOWERMENT SPLIT SECTIONS (RAPTIVE / PUBHIGH STYLE)
   ========================================================================== */

.editorial-split-section {
  padding: clamp(5.5rem, 9vw, 8.5rem) 0;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}

.editorial-split-section.tinted {
  background: #FAFAF9;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.editorial-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.editorial-split-grid.reverse {
  grid-template-columns: 1fr 1.1fr;
}

@media (max-width: 992px) {
  .editorial-split-grid,
  .editorial-split-grid.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.editorial-split-content {
  max-width: 580px;
}

.editorial-split-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary-border);
  margin-bottom: 1.5rem;
}

.editorial-split-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary-deep);
  box-shadow: 0 0 8px var(--color-primary);
}

.editorial-split-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.038em;
  color: #090D16;
  margin-bottom: 1.75rem;
}

.editorial-serif-italic {
  font-family: 'Playfair Display', 'Newsreader', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  color: #090D16;
  letter-spacing: -0.02em;
  display: inline-block;
  margin-right: 0.12em;
}

.editorial-split-lead {
  font-size: clamp(1.06rem, 1.25vw, 1.2rem);
  line-height: 1.75;
  color: #334155;
  margin-bottom: 2rem;
  font-weight: 400;
}

.editorial-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.25rem;
}

.editorial-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.editorial-split-section.tinted .editorial-feature-pill {
  background: #FFFFFF;
}

.editorial-feature-pill:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(252, 135, 78, 0.12);
}

.editorial-pill-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(233, 107, 53, 0.12);
  color: var(--color-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.editorial-split-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Visual Frame & Vector Overlay ── */
.editorial-split-visual-wrap {
  position: relative;
  width: 100%;
}

.editorial-image-frame {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.05);
  position: relative;
  background: #090D16;
}

.editorial-split-img {
  width: 100%;
  height: clamp(380px, 45vw, 520px);
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-image-frame:hover .editorial-split-img {
  transform: scale(1.035);
}

.editorial-vector-arcs {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 160px;
  height: 160px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.editorial-vector-arcs.arcs-bottom-left {
  top: auto;
  right: auto;
  bottom: -18px;
  left: -18px;
}

.editorial-floating-stat-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(252, 135, 78, 0.3);
  border-radius: 18px;
  padding: 12px 20px;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.14), 0 0 20px rgba(252, 135, 78, 0.16);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  transition: transform 0.3s ease;
}

.editorial-floating-stat-badge:hover {
  transform: translateY(-4px);
}

.editorial-badge-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FC874E, #E96B35);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(233, 107, 53, 0.35);
  flex-shrink: 0;
}

.editorial-badge-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #090D16;
  line-height: 1.2;
}

.editorial-badge-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748B;
}

@media (max-width: 650px) {
  .editorial-floating-stat-badge {
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 10px 14px;
  }
}

/* ==========================================================================
   PUBHIGH ADMIN BLOG EDITOR RESPONSIVE STUDIO & FILTER PILLS
   ========================================================================== */

.filter-pills-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.filter-tab-btn,
.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-decoration: none;
}

.filter-tab-btn:hover,
.filter-pill-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.filter-tab-btn.active,
.filter-pill-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.filter-tab-count,
.pill-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-tab-btn.active .filter-tab-count,
.filter-tab-btn.active .pill-badge,
.filter-pill-btn.active .filter-tab-count,
.filter-pill-btn.active .pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.editor-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
  margin-bottom: 32px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.editor-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1.15fr);
  gap: 24px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.editor-grid-2 > div,
.editor-main-col,
.editor-side-col {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.editor-side-col {
  display: flex;
  flex-direction: column;
}

.wysiwyg-toolbar {
  display: flex;
  gap: 4px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px 12px 0 0;
  padding: 8px 10px;
  flex-wrap: wrap;
  border-bottom: none;
  max-width: 100%;
  box-sizing: border-box;
}

.wysiwyg-btn {
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  cursor: pointer;
  color: #475569;
  transition: all 0.12s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.wysiwyg-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}

.wysiwyg-editor-area {
  min-height: 380px;
  max-height: 650px;
  padding: 20px;
  border: 1px solid #E2E8F0;
  border-radius: 0 0 12px 12px;
  background: #FFFFFF;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #0F172A;
  outline: none;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.wysiwyg-editor-area * {
  max-width: 100%;
  box-sizing: border-box;
}

.wysiwyg-editor-area pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: #090D16;
  color: #E2E8F0;
  padding: 16px;
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.84rem;
  margin: 14px 0;
  box-sizing: border-box;
}

.wysiwyg-editor-area table {
  display: block;
  max-width: 100%;
  width: 100% !important;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 16px 0;
  box-sizing: border-box;
}

.wysiwyg-editor-area th, .wysiwyg-editor-area td {
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
  font-size: 0.85rem;
}

.wysiwyg-editor-area img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.editor-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #94A3B8;
  max-width: 100%;
  box-sizing: border-box;
}

.preset-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  box-sizing: border-box;
}

.preset-thumb {
  width: 60px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.preset-thumb:hover {
  transform: translateY(-2px);
  border-color: #FFB08C;
}

.preset-thumb.selected {
  border-color: #FC874E;
  box-shadow: 0 0 0 2px rgba(252, 135, 78, 0.35);
}

@media (max-width: 1280px) {
  .editor-grid-2 {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 18px;
  }
  .editor-card { padding: 24px; }
}

@media (max-width: 1080px) {
  .editor-grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .editor-card { padding: 20px 16px; border-radius: 16px; }
}

@media (max-width: 640px) {
  .wysiwyg-toolbar { gap: 3px; padding: 6px; }
  .wysiwyg-btn { padding: 5px 8px; font-size: 0.76rem; }
  .wysiwyg-editor-area { min-height: 280px; padding: 14px; font-size: 0.92rem; }
  .editor-card { padding: 16px 12px; }
}

/* ==========================================================================
   LIVE CHAT SUPPORT (WHATSAPP FLOATING WIDGET)
   ========================================================================== */

.whatsapp-support-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1200;
  display: flex;
  align-items: center;
  pointer-events: auto;
  font-family: var(--font-heading, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-chat-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  background: linear-gradient(135deg, rgba(9, 13, 22, 0.94) 0%, rgba(15, 23, 42, 0.97) 100%);
  border: 1px solid rgba(37, 211, 102, 0.38);
  border-radius: 999px;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.45),
              0 4px 14px -2px rgba(37, 211, 102, 0.28),
              inset 0 1px 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  user-select: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: waFloating 3.6s ease-in-out infinite;
}

/* WhatsApp Pulse Radar Waves */
.wa-pulse-wave {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.wa-wave-1 {
  animation: waPulseRing 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.wa-wave-2 {
  animation: waPulseRing 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite 1.4s;
}

@keyframes waPulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    opacity: 0.35;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* Gentle floating idle motion */
@keyframes waFloating {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Icon Core Box */
.wa-icon-box {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5),
              inset 0 1px 2px rgba(255, 255, 255, 0.45);
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wa-svg-icon {
  width: 25px;
  height: 25px;
  fill: #FFFFFF;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

/* Live Status Indicator Dot */
.wa-online-status {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.wa-status-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #22C55E;
  opacity: 0.8;
  animation: waPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.wa-status-core {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #22C55E;
  border: 1.5px solid #090D16;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
}

@keyframes waPing {
  75%, 100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

/* Text Content Styling */
.wa-text-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-right: 4px;
  z-index: 1;
}

.wa-text-header {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  margin-bottom: 3px;
}

.wa-online-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4ADE80;
}

.wa-sub-tag {
  font-size: 0.64rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

.wa-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

/* Hover, Focus, & Active States */
.whatsapp-chat-btn:hover {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border-color: rgba(37, 211, 102, 0.7);
  box-shadow: 0 14px 38px -4px rgba(0, 0, 0, 0.55),
              0 6px 20px -2px rgba(37, 211, 102, 0.45),
              inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-5px) scale(1.03);
  animation-play-state: paused;
}

.whatsapp-chat-btn:hover .wa-icon-box {
  transform: scale(1.1) rotate(5deg);
}

.whatsapp-chat-btn:hover .wa-svg-icon {
  animation: waWiggle 0.6s ease;
}

@keyframes waWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.whatsapp-chat-btn:active {
  transform: translateY(-1px) scale(0.97);
}

/* Drawer open handling */
body.drawer-open .whatsapp-support-widget,
.mobile-nav-drawer.is-open ~ .whatsapp-support-widget {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .whatsapp-support-widget {
    bottom: max(18px, env(safe-area-inset-bottom, 18px));
    right: max(16px, env(safe-area-inset-right, 16px));
    z-index: 1200;
  }

  .whatsapp-chat-btn {
    padding: 7px 14px 7px 7px;
    gap: 10px;
    box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.5),
                0 4px 12px -2px rgba(37, 211, 102, 0.35);
  }

  .wa-icon-box {
    width: 40px;
    height: 40px;
  }

  .wa-pulse-wave {
    top: 7px;
    left: 7px;
    width: 40px;
    height: 40px;
  }

  .wa-svg-icon {
    width: 22px;
    height: 22px;
  }

  .wa-title {
    font-size: 0.84rem;
  }

  .wa-online-label {
    font-size: 0.64rem;
  }

  .wa-sub-tag {
    display: none;
  }
}

@media (max-width: 420px) {
  .whatsapp-support-widget {
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    right: max(12px, env(safe-area-inset-right, 12px));
  }
  
  .whatsapp-chat-btn {
    padding: 6px 12px 6px 6px;
    gap: 8px;
  }

  .wa-title {
    font-size: 0.80rem;
  }
}
