/* ================================================================
   TrivexaERP Marketing Site — Official Brand Identity
   Aligned with trivexa-page-identity.css v2.0
   Primary: #FF9F43 (orange)  |  Secondary: #092C4C (navy)
   ================================================================ */

:root {
  /* ─── Primary Brand ─── */
  --primary: #FF9F43;
  --primary-dark: #E88A2E;
  --primary-light: #fff4ec;
  --primary-glow: rgba(255, 159, 67, 0.25);

  /* ─── Secondary (Navy) ─── */
  --secondary: #092C4C;
  --secondary-light: #0d3a5f;

  /* ─── Functional ─── */
  --success: #10b981;
  --success-light: #d1fae5;
  --info: #3b82f6;
  --info-light: #dbeafe;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --indigo: #6366f1;
  --indigo-light: #e0e7ff;

  /* ─── Text ─── */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* ─── UI ─── */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --card-bg: #ffffff;
  --footer-bg: #092C4C;

  /* ─── Radius & Shadows (from identity system) ─── */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;

  /* ─── Gradients ─── */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --gradient-navy: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-secondary);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

/* ================================================================
   HEADER / NAV
   ================================================================ */
.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1030;
}
.site-header .navbar { padding: 0.6rem 0; }

.brand-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--gradient-primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem; flex-shrink: 0;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.brand-icon.sm { width: 30px; height: 30px; border-radius: 8px; font-size: 0.8rem; }

.brand-logo { height: 38px; width: auto; object-fit: contain; }

.brand-wordmark {
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--secondary);
}
.brand-highlight { color: var(--primary); }

.site-header .nav-link {
  font-weight: 500; font-size: 0.9rem; color: var(--text-secondary) !important;
  padding: 0.5rem 0.75rem !important; border-radius: var(--radius-sm);
}
.site-header .nav-link:hover { color: var(--primary) !important; background: var(--surface); }

/* Mega dropdown */
.mega-menu { min-width: 640px; border-radius: var(--radius-lg); }
.mega-menu .dropdown-header {
  color: var(--secondary); font-size: 0.7rem; letter-spacing: 0.08em; padding: 0.5rem 0.75rem; font-weight: 700; white-space: nowrap;
}
.mega-menu .dropdown-item {
  border-radius: var(--radius-sm); font-size: 0.84rem; padding: 0.45rem 0.75rem;
  white-space: normal; line-height: 1.4; display: flex; align-items: center; gap: 0.4rem;
}
.mega-menu .dropdown-item:hover { background: var(--primary-light); color: var(--primary-dark); }
.mega-menu .dropdown-item i { color: var(--primary); width: 18px; flex-shrink: 0; }

/* ─── Buttons ─── */
.btn-gradient {
  background: var(--gradient-primary); border: none; color: #fff !important;
  font-weight: 600; border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px var(--primary-glow); transition: var(--transition);
}
.btn-gradient:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 24px var(--primary-glow); color: #fff !important; }

.btn-outline-brand {
  border: 2px solid var(--primary); color: var(--primary-dark) !important;
  font-weight: 600; border-radius: var(--radius-pill); background: transparent;
}
.btn-outline-brand:hover { background: var(--primary); color: #fff !important; border-color: var(--primary); }

.btn-outline-light-brand {
  border: 2px solid rgba(255,255,255,0.3); color: #fff !important;
  font-weight: 600; border-radius: var(--radius-pill); background: transparent;
}
.btn-outline-light-brand:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff !important; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 6rem;
  background: linear-gradient(165deg, #ffffff 0%, var(--primary-light) 40%, #fff8f2 70%, #fef5ee 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 75% -5%, var(--primary-glow), transparent 50%),
              radial-gradient(ellipse 50% 50% at 10% 90%, rgba(9,44,76,0.06), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 600; color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-weight: 800; letter-spacing: -0.03em; color: var(--secondary);
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; max-width: 18ch;
}
.hero h1 .gradient-text {
  background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--primary); margin-bottom: 0.75rem;
}
.hero-lead { font-size: 1.05rem; color: var(--text-muted); max-width: 38rem; line-height: 1.7; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.76rem; font-weight: 600; color: var(--text-secondary);
  background: #fff; border: 1px solid var(--border);
  padding: 0.3rem 0.7rem; border-radius: var(--radius-pill);
}
.hero-pill i { color: var(--primary); font-size: 0.7rem; }

/* Hero screenshot */
.hero-screenshot-wrap {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  background: #fff;
}
.hero-screenshot { width: 100%; height: auto; display: block; }

/* Numbers band */
.numbers-band {
  background: var(--secondary); padding: 2.5rem 0;
}
.nb-number {
  font-size: 2.2rem; font-weight: 800; color: var(--primary);
  line-height: 1; letter-spacing: -0.02em;
}
.nb-label {
  font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem;
}

/* Vision text */
.vision-text {
  font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary);
  border-left: 4px solid var(--primary); padding-left: 1.25rem;
}

/* Stats */
.stat-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.stat-box:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-box .stat-number { font-size: 1.6rem; font-weight: 800; color: var(--secondary); line-height: 1.1; }
.stat-box .stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Hero dashboard */
.hero-dashboard {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--gradient-navy); padding: 1.5rem 1.5rem 0;
  box-shadow: var(--shadow-lg); position: relative;
  border-bottom: 3px solid var(--primary);
}
.hero-dashboard::after {
  content: ""; position: absolute; top: 0; right: 0; width: 300px; height: 100%;
  background: radial-gradient(ellipse at top right, var(--primary-glow), transparent 70%);
  pointer-events: none;
}
.dash-topbar { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.r { background: #ef4444; }
.dash-dot.y { background: #eab308; }
.dash-dot.g { background: #22c55e; }

.dash-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
  padding-bottom: 1.5rem;
}
.dash-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 0.9rem; color: #e2e8f0;
}
.dash-card .dc-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 0.3rem; }
.dash-card .dc-value { font-size: 1.1rem; font-weight: 700; color: #fff; }
.dash-card .dc-bar { height: 6px; border-radius: 3px; margin-top: 0.5rem; background: rgba(255,255,255,0.1); overflow: hidden; }
.dash-card .dc-bar span { display: block; height: 100%; border-radius: 3px; }
.dc-bar .fill-orange { background: var(--primary); width: 72%; }
.dc-bar .fill-emerald { background: var(--success); width: 85%; }
.dc-bar .fill-blue { background: var(--info); width: 58%; }
.dc-bar .fill-amber { background: var(--warning); width: 44%; }

.dash-sidebar {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 0.9rem;
}
.dash-sidebar ul { list-style: none; margin: 0; padding: 0; }
.dash-sidebar li {
  font-size: 0.78rem; color: #cbd5e1; padding: 0.25rem 0;
  display: flex; align-items: center; gap: 0.5rem;
}
.dash-sidebar li i { color: var(--primary); font-size: 0.7rem; }

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 4rem 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--gradient-navy); color: #e2e8f0; }

.section-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary-dark); background: var(--primary-light);
  padding: 0.25rem 0.65rem; border-radius: var(--radius-sm);
}
.section-title { font-weight: 800; color: var(--secondary); letter-spacing: -0.02em; line-height: 1.2; }
.section-lead { color: var(--text-muted); max-width: 42rem; font-size: 1.05rem; }

/* ================================================================
   MODULE CARDS
   ================================================================ */
.module-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; height: 100%; position: relative;
  transition: var(--transition); box-shadow: var(--shadow-sm); overflow: hidden;
}
.module-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary); opacity: 0; transition: var(--transition);
}
.module-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.module-card:hover::before { opacity: 1; }

.module-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1rem;
  background: var(--primary-light); color: var(--primary-dark);
}
.module-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.4rem; }
.module-card p { font-size: 0.88rem; margin: 0; color: var(--text-muted); }
.module-card .module-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.75rem; }
.module-tag {
  font-size: 0.68rem; font-weight: 600; background: var(--surface-2);
  color: var(--text-muted); padding: 0.18rem 0.5rem; border-radius: 4px;
}

/* ================================================================
   WHY CARDS
   ================================================================ */
.why-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; height: 100%; transition: var(--transition);
}
.why-card:hover { box-shadow: var(--shadow); }
.why-card .why-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 0.75rem;
}
.why-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.3rem; }
.why-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Icon color variants */
.icon-orange { background: var(--primary-light); color: var(--primary-dark); }
.icon-navy { background: rgba(9,44,76,0.08); color: var(--secondary); }
.icon-emerald { background: var(--success-light); color: var(--success); }
.icon-amber { background: var(--warning-light); color: var(--warning); }
.icon-rose { background: var(--danger-light); color: var(--danger); }
.icon-blue { background: var(--info-light); color: var(--info); }
.icon-indigo { background: var(--indigo-light); color: var(--indigo); }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-band {
  background: var(--gradient-navy); position: relative; overflow: hidden; padding: 4rem 0;
}
.cta-band::before {
  content: ""; position: absolute; top: 0; right: 0; width: 400px; height: 100%;
  background: radial-gradient(ellipse at top right, var(--primary-glow), transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,0.6); max-width: 32rem; }

/* ================================================================
   INNER PAGES
   ================================================================ */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: var(--gradient-navy);
  border-bottom: 3px solid var(--primary);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 300px; height: 100%;
  background: radial-gradient(ellipse at top right, var(--primary-glow), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-title { font-weight: 800; letter-spacing: -0.02em; color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-lead { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 52rem; }

.page-hero .module-icon {
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.breadcrumb { font-size: 0.82rem; }
.breadcrumb-item a { color: rgba(255,255,255,0.5); }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: var(--primary); font-weight: 600; }

.content-section { padding: 3rem 0; }
.content-section h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--secondary);
  margin-top: 2.5rem; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h2 i { color: var(--primary); font-size: 1rem; }
.content-section p, .content-section li { font-size: 0.92rem; }
.content-section ul { padding-left: 1.2rem; }
.content-section li { margin-bottom: 0.35rem; }

/* Feature grid */
.feature-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: 1fr 1fr; } }

.fg-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.15rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.fg-item i { color: var(--primary); font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }
.fg-item strong { display: block; font-size: 0.9rem; color: var(--secondary); margin-bottom: 0.15rem; }
.fg-item span { font-size: 0.82rem; color: var(--text-muted); }

.callout {
  border-left: 4px solid var(--primary); background: var(--primary-light);
  padding: 1.15rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout p { margin-bottom: 0; font-size: 0.92rem; color: var(--text-primary); }

.two-col-list { columns: 1; }
@media (min-width: 768px) { .two-col-list { columns: 2; column-gap: 2rem; } }
.two-col-list li { break-inside: avoid; }

/* ================================================================
   FEATURE HERO (flagship highlight blocks)
   ================================================================ */
.feature-hero {
  background: var(--gradient-navy); border-radius: var(--radius-xl);
  padding: 2rem 2rem 1.75rem; margin-bottom: 1.5rem;
  position: relative; overflow: hidden;
  border-bottom: 3px solid var(--primary);
  color: #ffffff;
}
.feature-hero h2,
.feature-hero h3,
.feature-hero p,
.feature-hero span { color: #ffffff; }
.feature-hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 300px; height: 100%;
  background: radial-gradient(ellipse at top right, var(--primary-glow), transparent 70%);
  pointer-events: none;
}
.fh-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--primary);
  background: rgba(255,159,67,0.15); padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm); margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}
.feature-hero h2.fh-title,
.fh-title {
  font-size: 1.35rem; font-weight: 800; color: #ffffff !important;
  margin-bottom: 0.5rem; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0;
}
.feature-hero .fh-title i { color: var(--primary); }
.fh-lead {
  font-size: 0.95rem; color: rgba(255,255,255,0.65) !important;
  max-width: 40rem; margin: 0; position: relative; z-index: 1;
}

/* ================================================================
   MINI SHOWCASE (horizontal feature pills)
   ================================================================ */
.mini-showcase {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.ms-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.4rem 0.75rem; border-radius: var(--radius-pill);
}
.ms-item i { color: var(--primary); font-size: 0.8rem; }

/* ================================================================
   ACCOUNTING BRIDGE DIAGRAM
   ================================================================ */
.accounting-bridge {
  display: flex; align-items: center; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin: 1.25rem 0;
}
.ab-side {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  min-width: 200px; flex: 1;
}
.ab-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--primary-dark); margin-bottom: 0.5rem;
}
.ab-entry {
  font-size: 0.85rem; color: var(--text-secondary);
  padding: 0.2rem 0; border-bottom: 1px solid var(--border-light);
}
.ab-entry:last-child { border-bottom: none; }
.ab-entry strong { color: var(--primary-dark); }
.ab-arrow { font-size: 1.5rem; color: var(--primary); flex-shrink: 0; }

/* ================================================================
   REPORT GRID
   ================================================================ */
.report-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
@media (min-width: 768px) { .report-grid { grid-template-columns: repeat(4, 1fr); } }
.rg-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-secondary);
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
}
.rg-item i { color: var(--primary); font-size: 0.9rem; flex-shrink: 0; }
.rg-item strong { font-weight: 600; color: var(--secondary); font-size: 0.8rem; }

/* ================================================================
   SECTION SCREENSHOTS (dynamic from DB)
   ================================================================ */
.section-screenshots { margin: 1.5rem 0; }
.section-screenshots.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 767.98px) { .section-screenshots.multi { grid-template-columns: 1fr; } }

.screenshot-frame {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: #fff; margin: 0;
}
.screenshot-frame img { width: 100%; height: auto; display: block; }
.screenshot-frame figcaption {
  padding: 0.75rem 1rem; border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.screenshot-frame figcaption strong { font-size: 0.85rem; color: var(--secondary); }
.screenshot-frame figcaption span { font-size: 0.78rem; color: var(--text-muted); }

/* ================================================================
   FOOTER (Navy brand)
   ================================================================ */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.55); }
.footer-heading {
  color: #fff; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-links a:hover { color: var(--primary); }
.text-muted-footer { color: rgba(255,255,255,0.55) !important; font-size: 0.88rem; }
.footer-rule { border-color: rgba(255,255,255,0.1); }
.footer-badge {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 600; color: var(--primary);
  background: rgba(255,159,67,0.12); padding: 0.25rem 0.6rem; border-radius: var(--radius-sm);
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow);
}

/* ================================================================
   TRUST PILLS
   ================================================================ */
.trust-pill {
  display: inline-flex; align-items: center;
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  background: #fff; border: 1px solid var(--border);
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
}
.trust-pill i { color: var(--primary); }

/* ================================================================
   WORKFLOW CARDS
   ================================================================ */
.workflow-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 1.75rem; height: 100%; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.workflow-card:hover { box-shadow: var(--shadow); }

.wf-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.wf-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.wf-header h3 { font-size: 1.05rem; font-weight: 700; color: var(--secondary); margin: 0; }
.wf-sub { font-size: 0.78rem; color: var(--text-muted); }

.wf-flow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem;
  margin-bottom: 1.25rem; padding: 1rem;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border-light);
}
.wf-step {
  font-size: 0.75rem; font-weight: 600; color: var(--text-secondary);
  background: #fff; border: 1px solid var(--border);
  padding: 0.35rem 0.7rem; border-radius: var(--radius-sm);
  white-space: nowrap;
}
.wf-step.active {
  background: var(--gradient-primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}
.wf-arrow { color: var(--primary); font-size: 0.65rem; }

.wf-features {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
}
.wf-features li {
  font-size: 0.82rem; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 0.4rem;
}
.wf-features i { color: var(--primary); font-size: 0.75rem; margin-top: 0.15rem; flex-shrink: 0; }

.wf-link {
  font-size: 0.85rem; font-weight: 600; color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.wf-link:hover { color: var(--primary); gap: 0.5rem; }

/* ================================================================
   POS MODE CARDS
   ================================================================ */
.pos-mode-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; text-align: center; height: 100%;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.pos-mode-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pm-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin: 0 auto 0.75rem;
}
.pos-mode-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.3rem; }
.pos-mode-card p { font-size: 0.78rem; color: var(--text-muted); margin: 0; line-height: 1.45; }

.pos-feature-mini {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.6rem 0.75rem;
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
}
.pos-feature-mini i { color: var(--primary); font-size: 0.9rem; }

/* ================================================================
   DARK SECTION COMPONENTS
   ================================================================ */
.dark-stat-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 1.25rem; text-align: center;
}
.ds-number {
  font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1;
  margin-bottom: 0.35rem;
}
.ds-label { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.4; }

.enterprise-list { list-style: none; padding: 0; margin: 0; }
.enterprise-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.enterprise-list li:last-child { border-bottom: none; }
.enterprise-list li > i { color: var(--primary); font-size: 1rem; margin-top: 0.2rem; flex-shrink: 0; }
.enterprise-list strong { display: block; color: #fff; font-size: 0.92rem; margin-bottom: 0.1rem; }
.enterprise-list span { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ================================================================
   ADMIN TOPBAR
   ================================================================ */
.admin-topbar {
  padding: 1.25rem 1.5rem; background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* ================================================================
   ADMIN DASHBOARD
   ================================================================ */
.admin-stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; display: flex; align-items: center; gap: 1rem;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.admin-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.asc-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.asc-number { font-size: 1.6rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.asc-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }

.admin-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.ap-header {
  padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}
.ap-header h5 {
  font-size: 0.9rem; font-weight: 700; color: var(--secondary); margin: 0;
  display: flex; align-items: center;
}
.ap-header h5 i { color: var(--primary); }
.ap-body { padding: 1.25rem; }
.ap-body.p-0 { padding: 0; }
.ap-body .table { margin: 0; font-size: 0.82rem; }
.ap-body .table th {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 2px solid var(--border);
  padding: 0.6rem 1rem; white-space: nowrap;
}
.ap-body .table td { padding: 0.6rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--border-light); }
.ap-body .table-hover tbody tr:hover { background: var(--surface); }

.admin-thumb {
  border-radius: var(--radius-sm); overflow: hidden; position: relative;
  border: 1px solid var(--border); aspect-ratio: 16/10;
  transition: var(--transition);
}
.admin-thumb:hover { box-shadow: var(--shadow); transform: scale(1.03); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-badge {
  position: absolute; top: 4px; right: 4px;
  font-size: 0.6rem; font-weight: 700; color: #fff;
  background: var(--danger); padding: 0.1rem 0.3rem; border-radius: 3px;
}

.health-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}
.health-row:last-child { border-bottom: none; }
.health-row span { color: var(--text-muted); }
.health-row strong { color: var(--secondary); font-size: 0.85rem; }

.menu-tree-group { margin-bottom: 0.75rem; }
.menu-tree-group:last-child { margin-bottom: 0; }
.mtg-header {
  font-size: 0.78rem; font-weight: 700; color: var(--primary-dark);
  text-transform: uppercase; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.35rem; padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-light);
}
.mtg-header i { font-size: 0.75rem; }
.mtg-item {
  font-size: 0.82rem; color: var(--text-secondary);
  padding: 0.2rem 0 0.2rem 1.2rem;
  display: flex; align-items: center; gap: 0.4rem;
}
.mtg-item i { color: var(--primary); font-size: 0.8rem; }

/* ================================================================
   WHY TRIVEXA PAGE
   ================================================================ */
.arch-diagram { text-align: center; }
.arch-top { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.arch-channel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.6rem 1rem; font-size: 0.82rem; font-weight: 600; color: var(--secondary);
  display: flex; align-items: center; gap: 0.4rem;
}
.arch-channel i { color: var(--primary); }
.arch-arrow-down { color: var(--primary); font-size: 1.2rem; margin: 0.35rem 0; }
.arch-core {
  background: var(--gradient-navy); border-radius: var(--radius-xl);
  padding: 1.5rem; display: inline-block; border-bottom: 3px solid var(--primary);
  position: relative;
}
.arch-core-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary); margin-bottom: 0.75rem;
}
.arch-core-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.arch-core-items span {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 0.35rem 0.65rem;
  font-size: 0.78rem; color: #e2e8f0; display: flex; align-items: center; gap: 0.3rem;
}
.arch-core-items span i { color: var(--primary); font-size: 0.75rem; }
.arch-db {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--secondary);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.arch-db i { color: var(--primary); font-size: 1.1rem; }

.flow-node {
  padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.82rem;
  font-weight: 600; display: flex; align-items: center; gap: 0.4rem;
}
.fn-orange { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--primary); }
.fn-navy { background: rgba(9,44,76,0.08); color: var(--secondary); border: 1px solid rgba(9,44,76,0.2); }

.scale-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; text-align: center; transition: var(--transition);
}
.scale-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.sc-number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.sc-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

.audit-stack { display: flex; flex-direction: column; gap: 0.5rem; }
.as-tier {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.85rem 1rem; display: flex; align-items: flex-start; gap: 0.75rem;
  border-left: 4px solid var(--tier-color, var(--primary));
  transition: var(--transition);
}
.as-tier:hover { box-shadow: var(--shadow); }
.as-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--tier-color, var(--primary)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700;
}
.as-tier strong { display: block; font-size: 0.88rem; color: var(--secondary); margin-bottom: 0.1rem; }
.as-tier span { font-size: 0.78rem; color: var(--text-muted); }

/* ================================================================
   HOMEPAGE EDITOR
   ================================================================ */
.img-preview {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); overflow: hidden; text-align: center;
  height: 120px; display: flex; align-items: center; justify-content: center;
}
.img-preview.sm { height: 80px; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-preview.empty { flex-direction: column; gap: 0.25rem; color: var(--text-muted); }
.img-preview.empty i { font-size: 1.5rem; opacity: 0.3; }
.img-preview.empty span { font-size: 0.72rem; }

.homepage-img-slot { }
.homepage-field { padding: 0.5rem; background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.field-lang-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--primary); margin-bottom: 0.2rem;
}

/* ================================================================
   ADMIN SETTINGS PANELS (expandable)
   ================================================================ */
.settings-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.sp-header {
  padding: 0.9rem 1.15rem; display: flex; align-items: center; gap: 0.85rem;
  cursor: pointer; transition: var(--transition); user-select: none;
}
.sp-header:hover { background: var(--surface); }
.sp-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; flex-shrink: 0;
}
.sp-header h6 { font-size: 0.9rem; font-weight: 700; color: var(--secondary); margin: 0; }
.sp-header span { font-size: 0.75rem; color: var(--text-muted); }
.sp-arrow {
  margin-left: auto; font-size: 0.75rem; color: var(--text-muted);
  transition: transform 0.25s ease;
}
.settings-panel.open .sp-arrow { transform: rotate(180deg); }
.sp-body {
  padding: 0 1.15rem; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.settings-panel.open .sp-body {
  max-height: 2000px; padding: 0.5rem 1.15rem 1.15rem;
  border-top: 1px solid var(--border-light);
}

/* ================================================================
   ICON PICKER (admin)
   ================================================================ */
.icon-preview {
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center; background: var(--surface);
  flex-shrink: 0; color: var(--primary);
}
.icon-picker-grid {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem; max-height: 260px; overflow-y: auto; margin-bottom: 1rem;
}
.icon-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-pick-btn {
  width: 40px; height: 40px; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); font-size: 1.1rem;
  color: var(--text-secondary);
}
.icon-pick-btn:hover { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); }

/* ================================================================
   ADMIN BLOCK ITEM FORMS
   ================================================================ */
.block-item-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; margin-bottom: 0.75rem;
  position: relative;
}
.block-item-card .item-number {
  position: absolute; top: -8px; left: 12px;
  background: var(--primary); color: #fff; font-size: 0.7rem;
  font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 10px;
}
.block-item-card .remove-item {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; color: var(--danger); cursor: pointer;
  font-size: 1rem; opacity: 0.6;
}
.block-item-card .remove-item:hover { opacity: 1; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease-out both; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991.98px) {
  .mega-menu { min-width: auto; }
  .hero { padding: 3rem 0 4rem; }
  .hero h1 { font-size: 2rem; }
  .dash-content { grid-template-columns: 1fr; }
  .wf-features { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .section { padding: 2.5rem 0; }
  .stat-box .stat-number { font-size: 1.2rem; }
  .wf-flow { gap: 0.25rem; }
  .wf-step { font-size: 0.68rem; padding: 0.25rem 0.5rem; }
}
