/* ==========================================================================
   VELORA-M® — World-Class Enterprise Design System
   Supports Auto Time-Based Dark / Light Themes + Full LTR / RTL Localization
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-void: #020817;
  --bg-navy: #040D21;
  --bg-surface: rgba(11, 28, 66, 0.72);
  --bg-surface-strong: rgba(8, 22, 54, 0.92);
  --bg-card-grad: linear-gradient(155deg, rgba(13, 35, 78, 0.72) 0%, rgba(5, 16, 42, 0.9) 100%);
  --bg-banner-grad: linear-gradient(90deg, rgba(10, 27, 64, 0.94) 0%, rgba(15, 42, 96, 0.82) 50%, rgba(9, 24, 58, 0.94) 100%);
  --bg-shell:
    radial-gradient(ellipse 920px 540px at 78% 10%, rgba(37, 99, 235, 0.36), transparent 70%),
    radial-gradient(ellipse 680px 420px at 88% 22%, rgba(34, 211, 238, 0.18), transparent 70%),
    radial-gradient(ellipse 820px 440px at 16% 52%, rgba(29, 78, 216, 0.25), transparent 72%),
    radial-gradient(ellipse 950px 500px at 66% 96%, rgba(37, 99, 235, 0.36), transparent 70%),
    linear-gradient(180deg, #030A1C 0%, #05112B 30%, #040D22 60%, #061535 85%, #030B1F 100%);
  --bg-nav: rgba(3, 10, 28, 0.8);
  --bg-dropdown: rgba(6, 18, 46, 0.98);
  --bg-footer: rgba(2, 7, 20, 0.94);
  --bg-input: rgba(4, 12, 30, 0.9);
  --bg-modal: linear-gradient(160deg, #0B1E47 0%, #050E24 100%);
  --bg-ghost: rgba(15, 23, 42, 0.65);
  --bg-ghost-hover: rgba(30, 41, 59, 0.88);
  --bg-subhero: radial-gradient(ellipse 700px 300px at 50% 0%, rgba(37, 99, 235, 0.26), transparent 75%);
  --bg-code: #030B1F;

  --cyan: #22D3EE;
  --sky: #38BDF8;
  --blue: #2563EB;
  --blue-bright: #3B82F6;
  --accent-text: #7DD3FC;
  --accent-icon: #38BDF8;
  --emerald: #34D399;
  --amber: #FBBF24;
  --rose: #F87171;

  --text-primary: #F8FAFC;
  --text-heading: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;

  --border-subtle: rgba(148, 163, 184, 0.16);
  --glass-border: rgba(56, 189, 248, 0.24);
  --glass-border-hover: rgba(34, 211, 238, 0.72);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 18px 40px rgba(2, 132, 199, 0.26);
  --ribbon-opacity: 0.42;
}

[data-theme="light"] {
  --bg-void: #F8FAFC;
  --bg-navy: #F1F5F9;
  --bg-surface: rgba(255, 255, 255, 0.86);
  --bg-surface-strong: rgba(255, 255, 255, 0.96);
  --bg-card-grad: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 247, 255, 0.92) 100%);
  --bg-banner-grad: linear-gradient(90deg, rgba(239, 246, 255, 0.96) 0%, rgba(224, 242, 254, 0.9) 50%, rgba(239, 246, 255, 0.96) 100%);
  --bg-shell:
    radial-gradient(ellipse 920px 520px at 80% 8%, rgba(56, 189, 248, 0.16), transparent 68%),
    radial-gradient(ellipse 720px 440px at 14% 48%, rgba(37, 99, 235, 0.08), transparent 70%),
    radial-gradient(ellipse 860px 460px at 72% 94%, rgba(14, 165, 233, 0.12), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 35%, #F1F6FD 70%, #F8FAFC 100%);
  --bg-nav: rgba(255, 255, 255, 0.86);
  --bg-dropdown: rgba(255, 255, 255, 0.99);
  --bg-footer: #EFF5FC;
  --bg-input: #FFFFFF;
  --bg-modal: linear-gradient(160deg, #FFFFFF 0%, #F1F7FF 100%);
  --bg-ghost: rgba(241, 245, 249, 0.9);
  --bg-ghost-hover: #E2E8F0;
  --bg-subhero: radial-gradient(ellipse 720px 280px at 50% 0%, rgba(37, 99, 235, 0.12), transparent 75%);
  --bg-code: #0B1732;

  --cyan: #0891B2;
  --sky: #0284C7;
  --blue: #2563EB;
  --blue-bright: #1D4ED8;
  --accent-text: #0369A1;
  --accent-icon: #0284C7;
  --emerald: #059669;
  --amber: #D97706;
  --rose: #DC2626;

  --text-primary: #0F172A;
  --text-heading: #020817;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-subtle: #64748B;

  --border-subtle: rgba(15, 23, 42, 0.1);
  --glass-border: rgba(37, 99, 235, 0.16);
  --glass-border-hover: rgba(2, 132, 199, 0.55);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 18px 36px rgba(37, 99, 235, 0.14);
  --ribbon-opacity: 0.24;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-void);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.3s ease;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-shell);
  transition: background 0.4s ease;
}

.glow-ribbon {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: var(--ribbon-opacity);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #22D3EE);
  z-index: 250;
  transition: width 0.08s linear;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.4px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-logo sup {
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  margin-inline-start: 1px;
  top: -0.75em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 2px;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active-page {
  color: var(--cyan);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 255px;
  background: var(--bg-dropdown);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 120;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a,
.nav-dropdown button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  border-radius: 8px;
  background: transparent;
  border: none;
  text-align: start;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
  background: rgba(37, 99, 235, 0.14);
  color: var(--text-heading);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ctrl-btn {
  background: var(--bg-ghost);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ctrl-btn:hover {
  border-color: var(--cyan);
  background: var(--bg-ghost-hover);
}

.theme-pill-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-text);
  font-weight: 700;
}

.btn-ghost {
  background: var(--bg-ghost);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: var(--bg-ghost-hover);
}

.btn-primary {
  background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 55%, #0284C7 100%);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: all 0.22s ease;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.52);
  filter: brightness(1.06);
}

.mobile-toggle {
  display: none;
  background: var(--bg-ghost);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}

html[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

/* ==================== PAGE ROUTER VIEWS ==================== */
.page-view {
  display: none;
  flex: 1;
  animation: fadePage 0.28s ease;
}

.page-view.active { display: block; }

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

.subpage-hero {
  padding: 56px 0 42px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subhero);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb button {
  background: none;
  border: none;
  color: var(--accent-icon);
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
}

/* ==================== HOME HERO ==================== */
.hero { padding: 48px 0 38px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 34px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulseDot 1.8s infinite;
}

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

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(34px, 4.1vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 18px;
}

.hero-title .gradient-word {
  background: linear-gradient(90deg, #38BDF8, #2563EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--text-secondary);
  max-width: 515px;
  margin-bottom: 26px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-ctas .btn-primary,
.hero-ctas .btn-ghost {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 9px;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--accent-icon);
  flex-shrink: 0;
}

.hero-badge-text {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==================== LAPTOP MOCKUP (Always crisp executive console UI) ==================== */
.laptop-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1400px;
}

.laptop-aura {
  position: absolute;
  width: 92%;
  height: 85%;
  top: 8%;
  inset-inline-end: 0;
  background: radial-gradient(circle at 55% 45%, rgba(34, 211, 238, 0.28), rgba(37, 99, 235, 0.36) 45%, transparent 75%);
  filter: blur(34px);
  pointer-events: none;
  z-index: 0;
}

.laptop-lid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  background: linear-gradient(145deg, #1E293B 0%, #0B1324 100%);
  border-radius: 20px 20px 6px 6px;
  padding: 11px 11px 14px;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42), 0 0 42px rgba(37, 99, 235, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.35s ease;
}

html[dir="rtl"] .laptop-lid {
  transform: rotateY(6deg) rotateX(2deg);
}

.laptop-lid:hover { transform: rotateY(0deg) rotateX(0.5deg); }

.laptop-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 6px #38BDF8;
  margin: 0 auto 7px;
  opacity: 0.85;
}

.laptop-screen {
  background: #061128;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #F8FAFC;
}

[data-theme="light"] .laptop-screen {
  background: #F8FAFC;
  color: #0F172A;
  border-color: rgba(37, 99, 235, 0.25);
}

.app-topbar {
  height: 36px;
  background: #081736;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 10px;
}

[data-theme="light"] .app-topbar {
  background: #FFFFFF;
  border-bottom-color: rgba(15, 23, 42, 0.09);
}

.app-search {
  flex: 1;
  max-width: 245px;
  height: 22px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 10px;
  color: #64748B;
}

[data-theme="light"] .app-search {
  background: #F1F5F9;
  border-color: rgba(15, 23, 42, 0.1);
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94A3B8;
}

.app-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #22D3EE);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.app-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 298px;
}

.app-sidebar {
  background: #071430;
  border-inline-end: 1px solid rgba(148, 163, 184, 0.12);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="light"] .app-sidebar {
  background: #F1F5F9;
  border-inline-end-color: rgba(15, 23, 42, 0.08);
}

.app-brand-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 10px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

[data-theme="light"] .app-brand-mini { color: #0F172A; }

.side-nav-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 10.5px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-align: start;
  font-family: inherit;
  transition: all 0.15s ease;
}

[data-theme="light"] .side-nav-btn { color: #475569; }
.side-nav-btn:hover { color: #E2E8F0; background: rgba(30, 58, 138, 0.25); }
[data-theme="light"] .side-nav-btn:hover { color: #0F172A; background: rgba(37, 99, 235, 0.08); }

.side-nav-btn.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.48), rgba(34, 211, 238, 0.16));
  color: #FFFFFF;
  font-weight: 600;
  border-inline-start: 2px solid var(--cyan);
}

[data-theme="light"] .side-nav-btn.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.08));
  color: #1D4ED8;
}

.app-main {
  padding: 11px 13px;
  background: radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.14), transparent 60%);
}

[data-theme="light"] .app-main {
  background: #F8FAFC;
}

.app-greeting-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
  gap: 8px;
}

.app-greeting { font-size: 13px; font-weight: 700; color: #FFFFFF; }
[data-theme="light"] .app-greeting { color: #0F172A; }
.app-subgreeting { font-size: 9.5px; color: #94A3B8; }
[data-theme="light"] .app-subgreeting { color: #64748B; }

.app-active-pill {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-weight: 700;
  white-space: nowrap;
}

.kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}

.kpi-mini-card {
  background: rgba(11, 26, 58, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 7px;
  padding: 7px 8px;
}

[data-theme="light"] .kpi-mini-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.kpi-mini-label {
  font-size: 8.5px;
  color: #94A3B8;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .kpi-mini-label { color: #64748B; }

.kpi-mini-val {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

[data-theme="light"] .kpi-mini-val { color: #0F172A; }

.kpi-delta { font-size: 8.5px; color: var(--emerald); font-weight: 600; }

.charts-mini-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}

.chart-mini-card {
  background: rgba(11, 26, 58, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 7px;
  padding: 8px 9px;
}

[data-theme="light"] .chart-mini-card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.chart-mini-title { font-size: 9.5px; font-weight: 600; color: #E2E8F0; margin-bottom: 2px; }
[data-theme="light"] .chart-mini-title { color: #334155; }
.chart-mini-highlight { font-size: 10px; font-weight: 700; color: var(--sky); margin-bottom: 4px; }
.chart-canvas-wrap { position: relative; height: 112px; width: 100%; }

.donut-layout { display: flex; align-items: center; gap: 8px; height: 120px; }
.donut-canvas-wrap { position: relative; width: 96px; height: 96px; flex-shrink: 0; }

.donut-center-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.donut-center-num { font-size: 10.5px; font-weight: 800; color: #FFFFFF; line-height: 1.1; }
[data-theme="light"] .donut-center-num { color: #0F172A; }
.donut-center-sub { font-size: 7.5px; color: #94A3B8; }

.donut-legend { display: flex; flex-direction: column; gap: 5px; font-size: 8.5px; color: #CBD5E1; flex: 1; }
[data-theme="light"] .donut-legend { color: #475569; }
.donut-legend-item { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.donut-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-inline-end: 4px; }

.laptop-base {
  position: relative;
  z-index: 1;
  width: 106%;
  max-width: 710px;
  height: 13px;
  margin-top: -2px;
  background: linear-gradient(180deg, #94A3B8 0%, #334155 45%, #0F172A 100%);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
}

.laptop-notch { width: 86px; height: 5px; background: #1E293B; border-radius: 0 0 6px 6px; }

/* ==================== PORTAL ECOSYSTEM BAR ==================== */
.portals-strip { padding: 18px 0 34px; }

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

.portal-access-card {
  background: var(--bg-card-grad);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.portal-access-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.portal-access-info { display: flex; align-items: center; gap: 14px; }

.portal-access-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.35);
  display: grid;
  place-items: center;
  color: var(--cyan);
  flex-shrink: 0;
}

/* ==================== METRICS STRIP ==================== */
.metrics-section {
  padding: 24px 0 44px;
  border-bottom: 1px solid var(--border-subtle);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 14%;
  height: 72%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--glass-border), transparent);
}

.metric-icon { color: var(--accent-icon); flex-shrink: 0; display: grid; place-items: center; }
.metric-num { font-size: 21px; font-weight: 800; color: var(--text-heading); line-height: 1.15; }
.metric-label { font-size: 11.5px; color: var(--text-secondary); line-height: 1.3; }
.metric-sub { font-size: 10px; color: var(--text-muted); }

/* ==================== MODULES SECTION ==================== */
.modules-section { padding: 56px 0 44px; }

.modules-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.58fr;
  gap: 34px;
  align-items: start;
}

.section-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.16;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.btn-outline-glow {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-heading);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-outline-glow:hover {
  border-color: var(--cyan);
  background: rgba(37, 99, 235, 0.14);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.suite-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.suite-card {
  background: var(--bg-card-grad);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px 18px 18px;
  position: relative;
  cursor: pointer;
  transition: all 0.24s ease;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 164px;
}

.suite-card:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-hover);
}

.suite-card-icon { color: var(--accent-icon); margin-bottom: 12px; display: inline-flex; }
.suite-card-title { font-size: 16.5px; font-weight: 700; color: var(--text-heading); margin-bottom: 6px; }
.suite-card-desc { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); padding-inline-end: 22px; }

.suite-card-arrow {
  position: absolute;
  inset-inline-end: 15px;
  bottom: 15px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-flex;
}

.suite-card:hover .suite-card-arrow { transform: translateX(3px); color: var(--cyan); }
html[dir="rtl"] .suite-card:hover .suite-card-arrow { transform: translateX(-3px); }

/* ==================== INTERACTIVE PIPELINE (NEW WORLD-CLASS SECTION) ==================== */
.pipeline-section {
  padding: 44px 0 56px;
}

.pipeline-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pipeline-step-btn {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: start;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline-step-btn:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.pipeline-step-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(34, 211, 238, 0.12));
  border-color: var(--cyan);
  box-shadow: var(--shadow-hover);
}

.pipeline-step-num {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.8px;
}

.pipeline-step-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
}

.pipeline-stage-card {
  background: var(--bg-card-grad);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.payload-box {
  background: var(--bg-code);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #BAE6FD;
  direction: ltr;
  text-align: left;
  overflow-x: auto;
}

.payload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 11px;
  color: #38BDF8;
  font-weight: 700;
}

/* ==================== ROI CALCULATOR (NEW WORLD-CLASS SECTION) ==================== */
.roi-section {
  padding: 40px 0 56px;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.roi-slider-group {
  margin-bottom: 20px;
}

.roi-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-heading);
}

.roi-slider-val {
  color: var(--cyan);
  font-weight: 800;
  font-size: 15px;
}

.roi-range {
  width: 100%;
  accent-color: #2563EB;
  cursor: pointer;
  height: 6px;
}

.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.roi-stat-box {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
}

.roi-stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.roi-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
}

.roi-stat-num.accent {
  color: var(--cyan);
}

/* ==================== SECURITY & COMPLIANCE TRUST STRIP ==================== */
.trust-section {
  padding: 18px 0 46px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.trust-badge-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.trust-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent-icon);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ==================== DYNAMICS 365 BANNER ==================== */
.d365-banner-wrap { padding: 14px 0 46px; }

.d365-banner {
  background: var(--bg-banner-grad);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.d365-left {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline-end: 24px;
  border-inline-end: 1px solid var(--border-subtle);
}

.d365-powered { font-size: 11px; color: var(--text-muted); line-height: 1.2; }
.d365-name { font-size: 15px; font-weight: 700; color: var(--text-heading); }

.d365-features {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: space-between;
}

.d365-feat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--sky);
  color: var(--sky);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

/* ==================== INDUSTRIES CAROUSEL ==================== */
.industries-section { padding: 10px 0 52px; }

.industries-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
}

.view-all-link {
  color: var(--text-primary);
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.view-all-link:hover { color: var(--cyan); }

.carousel-shell { position: relative; display: flex; align-items: center; }

.carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.industry-card {
  position: relative;
  height: 198px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #081634;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-hover);
}

.industry-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 0.35s ease;
}

.industry-card:hover .industry-card-bg { transform: scale(1.05); }

.industry-card-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(4, 13, 34, 0.14) 22%, rgba(3, 10, 26, 0.94) 100%);
}

.industry-card-icon { color: #38BDF8; margin-bottom: 6px; display: inline-flex; }
.industry-card-title { font-size: 14.5px; font-weight: 700; color: #FFFFFF; line-height: 1.25; }
.industry-card-sub { font-size: 11px; color: #CBD5E1; margin-top: 2px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface-strong);
  border: 1px solid var(--glass-border);
  color: var(--text-heading);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.carousel-arrow:hover { border-color: var(--cyan); background: #2563EB; color: #FFFFFF; }
.carousel-arrow.prev { inset-inline-start: -14px; }
.carousel-arrow.next { inset-inline-end: -14px; }

.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active { width: 20px; border-radius: 999px; background: var(--sky); }

/* ==================== FAQ ACCORDION ==================== */
.faq-section {
  padding: 20px 0 48px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--cyan);
}

.faq-q {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: start;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--cyan); }
.faq-chevron { transition: transform 0.2s ease; flex-shrink: 0; }

/* ==================== SUBPAGES LAYOUTS ==================== */
.detail-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 42px 0;
}

.detail-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 42px 0;
}

.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 26px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.glass-panel:hover { border-color: var(--glass-border-hover); }

.panel-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--cyan);
  margin-bottom: 16px;
}

.feature-checklist {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-secondary);
}

.arch-diagram {
  background: var(--bg-surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  margin: 28px 0 46px;
  display: grid;
  grid-template-columns: 1fr auto 1.15fr auto 1fr;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.arch-node {
  background: var(--bg-card-grad);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}

/* ==================== BOTTOM CTA & FOOTER ==================== */
.bottom-cta-section {
  padding: 36px 0 64px;
  text-align: center;
}

.bottom-cta-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--text-heading); margin-bottom: 10px; }
.bottom-cta-sub { font-size: 14.5px; color: var(--text-secondary); max-width: 560px; margin: 0 auto 24px; }
.bottom-cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-footer);
  padding: 46px 0 28px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a,
.footer-col button {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: start;
  font-family: inherit;
  transition: color 0.2s;
}

.footer-col a:hover,
.footer-col button:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-subtle);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #0284C7);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==================== MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 17, 0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-modal);
  border: 1px solid var(--glass-border-hover);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: var(--bg-ghost);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.portal-choice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.portal-choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: var(--text-heading);
  transition: all 0.2s ease;
}

.portal-choice-card:hover {
  border-color: var(--cyan);
  background: rgba(37, 99, 235, 0.14);
  transform: translateX(3px);
}

.form-group { margin-bottom: 13px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
}

.form-success {
  display: none;
  padding: 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: var(--emerald);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .hero-grid, .modules-grid, .pipeline-stage-card, .roi-grid { grid-template-columns: 1fr; }
  .laptop-lid { max-width: 100%; transform: none !important; }
  .metrics-grid, .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .metric-item:nth-child(3)::after { display: none; }
  .arch-diagram { grid-template-columns: 1fr; }
  .pipeline-tabs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-dropdown);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 28px;
    gap: 8px;
  }
  .nav-links.mobile-open { display: flex; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .suite-cards-grid, .detail-grid-3, .detail-grid-2, .portals-grid, .footer-grid { grid-template-columns: 1fr; }
  .carousel-track { grid-template-columns: repeat(2, 1fr); }
  .d365-left { border-inline-end: none; border-bottom: 1px solid var(--border-subtle); padding-bottom: 14px; width: 100%; }
}

@media (max-width: 580px) {
  .metrics-grid, .trust-grid, .carousel-track, .kpi-mini-grid, .charts-mini-grid, .pipeline-tabs, .roi-results-grid { grid-template-columns: 1fr; }
  .metric-item::after { display: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { flex-direction: row; overflow-x: auto; border-inline-end: none; border-bottom: 1px solid var(--border-subtle); }
  .app-brand-mini { display: none; }
  .nav-actions .btn-ghost span { display: none; }
}
