/* 
========================================================================
   CertifyAI - Core Design System & Styling
   Aesthetic: Premium, Sleek, Minimalist, Adobe Illustrator Grid Style
========================================================================
*/

/* --- Design Tokens --- */
:root {
  --color-primary: #0B3C24;       /* Deep Forest Green (Primary) */
  --color-primary-light: #125434; /* Hover state for primary buttons */
  --color-accent: #10B981;        /* Vibrant Emerald Green */
  --color-bg-base: #FFFFFF;       /* Base Crisp White */
  --color-bg-alt: #F8FAFC;        /* Light slate/off-white background */
  --color-bg-dark: #090B0A;       /* Near-black accent block */
  --color-text: #000000;          /* High contrast pure black text */
  --color-text-muted: #475569;    /* Muted body text */
  --color-border: #000000;        /* Bold Illustrator-style outline */
  --color-border-light: #E2E8F0;  /* Standard clean card borders */
  --color-error: #EF4444;         /* Error state */
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
  
  --container-width: 1200px;
}

/* --- Base & Reset Rules --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-base);
  color: var(--color-text);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.15;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- Grid & Spacing Utilities --- */
.section-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.max-w-3xl { max-width: 768px !important; }
.max-w-2xl { max-width: 650px !important; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.block { display: block; }
.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-alert-red { color: var(--color-error); }

.grid {
  display: grid;
  gap: 2.5rem;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-2-reverse { grid-template-columns: 1.1fr 0.9fr; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0px; /* Sharp corners for technical aesthetic */
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

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

.btn-secondary:hover {
  background-color: var(--color-text);
  color: var(--color-bg-base);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  border-width: 1.5px;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* --- Navigation / Header --- */
.global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.logo-highlight {
  color: var(--color-accent);
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.nav-item {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 0.25rem 0.75rem;
  border-bottom: 2px solid transparent;
  display: inline-block;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon-link {
  color: var(--color-text-muted);
}

.social-icon-link:hover {
  color: var(--color-text);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.menu-close-icon {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-base);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.mobile-nav-drawer.active {
  display: flex;
}

.mobile-nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-item {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  display: block;
}

/* --- Content Views --- */
.view-container {
  display: none;
  flex-grow: 1;
}

.view-container.active {
  display: block;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background-color: var(--color-bg-base);
  color: var(--color-text);
  overflow: hidden;
  padding: 6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-bg-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(11, 60, 36, 0.03) 0%, transparent 50%);
  opacity: 0.8;
}

/* Constellation grid effect */
.hero-bg-network::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(11, 60, 36, 0.05) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.hero-container {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-title {
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.hero-ctas .btn-secondary {
  border-color: var(--color-border);
  color: var(--color-text);
}

.hero-ctas .btn-secondary:hover {
  background-color: var(--color-text);
  color: var(--color-bg-base);
  border-color: var(--color-text);
}

/* --- Ticker / Marquee --- */
.ticker-section {
  background-color: var(--color-bg-dark);
  color: var(--color-bg-base);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  padding: 0.75rem 0;
}

.ticker-wrapper {
  display: flex;
  width: 100%;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  gap: 4rem;
}

.ticker-content span {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Feature Blocks Common --- */
.section-tag {
  display: inline-block;
  color: var(--color-accent);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Technical Panels (Adobe Illustrator style panels) */
.illustrator-grid-panel {
  position: relative;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-base);
  width: 100%;
  aspect-ratio: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Corner Crosshairs */
.grid-crosshair {
  position: absolute;
  width: 10px;
  height: 10px;
}

.grid-crosshair::before, .grid-crosshair::after {
  content: '';
  position: absolute;
  background-color: var(--color-border);
}

.grid-crosshair::before { width: 100%; height: 1px; top: 4.5px; left: 0; }
.grid-crosshair::after { height: 100%; width: 1px; left: 4.5px; top: 0; }

.grid-crosshair.tl { top: -5px; left: -5px; }
.grid-crosshair.tr { top: -5px; right: -5px; }
.grid-crosshair.bl { bottom: -5px; left: -5px; }
.grid-crosshair.br { bottom: -5px; right: -5px; }

.illustration-wrapper {
  width: 100%;
  max-width: 320px;
}

/* Feature 1 Lists */
.feature-bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-bullets li {
  display: flex;
  gap: 1rem;
}

.bullet-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.bullet-text h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.bullet-text p {
  font-size: 0.85rem;
  line-height: 1.35;
}

/* Feature 2 Analytics Panel Mockup */
.dashboard-preview-card {
  border: 1px solid var(--color-border);
  width: 100%;
  background-color: var(--color-bg-base);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.db-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.db-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.db-badge {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
}

/* --- Value Proposition Section --- */
.value-prop-section {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.value-prop-header {
  margin-bottom: 4rem;
}

.sub-heading-row {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.value-card {
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border-light);
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border);
}

.value-card-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.95rem;
}

/* --- Pricing Tiers --- */
.pricing-section {
  background-color: var(--color-bg-base);
}

.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.toggle-label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.toggle-label.active {
  color: var(--color-text);
}

.pricing-toggle-btn {
  width: 50px;
  height: 26px;
  border-radius: 13px;
  background-color: var(--color-border-light);
  border: 1px solid var(--color-border-light);
  position: relative;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.pricing-toggle-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.toggle-switch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-bg-base);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: var(--transition-fast);
}

.pricing-toggle-btn.active .toggle-switch {
  transform: translateX(24px);
}

.pricing-card {
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border-light);
  padding: 3rem 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border: 2px solid var(--color-border);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: var(--color-bg-base);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--color-border);
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price-box {
  display: flex;
  align-items: baseline;
  margin-bottom: 1rem;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.price-amount {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.period {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-left: 0.25rem;
}

.pricing-header p {
  font-size: 0.95rem;
  min-height: 48px;
  margin-bottom: 1.5rem;
}

.pricing-body {
  margin-top: auto;
  border-top: 1px solid var(--color-border-light);
  padding-top: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.pricing-features li svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --- Core Pages Overview --- */
.pages-overview-section {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
}

.page-preview-card {
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border-light);
  padding: 2.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-preview-card:hover {
  border-color: var(--color-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.preview-badge {
  display: inline-block;
  background-color: var(--color-bg-alt);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border-light);
  margin-bottom: 1.25rem;
}

.page-preview-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.page-preview-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

.preview-action-text {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.page-preview-card:hover .preview-action-text {
  color: var(--color-accent);
}

/* --- Dashboard Preview / Section --- */
.dash-feature-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dash-feature-list li {
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.25rem;
}

.dash-feature-list li::before {
  content: '•';
  color: var(--color-accent);
  font-size: 1.25rem;
  position: absolute;
  left: 0;
  top: -2px;
}

.dash-preview-mockup .illustrator-grid-panel {
  aspect-ratio: 1.2;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.widget-row {
  width: 100%;
  gap: 1.5rem;
}

.mini-widget {
  border: 1px solid var(--color-border-light);
  padding: 0.75rem 1rem;
  background-color: var(--color-bg-alt);
}

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

.widget-value {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  display: block;
  margin: 0.15rem 0 0.4rem 0;
}

.widget-bar {
  width: 100%;
  height: 4px;
  background-color: #E2E8F0;
}

.widget-bar .fill {
  height: 100%;
  background-color: var(--color-primary);
}

.radial-gauge-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  border-top: 1px dashed var(--color-border-light);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.radial-gauge-container svg {
  flex-shrink: 0;
}

.radial-info h4 {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.radial-info p {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* Gauge Animation Keyframes */
.animated-circle-gauge {
  animation: fillGauge 1.5s ease forwards;
}

@keyframes fillGauge {
  from { stroke-dashoffset: 251.2; }
  to { stroke-dashoffset: 50.2; } /* represents 80% */
}

/* --- Footer CTA / Contact Form --- */
.footer-cta-section {
  background-color: var(--color-bg-base);
  border-top: 1px solid var(--color-border-light);
}

.contact-form {
  border: 1px solid var(--color-border);
  padding: 3rem;
  background-color: var(--color-bg-base);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-border);
}

.contact-success-msg {
  display: none;
  border: 1px solid var(--color-border);
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--color-bg-base);
  animation: fadeIn 0.3s ease forwards;
}

/* --- Global Footer --- */
.global-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-bg-base);
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.footer-brand-side p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-bg-base);
}

.footer-links-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: var(--color-bg-base);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-column ul a:hover {
  color: var(--color-bg-base);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- VIEW: CATALOG SPECIFICS --- */
.catalog-hero {
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  padding: 4rem 0 3rem 0;
}

.search-filter-panel {
  max-width: 800px;
  margin: 2.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

#catalog-search-input {
  width: 100%;
  padding: 1.15rem 1rem 1.15rem 3.25rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  border: 1.5px solid var(--color-border);
  outline: none;
  background-color: var(--color-bg-base);
  transition: var(--transition-fast);
}

#catalog-search-input:focus {
  border-color: var(--color-accent);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-pill {
  background: none;
  border: 1px solid var(--color-border-light);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: var(--color-bg-base);
}

.filter-pill:hover, .filter-pill.active {
  border-color: var(--color-border);
  background-color: var(--color-primary);
  color: var(--color-bg-base);
}

.catalog-results-section {
  background-color: var(--color-bg-base);
}

.results-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 1rem;
}

.results-count {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* Cert Cards */
.cert-card {
  border: 1px solid var(--color-border-light);
  padding: 2.25rem;
  background-color: var(--color-bg-base);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cert-card:hover {
  border-color: var(--color-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.cert-provider {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cert-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.cert-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  min-height: 70px;
}

.cert-meta-row {
  margin-top: auto;
  border-top: 1px dashed var(--color-border-light);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Reset / fallback screen */
.no-results-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
  border: 1px dashed var(--color-border-light);
}

/* --- VIEW: EXAM SIMULATOR SPECIFICS --- */
.simulator-layout-section {
  background-color: var(--color-bg-alt);
  flex-grow: 1;
}

.simulator-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 74px);
}

.sim-left-panel {
  width: 45%;
  border-right: 1px solid var(--color-border);
  background-color: var(--color-bg-base);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 74px);
}

.sim-panel-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.sim-badge {
  display: inline-block;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.75rem;
}

.sim-panel-header h2 {
  font-size: 1.75rem;
}

.sim-prompt-content {
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sim-prompt-content ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rubric-box {
  margin-top: 1rem;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  padding: 1.5rem;
}

.rubric-box h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.rubric-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.rubric-box ul li strong {
  color: var(--color-text);
}

.sim-right-panel {
  width: 55%;
  background-color: var(--color-bg-alt);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 74px);
}

.sim-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sim-stats {
  display: flex;
  gap: 2rem;
}

.sim-stat-item {
  display: flex;
  flex-direction: column;
}

.sim-stat-item .label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-family: var(--font-title);
  font-weight: 600;
}

.sim-stat-item .value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}

.editor-workspace {
  flex-grow: 1;
  border: 1.5px solid var(--color-border);
  background-color: var(--color-bg-base);
  margin-bottom: 2rem;
  display: flex;
}

#sim-essay-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 2rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Modal for AI Evaluation Drawer */
.eval-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  justify-content: flex-end;
}

.eval-modal-backdrop.active {
  display: flex;
}

.eval-modal-content {
  width: 100%;
  max-width: 650px;
  background-color: var(--color-bg-base);
  border-left: 1.5px solid var(--color-border);
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: slideLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.eval-header {
  padding: 2rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.eval-body {
  padding: 3rem 2rem;
}

.score-display-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.score-den {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.score-assessment h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-primary);
}

.rubric-bars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed var(--color-border-light);
}

.rubric-progress-item .label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rubric-progress-item .progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
}

.rubric-progress-item .progress-bar .fill {
  height: 100%;
  background-color: var(--color-primary);
}

.feedback-group {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-left: 4px solid var(--color-border);
}

.feedback-group h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.green-feedback {
  background-color: rgba(16, 185, 129, 0.05);
  border-left-color: var(--color-accent);
}

.red-feedback {
  background-color: rgba(239, 68, 68, 0.05);
  border-left-color: var(--color-error);
}

.recommendation-feedback {
  background-color: var(--color-bg-alt);
  border-left-color: var(--color-primary);
}

/* --- VIEW: DASHBOARD WORKSPACE --- */
.db-stat-widget {
  background-color: var(--color-bg-base);
  border: 1.5px solid var(--color-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.stat-value {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.25rem;
  margin: 0.25rem 0;
}

.stat-change {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.stat-change.up {
  color: var(--color-accent);
  font-weight: 600;
}

.widget-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.widget-header-row h3 {
  font-size: 1.15rem;
}

.widget-header-row .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--color-bg-alt);
  padding: 0.2rem 0.5rem;
}

.flex-column-center {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.gauge-grid {
  display: flex;
  width: 100%;
  justify-content: space-around;
  margin-top: 1.5rem;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.gauge-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.mastery-breakdown-panel {
  border: 1.5px solid var(--color-border);
  background-color: var(--color-bg-base);
  padding: 2rem;
}

.domain-progress-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.progress-row-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 10px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
}

.progress-track .fill {
  height: 100%;
  background-color: var(--color-primary);
}

.progress-track.warning .fill {
  background-color: #F59E0B; /* Amber warning */
}

/* --- CONTEXTUAL AI TUTOR CHAT DRAWER --- */
.ai-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100vh;
  background-color: var(--color-bg-base);
  border-left: 1.5px solid var(--color-border);
  box-shadow: -5px 0 25px rgba(0,0,0,0.08);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-drawer.active {
  transform: translateX(0);
}

.ai-tutor-trigger {
  background-color: transparent;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.ai-tutor-trigger:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(11, 60, 36, 0.04);
}

.ai-drawer-header {
  padding: 1rem 1.25rem;
  border-bottom: 1.5px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-bg-alt);
}

.ai-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
}

.ai-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
}

.ai-drawer-body {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.message p {
  color: inherit;
}

.ai-msg {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  align-self: flex-start;
  color: var(--color-text);
}

.user-msg {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  align-self: flex-end;
}

.ai-drawer-footer {
  border-top: 1.5px solid var(--color-border);
  padding: 1rem 1.25rem;
}

.quick-prompts {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.quick-btn {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.quick-btn:hover {
  border-color: var(--color-border);
  background-color: var(--color-primary);
  color: var(--color-bg-base);
}

.ai-chat-form {
  display: flex;
  border: 1px solid var(--color-border);
}

#ai-chat-input {
  flex-grow: 1;
  border: none;
  outline: none;
  padding: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.ai-chat-form button {
  background: none;
  border: none;
  border-left: 1px solid var(--color-border);
  padding: 0 0.85rem;
  cursor: pointer;
  color: var(--color-primary);
}

.ai-chat-form button:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pages-overview-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .section-container { padding: 3.5rem 1.25rem; }
  
  .grid-2, .grid-3, .grid-2-1, .grid-2-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .main-nav, .header-actions .social-links, #header-demo-btn {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu-toggle.active .menu-open-icon { display: none; }
  .mobile-menu-toggle.active .menu-close-icon { display: block; }
  
  .feature-bullets {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-links-side {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Simulator Mobile Adaptation */
  .simulator-container {
    flex-direction: column;
    min-height: auto;
  }
  
  .sim-left-panel, .sim-right-panel {
    width: 100%;
    max-height: none;
    overflow-y: visible;
    padding: 2rem 1.25rem;
  }
  
  .sim-left-panel {
    border-right: none;
    border-bottom: 1.5px solid var(--color-border);
  }
  
  .editor-workspace {
    min-height: 300px;
  }
  
  .ai-drawer {
    width: 100%;
    height: 100vh;
    top: 0;
    right: 0;
    transform: translateX(100%);
  }
}

/* --- ADMIN & MCQ ADDITIONS --- */
.admin-card {
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  background-color: var(--color-bg-base);
}

.admin-form .form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  background-color: var(--color-bg-base);
}

.file-dropzone {
  border: 2px dashed var(--color-border-light);
  padding: 2.5rem 2rem;
  text-align: center;
  background-color: var(--color-bg-alt);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 1.5rem;
}

.file-dropzone:hover {
  border-color: var(--color-border);
}

.file-dropzone p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.admin-feedback {
  padding: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.success-msg {
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.csv-template-guideline h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.csv-template-guideline code {
  background-color: var(--color-bg-alt);
  padding: 0.5rem;
  border: 1px solid var(--color-border-light);
  font-size: 0.8rem;
}

.guideline-bullets {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.guideline-bullets p {
  margin-bottom: 0.25rem;
}

/* MCQ Workspace Styles */
.mcq-workspace {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mcq-option-card {
  border: 1px solid var(--color-border-light);
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-bg-base);
  transition: var(--transition-fast);
}

.mcq-option-card:hover {
  border-color: var(--color-border);
  background-color: var(--color-bg-alt);
}

.mcq-option-card.selected {
  border-color: var(--color-primary);
  background-color: rgba(11, 60, 36, 0.04);
}

.mcq-radio-input {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.mcq-option-text {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

.sim-welcome-container {
  padding: 6rem 1.5rem;
}

.sim-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#sim-word-counter-wrapper.hidden {
  display: none !important;
}

.admin-header-section {
  background-color: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  padding: 4rem 0 3rem 0;
}

.admin-content-section {
  background-color: var(--color-bg-base);
}

/* Global Header Search styles */
.global-search-container {
  position: relative;
  margin-right: 1rem;
}

#global-search-input {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  background-color: var(--color-bg-base);
  width: 160px;
  transition: var(--transition-smooth);
}

#global-search-input:focus {
  width: 220px;
  border-color: var(--color-border);
}

.global-search-results-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  z-index: 210;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.search-result-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  display: block;
  text-align: left;
  transition: var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--color-bg-alt);
}

.search-result-item h4 {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
  color: var(--color-text);
}

.search-result-item p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Toast Banner Notification */
.toast-banner {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--color-error);
  color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transform: translateY(-80px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  flex-shrink: 0;
}

/* Login Tab Styling */
.login-tabs-header {
  display: flex;
  border-bottom: 1.5px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.login-tab {
  background: none;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
}

.login-tab:hover, .login-tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

.login-layout-section {
  background-color: var(--color-bg-alt);
  padding: 6rem 1.5rem;
  flex-grow: 1;
}

.seed-accounts-helper {
  border-top: 1px dashed var(--color-border-light);
  padding-top: 1.5rem;
  color: var(--color-text-muted);
}

/* --- High-Contrast Alternating Layout Blocks --- */

/* Feature Block 1: Dark Green Section */
.feature-block-1 {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.feature-block-1 .section-title {
  color: var(--color-bg-base);
}

.feature-block-1 .section-desc {
  color: rgba(255, 255, 255, 0.75);
}

.feature-block-1 .bullet-text h3 {
  color: var(--color-bg-base);
}

.feature-block-1 .bullet-text p {
  color: rgba(255, 255, 255, 0.65);
}

.feature-block-1 .bullet-icon {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.04);
}

/* Subtle black structural accents in Dark Green Feature 1 panel */
.feature-block-1 .illustrator-grid-panel {
  background-color: var(--color-bg-dark);
  border-color: #000000;
}

.feature-block-1 .illustrator-grid-panel .grid-crosshair::before,
.feature-block-1 .illustrator-grid-panel .grid-crosshair::after {
  background-color: var(--color-accent);
}

.feature-block-1 .tech-graphic-svg circle[stroke="#000000"] {
  stroke: rgba(255, 255, 255, 0.15);
}

.feature-block-1 .tech-graphic-svg line[stroke="#000000"] {
  stroke: rgba(255, 255, 255, 0.15);
}

.feature-block-1 .tech-graphic-svg text[fill="#000000"] {
  fill: var(--color-bg-base);
}

.feature-block-1 .tech-graphic-svg text[fill="#475569"] {
  fill: rgba(255, 255, 255, 0.5);
}

.feature-block-1 .tech-graphic-svg rect[fill="#FFFFFF"] {
  fill: var(--color-bg-dark);
  stroke: var(--color-bg-base);
}

.feature-block-1 .tech-graphic-svg path[stroke="#000000"] {
  stroke: var(--color-bg-base);
}

/* Feature Block 2: White Section */
.feature-block-2 {
  background-color: var(--color-bg-base);
  border-bottom: 1px solid var(--color-border-light);
}

/* Pricing Section: Dark Green Full-bleed */
.pricing-section {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.pricing-section .section-title {
  color: var(--color-bg-base);
}

.pricing-section .toggle-label {
  color: rgba(255, 255, 255, 0.6);
}

.pricing-section .toggle-label.active {
  color: var(--color-bg-base);
}

.pricing-section .pricing-toggle-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-section .pricing-toggle-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.pricing-card {
  background-color: var(--color-bg-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--color-bg-base);
}

.pricing-card.featured {
  border-color: var(--color-accent);
}

.pricing-card h3 {
  color: var(--color-bg-base);
}

.pricing-card .price-amount {
  color: var(--color-bg-base);
}

.pricing-card .period {
  color: rgba(255, 255, 255, 0.6);
}

.pricing-card .pricing-header p {
  color: rgba(255, 255, 255, 0.65);
}

.pricing-card .pricing-body {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.pricing-card .pricing-features li {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-card .btn-outline {
  color: var(--color-bg-base);
  border-color: var(--color-bg-base);
}

.pricing-card .btn-outline:hover {
  background-color: var(--color-bg-base);
  color: var(--color-primary);
}

/* Cross-page Consistency: Catalog Header */
.catalog-hero {
  background-color: var(--color-primary) !important;
  color: var(--color-bg-base) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.catalog-hero .section-title {
  color: var(--color-bg-base) !important;
}

.catalog-hero .section-desc {
  color: rgba(255, 255, 255, 0.75) !important;
}

.catalog-hero .section-tag {
  color: var(--color-accent) !important;
}

.catalog-hero .filter-pill {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-bg-base);
}

.catalog-hero .filter-pill:hover,
.catalog-hero .filter-pill.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-base);
}

/* Cross-page Consistency: Dashboard Header */
.dashboard-header-section {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  padding: 4rem 0 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-header-section .section-title {
  color: var(--color-bg-base);
}

.dashboard-header-section .section-desc {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Native Scroll-Driven Animations Reveal System --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Staggered Delay classes */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* --- Admin Catalog Table Styles --- */
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.admin-table tbody tr:hover {
  background-color: var(--color-bg-alt);
}

/* --- Centered Custom Modals --- */
.custom-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease forwards;
}

.custom-modal-content {
  width: 100%;
  max-width: 500px;
  background-color: var(--color-bg-base);
  border: 1.5px solid var(--color-border);
  padding: 2.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--color-border-light);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.modal-header-row h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
}

/* --- Loading Spinner Animation --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- CUSTOM DROPDOWN COMPONENT --- */
.custom-select-container {
  position: relative;
  width: 100%;
  font-family: var(--font-sans);
  margin-top: 0.35rem;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition-fast);
}

.custom-select-trigger:hover {
  border-color: var(--color-primary);
}

.custom-select-chevron {
  transition: transform 0.2s ease-in-out;
  color: var(--color-text-muted);
}

.custom-select-container.open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 100;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select-container.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.custom-select-option:hover {
  background-color: #e8f0eb; /* light green highlight */
}

.custom-select-option.selected {
  background-color: rgba(11, 60, 36, 0.08);
  font-weight: 600;
}

/* --- QUICK SELECT PILLS --- */
.pill-btn {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 9999px; /* rounded-full */
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition-smooth);
}

.pill-btn:hover,
.pill-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg-base); /* crisp white */
}

/* --- AI TUTOR READABILITY & ANIMATIONS --- */
.leading-relaxed {
  line-height: 1.625;
}

.ai-tutor-loading {
  font-style: italic;
  color: var(--color-text-muted, #718096);
  animation: ai-tutor-pulse 1.5s infinite ease-in-out;
  padding: 0.5rem 0;
}

@keyframes ai-tutor-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1.0; }
}

/* --- Floating Action Button (FAB) --- */
.floating-trial-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
  background-color: var(--color-accent);
  color: var(--color-bg-base);
  border: 2px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, box-shadow 0.15s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.floating-trial-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-trial-btn:hover {
  background-color: #059669; /* Slightly darker emerald */
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px var(--color-border);
}

  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease forwards;
}

.custom-modal-content {
  width: 100%;
  max-width: 500px;
  background-color: var(--color-bg-base);
  border: 1.5px solid var(--color-border);
  padding: 2.25rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--color-border-light);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.modal-header-row h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
}

/* --- Loading Spinner Animation --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- CUSTOM DROPDOWN COMPONENT --- */
.custom-select-container {
  position: relative;
  width: 100%;
  font-family: var(--font-sans);
  margin-top: 0.35rem;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition-fast);
}

.custom-select-trigger:hover {
  border-color: var(--color-primary);
}

.custom-select-chevron {
  transition: transform 0.2s ease-in-out;
  color: var(--color-text-muted);
}

.custom-select-container.open .custom-select-chevron {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 100;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.custom-select-container.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.custom-select-option:hover {
  background-color: #e8f0eb; /* light green highlight */
}

.custom-select-option.selected {
  background-color: rgba(11, 60, 36, 0.08);
  font-weight: 600;
}

/* --- QUICK SELECT PILLS --- */
.pill-btn {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 9999px; /* rounded-full */
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition-smooth);
}

.pill-btn:hover,
.pill-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg-base); /* crisp white */
}

/* --- AI TUTOR READABILITY & ANIMATIONS --- */
.leading-relaxed {
  line-height: 1.625;
}

.ai-tutor-loading {
  font-style: italic;
  color: var(--color-text-muted, #718096);
  animation: ai-tutor-pulse 1.5s infinite ease-in-out;
  padding: 0.5rem 0;
}

@keyframes ai-tutor-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1.0; }
}

/* --- Floating Action Button (FAB) --- */
.floating-trial-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
  background-color: var(--color-accent);
  color: var(--color-bg-base);
  border: 2px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, box-shadow 0.15s ease;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.floating-trial-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-trial-btn:hover {
  background-color: #059669; /* Slightly darker emerald */
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px var(--color-border);
}

.floating-trial-btn:active {
  transform: translateY(0);
  box-shadow: 2px 2px 0px var(--color-border);
}

/* Hide FAB on small mobile screens if it covers content */
@media (max-width: 640px) {
  .floating-trial-btn {
    bottom: 20px;
    right: 20px;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
  }
}

/* --- Floating Trial Timer Overlay --- */
.trial-timer-overlay {
  position: fixed;
  top: 80px;
  right: 30px;
  z-index: 100;
  background-color: var(--color-bg-base);
  border: 2px solid var(--color-border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 3px 3px 0px var(--color-border);
  transition: all var(--transition-fast);
}

.trial-timer-overlay.warning {
  border-color: var(--color-error);
  color: var(--color-error);
  box-shadow: 3px 3px 0px var(--color-error);
  animation: timer-pulse 1s infinite alternate;
}

@keyframes timer-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

@media (max-width: 640px) {
  .trial-timer-overlay {
    top: auto;
    bottom: 90px;
    right: 20px;
    font-size: 0.8rem;
  }
}

/* --- Post-Test Navigation Actions --- */
.eval-footer-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--color-border);
}

.eval-footer-actions button {
  flex: 1;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

/* Combobox Custom Component Styles */
.combobox-wrapper {
  position: relative;
}

.combobox-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0.25rem 0 0 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.combobox-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.combobox-item:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

.combobox-item.selected {
  background-color: rgba(11, 60, 36, 0.08);
  color: var(--color-primary);
  font-weight: 600;
}
