/* ==========================================================================
   SOURCING — Complete Master Enterprise Design System
   ========================================================================== */

:root {
  /* Brand Mint / Teal Tokens */
  --teal-primary: #00A699;
  --teal-dark: #00877C;
  --teal-light: #E6F7F5;
  --teal-border: #B2E5E0;

  /* Light Mode Palette */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-panel: #F1F5F9;
  --border-color: #E2E8F0;
  --text-main: #0F172A;
  --text-body: #475569;
  --text-muted: #94A3B8;

  /* Semantic Alerts */
  --status-approved-bg: #ECFDF5;
  --status-approved-text: #059669;
  --status-pending-bg: #FFFBEB;
  --status-pending-text: #D97706;
  --status-rejected-bg: #FEF2F2;
  --status-rejected-text: #DC2626;

  /* Broad Widescreen Bounds */
  --container-max: 1440px;
  --container-pad: clamp(20px, 3vw, 48px);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px -10px rgba(15, 23, 42, 0.14);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-page: #090E17;
  --bg-card: #111827;
  --bg-panel: #1A2234;
  --border-color: #2D3748;
  --text-main: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #64748B;
  --teal-light: rgba(0, 166, 153, 0.15);
  --teal-border: rgba(0, 166, 153, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Widescreen Container */
.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

section { padding: clamp(64px, 7vw, 100px) 0; }
.section-alt {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Scroll Progress Indicator */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--teal-primary);
  transition: width 0.1s ease-out;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--text-main);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; }
p { font-size: 1.05rem; margin-bottom: 20px; }
p.text-col { max-width: 65ch; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-primary);
  background: var(--teal-light);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

/* Primary Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}
[data-theme="dark"] .site-header {
  background: rgba(9, 14, 23, 0.92);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--text-main); text-decoration: none; }
.brand .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--teal-primary); color: #FFF; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--text-body); font-weight: 600; font-size: 0.92rem; transition: color 0.2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal-primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Dark / Light Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s;
}
.theme-toggle-btn:hover { transform: scale(1.08); }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: inline-block; }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); height: 100vh; background: var(--bg-card); flex-direction: column; align-items: flex-start; padding: 80px 24px; gap: 20px; transform: translateX(100%); transition: transform 0.3s; z-index: 150; }
  .main-nav.is-open { transform: translateX(0); }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; border: none; background: transparent; cursor: pointer; z-index: 200; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-main); transition: all 0.2s; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 140; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  cursor: pointer; transition: all 0.2s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--teal-primary); color: #FFF; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-card); color: var(--text-main); border-color: var(--border-color); }
.btn-secondary:hover { background: var(--bg-panel); border-color: var(--text-muted); }
.btn-large { padding: 14px 28px; font-size: 1rem; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-row.center { justify-content: center; }

/* Status Badges */
.badge-status-approved { font-size: 0.7rem; font-weight: 700; background: var(--status-approved-bg); color: var(--status-approved-text); padding: 3px 8px; border-radius: 99px; }
.badge-status-pending  { font-size: 0.7rem; font-weight: 700; background: var(--status-pending-bg);  color: var(--status-pending-text);  padding: 3px 8px; border-radius: 99px; }
.badge-status-rejected { font-size: 0.7rem; font-weight: 700; background: var(--status-rejected-bg); color: var(--status-rejected-text); padding: 3px 8px; border-radius: 99px; }
.badge-pill { font-size: 0.75rem; font-weight: 700; background: var(--teal-light); color: var(--teal-primary); padding: 3px 8px; border-radius: 99px; }

/* ==========================================================================
   1. HERO SECTION & 10-PROFILE WORKBENCH
   ========================================================================== */
.hero {
  background: radial-gradient(circle at 80% 20%, var(--teal-light) 0%, transparent 55%);
  padding-top: 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.hero-metrics-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.metric-item strong { display: block; font-size: 1.25rem; color: var(--text-main); font-weight: 800; }
.metric-item span { font-size: 0.8rem; color: var(--text-muted); }
.metric-divider { width: 1px; height: 32px; background: var(--border-color); }

/* Browser Window Frame */
.browser-window {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  background: #0F172A;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.browser-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.browser-address {
  background: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 4px;
  flex-grow: 1;
  /*max-width: 320px;*/
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-carousel-pacing {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-primary);
  background: rgba(0, 166, 153, 0.2);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.browser-viewport {
  display: grid;
  grid-template-columns: 1fr 310px;
  height: 520px;
  background: var(--bg-panel);
}
@media (max-width: 860px) {
  .browser-viewport { grid-template-columns: 1fr; height: auto; }
}

/* Simulated LinkedIn View */
.sim-profile {
  background: var(--bg-card);
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
  transition: opacity 0.2s ease;
}
.profile-header-art { height: 75px; background: linear-gradient(135deg, #0A66C2, #004182); }
.profile-details { padding: 0 16px 16px; position: relative; }
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: #1E293B; color: #FFF;
  border: 3px solid var(--bg-card); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: -28px; margin-bottom: 8px;
}
.profile-title { font-size: 0.85rem; color: var(--text-body); margin-bottom: 2px; }
.profile-location { font-size: 0.75rem; color: var(--text-muted); }
.teal-link { color: var(--teal-primary); font-weight: 600; }
.profile-tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 10px 0; }
.tag { font-size: 0.68rem; padding: 2px 6px; border-radius: 4px; background: var(--bg-panel); color: var(--text-body); border: 1px solid var(--border-color); }
.profile-section { margin-top: 14px; border-top: 1px solid var(--border-color); padding-top: 10px; }
.profile-section h5 { font-size: 0.78rem; margin-bottom: 4px; }
.exp-block strong { font-size: 0.78rem; display: block; color: var(--text-main); }
.exp-date { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px; }
.exp-desc { font-size: 0.75rem; color: var(--text-body); margin: 0; line-height: 1.4; }

/* Sourcing Extension Docked UI */
.sim-extension {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  font-size: 0.8rem;
  overflow-y: auto;
}
.ext-topbar {
  padding: 10px 12px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ext-logo { display: flex; align-items: center; gap: 8px; }
.ext-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--teal-primary); color: #FFF;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.ext-logo strong { font-size: 0.8rem; color: var(--text-main); display: block; line-height: 1; }
.ext-logo small { font-size: 0.65rem; color: var(--text-muted); }
.ext-badge-active {
  font-size: 0.6rem; font-weight: 700;
  background: var(--status-approved-bg); color: var(--status-approved-text);
  padding: 2px 6px; border-radius: 99px;
}
.ext-content { padding: 12px; display: grid; gap: 10px; }
.ext-field label { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 3px; }
.ext-url-preview {
  background: var(--bg-panel); border: 1px solid var(--border-color);
  padding: 5px 8px; border-radius: 4px; font-size: 0.7rem; color: var(--text-body);
}

.ext-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ext-btn {
  padding: 8px; border-radius: var(--radius-sm); font-weight: 700;
  border: none; cursor: pointer; transition: all 0.2s; font-size: 0.82rem;
}
.btn-yes { background: var(--teal-primary); color: #FFF; }
.btn-yes:hover { background: var(--teal-dark); }
.btn-no { background: var(--bg-panel); color: var(--text-body); border: 1px solid var(--border-color); }
.btn-no:hover { background: var(--status-rejected-bg); color: var(--status-rejected-text); }

.ext-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ext-stat-card {
  background: var(--bg-panel); border: 1px solid var(--border-color);
  padding: 5px 8px; border-radius: 4px; text-align: center;
}
.stat-title { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); display: block; }
.stat-value { font-size: 1.1rem; font-weight: 800; color: var(--text-main); }

.ext-campaign-box { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 8px; border-radius: 4px; }
.ext-campaign-box strong { font-size: 0.75rem; color: var(--text-main); display: block; margin-bottom: 4px; }
.ext-progress-track { height: 5px; background: var(--border-color); border-radius: 99px; overflow: hidden; }
.ext-progress-bar { height: 100%; background: var(--teal-primary); transition: width 0.3s; }
.ext-progress-lbl { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; display: block; }

.ext-criteria-wrap { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 8px; border-radius: 4px; }
.criteria-header { font-size: 0.65rem; font-weight: 800; color: var(--text-body); margin-bottom: 6px; }
.criteria-item { margin-bottom: 6px; }
.criteria-item label { font-size: 0.62rem; font-weight: 700; color: var(--text-main); margin-bottom: 2px; display: block; }
.criteria-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pill { font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; background: var(--teal-light); color: var(--teal-primary); font-weight: 600; }

.ext-feedback {
  display: none; padding: 8px; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; text-align: center;
  animation: fadeIn 0.2s ease-in;
}
.ext-feedback.success { background: var(--status-approved-bg); color: var(--status-approved-text); display: block; }
.ext-feedback.rejected { background: var(--status-rejected-bg); color: var(--status-rejected-text); display: block; }
.ext-feedback.collision { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; display: block; }

/* 2. Problem Section */
.problem-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.problem-icon { font-size: 1.5rem; margin-bottom: 16px; }
.problem-card h3 { color: var(--text-main); margin-bottom: 12px; }
.problem-card p { color: var(--text-body); font-size: 0.95rem; margin: 0; }

/* 3. Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-card.highlighted { border-color: var(--teal-primary); box-shadow: 0 0 0 1px var(--teal-primary); }
.pillar-step { font-size: 0.75rem; font-weight: 800; color: var(--teal-primary); background: var(--teal-light); padding: 3px 8px; border-radius: 99px; display: inline-block; margin-bottom: 14px; }
.pillar-features { list-style: none; margin-top: 20px; display: grid; gap: 8px; }
.pillar-features li { font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.pillar-features li::before { content: "✓"; color: var(--teal-primary); font-weight: 800; }

/* 4. Talent Recycling Split Section */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 960px) { .feature-split { grid-template-columns: 1fr; gap: 40px; } }
.feature-bullet-group { display: grid; gap: 18px; margin: 24px 0; }
.bullet-item strong { font-size: 1.05rem; color: var(--text-main); display: block; margin-bottom: 4px; }
.bullet-item p { margin: 0; font-size: 0.92rem; }

.mockup-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; }
.mockup-card-head { padding: 12px 16px; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.mockup-card-body { padding: 20px; display: grid; gap: 16px; }

.dup-alert-box { background: var(--bg-panel); border: 1px solid var(--border-color); padding: 14px; border-radius: var(--radius-sm); }
.dup-alert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dup-alert-text { font-size: 0.8rem; color: var(--text-body); margin-bottom: 8px; }
.dup-meter-wrap { height: 4px; background: var(--border-color); border-radius: 99px; overflow: hidden; }
.dup-meter-fill { height: 100%; background: #EF4444; }

.recycled-list { display: grid; gap: 8px; }
.recycled-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: var(--bg-panel); border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
.recycled-item strong { font-size: 0.82rem; color: var(--text-main); }
.meta-sub { font-size: 0.72rem; color: var(--text-muted); display: block; }

/* 5. Team Calibration Section */
.calibration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; }
.cal-stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.cal-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 4px; }
.cal-value { font-size: 2.2rem; font-weight: 800; color: var(--text-main); line-height: 1.1; margin-bottom: 6px; }
.cal-sub { font-size: 0.78rem; color: var(--text-body); }

.dashboard-table-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.table-card-head { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: left; }
.data-table th { padding: 12px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-weight: 600; font-size: 0.72rem; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-body); }
.num-approved { color: var(--status-approved-text); font-weight: 700; }
.num-rejected { color: var(--status-rejected-text); font-weight: 700; }

/* 6. Interactive Sandbox Tour */
.sandbox-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; margin-top: 40px; }
.sandbox-tabs { display: flex; background: var(--bg-panel); border-bottom: 1px solid var(--border-color); overflow-x: auto; }
.s-tab { padding: 16px 24px; border: none; background: transparent; font-weight: 600; font-size: 0.92rem; color: var(--text-body); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.s-tab.active { background: var(--bg-card); color: var(--teal-primary); border-bottom-color: var(--teal-primary); }

.s-view { display: none; padding: clamp(20px, 4vw, 36px); }
.s-view.active { display: block; }

.control-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.control-pill-group { display: flex; gap: 6px; background: var(--bg-panel); padding: 4px; border-radius: 99px; }
.view-pill { font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 99px; cursor: pointer; color: var(--text-body); border: none; background: transparent; }
.view-pill.active { background: var(--bg-card); color: var(--text-main); box-shadow: var(--shadow-sm); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi-card { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px; }
.kpi-label { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 4px; }
.kpi-value { font-size: 1.8rem; font-weight: 800; color: var(--text-main); line-height: 1.1; }
.kpi-sub { font-size: 0.72rem; color: var(--text-muted); }

/* QA Simulator View */
.qa-simulator-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .qa-simulator-grid { grid-template-columns: 1fr; } }
.qa-candidate-info { background: var(--bg-panel); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 24px; }
.qa-target-tag { font-size: 0.75rem; color: var(--text-muted); margin-left: 8px; }
.qa-candidate-info h4 { margin-top: 12px; font-size: 1.2rem; }
.qa-profile-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.qa-check-list { display: grid; gap: 8px; margin-bottom: 20px; }
.check-item { font-size: 0.85rem; color: var(--text-body); display: flex; align-items: center; gap: 8px; }
.c-icon { width: 18px; height: 18px; border-radius: 50%; background: var(--status-approved-bg); color: var(--status-approved-text); display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 800; }
.c-icon.warn { background: var(--status-pending-bg); color: var(--status-pending-text); }
.qa-tip { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.qa-floating-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); overflow: hidden; }
.widget-header { background: var(--bg-panel); padding: 10px 14px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.8rem; color: var(--text-main); }
.widget-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-approved-text); }
.widget-body { padding: 16px; display: grid; gap: 14px; }
.widget-label { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 6px; }
.rating-pills { display: flex; gap: 6px; }
.r-pill { flex: 1; height: 38px; border-radius: var(--radius-sm); border: none; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
.pill-1 { background: #FCA5A5; color: #991B1B; }
.pill-2 { background: #FED7AA; color: #9A3412; }
.pill-3 { background: #FEF08A; color: #854D0E; }
.pill-4 { background: #BBF7D0; color: #166534; }
.pill-5 { background: var(--teal-primary); color: #FFF; }
.r-pill:hover, .r-pill.selected { transform: scale(1.08); outline: 2px solid var(--text-main); }
.widget-field textarea { width: 100%; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: var(--radius-sm); padding: 8px; font: inherit; font-size: 0.8rem; }
.widget-status { font-size: 0.75rem; color: var(--text-body); font-weight: 600; }

/* 7. Final Conversion Section */
.final-cta-section { background: var(--bg-page);  }
.final-cta-box {
  background: #0F172A;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 80px) 24px;
  text-align: center;
  color: #FFF;
}
.final-cta-box h2 { color: #FFF; max-width: 24ch; margin: 0 auto 16px; }
.final-cta-box p { color: #94A3B8; max-width: 60ch; margin: 0 auto 32px; }

/* Site Footer */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border-color); color: var(--text-body); padding: 28px 0 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--border-color); }
.footer-brand p { max-width: 320px; margin-top: 12px; color: var(--text-muted); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-nav h4 { color: var(--text-main); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.footer-nav ul { list-style: none; display: grid; gap: 10px; }
.footer-nav a { text-decoration: none; color: var(--text-body); font-size: 0.9rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--teal-primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 0.8rem; color: var(--text-muted); }

.skip-link { position: absolute; left: -999px; background: var(--teal-primary); color: #fff; padding: 10px; z-index: 1000; }
.skip-link:focus { left: 16px; top: 16px; }

/* ==========================================================================
   PINNED SCROLL SHOWCASE STYLES
   ========================================================================== */

.sticky-features-section {
  padding: 80px 0 120px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pinned-showcase-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .pinned-showcase-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.pinned-steps-col {
  display: flex;
  flex-direction: column;
}

.scroll-step {
  padding: 60px 0;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.25;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
}

.scroll-step.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-step h3 {
  font-size: 1.8rem;
  color: var(--text-main);
  margin: 14px 0;
  line-height: 1.25;
}

.scroll-step p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
}

.pinned-visual-col {
  position: sticky;
  top: 140px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .pinned-visual-col {
    position: static;
    height: auto;
  }
}

.sticky-visual-box {
  width: 100%;
  position: relative;
}

.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) translateY(15px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.45s ease;
}

@media (max-width: 900px) {
  .stage-card { position: relative; display: none; }
  .stage-card.active { display: block; }
}

.stage-card.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   FIXED VIEWPORT & HIDDEN SCROLLBAR APP CONSOLE STYLES
   ========================================================================== */

.page-hero-compact {
  padding: 36px 0 16px;
  background: radial-gradient(circle at 80% 20%, var(--teal-light) 0%, transparent 50%);
}

.admin-app-section {
  padding: 10px 0 40px;
  background: var(--bg-page);
}

.app-fullscreen-wrapper {
  width: 98vw;
  max-width: 1540px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 86vh;
  min-height: 720px;
  max-height: 880px;
}

.app-browser-bar {
  background: #0F172A;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.app-canvas-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex-grow: 1;
  background: var(--bg-page);
  overflow: hidden;
}

@media (max-width: 1080px) {
  .app-canvas-grid { grid-template-columns: 1fr; }
}

.custom-scroll-hidden {
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.custom-scroll-hidden::-webkit-scrollbar {
  display: none !important;
}

.app-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  height: 100%;
}

.app-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 18px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.app-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #00A699;
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.app-brand-row strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.1;
}
.app-brand-row small {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.app-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  flex-grow: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}
.nav-item:hover { background: var(--bg-panel); color: var(--text-main); }
.nav-item.active { background: var(--teal-light); color: var(--teal-primary); font-weight: 700; }
.nav-svg { width: 16px; height: 16px; stroke-width: 2.2; }

.app-sidebar-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.signout-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
}

.app-main-viewport {
  padding: 24px 32px 60px;
  position: relative;
  background: var(--bg-page);
  height: 100%;
}

.app-module-view { display: none; }
.app-module-view.active { display: block; animation: fadeIn 0.18s ease-in; }

.module-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.module-header-row h1 { font-size: 1.55rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.module-header-row p { font-size: 0.88rem; color: var(--text-body); margin: 0; }

.module-header-filters { display: flex; gap: 10px; }
.app-select-pill {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.app-subtab-strip {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  width: fit-content;
  margin-bottom: 20px;
}
.app-subtab-btn {
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.app-subtab-btn.active { background: #0F172A; color: #FFFFFF; }

.dash-subview { display: none; }
.dash-subview.active { display: block; }

.app-kpi-5row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 1200px) { .app-kpi-5row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .app-kpi-5row { grid-template-columns: 1fr; } }

.app-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.kpi-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.kpi-label { font-size: 0.65rem; font-weight: 700; color: var(--text-body); letter-spacing: 0.04em; }
.kpi-icon-pill { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.kpi-icon-pill.teal   { background: #E6F7F5; color: #00A699; }
.kpi-icon-pill.orange { background: #FEF3C7; color: #D97706; }
.kpi-icon-pill.blue   { background: #EFF6FF; color: #2563EB; }
.kpi-icon-pill.green  { background: #ECFDF5; color: #059669; }
.kpi-icon-pill.red    { background: #FEF2F2; color: #EF4444; }

.kpi-number { font-size: 1.8rem; font-weight: 800; color: var(--text-main); line-height: 1.1; margin-bottom: 4px; }
.kpi-foot { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

.app-twin-graphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .app-twin-graphs { grid-template-columns: 1fr; } }

.app-chart-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px;
}
.chart-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chart-panel-top h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin: 0; }
.app-badge-light { font-size: 0.68rem; font-weight: 700; background: var(--bg-panel); color: var(--teal-primary); padding: 2px 8px; border-radius: 99px; }

.chart-legend-top {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.72rem;
  color: var(--text-body);
  margin-bottom: 14px;
}
.chart-legend-top span { display: flex; align-items: center; gap: 6px; }
.legend-sq { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.legend-sq.teal { background: #00A699; }
.legend-sq.grey { background: #CBD5E1; }
.legend-sq.dark-green { background: #047857; }
.legend-sq.light-grey { background: #E2E8F0; }

.chart-canvas-area { display: grid; grid-template-columns: 28px 1fr; height: 160px; }
.chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.68rem; color: var(--text-muted); padding-bottom: 22px; }
.chart-bars-wrap { position: relative; border-bottom: 1px solid var(--border-color); padding-bottom: 22px; }
.grid-dashed { position: absolute; left: 0; right: 0; height: 1px; border-bottom: 1px dashed var(--border-color); }

.bars-container {
  position: absolute;
  inset: 0 0 22px 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}
.bar-col { display: flex; flex-direction: column; align-items: center; position: relative; }
.bar-stack { width: 14px; display: flex; flex-direction: column; justify-content: flex-end; }
.seg-teal { background: #00A699; border-radius: 2px 2px 0 0; }
.seg-grey { background: #CBD5E1; border-radius: 2px 2px 0 0; }
.day-lbl { position: absolute; bottom: -20px; font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; }

.app-panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px;
}
.panel-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-box-head h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); margin: 0; }

.app-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.app-table th { padding: 8px 12px; color: var(--text-muted); font-size: 0.68rem; font-weight: 700; border-bottom: 1px solid var(--border-color); text-align: left; }
.app-table td { padding: 12px; border-bottom: 1px solid var(--border-color); color: var(--text-main); }

.app-search-input { padding: 6px 12px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: 6px; font-size: 0.8rem; outline: none; }
.app-select-action { padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); font-size: 0.75rem; outline: none; cursor: pointer; }

/* CRUD Transitions */
.crud-view-list { display: none; }
.crud-view-list.active { display: block; animation: fadeIn 0.18s ease-in; }

.crud-view-form { display: none; }
.crud-view-form.active { display: block; animation: fadeIn 0.18s ease-in; }

.crud-back-link { font-size: 0.8rem; font-weight: 700; color: var(--teal-primary); text-decoration: none; display: inline-block; margin-bottom: 8px; }
.crud-back-link:hover { text-decoration: underline; }

.app-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  max-width: 640px;
}
.form-field-group { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-field-group label { font-size: 0.68rem; font-weight: 700; color: var(--text-body); letter-spacing: 0.04em; margin-bottom: 6px; }
.app-input-full {
  width: 100%; padding: 8px 12px; border-radius: 6px;
  border: 1px solid var(--border-color); background: var(--bg-card);
  color: var(--text-main); font-size: 0.82rem; outline: none;
}
.app-input-full:focus { border-color: var(--teal-primary); box-shadow: 0 0 0 3px rgba(0, 166, 153, 0.12); }
.field-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.form-actions-row { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border-color); }

.app-floating-tour {
  position: absolute;
  right: 28px;
  bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 10;
}

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

/* ==========================================================================
   QA EXTENSION REFINED WIDGET & WORKBENCH STYLES
   ========================================================================== */

.qa-workbench-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 40px;
}

.qa-workbench-top {
  background: #0F172A;
  color: #FFF;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.qa-proj-info strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.qa-proj-info .meta-sub {
  color: var(--teal-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.qa-counter-strip {
  display: flex;
  gap: 18px;
}
.qa-mini-stat {
  text-align: right;
}
.qa-mini-stat span {
  display: block;
  font-size: 0.62rem;
  color: #94A3B8;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.qa-mini-stat strong {
  font-size: 1.15rem;
  color: #FFF;
  font-weight: 800;
}

.qa-workbench-body {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  background: var(--bg-panel);
}
@media (max-width: 900px) {
  .qa-workbench-body { grid-template-columns: 1fr; }
}

.qa-candidate-stage {
  padding: 32px;
  border-right: 1px solid var(--border-color);
  background: var(--bg-card);
}

.candidate-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}
.candidate-headline {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 2px;
}
.candidate-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.qa-criteria-checklist h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.criteria-check-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.c-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.c-bullet.green { background: var(--status-approved-bg); color: var(--status-approved-text); }
.c-bullet.warn  { background: var(--status-pending-bg);  color: var(--status-pending-text); }
.c-bullet.red   { background: var(--status-rejected-bg); color: var(--status-rejected-text); }

.criteria-check-row strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}
.criteria-check-row p {
  font-size: 0.82rem;
  color: var(--text-body);
  margin: 0;
}

.qa-widget-stage {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
}

.widget-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.step-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-primary);
}

.widget-nav-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.qa-workbench-footer {
  padding: 14px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
/* ==========================================================================
   REFINED CONTACT PAGE STYLES
   ========================================================================== */

.segmented-pill-selector {
  display: flex;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 8px;
}
.seg-pill-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.seg-pill-btn.active {
  background: var(--bg-card);
  color: var(--teal-primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.contact-success-state {
  background: var(--status-approved-bg);
  border: 1px solid var(--teal-primary);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
  animation: fadeIn 0.25s ease-in;
}
.success-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-primary);
  color: #FFF;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.contact-success-state h4 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.contact-success-state p {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: 12px;
}
.calendar-hold-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  text-align: left;
}
.cal-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal-primary);
  display: block;
  margin-bottom: 4px;
}
.calendar-hold-box p {
  font-size: 0.78rem;
  color: var(--text-body);
  margin: 0;
}

.direct-support-strip {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.support-lbl {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.support-val {
  font-size: 0.8rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}
.support-val:hover {
  color: var(--teal-primary);
}

/* ==========================================================================
   SURGICAL FIXES — PRESERVING WIDTHS & FIXING BROKEN OVERFLOWS
   ========================================================================== */

/* 1. Grid blowout prevention (bina widths badle content ko constrain karta hai) */
.hero-grid > *,
.app-canvas-grid > *,
.qa-workbench-body > *,
.pinned-showcase-wrap > *,
.app-twin-graphs > *,
.app-kpi-5row > * {
  min-width: 0;
}

/* 2. Admin Tables: Container ke bahar na nikle */
.app-panel-box {
  overflow-x: auto;
  max-width: 100%;
}
.app-table {
  width: 100%;
  white-space: nowrap;
}
.app-table td, 
.app-table th {
  vertical-align: middle;
}

/* 3. Text & URL overflow protection inside preview widgets */
.ext-url-preview,
.browser-address span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* 4. Pinned Scroll Showcase stage-card stability (Jumping fix) */
.pinned-visual-col {
  min-height: 480px;
}
.sticky-visual-box {
  position: relative;
  min-height: 460px;
}
.stage-card {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
}
.stage-card.active {
  position: absolute !important;
  z-index: 2;
  opacity: 1;
  visibility: visible;
}
@media (max-width: 900px) {
  .stage-card {
    position: relative !important;
  }
}

/* 5. MISSING CONTACT PAGE STYLES (Jo CSS mein gayab the) */
.contact-section {
  padding: 40px 0 90px;
}
.contact-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .contact-split-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-sm);
}
.form-card-header {
  margin-bottom: 24px;
}
.form-card-header h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.form-card-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.enterprise-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row-2col {
    grid-template-columns: 1fr;
  }
}

.form-privacy-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.info-feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.info-feature-box h3 {
  font-size: 1.25rem;
  margin: 12px 0 8px;
}
.info-feature-box p {
  font-size: 0.9rem;
  color: var(--text-body);
}

.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.agenda-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-primary);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agenda-step strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 2px;
}
.agenda-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.trust-pill-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trust-badge-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust-badge-item .badge-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.trust-badge-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}
.trust-badge-item small {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.4;
}
/* --- QA HERO & RATING PILL FIXES --- */

/* 1. Page hero ko proper gradient aur padding dega */
.page-hero {
  background: radial-gradient(circle at 80% 20%, var(--teal-light) 0%, transparent 55%);
  padding-top: 48px;
}

/* 2. Rating numbers (1, 2, 3, 4, 5) ko perfectly center karega */
.r-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* 3. Hero card ke khaali space ko khatam karega aur content ko snug fit karega */
.hero-visual .browser-viewport {
  height: auto !important;
  min-height: auto !important;
}

.hero-visual .sim-profile,
.hero-visual .sim-extension {
  height: auto !important;
  overflow: visible !important;
}

/* ==========================================================================
   PRODUCTION UPGRADE: 19 ADVANCED UI/UX & ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* 1. Universal Accessibility & Focus-Visible States */
:focus-visible {
  outline: 2px solid var(--teal-primary) !important;
  outline-offset: 3px !important;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 166, 153, 0.25) !important;
}

/* 2. Floating Action Buttons (Scroll-to-Top & Floating Contact) */
.scroll-top-btn {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 850;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--teal-primary);
  color: #FFF;
  border-color: var(--teal-primary);
  transform: translateY(-2px);
}

.floating-contact-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--teal-primary);
  color: #FFF;
  padding: 10px 18px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 166, 153, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 860;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.floating-contact-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 166, 153, 0.45);
  color: #FFF;
}
.fab-ping-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 3. Skeleton Loading Shimmers & Spinners */
.skeleton-box {
  background: linear-gradient(90deg, var(--bg-panel) 25%, var(--border-color) 50%, var(--bg-panel) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 4. Full-Site Search Modal (Cmd+K) */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.search-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.search-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-16px) scale(0.98);
  transition: all 0.25s ease;
}
.search-modal-backdrop.is-open .search-modal-card {
  transform: translateY(0) scale(1);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}
.search-input-field {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  color: var(--text-main);
  outline: none;
}
.search-shortcut-pill {
  font-size: 0.7rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}
.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  list-style: none;
  padding: 8px;
  display: grid;
  gap: 4px;
}
.search-result-item a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.15s ease;
}
.search-result-item a:hover, .search-result-item a.is-focused {
  background: var(--teal-light);
  color: var(--teal-primary);
}
.search-result-title {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
}
.search-result-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 5. Accessible Expandable FAQ Accordion */
.faq-accordion {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 32px auto 0;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item.is-open {
  border-color: var(--teal-primary);
}
.faq-trigger {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}
.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
  color: var(--teal-primary);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}
.faq-panel {
  padding: 0 22px 18px;
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.6;
  display: none;
}
.faq-item.is-open .faq-panel {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

/* 6. Newsletter Component with Client Validation Feedback */
.newsletter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  max-width: 600px;
  margin: 40px auto 0;
  box-shadow: var(--shadow-sm);
}
.newsletter-form-inline {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 540px) {
  .newsletter-form-inline { flex-direction: column; }
}
.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-main);
  outline: none;
}
.newsletter-feedback {
  font-size: 0.8rem;
  margin-top: 8px;
  display: none;
}
.newsletter-feedback.is-error {
  color: var(--status-rejected-text);
  display: block;
}
.newsletter-feedback.is-success {
  color: var(--status-approved-text);
  display: block;
}

/* 7. Code Block Copy Buttons */
.code-block-wrapper {
  position: relative;
  margin: 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.code-copy-btn:hover {
  background: var(--teal-primary);
  border-color: var(--teal-primary);
}

/* 8. Confirmation Modal Dialog */
.confirm-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.confirm-dialog-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.confirm-dialog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* 9. Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 0.82rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
}

/* 10. Semantic Date/Time Tags */
time.post-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 11. Comprehensive Print Stylesheet */
@media print {
  body {
    background: #FFF !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.4;
  }
  .site-header,
  .site-footer,
  .scroll-progress-track,
  .scroll-top-btn,
  .floating-contact-btn,
  .cookie-banner,
  .search-modal-backdrop,
  .theme-toggle-btn,
  .nav-toggle,
  .final-cta-section {
    display: none !important;
  }
  .wrap {
    max-width: 100% !important;
    padding: 0 !important;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #444;
  }
}

/* Modern Header Icon Buttons */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover {
  background: var(--bg-panel);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.theme-icon-sun {
  display: block;
  stroke: var(--text-main);
}
.theme-icon-moon {
  display: none;
  stroke: var(--text-main);
}

/* Dark Mode State Switching */
[data-theme="dark"] .theme-icon-sun {
  display: none;
}
[data-theme="dark"] .theme-icon-moon {
  display: block;
}

/* Sleek 1-Line Footer Newsletter Bar */
.footer-newsletter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.fn-label {
  color: var(--text-body);
}
.fn-label strong {
  color: var(--text-main);
  margin-right: 4px;
}

.fn-form-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.fn-input {
  padding: 6px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text-main);
  width: 230px;
  outline: none;
}
.fn-input:focus {
  border-color: var(--teal-primary);
}

.fn-form-inline .newsletter-feedback {
  font-size: 0.75rem;
  margin-left: 6px;
  white-space: nowrap;
}
.fn-form-inline .newsletter-feedback.is-error {
  color: var(--status-rejected-text);
}
.fn-form-inline .newsletter-feedback.is-success {
  color: var(--status-approved-text);
  font-weight: 700;
}

/* Public form persistence feedback and theme-native legal pages */
.form-feedback {
  display: none;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.5;
}
.form-feedback:not(:empty) { display: block; }
.form-feedback.is-error { color: var(--status-rejected-text); background: var(--status-rejected-bg); border: 1px solid rgba(220, 38, 38, 0.18); }
.form-feedback.is-success { color: var(--status-approved-text); background: var(--status-approved-bg); border: 1px solid rgba(5, 150, 105, 0.18); }
.form-feedback.is-loading { color: var(--text-body); background: var(--bg-panel); border: 1px solid var(--border-color); }
.form-field-error { min-height: 0; color: var(--status-rejected-text); font-size: 0.75rem; line-height: 1.35; }
.form-field-error:empty { display: none; }
.app-input-full[aria-invalid="true"], .fn-input[aria-invalid="true"] { border-color: var(--status-rejected-text); }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.fn-form-inline { flex-wrap: wrap; }
.fn-form-inline .newsletter-feedback { flex-basis: 100%; margin: 0; white-space: normal; }
.fn-form-inline button:disabled, .enterprise-form button:disabled { opacity: 0.65; cursor: wait; }

.policy-content { max-width: 840px; margin: 0 auto; }
.policy-content h2 { margin: 34px 0 12px; font-size: clamp(1.25rem, 2.3vw, 1.65rem); }
.policy-content h3 { margin: 24px 0 10px; font-size: 1.1rem; }
.policy-content p, .policy-content li { color: var(--text-body); font-size: 0.94rem; line-height: 1.8; }
.policy-content ul, .policy-content ol { padding-left: 1.35rem; margin: 10px 0 18px; }
.policy-content a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.policy-security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.policy-notice { margin: 22px 0; padding: 16px 18px; border-left: 3px solid var(--teal-primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--teal-light); color: var(--teal-dark); font-size: 0.9rem; }
@media (max-width: 650px) {
  .policy-security-grid { grid-template-columns: 1fr; }
  .fn-form-inline { width: 100%; }
  .fn-input { width: 100%; min-width: 0; }
}
