@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* CSS Variables matching the SVG design system */
:root {
  --layout-max-width: 1200px;
  --layout-gutter: 2rem;
  --bg-dark: #070709;
  --bg-card: #0d0d12;
  --bg-card-hover: #12121a;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: #E94B23;
  --accent-orange: #E94B23;
  --accent-peach: #FFA800;
  --text-light: #F3F3F5;
  --text-muted: #8E8E9F;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: 'Cairo', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glass-bg: rgba(7, 7, 9, 0.75);
  --glass-border: rgba(255, 255, 255, 0.04);
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 92, 0, 0.12);
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
}

html[dir="rtl"] {
  font-family: var(--font-arabic);
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] button,
html[dir="rtl"] a,
html[dir="rtl"] span {
  font-family: var(--font-arabic);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% -120px, rgba(255, 92, 0, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(255, 168, 0, 0.02) 0%, transparent 40%),
    #070709;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 2px solid var(--bg-dark);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Typography elements */
h1,
h2,
h3,
h4 {
  color: var(--text-light);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
}

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

.kbd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Custom layout blocks */
header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2 * var(--layout-gutter));
  max-width: var(--layout-max-width);
  z-index: 1000;
  background: rgba(11, 11, 16, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 4px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(233, 75, 35, 0.08);
  transition: var(--transition-smooth);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.01em;
  padding-left: 6px;
  transition: var(--transition-smooth);
}

.logo:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.logo-icon {
  width: 26px;
  height: 26px;
  box-shadow: 0 0 12px rgba(233, 75, 35, 0.4);
}

.logo-text span {
  color: var(--accent-orange);
}

nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 6px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: #C4C4D4; /* High contrast ratio: 8.2:1 against near-black background #070709 */
  padding: 6px 14px;
  border-radius: 100px;
  position: relative;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
}

nav a:hover {
  color: #FFFFFF;
  background: rgba(255, 107, 43, 0.08); /* Accent hover highlight */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Active / Current Section Indicator */
nav a.active {
  color: #FFFFFF;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--accent-orange, #FF6B2B);
  box-shadow: 0 0 6px var(--accent-orange, #FF6B2B);
}

/* Right-side Cluster Intent Grouping & Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Muted Secondary Marketing Link */
.nav-course-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #8E8E9F);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.nav-course-link:hover {
  color: var(--text-light, #F3F3F5);
  background: rgba(255, 255, 255, 0.05);
}

/* Intent Grouping Vertical Divider */
.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
  flex-shrink: 0;
}

/* Language Switcher Utility */
.nav-lang-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #8E8E9F);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-lang-btn:hover {
  color: var(--text-light, #F3F3F5);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Primary Conversion CTA: Download OS */
.header-container .nav-cta-primary {
  background: linear-gradient(135deg, var(--accent-orange, #FF6B2B), var(--accent-peach, #FFA800));
  color: #0D0D14;
  border: none;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  box-shadow: 0 4px 15px rgba(255, 107, 43, 0.25);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.header-container .nav-cta-primary svg {
  flex-shrink: 0;
}

.header-container .nav-cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(255, 107, 43, 0.45);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-peach));
  color: #0D0D14;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 107, 43, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 107, 43, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: rgba(255, 107, 43, 0.4);
  background: rgba(255, 107, 43, 0.04);
  transform: translateY(-3px) scale(1.02);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid rgba(255, 107, 43, 0.2);
  border-radius: 100px;
  color: var(--accent-peach);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge .hero-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-orange);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.05;
  background: linear-gradient(180deg, #FFFFFF 30%, #A5A5B2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-peach));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 32px;
  font-weight: 400;
  max-width: 760px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.hero-trust-item svg {
  flex-shrink: 0;
}

.hero-showcase {
  max-width: var(--layout-max-width, 1200px);
  margin: 56px auto 0 auto;
  padding: 0 var(--layout-gutter, 2rem);
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-showcase-glow {
  position: absolute;
  top: -30%;
  left: 5%;
  right: 5%;
  bottom: 0%;
  background: 
    radial-gradient(circle at 50% 0%, rgba(255, 92, 0, 0.25) 0%, transparent 65%),
    radial-gradient(circle at 50% 30%, rgba(255, 168, 0, 0.1) 0%, transparent 55%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.hero-showcase-frame {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Interactive Simulator */
.simulator-container {
  background: rgba(22, 22, 34, 0.6);
  border: none;
  border-radius: var(--border-radius-md);
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 550px;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.simulator-container:hover {
  border-color: transparent;
  box-shadow: none;
}

.simulator-header {
  background: #0d0d14;
  padding: 12px 18px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simulator-dots {
  display: flex;
  gap: 8px;
}

.simulator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #282830;
}

.simulator-dot.red {
  background: #FF5F56;
}

.simulator-dot.yellow {
  background: #FFBD2E;
}

.simulator-dot.green {
  background: #27C93F;
}

.simulator-nav {
  display: flex;
  gap: 8px;
}

.simulator-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.simulator-btn:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}

.simulator-btn.active {
  color: var(--accent-orange);
  background: rgba(255, 107, 43, 0.08);
}

.simulator-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #27C93F;
  background: rgba(39, 201, 63, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
}

.simulator-status span {
  width: 8px;
  height: 8px;
  background: #27C93F;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

.simulator-content {
  flex-grow: 1;
  padding: 24px;
  display: none;
  flex-direction: column;
}

.simulator-content.active {
  display: flex;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* Database simulator panel */
.db-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.db-input {
  flex-grow: 1;
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-light);
  font-family: var(--font-sans);
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.db-input:focus {
  border-color: var(--accent-orange);
}

.db-table-container {
  flex-grow: 1;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: #0d0d14;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.db-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-light);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.db-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
}

.db-table tr:hover td {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.01);
}

/* Excel Import Tab */
.excel-dropzone {
  flex-grow: 1;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.01);
}

.excel-dropzone:hover {
  border-color: var(--accent-orange);
  background: rgba(255, 107, 43, 0.02);
}

.excel-icon {
  width: 48px;
  height: 48px;
  background: rgba(39, 201, 63, 0.1);
  color: #27C93F;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.excel-preview {
  display: none;
  flex-direction: column;
  flex-grow: 1;
  animation: fadeIn 0.3s forwards;
}

/* Tuition log / billing tab */
.billing-logs {
  flex-grow: 1;
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a9ffb2;
  overflow-y: auto;
}

.billing-logs p {
  color: inherit;
  margin-bottom: 6px;
}

.billing-logs .timestamp {
  color: var(--accent-peach);
}

.billing-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Value Propositions */
.values {
  padding: 100px 0;
  position: relative;
  background-color: rgba(22, 22, 34, 0.2);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 850;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #FFFFFF 30%, #8E8E9F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

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

.value-card {
  background: rgba(13, 13, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 36px 28px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.value-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-peach));
  opacity: 0;
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 43, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 92, 0, 0.12);
  background: rgba(18, 18, 28, 0.85);
}

.value-card:hover::after {
  opacity: 1;
}

.value-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 107, 43, 0.08);
  border: 1px solid rgba(255, 107, 43, 0.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent-orange);
  font-size: 1.4rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.value-card:hover .value-icon {
  transform: scale(1.08) rotate(2deg);
  background: rgba(255, 107, 43, 0.15);
  border-color: rgba(255, 107, 43, 0.4);
  box-shadow: 0 0 20px rgba(255, 92, 0, 0.25);
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* System Logic / Timeline */
.timeline-section {
  padding: 100px 0;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-orange) 0%, rgba(255, 107, 43, 0.2) 60%, var(--border-color) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 32px;
  height: 32px;
  background: rgba(255, 107, 43, 0.12);
  border: 2px solid rgba(255, 107, 43, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--accent-orange);
  color: #0d0d14;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-peach));
  box-shadow: 0 0 20px rgba(255, 107, 43, 0.5);
  transform: scale(1.1);
}

.timeline-content {
  background: rgba(22, 22, 34, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  padding: 30px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.timeline-content:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 107, 43, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 107, 43, 0.06);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-peach);
  background: rgba(255, 155, 99, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Pricing / Licensing Matrix */
.pricing {
  padding: 100px 0;
  background-color: rgba(22, 22, 34, 0.2);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(22, 22, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pricing-card.premium {
  border-color: rgba(255, 107, 43, 0.2);
  background: linear-gradient(180deg, rgba(22, 22, 34, 0.6) 0%, rgba(13, 13, 20, 0.8) 100%);
  box-shadow: var(--shadow-glow);
}

.pricing-card.premium::after {
  content: 'RECOMMENDED';
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 1px;
  background: rgba(255, 107, 43, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 107, 43, 0.2);
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(255, 107, 43, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 45px rgba(255, 107, 43, 0.12);
}

.pricing-tier {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-target {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-cost {
  margin-bottom: 32px;
}

.pricing-cost .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-light);
}

.pricing-cost .sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-orange);
  font-weight: bold;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  background: #09090e;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Interactive Dialog Modal for Checkout (animate-to-from-top-layer) */
dialog.checkout-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 90%;
  margin: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  outline: none;
  color: var(--text-light);

  /* Starting exit state */
  opacity: 0;
  transform: scale(0.95);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}

dialog.checkout-dialog::backdrop {
  background-color: rgba(9, 9, 14, 0);
  backdrop-filter: blur(0px);
  transition:
    display 0.3s allow-discrete,
    overlay 0.3s allow-discrete,
    background-color 0.3s ease-out,
    backdrop-filter 0.3s ease-out;
}

/* Open states */
dialog.checkout-dialog[open] {
  opacity: 1;
  transform: scale(1);

  @starting-style {
    opacity: 0;
    transform: scale(0.95);
  }
}

dialog.checkout-dialog[open]::backdrop {
  background-color: rgba(9, 9, 14, 0.8);
  backdrop-filter: blur(8px);

  @starting-style {
    background-color: rgba(9, 9, 14, 0);
    backdrop-filter: blur(0px);
  }
}

/* Form Styles inside Modal */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.4rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  outline: none !important;
  box-shadow: none !important;
}

.checkout-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.checkout-tab-btn {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

.checkout-tab-btn:hover {
  color: var(--text-light);
}

.checkout-tab-btn.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

.checkout-pane {
  display: none;
}

.checkout-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-light);
  font-family: var(--font-sans);
  padding: 12px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-orange);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Success Flow in Checkout */
.checkout-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: scaleIn 0.3s forwards;
}

.success-badge {
  width: 64px;
  height: 64px;
  background: rgba(39, 201, 63, 0.1);
  color: #27C93F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.license-key-display {
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  width: 100%;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-peach);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  color: var(--text-light);
  border-color: var(--accent-orange);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll reveals (fallback fallback IntersectionObserver) */
.reveal {
  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);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive grid adaptations */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-badge,
  .hero-ctas,
  .hero-tagline {
    justify-content: center;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  header {
    top: 12px;
    width: 94%;
    padding: 2px 8px;
  }

  .header-container {
    height: 48px;
  }

  nav {
    display: none;
    /* simple burger fallback or hidden for demo convenience */
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}

/* ==========================================
   Phase 2 CSS Customizations
   ========================================== */

/* Explainer Video Placeholder Frame */
.video-showcase-container {
  padding: 60px 0 40px 0;
  position: relative;
}

.saas-video-frame-wrapper {
  position: relative;
  z-index: 2;
}

.saas-video-glow {
  position: absolute;
  inset: -25px -25px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 43, 0.25) 0%, rgba(255, 168, 0, 0.1) 45%, transparent 70%);
  filter: blur(45px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.saas-video-frame-wrapper:hover .saas-video-glow {
  opacity: 1;
  filter: blur(55px);
}

.saas-video-frame {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f0f16;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 30px 90px -20px rgba(0, 0, 0, 0.85),
    0 15px 40px -10px rgba(255, 107, 43, 0.18);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.saas-video-frame:hover {
  border-color: rgba(255, 107, 43, 0.4);
  box-shadow: 
    0 0 0 1px rgba(255, 107, 43, 0.2) inset,
    0 35px 110px -20px rgba(0, 0, 0, 0.9),
    0 20px 60px -10px rgba(255, 107, 43, 0.35);
}

.saas-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(28, 28, 40, 0.95) 0%, rgba(18, 18, 26, 0.98) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-controls .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.window-controls .dot.close { background: #FF5F56; border: 1px solid #E0443E; }
.window-controls .dot.minimize { background: #FFBD2E; border: 1px solid #DEA123; }
.window-controls .dot.maximize { background: #27C93F; border: 1px solid #1AAB29; }

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.window-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #27C93F;
  background: rgba(39, 201, 63, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(39, 201, 63, 0.25);
}

.window-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27C93F;
  box-shadow: 0 0 8px #27C93F;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 15, 22, 0.35) 0%, rgba(10, 10, 15, 0.85) 100%);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ripple-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 43, 0.4);
  animation: playPulse 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

.play-ring.ring-1 {
  width: 100px;
  height: 100px;
  animation-delay: 0s;
}

.play-ring.ring-2 {
  width: 130px;
  height: 130px;
  animation-delay: 0.6s;
}

@keyframes playPulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.pro-play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B2B 0%, #FF8F3D 100%);
  color: #0D0D14;
  border: 3px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 35px rgba(255, 107, 43, 0.6), 0 0 0 8px rgba(255, 107, 43, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.video-play-overlay:hover .pro-play-button {
  transform: scale(1.12);
  background: linear-gradient(135deg, #FF8F3D 0%, #FFA800 100%);
  box-shadow: 0 15px 45px rgba(255, 107, 43, 0.8), 0 0 0 12px rgba(255, 107, 43, 0.3);
}

.play-overlay-meta {
  text-align: center;
}

.play-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-orange);
  background: rgba(255, 107, 43, 0.15);
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.play-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Chapter Chips */
.chapter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(22, 22, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.chapter-chip:hover {
  background: rgba(255, 107, 43, 0.15);
  border-color: rgba(255, 107, 43, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.chapter-chip.active {
  background: linear-gradient(135deg, rgba(255, 107, 43, 0.25), rgba(255, 168, 0, 0.2));
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 4px 15px rgba(255, 107, 43, 0.2);
}

/* About Toolbox Studio Section */
.about-studio {
  padding: 100px 0;
  background-color: rgba(22, 22, 34, 0.1);
  border-top: 1px solid var(--border-color);
  position: relative;
}

.studio-card {
  background: linear-gradient(135deg, #161622 0%, #0d0d14 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-glow);
}

.studio-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.studio-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 2.2rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(255, 107, 43, 0.15);
}

.studio-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
}

.studio-title {
  font-size: 0.85rem;
  color: var(--accent-peach);
  font-family: var(--font-mono);
}

.studio-bio h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #FFFFFF 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.studio-bio p {
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* WhatsApp Integration Modal Styles */
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  margin-top: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
  font-family: var(--font-sans);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
  fill: currentColor;
  width: 22px;
  height: 22px;
}

/* Platform Select Toggles */
.platform-selector {
  display: inline-flex;
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 4px;
  margin-bottom: 20px;
  width: 100%;
}

.platform-option {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-option:hover {
  background: rgba(255, 92, 0, 0.06);
  color: var(--text-light);
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(255, 92, 0, 0.15);
  transform: translateY(-2px);
}

.platform-option.active {
  background: var(--accent-orange) !important;
  color: #ffffff !important;
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 20px rgba(255, 92, 0, 0.4) !important;
}

.platform-option.active *,
.platform-option.active svg,
.platform-option.active span {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.platform-option svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .studio-card {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 32px;
    text-align: center;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* ==========================================
     NEW SIMULATOR WORKSPACE LAYOUT
     ========================================== */
.simulator-window-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.simulator-body {
  display: flex;
  flex-direction: row;
  height: calc(100% - 45px);
  overflow: hidden;
}

/* Sidebar Styling */
.sim-sidebar {
  width: 185px;
  background: #09090d;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 14px 0;
}

.sim-sidebar-brand {
  padding: 0 14px 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sim-brand-icon {
  width: 14px;
  height: 14px;
}

.sim-brand-text {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-brand-text span {
  color: var(--accent-orange);
}

.sim-sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
}

.sim-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

.sim-menu-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.sim-menu-btn:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.04);
}

.sim-menu-btn.active {
  color: var(--accent-orange) !important;
  background: rgba(255, 107, 43, 0.08) !important;
  border: 1px solid rgba(255, 107, 43, 0.15) !important;
  font-weight: 600;
}

.sim-sidebar-footer {
  margin-top: auto;
  padding: 0 14px;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Main Panel Styling */
.sim-main-panel {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #070709;
  overflow: hidden;
}

.sim-app-header {
  height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  background: #09090d;
  flex-shrink: 0;
}

.sim-search-bar {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sim-search-icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
  stroke: currentColor;
  fill: none;
}

.sim-profile-avatar {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1.2px solid var(--accent-orange);
  background: rgba(255, 107, 43, 0.1);
  color: var(--accent-orange);
  font-size: 0.6rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-viewport {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  position: relative;
}

/* View Header */
.sim-view-header {
  margin-bottom: 12px;
}

.sim-breadcrumbs {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sim-view-title {
  margin: 2px 0 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
}

/* Stats Cards */
.sim-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.sim-stat-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-stat-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sim-stat-icon {
  font-size: 0.8rem;
}

.sim-stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-light);
  font-family: var(--font-mono);
}

.sim-stat-number.positive {
  color: #27C93F;
}

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

.sim-stat-change.positive {
  color: #27C93F;
  font-weight: 500;
}

/* Details Section (Chart & Actions) */
.sim-details-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 12px;
}

.sim-panel {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.sim-panel-title {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 700;
}

.sim-panel-desc {
  font-size: 0.58rem;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 8px;
}

/* SVG Line Chart */
.sim-chart-container {
  position: relative;
  height: 95px;
  width: 100%;
  margin-top: 5px;
}

#sim-chart-tooltip {
  position: absolute;
  display: none;
  background: #0c0c12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.58rem;
  font-family: var(--font-mono);
  color: var(--text-light);
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -100%);
  margin-top: -6px;
}

#sim-cashflow-svg {
  width: 100%;
  height: 100%;
}

.sim-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.52rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Quick Actions Console */
.sim-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 2px;
}

.sim-action-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-action-card:hover {
  border-color: var(--accent-orange);
  background: rgba(255, 107, 43, 0.03);
}

.sim-action-card#sim-act-enroll {
  border: 1px solid rgba(255, 107, 43, 0.2);
  background: rgba(255, 107, 43, 0.03);
}

.sim-action-card#sim-act-enroll:hover {
  background: rgba(255, 107, 43, 0.06);
}

.sim-action-card-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-light);
}

.sim-action-card-tag {
  font-size: 0.52rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.sim-security-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.58rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-security-row {
  display: flex;
  justify-content: space-between;
}

.sim-security-row .label {
  color: var(--text-muted);
}

.sim-security-row .value {
  color: var(--text-light);
}

.sim-security-row .value.offline {
  color: #10B981;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sim-security-row .value.key {
  font-family: var(--font-mono);
}

.sim-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

/* ==========================================
     SIMULATOR DETAIL OVERLAYS & ALIGNMENTS
     ========================================== */
.simulator-container svg {
  flex-shrink: 0;
}

.sim-sidebar-footer-menu {
  margin-top: auto;
  padding: 0 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-stat-icon-wrapper {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
}

.sim-stat-icon-wrapper.orange {
  background: rgba(255, 107, 43, 0.1);
  color: var(--accent-orange);
}

.sim-stat-icon-wrapper.peach {
  background: rgba(255, 168, 0, 0.1);
  color: var(--accent-peach);
}

.sim-stat-icon-wrapper.gray {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.sim-stat-number.negative {
  color: #FF5F56 !important;
}

.sim-action-icon-wrapper {
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sim-action-card:hover .sim-action-icon-wrapper {
  color: var(--accent-orange);
}
.sim-select {
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-light);
  font-family: var(--font-sans);
  padding: 4px 8px;
  font-size: 0.7rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.sim-select:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   SIMULATOR LOCAL AI WIDGET STYLING
   ========================================== */
#sim-ai-trigger {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease;
  animation: sim-ai-pulse 2.5s infinite ease-in-out;
}

#sim-ai-trigger:hover {
  transform: scale(1.1) rotate(5deg);
}

@keyframes sim-ai-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

#sim-ai-window {
  position: absolute;
  bottom: 62px;
  right: 12px;
  width: 250px;
  height: 330px;
  background: #0d0d14;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  overflow: hidden;
  box-sizing: border-box;
}

.sim-ai-header {
  background: rgba(255, 122, 89, 0.04);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-ai-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-ai-title-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sim-ai-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
}

.sim-ai-subtitle {
  font-size: 0.52rem;
  color: var(--accent-orange);
  font-weight: 600;
  text-transform: uppercase;
}

.sim-ai-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.sim-ai-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  font-size: 0.65rem;
}

.sim-ai-msg {
  max-width: 85%;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.3;
}

.sim-ai-msg.ai {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  align-self: flex-start;
}

.sim-ai-msg.user {
  background: var(--accent-orange);
  color: #0d0d14;
  font-weight: 600;
  align-self: flex-end;
}

.sim-ai-chips {
  padding: 6px 10px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.sim-ai-chip {
  background: rgba(255, 122, 89, 0.05);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 122, 89, 0.15);
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 0.55rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-ai-chip:hover {
  background: rgba(255, 122, 89, 0.12);
  border-color: var(--accent-orange);
}

.sim-ai-input-area {
  border-top: 1px solid var(--border-color);
  padding: 6px;
  background: rgba(0,0,0,0.2);
  display: flex;
  gap: 4px;
}

.sim-ai-input {
  flex-grow: 1;
  background: rgba(7, 7, 9, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  border-radius: 4px;
  font-size: 0.6rem;
  padding: 4px 8px;
  outline: none;
}

.sim-ai-send-btn {
  background: var(--accent-orange);
  border: none;
  color: #0d0d14;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.6rem;
  font-weight: 700;
}

/* =======================================================
   ONCILLA OS SYSTEM STYLE REPLICAS FOR SIMULATOR OVERRIDES
   ======================================================= */

/* Reduce max-width of showcase to make it look like a clean window and less wide */
.hero-showcase {
  max-width: 1040px !important;
}

/* Base Container Override (No thick white border, outer frame matches dark web theme) */
.simulator-container {
  background: #f8fafc !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  outline: none !important;
}

.simulator-container:hover {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Header Override (Clean dark window bar, NO white border below it) */
.simulator-header {
  background: #0f1115 !important; /* Deep dark slate for sidebar/header */
  border-bottom: none !important;
}

.simulator-window-title {
  color: #94a3b8 !important; /* Soft slate light text */
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 500 !important;
}

/* Sidebar Override (Deep dark slate, matching system's sidebar) */
.sim-sidebar {
  background: #0f1115 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.sim-sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sim-sidebar-brand .sim-brand-text {
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.sim-menu-btn {
  color: #94a3b8 !important; /* Muted gray text */
  font-family: 'Space Grotesk', sans-serif !important;
}

.sim-menu-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.sim-menu-btn.active {
  color: #ff5c00 !important; /* Brand orange */
  background: rgba(255, 92, 0, 0.09) !important;
  border: none !important;
  font-weight: 600 !important;
}

/* Main Panel & Header Override - Full Light Mode Variable Reset */
.sim-main-panel {
  background: #f8fafc !important;
  /* Override ALL dark CSS variables to light equivalents */
  --bg-dark: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --text-light: #1e293b;
  --text-muted: #64748b;
  --font-mono: 'JetBrains Mono', monospace;
}


.sim-app-header {
  background: #ffffff !important;
  border-bottom: none !important;
}

.sim-search-bar {
  background: #f1f5f9 !important; /* Soft secondary panel bg */
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 250px !important;
}

/* Viewport Details */
.sim-viewport {
  color: #1e293b !important; /* Main slate-charcoal text */
  font-family: 'Space Grotesk', sans-serif !important;
  background: #f8fafc !important;
}

.simulator-content {
  background: #f8fafc !important;
}



.sim-breadcrumbs {
  color: #64748b !important;
  font-weight: 700 !important;
}

.sim-view-title {
  color: #1e293b !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
}

/* Stat Cards Override (Pure white cards with thin border) */
.sim-stat-card {
  background: #ffffff !important; /* Pure white */
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important; /* Compact padding to prevent text cutoff */
  gap: 4px !important;
}

.sim-stat-label {
  color: #64748b !important;
  font-size: 0.52rem !important; /* Smaller size to fit perfectly in simulator */
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  font-weight: 700 !important;
  white-space: nowrap !important; /* Avoid wrapping */
}

.sim-stat-number {
  color: #1e293b !important;
  font-family: 'JetBrains Mono', monospace !important;
}

.sim-stat-change {
  color: #64748b !important;
}

/* Panels (Chart, Action Logs) */
.sim-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
  border-radius: 10px !important;
}

.sim-panel-title {
  color: #1e293b !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
}

.sim-panel-desc {
  color: #64748b !important;
}

/* Action Cards */
.sim-action-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  border-radius: 6px !important;
}

.sim-action-card:hover {
  background: #ffffff !important;
  border-color: #ff5c00 !important;
  box-shadow: 0 4px 12px rgba(255, 92, 0, 0.08) !important;
}

.sim-action-card-title {
  color: #1e293b !important;
}

/* Tables Styling Inside Simulator Viewport */
.sim-viewport table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.sim-viewport table th {
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-weight: 700 !important;
  font-size: 0.58rem !important;
  text-transform: uppercase !important;
  padding: 8px 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  text-align: left !important;
}

.sim-viewport table td {
  padding: 8px 10px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 0.6rem !important;
  color: #64748b !important;
}

.sim-viewport table tr:hover td {
  color: #1e293b !important;
  background: #f8fafc !important;
}

/* UI status pill updates */
.sim-security-row {
  border-bottom: 1px solid #e2e8f0 !important;
}

.sim-security-row .label {
  color: #64748b !important;
}

.sim-security-row .value {
  color: #1e293b !important;
}

/* Custom dropdown and elements */
.sim-select {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

.sim-select:hover {
  border-color: #ff5c00 !important;
}

/* Input Area in local AI chatbot simulation */
.sim-ai-input-area {
  background: #f1f5f9 !important;
  border-top: 1px solid #e2e8f0 !important;
}

.sim-ai-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

.sim-ai-input::placeholder {
  color: #94a3b8 !important;
}

/* =======================================================
   CLEAN LIGHT THEME INTERNAL VIEW OVERRIDES FOR SIMULATOR
   ======================================================= */

/* Force light inputs & table container */
.db-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

.db-table-container {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.db-table th {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.db-table td {
  color: #334155 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.db-table tr:hover td {
  background: #f8fafc !important;
}

/* Sidebar lists in tabs (Attendance list, Settings list) */
#tab-attendance div[style*="rgba(15, 23, 42, 0.4)"],
#tab-settings div[style*="rgba(15, 23, 42, 0.4)"] {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

/* Inactive items in tab sidebar list */
#tab-attendance div[style*="rgba(255,255,255,0.02)"],
#tab-settings div[style*="rgba(255,255,255,0.02)"],
#tab-attendance div[style*="rgba(255, 255, 255, 0.02)"],
#tab-settings div[style*="rgba(255, 255, 255, 0.02)"] {
  background: #f8fafc !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}

#tab-attendance div[style*="rgba(15, 23, 42, 0.4)"] div:not([style*="var(--accent-orange)"]):not([style*="#FF6B2B"]):not([style*="background: var(--accent-orange)"]),
#tab-settings div[style*="rgba(15, 23, 42, 0.4)"] div:not([style*="var(--accent-orange)"]):not([style*="#FF6B2B"]):not([style*="background: var(--accent-orange)"]) {
  background: transparent !important;
  color: #64748b !important;
  border: 1.2px solid transparent !important;
}

#tab-attendance div[style*="rgba(15, 23, 42, 0.4)"] div:hover,
#tab-settings div[style*="rgba(15, 23, 42, 0.4)"] div:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Right roster / form panels in tabs */
#tab-attendance div[style*="rgba(15, 23, 42, 0.2)"],
#tab-settings div[style*="rgba(15, 23, 42, 0.2)"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

#tab-attendance h4,
#tab-settings h4 {
  color: #1e293b !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Student Detail Side Drawer Override */
#student-drawer {
  background: #ffffff !important;
  border-left: 1px solid #cbd5e1 !important;
  box-shadow: -4px 0 20px rgba(15, 23, 42, 0.08) !important;
}

#student-drawer h4 {
  color: #1e293b !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#student-drawer #drawer-content {
  color: #475569 !important;
}

#student-drawer #btn-close-drawer {
  color: #64748b !important;
}

/* Form input fields in settings */
#tab-settings input[style*="background"],
#tab-settings input[readonly] {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

/* =======================================================
   UNIVERSAL SIMULATOR BUTTON CONSISTENCY OVERRIDES
   ======================================================= */

.sim-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  cursor: pointer !important;
  height: 30px !important;
  transition: all 0.2s ease !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  outline: none !important;
}

/* Primary Button Override (Brand Orange) */
.sim-btn-primary,
#btn-add-record,
#btn-add-candidate,
#btn-add-employee,
.simulator-content button[style*="background: var(--accent-orange)"],
.simulator-content button[style*="background: #ff5c00"],
.simulator-content button[style*="background: #FF6B2B"] {
  background: #ff5c00 !important;
  color: #ffffff !important;
  border: none !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  padding: 6px 12px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sim-btn-primary:hover,
#btn-add-record:hover,
#btn-add-candidate:hover,
#btn-add-employee:hover {
  background: #e05200 !important;
}

/* Secondary Button Override (Clean Light Grey) */
.sim-btn-secondary,
#btn-sync-leads,
#btn-post-overhead,
#btn-export-ledger,
#btn-drawer-invoice,
#sim-btn-sync,
#sim-btn-import {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  padding: 6px 12px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sim-btn-secondary:hover,
#btn-sync-leads:hover,
#btn-post-overhead:hover,
#btn-export-ledger:hover,
#btn-drawer-invoice:hover,
#sim-btn-sync:hover,
#sim-btn-import:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Red / Danger Button (Mark Absent) */
.simulator-content button[style*="color: #FF5F56"],
.simulator-content button[style*="color:#FF5F56"],
.simulator-content button[style*="color: rgb(255, 95, 86)"] {
  background: rgba(255, 95, 86, 0.1) !important;
  border: 1px solid rgba(255, 95, 86, 0.25) !important;
  color: #FF5F56 !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  font-size: 0.52rem !important;
  padding: 3px 8px !important;
  height: auto !important;
  cursor: pointer !important;
}

.simulator-content button[style*="color: #FF5F56"]:hover {
  background: rgba(255, 95, 86, 0.18) !important;
}

/* Green / Success Button (Mark Present) */
.simulator-content button[style*="color: #27C93F"],
.simulator-content button[style*="color:#27C93F"],
.simulator-content button[style*="color: rgb(39, 201, 63)"] {
  background: rgba(39, 201, 63, 0.1) !important;
  border: 1px solid rgba(39, 201, 63, 0.25) !important;
  color: #27C93F !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  font-size: 0.52rem !important;
  padding: 3px 8px !important;
  height: auto !important;
  cursor: pointer !important;
}

.simulator-content button[style*="color: #27C93F"]:hover {
  background: rgba(39, 201, 63, 0.18) !important;
}

/* =======================================================
   BILINGUAL RTL / LTR ISOLATION RULES
   ======================================================= */

/* Keep the interactive software simulator frame & top navbar strictly LTR */
header,
.header-container,
nav,
.nav-actions,
.lang-menu,
.simulator-container,
.sim-sidebar,
.sim-main-panel,
.sim-app-header,
.sim-viewport,
.interactive-hint-badge,
.hero-badge,
code, pre {
  direction: ltr !important;
}

/* RTL layout refinements for Arabic mode */
html[dir="rtl"] .hero-centered {
  text-align: center;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle {
  direction: rtl;
  text-align: center;
}

html[dir="rtl"] .section-header {
  text-align: center;
  direction: rtl;
}

html[dir="rtl"] .value-card,
html[dir="rtl"] .timeline-content,
html[dir="rtl"] .pricing-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .value-card .value-icon {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .hero-ctas {
  flex-direction: row;
  justify-content: center;
  gap: 16px;
}

html[dir="rtl"] .hero-trust {
  direction: rtl;
  justify-content: center;
}

/* =======================================================
   TESTIMONIALS MARQUEE AUTO-SCROLLING WALL
   ======================================================= */
.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

html[dir="rtl"] .marquee-track {
  animation: marqueeScrollRtl 35s linear infinite;
}

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

.testim-card {
  width: 340px;
  background: rgba(22, 22, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.testim-card:hover {
  border-color: rgba(255, 92, 0, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 92, 0, 0.12);
  background: rgba(255, 92, 0, 0.03);
}

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

.testim-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testim-author {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.testim-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.testim-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.testim-quote {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

/* Language Dropdown Selector Styles */
.lang-option:hover {
  background: rgba(255, 92, 0, 0.15) !important;
  color: var(--accent-orange) !important;
}

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





