/* ==========================================================================
   ProSim World — Global Profession Simulator Stylesheet
   Optimized for Core Web Vitals (Zero CLS), Dark/Light Themes, and RTL (Arabic)
   ========================================================================== */

:root {
  --bg-primary: #060b19;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-elevated: #1e293b;
  --border-color: rgba(148, 163, 184, 0.18);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --brand-primary: #3b82f6;
  --brand-accent: #38bdf8;
  --brand-glow: rgba(59, 130, 246, 0.35);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 14px 34px -10px rgba(0, 0, 0, 0.55);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

html[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-elevated: #e2e8f0;
  --border-color: rgba(15, 23, 42, 0.12);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --brand-primary: #2563eb;
  --brand-accent: #0284c7;
  --shadow-card: 0 10px 25px -8px rgba(15, 23, 42, 0.12);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(59, 130, 246, 0.12), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(16, 185, 129, 0.09), transparent 28%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-primary);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 25, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
}

.brand-orb {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

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

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-accent {
  color: var(--brand-accent);
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
}

.badge-count {
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.05rem 0.42rem;
  border-radius: 999px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--brand-accent);
  transform: translateY(-1px);
}

.lang-select {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 2.75rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.14);
  color: var(--brand-accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: clamp(1.85rem, 3.3vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.04rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-lg {
  padding: 0.8rem 1.4rem;
  font-size: 0.96rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(14, 165, 233, 0.75);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
}

.btn-accent:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--brand-accent);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-block {
  width: 100%;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-accent);
}

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

/* Hero Live Preview Card */
.hero-preview-card {
  background: #091024;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.preview-header {
  background: #111c38;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.preview-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  margin-inline-start: 0.4rem;
}

#heroRadarCanvas {
  width: 100%;
  height: 220px;
  display: block;
  background: #050a18;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0d162e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.p-metric {
  padding: 0.6rem 0.5rem;
  text-align: center;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
}

.p-metric span {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.p-metric strong {
  font-size: 0.85rem;
  color: #38bdf8;
  font-family: var(--font-mono);
}

/* Search & Sector Filters Toolbar */
.toolbar-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  inset-inline-start: 1rem;
  font-size: 1rem;
  pointer-events: none;
}

#profSearchInput {
  width: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  font-size: 0.95rem;
  font-family: inherit;
}

html[dir="rtl"] #profSearchInput {
  padding: 0.8rem 2.75rem 0.8rem 1rem;
}

#profSearchInput:focus {
  outline: none;
  border-color: var(--brand-accent);
}

.sector-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

/* Professions Grid */
.professions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.prof-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--prof-color, var(--brand-primary));
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.prof-card:hover {
  transform: translateY(-4px);
  border-color: var(--prof-color, var(--brand-accent));
}

.prof-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.prof-icon {
  font-size: 2.25rem;
  background: rgba(255, 255, 255, 0.05);
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prof-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.badge-sector {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--prof-accent, var(--brand-accent));
  background: rgba(59, 130, 246, 0.12);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.badge-diff {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.prof-title {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.prof-title a {
  color: var(--text-primary);
}

.prof-title a:hover {
  color: var(--brand-accent);
}

.prof-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.prof-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  padding: 0.65rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
}

html[data-theme="light"] .prof-meta-grid {
  background: #f8fafc;
}

.meta-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.meta-val {
  font-size: 0.83rem;
  color: var(--text-primary);
}

.prof-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.skill-chip {
  font-size: 0.72rem;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.prof-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.55rem;
}

/* Simulation Workspace & Cockpit */
.sim-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.sim-prof-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sim-prof-icon {
  font-size: 2.3rem;
}

.sim-prof-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.sim-prof-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.sim-mode-controls {
  display: flex;
  gap: 0.4rem;
}

.mode-pill {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.mode-pill.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* 4-KPI Dashboard */
.kpi-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
}

.kpi-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 0.45rem;
}

.kpi-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}

.kpi-fill {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.kpi-fill.accuracy { background: #3b82f6; }
.kpi-fill.safety { background: #10b981; }
.kpi-fill.efficiency { background: #f59e0b; }
.kpi-fill.reputation { background: #8b5cf6; }

/* Two-Column Simulation Grid */
.sim-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.workstation-panel,
.scenario-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
}

.ws-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.ws-live-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.ws-title {
  font-size: 1rem;
  font-weight: 700;
}

#workstationCanvas {
  width: 100%;
  height: 220px;
  background: #040814;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--radius-md);
  display: block;
  margin-bottom: 0.9rem;
}

.ws-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.ws-t-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.ws-t-box span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.ws-t-box strong {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--brand-accent);
}

.ws-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.ws-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--brand-accent);
}

.ws-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.ws-action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.btn-ws {
  background: rgba(56, 189, 248, 0.12);
  color: var(--brand-accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.78rem;
  padding: 0.55rem 0.5rem;
}

.btn-ws:hover:not(:disabled) {
  background: var(--brand-primary);
  color: #fff;
}

.btn-ws:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Scenario Panel */
.scenario-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.step-badge {
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.code-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
}

.timer-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fde047;
  background: rgba(234, 179, 8, 0.18);
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
}

.scenario-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.scenario-context {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border-inline-start: 4px solid var(--brand-accent);
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

.decision-prompt-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.scenario-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-btn {
  width: 100%;
  text-align: start;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--brand-accent);
  background: rgba(59, 130, 246, 0.14);
  transform: translateX(3px);
}

.option-btn.selected-good {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.16);
}

.option-btn.selected-bad {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.16);
}

.option-letter {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  min-width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.scenario-feedback-box {
  margin-top: 1.2rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--brand-accent);
  padding: 1.1rem;
  border-radius: var(--radius-md);
}

html[data-theme="light"] .scenario-feedback-box {
  background: #f8fafc;
}

.fb-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.fb-deltas {
  margin-inline-start: auto;
  display: flex;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.delta-pos { color: #10b981; }
.delta-neg { color: #ef4444; }

.fb-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Shift Result & Certificate Builder */
.shift-result-panel {
  background: var(--bg-card);
  border: 2px solid var(--brand-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  text-align: center;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.grade-orb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #3b82f6);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.5);
}

.cert-builder-box {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.cert-name-input {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  min-width: 280px;
  font-size: 0.95rem;
}

.cert-preview-canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.result-footer-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Daily Challenge, Career Compass, Salary Table, FAQ */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.daily-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.daily-stages-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.daily-stage-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 0.9rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stage-num {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--brand-accent);
}

.stage-icon {
  font-size: 1.65rem;
}

.daily-stage-item small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Career Compass Quiz */
.compass-q-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.compass-q-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.compass-opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.compass-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Salary Encyclopedia Table */
.table-responsive {
  overflow-x: auto;
  margin-top: 1rem;
}

.salary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.salary-table th,
.salary-table td {
  padding: 0.85rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--border-color);
}

.salary-table th {
  background: var(--bg-elevated);
  font-weight: 700;
}

.highlight-salary {
  color: #10b981;
  font-weight: 800;
}

.resilience-pill {
  font-size: 0.78rem;
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
}

.faq-question {
  font-weight: 700;
  cursor: pointer;
}

.faq-answer {
  margin-top: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* AdSense Banner Slot (Zero CLS) */
.ad-container-banner {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin: 1.5rem 0 2rem;
  min-height: 115px;
  text-align: center;
}

.ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-body {
  margin-bottom: 1.25rem;
}

.toast-banner {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  background: #10b981;
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-md);
  z-index: 300;
  box-shadow: var(--shadow-card);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #040814;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0 1.75rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1rem;
}

.lang-pill {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.lang-pill.active,
.lang-pill:hover {
  background: var(--brand-primary);
  color: #fff;
}

.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid,
  .sim-workspace-grid {
    grid-template-columns: 1fr;
  }
  .kpi-dashboard,
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .compass-opt-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .professions-grid {
    grid-template-columns: 1fr;
  }
  .prof-actions,
  .ws-action-buttons {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Google AdSense Program Policies & GDPR/UU PDP Compliance UI Styles
   ========================================================================== */

.contextual-disclaimer-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-inline-start: 4px solid #f59e0b;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.legal-article h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: 0.6rem;
}

.legal-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.legal-list {
  padding-inline-start: 1.4rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 0.75rem;
}

.legal-list li {
  margin-bottom: 0.4rem;
}

.legal-note {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.legal-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-btn-link {
  background: transparent;
  border: none;
  color: var(--brand-accent);
  font-family: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 0;
}

.footer-btn-link:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.footer-disclaimer-bar {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.79rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* GDPR / UU PDP Consent Banner */
.cmp-consent-banner {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 250;
  background: rgba(6, 11, 25, 0.97);
  backdrop-filter: blur(16px);
  border-top: 2px solid var(--brand-accent);
  padding: 1rem 0;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .cmp-consent-banner {
  background: rgba(255, 255, 255, 0.98);
}

.cmp-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cmp-copy {
  flex: 1;
  min-width: 280px;
}

.cmp-copy strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cmp-copy p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.cmp-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}


/* ==========================================================================
   Long-Form E-E-A-T Career Guide, Day-in-the-Life & Interview Prep Styles
   ========================================================================== */

.deep-guide-header {
  margin-bottom: 1.5rem;
}

.deep-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.deep-guide-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.deep-guide-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-accent);
  margin-bottom: 0.9rem;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.timeline-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border-color);
}

.timeline-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #10b981;
}

.timeline-act {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.case-study-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .deep-guide-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PPP Global Net Salary Calculator, Career Comparison Matrix & Verify Card
   ========================================================================== */

.ppp-calc-box {
  background: var(--bg-primary);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin: 1rem 0 1.5rem;
}

.ppp-calc-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.35rem 0;
}

.ppp-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1rem 0;
}

.ppp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.ppp-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.ppp-field .lang-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
}

.ppp-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.ppp-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ppp-metric-card span {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.ppp-metric-card strong {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
}

.ppp-metric-card small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ppp-city-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
}

/* Career Comparison Matrix */
.compare-selector-bar {
  display: flex;
  gap: 0.85rem;
  align-items: flex-end;
  flex-wrap: wrap;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.35rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.compare-col-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--prof-color, #38bdf8);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.compare-col-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.compare-col-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0.2rem;
}

.compare-spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.compare-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.88rem;
}

.compare-spec-row span {
  color: var(--text-secondary);
  min-width: 120px;
}

.compare-spec-row strong {
  text-align: end;
}

.featured-comparisons-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.featured-pairs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.compare-pair-pill {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.compare-pair-pill:hover {
  border-color: var(--brand-accent);
  background: rgba(56, 189, 248, 0.12);
}

/* Public Certificate Verification View */
.verify-credential-card {
  border: 2px solid #10b981;
  text-align: center;
}

.verify-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.35rem 0;
  text-align: start;
}

.verify-stat-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.verify-stat-item span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.verify-stat-item strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.verify-cta-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Embed Code Snippet Box */
.embed-code-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .ppp-controls-grid,
  .ppp-results-grid,
  .compare-grid,
  .verify-badge-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Gamification XP, Daily Streak & Achievement Badges
   ========================================================================== */

.xp-streak-pill {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde047;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.ach-badge-card {
  background: var(--bg-primary);
  border: 1px dashed var(--border-color);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.55;
  transition: all 0.25s ease;
}

.ach-badge-card.unlocked {
  opacity: 1;
  border-style: solid;
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.ach-badge-icon {
  font-size: 1.75rem;
}

.ach-badge-card small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Campus & HR Team Assessment Banner, ATS Bullets & Print Study Guide CSS
   ========================================================================== */

.team-assessment-banner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(56, 189, 248, 0.16));
  border-bottom: 1px solid rgba(16, 185, 129, 0.45);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.team-assessment-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ats-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ats-bullet-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-inline-start: 3px solid #10b981;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

@media print {
  .site-header,
  .site-footer,
  .ad-container-banner,
  .cmp-consent-banner,
  .hero-actions,
  .search-filter-bar,
  .btn,
  .sim-cockpit-grid {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  .seo-guide-card,
  .ppp-calculator-box,
  .compare-col-card,
  .ats-bullet-item {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}
