/* ============================================================================
   FoR-E Portal - Premium Design System
   Ontwerpintentie: high-end, luxurious, refined. Tesla / Rimac / Apple niveau.
   ============================================================================ */

/* ============================================================================
   PF GRAND GOTHIC PRO — FoR-E brand font
   ----------------------------------------------------------------------------
   Zet font files in /static/fonts/pf-grand-gothic/ om de echte font te gebruiken.
   Tot die tijd: automatische fallback naar Questrial (Google Font, dichtstbij
   Century Gothic / PF Grand Gothic in DNA).
   ============================================================================ */

/* Google Fonts - Figtree als primary + Fraunces voor italic accents in pull quotes */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');

/* @font-face rules voor PF Grand Gothic Pro - worden actief zodra files aanwezig zijn */
@font-face {
  font-family: 'PF Grand Gothic';
  src: url('../fonts/pf-grand-gothic/PFGrandGothicPro-Thin.woff2') format('woff2'),
       url('../fonts/pf-grand-gothic/PFGrandGothicPro-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PF Grand Gothic';
  src: url('../fonts/pf-grand-gothic/PFGrandGothicPro-Light.woff2') format('woff2'),
       url('../fonts/pf-grand-gothic/PFGrandGothicPro-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PF Grand Gothic';
  src: url('../fonts/pf-grand-gothic/PFGrandGothicPro-Regular.woff2') format('woff2'),
       url('../fonts/pf-grand-gothic/PFGrandGothicPro-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PF Grand Gothic';
  src: url('../fonts/pf-grand-gothic/PFGrandGothicPro-Italic.woff2') format('woff2'),
       url('../fonts/pf-grand-gothic/PFGrandGothicPro-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PF Grand Gothic';
  src: url('../fonts/pf-grand-gothic/PFGrandGothicPro-Medium.woff2') format('woff2'),
       url('../fonts/pf-grand-gothic/PFGrandGothicPro-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PF Grand Gothic';
  src: url('../fonts/pf-grand-gothic/PFGrandGothicPro-Bold.woff2') format('woff2'),
       url('../fonts/pf-grand-gothic/PFGrandGothicPro-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PF Grand Gothic';
  src: url('../fonts/pf-grand-gothic/PFGrandGothicPro-Black.woff2') format('woff2'),
       url('../fonts/pf-grand-gothic/PFGrandGothicPro-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* FoR-E OFFICIAL brand palette (uit Brand Book v1) */
  --fore-ink: #000000;        /* charcoal black */
  --fore-graphite: #0a0a0a;
  --fore-carbon: #121210;
  --fore-slate: #1a1a18;
  --fore-line: #2a2a26;
  --fore-ash: #5a5a54;
  --fore-fog: #a5a59d;
  --fore-white: #ffffff;      /* clean white */

  --fore-wood: #a67150;       /* Pantone 4625 C — wood brown, warme accent */
  --fore-wood-light: #c89a7c;
  --fore-wood-deep: #7a4d33;
  --fore-cyan: #98f0ee;       /* Pantone 318 C — electric cyan */
  --fore-cyan-deep: #68c9c7;
  --fore-cyan-glow: #98f0ee33;

  /* Legacy aliases voor backwards compat (sommige admin templates gebruiken deze) */
  --fore-blue: #98f0ee;
  --fore-blue-glow: #98f0ee33;
  --fore-pink: #a67150;
  --fore-purple: #a67150;
  --fore-magenta: #a67150;

  /* Brand signature gradient - warmth → clarity (wood → cyan) */
  --fore-gradient: linear-gradient(135deg, #a67150 0%, #c89a7c 40%, #98f0ee 100%);
  --fore-gradient-subtle: linear-gradient(135deg, rgba(166,113,80,0.10) 0%, rgba(152,240,238,0.08) 100%);

  /* Typography - FoR-E brand fonts
     Figtree als primary — modern, warm, premium (Apple/Tesla/Dyson DNA)
     Fraunces voor italic accents in pull quotes (dramatic serif contrast) */
  --font-ui:      'Figtree', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display: 'Figtree', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-accent:  'Fraunces', Georgia, serif;  /* alleen voor italic accents in pull quotes */

  /* Motion */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-expressive: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Spacing scale */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 56px;
  --space-2xl: 96px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
}

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

/* Smooth scroll everywhere */
html { scroll-behavior: smooth; }

/* Premium focus states (keyboard a11y) */
:focus-visible { outline: 2px solid var(--fore-cyan); outline-offset: 3px; border-radius: 6px; }

/* Selection highlight gebruikt brand colors */
::selection { background: var(--fore-wood); color: var(--fore-white); }

/* ============================================================================
   AI CHAT DRAWER — slides in from right, premium chat experience
   ============================================================================ */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--fore-white);
  color: var(--fore-ink);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  box-shadow: 0 20px 60px -12px rgba(152,240,238,0.35), 0 8px 20px rgba(0,0,0,0.4);
  transition: all 0.3s var(--ease-smooth);
}
.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 80px -10px rgba(152,240,238,0.55), 0 12px 24px rgba(0,0,0,0.5);
}
.chat-fab svg { width: 18px; height: 18px; }
.chat-fab .fab-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  margin-right: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.chat-fab .fab-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fore-cyan);
  box-shadow: 0 0 0 4px rgba(152,240,238,0.25);
  animation: pulse 2s ease-in-out infinite;
}

.chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100vh;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 300;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
}
.chat-drawer.open { transform: translateX(0); }
.chat-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth);
  z-index: 290;
  backdrop-filter: blur(4px);
}
.chat-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.chat-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--fore-line);
}
.chat-header .ch-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--fore-white);
  margin-bottom: 6px;
}
.chat-header .ch-brand img { height: 20px; filter: invert(1) brightness(2); opacity: 0.92; }
.chat-header .ch-brand .ch-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  filter: none; opacity: 1;
  box-shadow: 0 4px 14px rgba(152,240,238,0.25);
}
.chat-header .ch-brand .ch-brand-txt {
  display: flex; flex-direction: column; gap: 2px; line-height: 1;
}
.chat-header .ch-brand .ch-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem; letter-spacing: 0.01em;
  color: #fff;
}
.chat-header .ch-brand .ch-role {
  font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(152,240,238,0.85);
}
.chat-header .ch-brand .online {
  width: 8px; height: 8px; border-radius: 50%;
  background: #38d07a;
  box-shadow: 0 0 0 4px rgba(56,208,122,0.2);
  animation: pulse 2.4s ease-in-out infinite;
  margin-left: 8px;
}
.chat-header .ch-sub {
  font-size: 0.82rem;
  color: var(--fore-fog);
  margin-top: 4px;
}
.chat-header .ch-close {
  position: absolute;
  top: 24px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--fore-line);
  color: var(--fore-white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease-smooth);
}
.chat-header .ch-close:hover { background: rgba(255,255,255,0.12); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--fore-line); border-radius: 2px; }

.msg {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 18px;
  line-height: 1.55;
  font-size: 0.94rem;
  animation: msg-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes msg-in {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: none; }
}
.msg.user {
  align-self: flex-end;
  background: var(--fore-white);
  color: var(--fore-ink);
  border-bottom-right-radius: 6px;
}
.msg.bot {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
}
.msg.bot .msg-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin-bottom: 2px;
}
.msg.bot .msg-bubble {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--fore-line);
  color: var(--fore-white);
  padding: 14px 18px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  line-height: 1.5;
}
.msg.typing {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.msg.typing .typing-dots {
  padding: 14px 18px;
  display: flex; gap: 4px;
}
.msg.typing .typing-dots span,
.msg.typing > span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fore-fog);
  animation: typing-dot 1.3s ease-in-out infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.18s; }
.msg.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
  padding: 0 28px 16px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chat-suggestions .sugg {
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--fore-line);
  border-radius: 999px;
  color: var(--fore-fog);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  font-family: var(--font-ui);
}
.chat-suggestions .sugg:hover { background: rgba(255,255,255,0.1); color: var(--fore-white); border-color: var(--fore-cyan); }

.chat-input-wrap {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--fore-line);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  background: var(--fore-graphite);
  border: 1px solid var(--fore-line);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--fore-white);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.4;
}
.chat-input:focus {
  outline: none;
  border-color: var(--fore-cyan);
  box-shadow: 0 0 0 3px var(--fore-cyan-glow);
}
.chat-send {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--fore-white);
  color: var(--fore-ink);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease-smooth);
  flex-shrink: 0;
}
.chat-send:hover { background: var(--fore-cyan); transform: translateY(-1px); }
.chat-send:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.chat-footer {
  padding: 10px 28px 16px;
  font-size: 0.72rem;
  color: var(--fore-ash);
  text-align: center;
  border-top: 1px solid var(--fore-line);
}
.chat-footer .demo-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(244,194,84,0.15);
  border: 1px solid rgba(244,194,84,0.35);
  border-radius: 999px;
  color: #f4c254;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile responsive */
@media (max-width: 540px) {
  .chat-drawer { width: 100vw; }
  .chat-fab { bottom: 20px; right: 20px; padding: 12px 18px; font-size: 0.82rem; }
}

/* ============================================================================
   RTL SUPPORT — mirror layout voor Arabisch / Hebreeuws / andere RTL talen
   ============================================================================ */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .premium-hero { grid-template-columns: 1fr 1.1fr; }
html[dir="rtl"] .vision-section { grid-template-columns: 1fr 1fr; direction: rtl; }
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .pq-text,
html[dir="rtl"] .bleed-title,
html[dir="rtl"] .cta-title,
html[dir="rtl"] .tile-title-lg,
html[dir="rtl"] .comp-title {
  letter-spacing: normal !important;  /* Arabic doesn't use tight letter-spacing */
}
html[dir="rtl"] .comp-list li { padding-left: 0; padding-right: 28px; }
html[dir="rtl"] .comp-list li::before { left: auto; right: 0; }
html[dir="rtl"] .tile-arrow-lg svg,
html[dir="rtl"] .doc-cta svg,
html[dir="rtl"] .btn svg { transform: scaleX(-1); }  /* Arrows mirror naar links */
html[dir="rtl"] .admin-nav,
html[dir="rtl"] .sticky-nav { direction: rtl; }
html[dir="rtl"] .form-group,
html[dir="rtl"] .form-group label,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  text-align: right;
  direction: rtl;
}
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"] { direction: ltr; text-align: left; }
html[dir="rtl"] .hero-customer { direction: rtl; }
/* Serif typografie werkt minder voor Arabisch - gebruik system font stack */
html[dir="rtl"] .hero-title,
html[dir="rtl"] .pq-text,
html[dir="rtl"] .section-title,
html[dir="rtl"] .bleed-title,
html[dir="rtl"] .cta-title,
html[dir="rtl"] .tile-title-lg,
html[dir="rtl"] .comp-title,
html[dir="rtl"] .vision-text h2 {
  font-family: "Noto Naskh Arabic", "Amiri", "Traditional Arabic", var(--font-display);
  font-weight: 500;
}

body {
  font-family: var(--font-ui);
  background: var(--fore-carbon);
  color: var(--fore-white);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient background glow (subtle premium touch) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(231,72,177,0.10), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(69,103,237,0.08), transparent 50%),
    radial-gradient(circle at 50% 110%, rgba(119,82,231,0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

main, .page, .shell { position: relative; z-index: 1; }

/* Typography primitives */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-variation-settings: "opsz" 96;
  color: var(--fore-white);
}
.h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; }
.h3 { font-size: 1.1rem; letter-spacing: -0.01em; font-weight: 500; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  color: var(--fore-fog);
  font-weight: 500;
}

.muted { color: var(--fore-fog); }
.dim { color: var(--fore-ash); }
.hairline {
  border: 0;
  border-top: 1px solid var(--fore-line);
  margin: var(--space-lg) 0;
}

/* Shell + nav */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 96px;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 32px;
  border-bottom: 1px solid var(--fore-line);
  margin-bottom: 48px;
}
.topnav .brand,
.topnav .brand:link,
.topnav .brand:visited,
.topnav .brand:hover,
.topnav .brand:active {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  color: var(--fore-white);
  text-decoration: none;
}
.topnav .brand img { height: 32px; width: auto; filter: invert(1) brightness(2); opacity: 0.92; }
.topnav .crumbs {
  font-size: 0.85rem;
  color: var(--fore-fog);
  letter-spacing: 0.04em;
}
.topnav .crumbs a { color: var(--fore-fog); text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.2s var(--ease-smooth); }
.topnav .crumbs a:hover { color: var(--fore-white); border-color: var(--fore-line); }

/* Hero */
.hero { padding: 40px 0 64px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero .h-display { margin: 0 0 24px; max-width: 16ch; }
.hero .lede { color: var(--fore-fog); max-width: 56ch; font-size: 1.05rem; line-height: 1.7; }
.hero .meta {
  display: flex; gap: 48px; flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--fore-line);
}
.hero .meta .item .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fore-ash); margin-bottom: 6px; }
.hero .meta .item .v { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; letter-spacing: -0.01em; }

/* Status indicator */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fore-fog);
}
.status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #38d07a;
  box-shadow: 0 0 0 4px rgba(56, 208, 122, 0.15);
  animation: pulse 2.4s var(--ease-smooth) infinite;
}
.status.warn::before { background: #f4c254; box-shadow: 0 0 0 4px rgba(244, 194, 84, 0.15); }
.status.err::before  { background: #e55b5b; box-shadow: 0 0 0 4px rgba(229, 91, 91, 0.15); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(56,208,122,0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(56,208,122,0.05); }
}

/* Tile grid (admin) - uniform height + radius */
.tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
}
.tile {
  grid-column: span 4;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--fore-line);
  border-radius: 20px;            /* admin tiles iets compacter dan premium */
  padding: 32px 28px;
  min-height: 240px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.5s var(--ease-expressive), border-color 0.3s var(--ease-smooth);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}
.tile::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--fore-gradient);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.tile::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(69,103,237,0.5) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  pointer-events: none;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: transparent;
}
.tile:hover::before { opacity: 0.08; }
.tile:hover::after  { opacity: 1; }
.tile .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(69,103,237,0.18), rgba(119,82,231,0.12));
  border: 1px solid var(--fore-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--fore-white);
  margin-bottom: 24px;
}
.tile .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.tile .tile-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--fore-white);
}
.tile .tile-sub {
  font-size: 0.92rem;
  color: var(--fore-fog);
  line-height: 1.55;
  margin: 0;
}
.tile .tile-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--fore-line);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fore-fog);
}
.tile .tile-cta .arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--fore-line);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease-smooth);
}
.tile:hover .tile-cta .arrow {
  border-color: var(--fore-blue);
  background: var(--fore-blue);
  color: white;
  transform: translateX(4px);
}
.tile.wide  { grid-column: span 8; }
.tile.half  { grid-column: span 6; }
.tile.third { grid-column: span 4; }

.tile.highlight {
  background: var(--fore-gradient-subtle), linear-gradient(180deg, rgba(69,103,237,0.06), rgba(69,103,237,0.02));
  border-color: rgba(69,103,237,0.3);
}
.tile.disabled { opacity: 0.35; pointer-events: none; }

/* Section headers */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 72px 0 24px;
}
.section-head .h-display { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--fore-line);
  background: transparent;
  color: var(--fore-white);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
/* Shine sweep op hover (Apple signature) */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255,255,255,0.15) 50%,
    transparent 100%);
  transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn:hover { border-color: var(--fore-white); transform: translateY(-1px); }
.btn.primary {
  background: var(--fore-white);
  color: var(--fore-ink);
  border-color: var(--fore-white);
}
.btn.primary:hover {
  background: var(--fore-cyan);
  color: var(--fore-ink);
  border-color: var(--fore-cyan);
  box-shadow: 0 16px 50px -12px rgba(152,240,238,0.5);
}
.btn.ghost { border-color: transparent; color: var(--fore-fog); }
.btn.ghost:hover { color: var(--fore-white); border-color: var(--fore-line); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--fore-ash); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--fore-graphite);
  border: 1px solid var(--fore-line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--fore-white);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease-smooth);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--fore-blue);
  box-shadow: 0 0 0 3px var(--fore-blue-glow);
}

/* Tables (admin) */
table.data {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--fore-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
table.data th, table.data td {
  padding: 18px 20px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--fore-line);
}
table.data th {
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fore-ash);
  background: rgba(255,255,255,0.02);
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover { background: rgba(255,255,255,0.02); }
table.data a { color: var(--fore-white); text-decoration: none; border-bottom: 1px dotted var(--fore-ash); }
table.data a:hover { border-color: var(--fore-white); }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--fore-line);
  color: var(--fore-fog);
}
.pill.active { background: rgba(69,103,237,0.15); border-color: rgba(69,103,237,0.35); color: var(--fore-white); }

/* Admin toggle (visibility switch) */
.toggle {
  position: relative;
  width: 42px; height: 24px;
  background: var(--fore-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease-smooth);
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--fore-white);
  border-radius: 50%;
  transition: transform 0.25s var(--ease-expressive);
}
input[type="checkbox"].toggle-input { display: none; }
input[type="checkbox"].toggle-input:checked + .toggle {
  background: var(--fore-blue);
}
input[type="checkbox"].toggle-input:checked + .toggle::after {
  transform: translateX(18px);
}

/* Footer */
.footer {
  margin-top: 120px;
  padding-top: 40px;
  border-top: 1px solid var(--fore-line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--fore-ash);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.footer .wordmark { font-family: var(--font-display); letter-spacing: 0.08em; color: var(--fore-fog); font-size: 0.9rem; }

/* Scroll reveal (subtle) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease-expressive), transform 1.1s var(--ease-expressive); }
.reveal.in  { opacity: 1; transform: none; }

/* Hero entrance animation (load-triggered) */
.hero-animate { opacity: 0; transform: translateY(32px); transition: opacity 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero-animate.in { opacity: 1; transform: none; }

/* Staggered child items */
[data-stagger] { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease-expressive), transform 0.9s var(--ease-expressive); }
[data-stagger].in { opacity: 1; transform: none; }

/* Admin nav */
.admin-nav a {
  color: var(--fore-fog);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s var(--ease-smooth);
  position: relative;
}
.admin-nav a:hover { color: var(--fore-white); }
.admin-nav a.active {
  color: var(--fore-white);
  border-bottom-color: var(--fore-blue);
}

/* Action buttons inline */
.actions { display: flex; gap: 12px; margin-top: 28px; align-items: center; flex-wrap: wrap; }
.search-bar { display: flex; gap: 10px; align-items: center; margin: 32px 0 24px; flex-wrap: wrap; }
.search-bar input, .search-bar select {
  background: var(--fore-graphite);
  border: 1px solid var(--fore-line);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--fore-white);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.search-bar input:focus, .search-bar select:focus {
  outline: none; border-color: var(--fore-blue);
}
.search-bar input { min-width: 260px; }

.flash {
  padding: 14px 20px;
  margin: 0 0 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  background: rgba(56,208,122,0.12);
  border: 1px solid rgba(56,208,122,0.35);
  color: #a8e6c1;
}
.flash.error, .flash.err {
  background: rgba(229,91,91,0.12);
  border-color: rgba(229,91,91,0.35);
  color: #f4b8b8;
}

.upload-zone {
  border: 2px dashed var(--fore-line);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  transition: all 0.2s var(--ease-smooth);
  cursor: pointer;
  background: rgba(255,255,255,0.01);
}
.upload-zone:hover { border-color: var(--fore-blue); background: rgba(69,103,237,0.04); }
.upload-zone.dragover { border-color: var(--fore-blue); background: rgba(69,103,237,0.08); transform: scale(1.01); }

/* ============================================================================
   CINEMATIC BACKGROUND — animated gradient mesh
   ============================================================================ */
.cinematic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cinematic-bg::before,
.cinematic-bg::after {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.20;
  animation: drift 32s ease-in-out infinite;
}
.cinematic-bg::before {
  background: radial-gradient(circle, #a67150 0%, transparent 70%);  /* wood brown glow */
  top: -20%;
  left: -10%;
}
.cinematic-bg::after {
  background: radial-gradient(circle, #98f0ee 0%, transparent 70%);  /* cyan glow */
  bottom: -20%;
  right: -10%;
  animation-delay: -16s;
  animation-duration: 40s;
  opacity: 0.14;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, -40px) scale(1.1); }
  66% { transform: translate(-60px, 60px) scale(0.95); }
}

/* Film grain overlay - subtle texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--fore-gradient);
  z-index: 1000;
  transition: width 0.15s linear;
  box-shadow: 0 0 20px rgba(69,103,237,0.6);
}

/* ============================================================================
   PULL QUOTES - cinematic section dividers tussen content
   ============================================================================ */
.pull-quote {
  padding: 160px 40px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.pull-quote .pq-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  background: linear-gradient(180deg, var(--fore-white) 0%, #a5a59d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}
.pull-quote .pq-text em {
  font-family: var(--font-accent);      /* Fraunces serif voor dramatic italic */
  font-style: italic;
  background: var(--fore-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.pull-quote .pq-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--fore-fog);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

/* ============================================================================
   PREMIUM / APPLE-LEVEL STYLES (voor unit_portal klant-view)
   ============================================================================ */

/* Premium hero - viewport fillend, 2-kolommen met productfoto */
.premium-hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0 96px;
  position: relative;
}
.premium-hero .hero-text .eyebrow {
  margin-bottom: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
}
.premium-hero .hero-title {
  font-family: var(--font-display);
  font-weight: 500;                           /* Figtree heeft betere leesbaarheid op medium */
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 24px;
  background: linear-gradient(180deg, var(--fore-white) 0%, #a5a59d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Voorkom dat lange technische SKU's mid-word breken (FE-C-750V → niet F\nE-C-7\n50V). */
  word-break: keep-all;
  overflow-wrap: anywhere;
  hyphens: none;
}
/* Adaptive sizing — schaalt af bij langere model namen */
.premium-hero .hero-title.medium {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.premium-hero .hero-title.long {
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-family: var(--font-ui), -apple-system, system-ui, sans-serif;  /* technische SKU = monospace-achtige look */
  font-weight: 600;
}
.premium-hero .hero-lede {
  color: var(--fore-fog);
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 0 32px;
  font-weight: 300;
}
.premium-hero .hero-customer {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--fore-line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--fore-fog);
  background: rgba(255,255,255,0.02);
  margin-bottom: 40px;
}
.premium-hero .hero-customer strong { color: var(--fore-white); font-weight: 500; }

.premium-hero .hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
  border-radius: 28px;
}
/* Product scan light - subtle diagonal sweep (Apple does this) */
.premium-hero .hero-visual::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -50%;
  width: 50%;
  height: 140%;
  background: linear-gradient(110deg,
    transparent 40%,
    rgba(152,240,238,0.12) 50%,
    transparent 60%);
  transform: rotate(15deg);
  animation: product-scan 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes product-scan {
  0%, 100% { left: -60%; opacity: 0; }
  40%       { left: 110%; opacity: 1; }
  60%, 100% { left: 110%; opacity: 0; }
}
.premium-hero .hero-visual .product-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  filter: drop-shadow(0 80px 140px rgba(0,0,0,0.7)) drop-shadow(0 40px 80px rgba(166,113,80,0.2)) drop-shadow(0 20px 40px rgba(152,240,238,0.15));
  transition: transform 0.6s var(--ease-expressive);
  animation: hover-float 7s ease-in-out infinite;
  transform-style: preserve-3d;
  will-change: transform;
}
.premium-hero[data-mouse-parallax="true"] .product-img {
  animation: none;
}
@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.premium-hero .hero-visual::before {
  content: '';
  position: absolute;
  inset: 20% 10% -10%;
  background: radial-gradient(ellipse at center 80%, rgba(69,103,237,0.25), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fore-ash);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  animation: scroll-bounce 2.5s ease-in-out infinite;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--fore-ash), transparent);
}
@keyframes scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* Large stats band - Apple style */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 72px 0;
  border-top: 1px solid var(--fore-line);
  border-bottom: 1px solid var(--fore-line);
  margin-bottom: 120px;
}
.stats-band .stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--fore-line);
}
.stats-band .stat:last-child { border-right: none; }
.stats-band .stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
  font-variation-settings: "opsz" 72;
}
.stats-band .stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--fore-ash);
  font-weight: 400;
}
.stats-band .stat-unit {
  font-size: 0.45em;
  color: var(--fore-fog);
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0;
}

/* Section header Apple style */
.section-premium {
  padding: 96px 0;
  text-align: center;
}
.section-premium .eyebrow { margin-bottom: 24px; }
.section-premium .section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 auto 24px;
  max-width: 18ch;
  font-variation-settings: "opsz" 96;
}
.section-premium .section-sub {
  color: var(--fore-fog);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto 56px;
  font-weight: 300;
}

/* ============================================================================
   UNIFORM CARD SYSTEM — alle kaders streamlined, equal heights
   ============================================================================
   Design rule: elke card variant heeft dezelfde min-height, padding rhythm,
   border-radius 24px, flex layout met space-between voor equal distribution.
   ============================================================================ */

/* Premium tiles (Apple card-style) */
.premium-tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: 1fr;    /* zorg dat alle rijen dezelfde hoogte krijgen */
}
.premium-tile {
  grid-column: span 4;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--fore-line);
  border-radius: 24px;
  padding: 44px 36px;
  min-height: 340px;        /* uniform base height */
  height: 100%;              /* fill grid row equally */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.7s var(--ease-expressive), border-color 0.3s var(--ease-smooth);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  isolation: isolate;
  box-sizing: border-box;
}
/* Per-tile cursor spotlight (JS driven via CSS custom properties) */
.premium-tile {
  --tile-spot-x: 50%;
  --tile-spot-y: 50%;
}
.premium-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 340px at var(--tile-spot-x) var(--tile-spot-y),
    rgba(152, 240, 238, 0.10),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  z-index: 0;
  pointer-events: none;
}
.premium-tile > * { position: relative; z-index: 1; }

/* Thin gradient border on hover (only visible on hover - Apple style) */
.premium-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(166,113,80,0.6) 0%,
    rgba(152,240,238,0.6) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  pointer-events: none;
}
.premium-tile:hover {
  transform: translateY(-6px);
  border-color: transparent;
}
.premium-tile:hover::before { opacity: 1; }
.premium-tile:hover::after { opacity: 1; }

.premium-tile .icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(166,113,80,0.28), rgba(152,240,238,0.16));
  border: 1px solid var(--fore-line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
  transition: transform 0.5s var(--ease-expressive), border-color 0.3s var(--ease-smooth), background 0.4s var(--ease-smooth);
}
.premium-tile:hover .icon-lg {
  transform: scale(1.08) rotate(-4deg);
  border-color: rgba(152,240,238,0.4);
  background: linear-gradient(135deg, rgba(166,113,80,0.35), rgba(152,240,238,0.25));
}
.premium-tile .icon-lg svg {
  width: 26px; height: 26px;
  stroke: var(--fore-white); fill: none; stroke-width: 1.4;
  transition: stroke 0.3s var(--ease-smooth);
}
.premium-tile:hover .icon-lg svg { stroke: var(--fore-cyan); }

.premium-tile .tile-title-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--fore-white);
}
.premium-tile .tile-sub-lg {
  font-size: 0.95rem;
  color: var(--fore-fog);
  line-height: 1.55;
  font-weight: 300;
  margin: 0;
}
.premium-tile .tile-arrow-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fore-fog);
}
.premium-tile:hover .tile-arrow-lg { color: var(--fore-blue); }
.premium-tile .tile-arrow-lg svg { transition: transform 0.3s var(--ease-smooth); }
.premium-tile:hover .tile-arrow-lg svg { transform: translateX(5px); }

.premium-tile.wide-lg { grid-column: span 8; }
.premium-tile.highlight-lg {
  background: linear-gradient(135deg, rgba(69,103,237,0.14), rgba(119,82,231,0.06));
  border-color: rgba(69,103,237,0.3);
}

/* Product-spec grid in Apple "Why X is special" style */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: var(--fore-line);
  border: 1px solid var(--fore-line);
  border-radius: 24px;
  overflow: hidden;
  margin: 40px auto;
  max-width: 1100px;
}
.value-grid .value-cell {
  background: var(--fore-carbon);
  padding: 56px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 320px;
  box-sizing: border-box;
}
.value-grid .value-cell .v-icon {
  width: 44px; height: 44px;
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fore-cyan);
}
.value-grid .value-cell h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.value-grid .value-cell p {
  color: var(--fore-fog);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

/* Documents as premium cards grid */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-top: 40px;
}
.doc-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--fore-line);
  border-radius: 24px;     /* uniform 24px */
  padding: 36px 32px;       /* uniform padding */
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-expressive), border-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;        /* uniform base */
  height: 100%;
  box-sizing: border-box;
}
.doc-card {
  --tile-spot-x: 50%; --tile-spot-y: 50%;
  position: relative;
}
.doc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle 240px at var(--tile-spot-x) var(--tile-spot-y), rgba(152,240,238,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  pointer-events: none;
}
.doc-card:hover { transform: translateY(-4px); border-color: rgba(166,113,80,0.35); }
.doc-card:hover::before { opacity: 1; }
.doc-card > * { position: relative; z-index: 1; }
.doc-card .doc-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(69,103,237,0.18), rgba(119,82,231,0.1));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.doc-card .doc-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fore-ash);
  margin-bottom: 8px;
}
.doc-card .doc-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fore-white);
}
.doc-card .doc-meta {
  font-size: 0.78rem;
  color: var(--fore-fog);
  display: flex; gap: 12px;
  margin-bottom: 18px;
}
.doc-card .doc-cta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fore-cyan);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Monitoring gauges groot - uniform met andere cards */
.gauge-row { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 16px; margin-top: 48px; }
.gauge-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--fore-line);
  border-radius: 24px;
  padding: 44px 36px;
  text-align: center;
  min-height: 340px;        /* equal to premium-tile */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.gauge-card .gauge-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--fore-ash);
  margin-bottom: 20px;
}
.gauge-card .gauge-val {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  font-variation-settings: "opsz" 96;
}
.gauge-card .gauge-unit { font-size: 0.3em; color: var(--fore-fog); margin-left: 4px; }
.gauge-card .gauge-bar {
  height: 4px;
  background: var(--fore-line);
  border-radius: 2px;
  overflow: hidden;
  margin: 28px 0 16px;
}
.gauge-card .gauge-fill {
  height: 100%;
  background: var(--fore-gradient);
  transition: width 1.2s var(--ease-expressive);
}
.gauge-card .gauge-detail {
  font-size: 0.82rem;
  color: var(--fore-fog);
  margin: 0;
}

/* ============================================================================
   FULL-BLEED IMAGE SECTIONS — Apple-style cinematic visuals
   ============================================================================ */
.bleed-section {
  position: relative;
  margin: 120px calc(50% - 50vw) 0;
  padding: 180px 40px;
  overflow: hidden;
  background: #000;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bleed-section .bleed-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transform: scale(1.06);
  transition: transform 10s ease-out;
  filter: saturate(0.9) contrast(1.05);
}
.bleed-section.in .bleed-bg {
  transform: scale(1);
}
.bleed-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.bleed-section .bleed-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}
.bleed-section .bleed-kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--fore-cyan);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-variation-settings: "opsz" 14;
}
.bleed-section .bleed-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 28px;
  color: var(--fore-white);
  font-variation-settings: "opsz" 144;
}
.bleed-section .bleed-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  max-width: 60ch;
  margin: 0 auto;
  font-weight: 300;
}

/* Visie section met split layout */
.vision-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 140px 0;
}
.vision-section .vision-img {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
}
.vision-section .vision-img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-expressive);
}
.vision-section:hover .vision-img img { transform: scale(1.06); }
.vision-section .vision-text .eyebrow { margin-bottom: 24px; }
.vision-section .vision-text h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 28px;
  font-variation-settings: "opsz" 96;
}
.vision-section .vision-text h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--fore-wood);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
.vision-section .vision-text p {
  color: var(--fore-fog);
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 300;
  margin: 0 0 20px;
}

@media (max-width: 960px) {
  .vision-section { grid-template-columns: 1fr; padding: 80px 0; gap: 48px; }
  .bleed-section { padding: 120px 24px; min-height: 50vh; }
}

/* ============================================================================
   CURSOR SPOTLIGHT — licht volgt muis op hero (Apple signature)
   ============================================================================ */
.premium-hero {
  --spot-x: 50%;
  --spot-y: 40%;
  position: relative;
  isolation: isolate;
}
.premium-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 500px at var(--spot-x) var(--spot-y),
    rgba(152, 240, 238, 0.09),
    transparent 60%
  );
  transition: background 0.2s ease-out;
  z-index: 0;
}
.premium-hero > * { position: relative; z-index: 1; }

/* ============================================================================
   STICKY COMPACT NAV — verschijnt bij scroll
   ============================================================================ */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-expressive);
  z-index: 999;
}
.sticky-nav.visible { transform: translateY(0); }
.sticky-nav .sn-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--fore-white);
}
.sticky-nav .sn-brand img { height: 24px; filter: invert(1) brightness(2); opacity: 0.92; }
.sticky-nav .sn-context {
  font-size: 0.82rem;
  color: var(--fore-fog);
  font-family: monospace;
  letter-spacing: 0.08em;
}
.sticky-nav .sn-cta {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--fore-white);
  color: var(--fore-ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s var(--ease-smooth);
}
.sticky-nav .sn-cta:hover { background: var(--fore-cyan); }

/* ============================================================================
   COMPARISON SECTION — FoR-E HSC vs conventionele
   ============================================================================ */
.comparison-section {
  padding: 120px 0;
  text-align: center;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 60px auto 0;
}
.comp-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--fore-line);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  box-sizing: border-box;
}
.comp-card.fore {
  background: linear-gradient(180deg, rgba(166,113,80,0.08), rgba(152,240,238,0.04));
  border-color: rgba(166,113,80,0.3);
}
.comp-card .comp-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--fore-ash);
  margin-bottom: 16px;
}
.comp-card.fore .comp-label { color: var(--fore-wood); }
.comp-card .comp-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  line-height: 1.1;
}
.comp-card.fore .comp-title {
  background: var(--fore-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}
.comp-list li {
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fore-fog);
}
.comp-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fore-ash);
}
.comp-card.fore .comp-list li { color: var(--fore-white); }
.comp-card.fore .comp-list li::before {
  background: var(--fore-cyan);
  box-shadow: 0 0 12px var(--fore-cyan);
}

/* ============================================================================
   CIRCULAR GAUGES — Apple style radial progress
   ============================================================================ */
.radial-gauge {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 28px;
}
/* Ambient glow achter de ring - subtle breath */
.radial-gauge::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(152,240,238,0.10), transparent 70%);
  filter: blur(10px);
  animation: gauge-breath 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gauge-breath {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.radial-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.radial-gauge .gauge-track {
  fill: none;
  stroke: var(--fore-line);
  stroke-width: 6;
}
.radial-gauge .gauge-fill-ring {
  fill: none;
  stroke: url(#gaugeGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 534;  /* 2 * pi * 85 */
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 2s var(--ease-expressive);
}
.radial-gauge.filled .gauge-fill-ring { stroke-dashoffset: var(--offset, 0); }
.radial-gauge .gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.radial-gauge .gauge-center .rg-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: "opsz" 96;
}
.radial-gauge .gauge-center .rg-unit {
  font-size: 0.38em;
  color: var(--fore-fog);
  margin-left: 2px;
}

/* Big CTA section */
.cta-hero {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--fore-line);
  margin-top: 120px;
  position: relative;
}
.cta-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(69,103,237,0.08), transparent 60%);
  pointer-events: none;
}
.cta-hero .cta-kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--fore-fog);
  font-size: 1rem;
  margin-bottom: 16px;
}
.cta-hero .cta-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
  margin: 0 auto 32px;
}
.cta-hero .cta-title em {
  font-family: var(--font-accent);   /* Fraunces dramatic italic */
  font-style: italic;
}
.cta-hero .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Responsive premium */
@media (max-width: 960px) {
  .premium-hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding: 40px 0; }
  .premium-hero .hero-visual { min-height: 400px; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band .stat { border-right: none; border-bottom: 1px solid var(--fore-line); padding: 32px 16px; }
  .stats-band .stat:nth-child(even) { border-right: 1px solid var(--fore-line); }
  .stats-band .stat:nth-last-child(-n+2) { border-bottom: none; }
  .value-grid { grid-template-columns: 1fr; }
  .premium-tile, .premium-tile.wide-lg { grid-column: span 12; }
  .gauge-row { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .tiles { gap: 14px; }
  .tile, .tile.wide, .tile.half, .tile.third { grid-column: span 12; }
  .shell { padding: 24px 20px 64px; }
  .hero .meta { gap: 24px; }
  .topnav { flex-wrap: wrap; gap: 16px; }
  .admin-nav { order: 3; width: 100%; overflow-x: auto; }
}

/* ============================================================================
   INSTALLER PORTAL — Apple / NVIDIA / Amazon inspired fleet management UI
   ============================================================================ */

.installer-login-body,
.installer-body {
  background: #0a0a0c;
  color: #efefef;
  min-height: 100vh;
  font-family: var(--font-sans, 'Figtree', -apple-system, 'Segoe UI', sans-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* -------- LOGIN PAGE -------- */
.installer-login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  z-index: 2;
}

.installer-login-card {
  max-width: 460px;
  width: 100%;
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.82), rgba(16, 16, 20, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 44px 40px 32px;
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(152, 240, 238, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  position: relative;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.installer-login-card.landed,
.installer-login-card.in { opacity: 1; transform: translateY(0) scale(1); }

.il-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.il-brand img { width: 40px; height: 40px; object-fit: contain; }
.il-brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #98f0ee;
}
.il-brand-sub {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-top: 2px;
}

.il-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #a67150;
  font-weight: 600;
  margin-bottom: 14px;
}

.il-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.il-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  margin: 0 0 32px;
}

.il-form { margin-top: 12px; }
.il-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.il-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.il-input-icon {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.il-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px 20px 16px 48px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.il-input:focus {
  outline: none;
  border-color: #98f0ee;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(152, 240, 238, 0.12);
}

.il-btn {
  width: 100%;
  margin-top: 16px;
  background: #98f0ee;
  color: #0a0a0c;
  border: 0;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.3s, background 0.2s;
}
.il-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(152, 240, 238, 0.35);
  background: #aaf3f1;
}

.il-error {
  margin: 16px 0;
  padding: 14px 18px;
  background: rgba(255, 140, 122, 0.08);
  border: 1px solid rgba(255, 140, 122, 0.2);
  border-radius: 12px;
  color: #ffb8aa;
  font-size: 14px;
}

.il-footer-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.il-confirm { text-align: center; }
.il-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(152, 240, 238, 0.1);
  color: #98f0ee;
  border: 1px solid rgba(152, 240, 238, 0.25);
  animation: il-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes il-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.il-link {
  display: inline-block;
  margin-top: 20px;
  color: #98f0ee;
  text-decoration: none;
  font-size: 14px;
}
.il-link:hover { opacity: 0.8; }

.il-lang {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.2em;
}
.il-lang a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.il-lang a:hover { color: #fff; }
.il-lang a.active { color: #98f0ee; background: rgba(152, 240, 238, 0.08); }

.il-trustline {
  margin-top: 28px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}
.il-trustline a { color: #a67150; text-decoration: none; }

/* -------- INSTALLER PORTAL TOPNAV -------- */
.inst-topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.9), rgba(10, 10, 12, 0.75));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.inst-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.inst-brand img {
  width: auto !important;
  height: 48px !important;
  object-fit: contain;
  filter: invert(1) brightness(2) contrast(1.4) !important;
  opacity: 1 !important;
  /* Subtiele drop-shadow voor extra contrast op donkere achtergrond */
  filter: invert(1) brightness(2) contrast(1.4) drop-shadow(0 0 1px rgba(152,240,238,.3)) !important;
}
.inst-brand-line {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  white-space: nowrap;
}
.inst-brand-line .inst-brand-sep {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 6px;
}
.inst-brand-line .inst-brand-suffix {
  color: #98f0ee;
  font-style: italic;
}
.inst-brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: #98f0ee;
  line-height: 1;
}
.inst-brand-sub {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-top: 3px;
}

.inst-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.inst-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.inst-nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.inst-nav a.active {
  background: rgba(152, 240, 238, 0.1);
  color: #98f0ee;
}

.inst-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inst-company-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}
.inst-user-txt { text-align: right; line-height: 1.2; }
.inst-user-name { font-size: 13px; font-weight: 600; color: #fff; }
.inst-user-company { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.inst-logout {
  color: rgba(255, 255, 255, 0.4);
  padding: 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.inst-logout:hover { color: #ff8c7a; background: rgba(255, 140, 122, 0.1); }

/* -------- MAIN CONTAINER -------- */
.inst-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px 120px;
  position: relative;
  z-index: 2;
}

.inst-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.inst-footer a { color: #a67150; text-decoration: none; }

/* -------- FLASH -------- */
.inst-flash-wrap { max-width: 1240px; margin: 16px auto 0; padding: 0 32px; }
.inst-flash {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
}
.inst-flash.success { background: rgba(152, 240, 238, 0.08); border: 1px solid rgba(152, 240, 238, 0.2); color: #98f0ee; }
.inst-flash.error { background: rgba(255, 140, 122, 0.08); border: 1px solid rgba(255, 140, 122, 0.2); color: #ffb8aa; }

/* -------- HERO GREETING -------- */
.inst-hero { margin-bottom: 56px; }
.inst-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #a67150;
  font-weight: 600;
  margin-bottom: 18px;
}
.inst-hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  background: linear-gradient(135deg, #fff 20%, rgba(152, 240, 238, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.inst-hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 620px;
}

/* -------- KPI BAND -------- */
.inst-kpi-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.inst-kpi {
  position: relative;
  padding: 24px 22px;
  background: linear-gradient(180deg, rgba(28, 28, 32, 0.5), rgba(18, 18, 22, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.inst-kpi::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(152, 240, 238, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.inst-kpi:hover { transform: translateY(-2px); border-color: rgba(152, 240, 238, 0.15); }
.inst-kpi:hover::before { opacity: 1; }
.inst-kpi-icon { margin-bottom: 14px; }
.inst-kpi-value {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}
.inst-kpi-unit { font-size: 16px; color: rgba(255, 255, 255, 0.4); margin-left: 4px; }
.inst-kpi-label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* -------- TWO COLUMN GRID -------- */
.inst-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 56px;
}

/* -------- CARDS -------- */
.inst-card {
  position: relative;
  padding: 32px;
  background: linear-gradient(180deg, rgba(28, 28, 32, 0.45), rgba(18, 18, 22, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.inst-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(152, 240, 238, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.inst-card:hover { border-color: rgba(152, 240, 238, 0.14); }
.inst-card:hover::before { opacity: 1; }

.inst-card-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.inst-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: #fff;
}

/* -------- HEALTH RADIAL -------- */
.inst-health-card { display: flex; flex-direction: column; align-items: center; }
.inst-radial { margin: 8px 0; }
.inst-health-breakdown {
  display: flex;
  gap: 32px;
  margin-top: 16px;
  font-size: 13px;
}
.inst-health-breakdown strong { display: block; font-size: 22px; color: #98f0ee; font-family: 'Fraunces', serif; }
.inst-health-breakdown span { color: rgba(255, 255, 255, 0.5); }

/* -------- WELCOME CARD -------- */
.inst-welcome-body {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  margin: 0 0 28px;
}
.inst-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* -------- BUTTONS -------- */
.inst-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.inst-btn.sm { padding: 8px 14px; font-size: 12px; }
.inst-btn.primary { background: #98f0ee; color: #0a0a0c; border-color: #98f0ee; }
.inst-btn.primary:hover { background: #aaf3f1; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(152, 240, 238, 0.3); }
.inst-btn.ghost { background: rgba(255, 255, 255, 0.05); color: #efefef; border-color: rgba(255, 255, 255, 0.12); }
.inst-btn.ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

/* -------- SECTIONS -------- */
.inst-section { margin-bottom: 56px; }
.inst-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}
.inst-section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #a67150;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.inst-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
}
.inst-link {
  color: #98f0ee;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.inst-link:hover { opacity: 0.8; }

/* -------- FLEET TABLE -------- */
.inst-fleet-table {
  display: flex;
  flex-direction: column;
  background: rgba(22, 22, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.inst-fleet-row {
  display: grid;
  grid-template-columns: 180px 1.2fr 1.2fr 120px 40px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: background 0.2s;
}
.inst-fleet-row:last-child { border-bottom: 0; }
.inst-fleet-row:hover { background: rgba(152, 240, 238, 0.04); }
.inst-fleet-serial {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.inst-fleet-name { font-size: 14px; color: #fff; font-weight: 500; }
.inst-fleet-meta { font-size: 12px; color: rgba(255, 255, 255, 0.45); margin-top: 2px; }
.inst-fleet-date { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.inst-fleet-arrow { font-size: 18px; color: rgba(255, 255, 255, 0.3); text-align: right; }

/* -------- STATUS DOTS -------- */
.inst-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #98f0ee;
  box-shadow: 0 0 8px rgba(152, 240, 238, 0.6);
}
.inst-dot.operational { background: #98f0ee; box-shadow: 0 0 8px rgba(152, 240, 238, 0.6); }
.inst-dot.maintenance { background: #ffc566; box-shadow: 0 0 8px rgba(255, 197, 102, 0.6); }
.inst-dot.faulty { background: #ff8c7a; box-shadow: 0 0 8px rgba(255, 140, 122, 0.6); }

.inst-status-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  font-size: 13px;
  text-transform: capitalize;
}

/* -------- TICKETS -------- */
.inst-tickets, .inst-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inst-ticket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background: rgba(22, 22, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  transition: border-color 0.2s, transform 0.2s;
}
.inst-ticket:hover { border-color: rgba(152, 240, 238, 0.15); transform: translateX(2px); }
.inst-ticket-critical { border-left: 3px solid #ff8c7a; }
.inst-ticket-high { border-left: 3px solid #ffc566; }
.inst-ticket-normal { border-left: 3px solid #98f0ee; }
.inst-ticket-low { border-left: 3px solid rgba(255, 255, 255, 0.2); }

.inst-ticket-priority-pill {
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}
.inst-ticket-critical .inst-ticket-priority-pill { background: rgba(255, 140, 122, 0.15); color: #ffb8aa; }
.inst-ticket-high .inst-ticket-priority-pill { background: rgba(255, 197, 102, 0.15); color: #ffc566; }

.inst-ticket-subject {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  display: block;
}
a.inst-ticket-subject:hover { color: #98f0ee; }
.inst-ticket-desc { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 4px; line-height: 1.5; }
.inst-ticket-meta { font-size: 12px; color: rgba(255, 255, 255, 0.45); margin-top: 6px; }
.inst-ticket-action { display: flex; gap: 8px; }

.inst-status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}
.inst-status-tag.new { background: rgba(152, 240, 238, 0.12); color: #98f0ee; }
.inst-status-tag.in_progress { background: rgba(255, 197, 102, 0.15); color: #ffc566; }
.inst-status-tag.resolved { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.5); }

/* -------- FILTERS -------- */
.inst-filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.inst-pill-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s;
}
.inst-pill-filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.18); }
.inst-pill-filter.active { background: rgba(152, 240, 238, 0.1); border-color: rgba(152, 240, 238, 0.3); color: #98f0ee; }

.inst-pill {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(152, 240, 238, 0.1);
  color: #98f0ee;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* -------- SEARCH -------- */
.inst-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 22, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 20px;
  backdrop-filter: blur(14px);
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.5);
}
.inst-search:focus-within { border-color: rgba(152, 240, 238, 0.3); }
.inst-search-input {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 15px;
  flex: 1;
  font-family: inherit;
}
.inst-search-input:focus { outline: none; }
.inst-search-clear {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 18px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.inst-search-clear:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* -------- CUSTOMER GRID -------- */
.inst-customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.inst-customer-card { padding: 24px; }
.inst-customer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.inst-customer-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  color: #fff;
}
.inst-customer-meta { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-bottom: 20px; line-height: 1.5; }
.inst-muted { color: rgba(255, 255, 255, 0.4); }

.inst-customer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.inst-customer-stat-v {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  color: #98f0ee;
}
.inst-customer-stat-l { font-size: 10px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; margin-top: 2px; }

/* -------- UNIT GRID -------- */
.inst-unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.inst-unit-card {
  padding: 22px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}
.inst-unit-card:hover { transform: translateY(-3px); border-color: rgba(152, 240, 238, 0.2); }
.inst-unit-image {
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inst-unit-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.inst-unit-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.inst-unit-serial { font-family: 'SF Mono', monospace; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.inst-unit-model { font-family: 'Fraunces', serif; font-size: 22px; margin: 4px 0 6px; }
.inst-unit-caps {
  display: flex;
  gap: 6px;
  font-size: 13px;
  color: #98f0ee;
  margin-bottom: 14px;
}
.inst-unit-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.inst-unit-meta strong { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.inst-ticket-badge {
  margin-left: auto;
  background: rgba(255, 140, 122, 0.2);
  color: #ffb8aa;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

/* -------- UNIT DETAIL HERO -------- */
.inst-unit-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
}
.inst-unit-hero-image {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.inst-unit-hero-image img { width: 100%; height: auto; }
.inst-unit-pillbar { display: flex; gap: 12px; margin-top: 28px; align-items: center; }

/* -------- DEFINITION LISTS -------- */
.inst-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  font-size: 14px;
}
.inst-dl dt { color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.inst-dl dd { margin: 0; color: #fff; }
.inst-dl a { color: #98f0ee; text-decoration: none; }

/* -------- DOCUMENT GRID -------- */
.inst-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.inst-doc-card {
  padding: 20px;
  text-decoration: none;
  color: #fff;
}
.inst-doc-type { font-size: 10px; letter-spacing: 0.2em; color: #a67150; text-transform: uppercase; margin-bottom: 8px; }
.inst-doc-title { font-size: 15px; color: #fff; margin-bottom: 8px; }
.inst-doc-meta { font-size: 11px; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.1em; }

/* -------- EMPTY STATE -------- */
.inst-empty {
  padding: 60px 32px;
  text-align: center;
  background: rgba(22, 22, 26, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* -------- REVEAL ANIMATIONS -------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------- RESPONSIVE -------- */
@media (max-width: 1100px) {
  .inst-kpi-band { grid-template-columns: repeat(3, 1fr); }
  .inst-kpi-band .inst-kpi:nth-child(4),
  .inst-kpi-band .inst-kpi:nth-child(5) { grid-column: span 1; }
  .inst-fleet-row { grid-template-columns: 1fr 1fr 1fr 100px 30px; font-size: 13px; }
}
@media (max-width: 760px) {
  .inst-topnav { grid-template-columns: 1fr auto; gap: 12px; padding: 14px 18px; }
  .inst-nav { grid-column: 1 / -1; overflow-x: auto; padding: 4px 0; margin-top: 8px; }
  .inst-nav a { flex-shrink: 0; padding: 8px 12px; font-size: 13px; }
  .inst-user-txt { display: none; }
  .inst-main { padding: 32px 20px 80px; }
  .inst-kpi-band { grid-template-columns: repeat(2, 1fr); }
  .inst-two-col { grid-template-columns: 1fr; }
  .inst-unit-hero { grid-template-columns: 1fr; }
  .inst-fleet-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .inst-fleet-row .inst-fleet-customer,
  .inst-fleet-row .inst-fleet-date,
  .inst-fleet-row .inst-fleet-arrow { display: none; }
  .inst-ticket { grid-template-columns: 1fr; }
  .inst-hero-title { font-size: 22px; }
}

/* -------- RTL overrides for Arabic -------- */
[dir="rtl"] .inst-fleet-row { grid-template-columns: 40px 120px 1.2fr 1.2fr 180px; }
[dir="rtl"] .inst-fleet-arrow { transform: scaleX(-1); text-align: left; }
[dir="rtl"] .inst-ticket { grid-template-columns: auto 1fr auto; }
[dir="rtl"] .inst-search-input { text-align: right; }
[dir="rtl"] .inst-user-txt { text-align: left; }
[dir="rtl"] .il-input { padding: 16px 48px 16px 20px; }
[dir="rtl"] .il-input-icon { left: auto; right: 18px; }

/* ============================================================================
   PRIME VIDEO-STYLE CINEMATIC DASHBOARD
   Full-bleed hero · horizontale rails · hover-previews · dark luminous
   ============================================================================ */

/* Uittrekken uit de normale main container zodat hero full-bleed kan */
.installer-body .inst-main:has(.prime-hero) {
  max-width: none;
  padding: 0 0 120px;
}

.prime-hero {
  position: relative;
  min-height: 72vh;
  max-height: 780px;
  overflow: hidden;
  margin-bottom: 48px;
}

.prime-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 0.4s ease-out;
  filter: saturate(1.15) contrast(1.05);
}
.prime-hero-bg-default {
  background: radial-gradient(ellipse at top left, #1a4a4e 0%, #0a0a0c 70%),
              linear-gradient(135deg, #a67150 0%, #98f0ee 100%);
  background-blend-mode: overlay;
  opacity: 0.5;
}

.prime-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.1) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.95) 85%, #0a0a0c 100%),
    linear-gradient(90deg, rgba(10, 10, 12, 0.85) 0%, rgba(10, 10, 12, 0.4) 45%, transparent 70%);
  pointer-events: none;
}

.prime-hero-content {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 48px 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 72vh;
}

.prime-hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.prime-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
}
.prime-badge-live {
  background: rgba(152, 240, 238, 0.15);
  color: #98f0ee;
  border: 1px solid rgba(152, 240, 238, 0.3);
}
.prime-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #98f0ee;
  box-shadow: 0 0 0 0 rgba(152, 240, 238, 0.7);
  animation: prime-pulse 1.8s infinite;
}
@keyframes prime-pulse {
  0% { box-shadow: 0 0 0 0 rgba(152, 240, 238, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(152, 240, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(152, 240, 238, 0); }
}
.prime-hero-tag {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.prime-hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 780px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, #fff 40%, rgba(152, 240, 238, 0.9));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prime-hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  max-width: 720px;
}
.prime-hero-subtitle strong { color: #98f0ee; font-weight: 600; }

.prime-hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 620px;
}

.prime-hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.prime-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: transform 0.2s, background 0.2s, box-shadow 0.3s;
}
.prime-btn-primary {
  background: #fff;
  color: #0a0a0c;
}
.prime-btn-primary:hover { background: rgba(255, 255, 255, 0.9); transform: translateY(-1px); }
.prime-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.prime-btn-ghost:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.28); }

.prime-hero-specs {
  display: flex;
  gap: 56px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 780px;
}
.prime-hero-specs div { display: flex; flex-direction: column; gap: 4px; }
.prime-hero-specs span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}
.prime-hero-specs strong {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
}

.prime-hero-empty {
  min-height: 50vh;
  background: linear-gradient(135deg, #0a0a0c, #1a4a4e);
}

/* -------- RAILS (horizontale scroll) -------- */
.prime-rail {
  position: relative;
  margin: 0 0 48px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 48px;
}
.prime-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.prime-rail-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.prime-rail-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.prime-rail-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s, opacity 0.2s;
  font-family: inherit;
}
.prime-rail-nav:hover { background: rgba(255, 255, 255, 0.15); }
.prime-rail-nav.disabled { opacity: 0.25; cursor: not-allowed; }
.prime-rail-see-all {
  margin-left: 8px;
  font-size: 13px;
  color: #98f0ee;
  text-decoration: none;
  font-weight: 500;
}
.prime-rail-see-all:hover { opacity: 0.8; }

.prime-rail-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.prime-rail-scroll::-webkit-scrollbar { display: none; }

/* -------- PRIME CARDS (Prime Video poster-stijl) -------- */
.prime-card {
  flex: 0 0 auto;
  width: 280px;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
.prime-card:hover {
  transform: translateY(-8px) scale(1.04);
  z-index: 5;
}

.prime-card-image {
  position: relative;
  height: 170px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1e 0%, #0d0d0f 100%);
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.4s;
}
.prime-card:hover .prime-card-image {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(152, 240, 238, 0.3);
}
.prime-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);

}
.prime-card:hover .prime-card-image img { transform: scale(1.08); }

.prime-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.prime-card-status {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
}
.prime-card-warranty-countdown { color: #ffc566; }

.prime-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(152, 240, 238, 0.9);
  color: #0a0a0c;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.prime-card-badge-gold {
  background: linear-gradient(135deg, #ffc566, #ff9a4d);
  color: #0a0a0c;
  font-size: 14px;
  padding: 4px 10px;
}

.prime-card-alert {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: #ff8c7a;
  border-radius: 50%;
  color: #0a0a0c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  animation: prime-alert-blink 2s infinite;
}
@keyframes prime-alert-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 140, 122, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(255, 140, 122, 0); }
}

.prime-card-body { padding: 0 4px; }
.prime-card-serial {
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.prime-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.prime-card-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.prime-card-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.prime-card-urgent .prime-card-image {
  box-shadow: 0 8px 24px rgba(255, 140, 122, 0.2);
}

/* -------- CUSTOMER CARDS voor Top klanten rail -------- */
.prime-customer-card {
  flex: 0 0 auto;
  width: 240px;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(28, 28, 32, 0.6), rgba(18, 18, 22, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.3s, border-color 0.3s;
}
.prime-customer-card:hover { transform: translateY(-4px); border-color: rgba(152, 240, 238, 0.2); }
.prime-customer-rank {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 400;
  color: rgba(152, 240, 238, 0.4);
  letter-spacing: -0.02em;
}
.prime-customer-logo, .prime-customer-initial {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: #98f0ee;
}
.prime-customer-name { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.prime-customer-loc { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-bottom: 18px; min-height: 16px; }
.prime-customer-stats {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.prime-customer-stats div { display: flex; flex-direction: column; gap: 2px; }
.prime-customer-stats strong { font-family: 'Fraunces', serif; font-size: 20px; color: #fff; font-weight: 400; }
.prime-customer-stats span { font-size: 10px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; }

/* -------- KPI BAND als footer strip -------- */
.prime-kpi-band {
  max-width: 1240px;
  margin: 80px auto 0;
  padding: 40px 48px;
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.4), rgba(12, 12, 14, 0.4));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}
.prime-kpi-band-title {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #a67150;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.prime-kpi-band-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.prime-kpi-item-v {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  color: #fff;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
}
.prime-kpi-item-l {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* -------- Rail attention — subtiele rode tint -------- */
.prime-rail-attention .prime-rail-title svg { flex-shrink: 0; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .prime-hero-content { padding: 80px 24px 48px; }
  .prime-hero-title { font-size: 48px; }
  .prime-hero-specs { gap: 24px; flex-wrap: wrap; }
  .prime-hero-specs strong { font-size: 20px; }
  .prime-rail { padding: 0 20px; }
  .prime-card { width: 220px; }
  .prime-card-image { height: 130px; }
  .prime-customer-card { width: 200px; }
  .prime-kpi-band { padding: 32px 20px; margin-top: 48px; }
  .prime-kpi-band-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .prime-kpi-item-v { font-size: 26px; }
  .prime-hero-actions { flex-wrap: wrap; }
  .prime-btn { padding: 12px 20px; font-size: 14px; }
}

/* -------- RTL arrow flip voor rails -------- */
[dir="rtl"] .prime-rail-nav[data-dir="-1"] { transform: scaleX(-1); }
[dir="rtl"] .prime-rail-nav[data-dir="1"] { transform: scaleX(-1); }

/* ============================================================================
   INSTALLER FORMS — strakke glass morphism input styling
   ============================================================================ */
.inst-form {
  background: linear-gradient(180deg, rgba(28, 28, 32, 0.4), rgba(18, 18, 22, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(18px);
}

.inst-form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.inst-form-section:last-of-type {
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 0;
}
.inst-form-section-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #a67150;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.inst-form-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.inst-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.inst-form-group:last-child { margin-bottom: 0; }
.inst-form-group label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}
.inst-form-group input[type=text],
.inst-form-group input[type=email],
.inst-form-group input[type=tel],
.inst-form-group input[type=url],
.inst-form-group input[type=date],
.inst-form-group input[type=number],
.inst-form-group select,
.inst-form-group textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.inst-form-group input:focus,
.inst-form-group select:focus,
.inst-form-group textarea:focus {
  outline: none;
  border-color: rgba(152, 240, 238, 0.4);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(152, 240, 238, 0.08);
}
.inst-form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.5;
}
.inst-form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2398f0ee'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.inst-form-group select option {
  background: #1a1a1e;
  color: #fff;
}

.inst-form-hint {
  font-size: 10px;
  color: rgba(152, 240, 238, 0.6);
  letter-spacing: 0.1em;
  margin-left: 8px;
  text-transform: none;
}

.inst-form-help {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.inst-form-help .inst-link { margin-left: 4px; }

.inst-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
}

@media (max-width: 760px) {
  .inst-form { padding: 24px 20px; }
  .inst-form-row { grid-template-columns: 1fr !important; }
  .inst-form-actions { flex-direction: column-reverse; }
  .inst-form-actions .inst-btn { width: 100%; justify-content: center; }
}

[dir="rtl"] .inst-form-group select {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 42px;
}

/* ================================================================
   Triage wizard — service intake voor unit portal
   Klant klikt "Service & Maintenance" → wizard stuurt naar
   installateur (default) of FoR-E (alleen bij defect/escalatie).
   ================================================================ */
.triage-wiz {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: left;
}
.tw-step { animation: tw-fadein .35s ease; }
@keyframes tw-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tw-q {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--fore-white);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.tw-hint {
  color: var(--fore-fog);
  font-size: 0.9rem;
  margin: 0 0 24px;
  line-height: 1.5;
}
.tw-link {
  color: var(--fore-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tw-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) { .tw-options { grid-template-columns: 1fr; } }
.tw-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: var(--fore-white);
  cursor: pointer;
  transition: all .18s ease;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
}
.tw-opt:hover {
  background: rgba(152,240,238,0.06);
  border-color: rgba(152,240,238,0.4);
  transform: translateY(-1px);
}
.tw-opt svg { flex: 0 0 auto; opacity: 0.85; }
.tw-opt strong { font-weight: 500; display: block; margin-bottom: 2px; }
.tw-opt span { color: var(--fore-fog); font-size: 0.78rem; }
.tw-opt.tw-warning:hover { background: rgba(255,197,102,0.06); border-color: rgba(255,197,102,0.45); }
.tw-opt.tw-danger:hover  { background: rgba(255,122,122,0.06); border-color: rgba(255,122,122,0.5); }
.tw-back {
  margin-top: 20px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
  transition: all .15s ease;
}
.tw-back:hover { color: var(--fore-white); border-color: rgba(255,255,255,0.3); }
.tw-cta-primary {
  margin-top: 20px;
  margin-right: 12px;
  padding: 12px 22px;
  background: var(--fore-cyan);
  color: var(--fore-ink);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 28px -8px rgba(152,240,238,0.5);
  transition: all .2s ease;
}
.tw-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px rgba(152,240,238,0.7); }
.tw-contact-card {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(152,240,238,0.06), rgba(152,240,238,0.02));
  border: 1px solid rgba(152,240,238,0.25);
  border-radius: 16px;
  margin-top: 8px;
}
.tw-contact-card .tw-logo {
  width: 56px; height: 56px; border-radius: 12px; object-fit: contain;
  background: rgba(255,255,255,0.92); padding: 8px;
}
.tw-contact-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  color: var(--fore-white);
  margin-bottom: 8px;
}
.tw-contact-row {
  display: flex; align-items: center; gap: 8px;
  color: var(--fore-cyan);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
}
.tw-contact-row:hover { text-decoration: underline; }
.tw-contact-row svg { opacity: 0.7; flex: 0 0 auto; }
.tw-emergency-list {
  list-style: none;
  counter-reset: emergency;
  padding: 0;
  margin: 16px 0;
}
.tw-emergency-list li {
  counter-increment: emergency;
  padding: 14px 18px 14px 56px;
  background: rgba(255,90,90,0.04);
  border: 1px solid rgba(255,90,90,0.2);
  border-radius: 12px;
  margin-bottom: 8px;
  position: relative;
  color: var(--fore-white);
  font-size: 0.92rem;
  line-height: 1.4;
}
.tw-emergency-list li::before {
  content: counter(emergency);
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,122,122,0.2);
  color: #ff7a7a;
  font-weight: 600;
  font-family: 'SF Mono', monospace;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

/* ================================================================
   Globale :visited override — voorkomt browser-default paarse links
   op alle anchors in de portal. Color wordt geërfd van de parent of
   de specifieke component class. text-decoration alleen onderlining
   bij hover, niet als visited markering.
   ================================================================ */
a:visited { color: inherit; }
a:link { text-decoration: none; }
.topnav a:visited,
.admin-nav a:visited,
.inst-nav a:visited,
.brand:visited,
.inst-brand:visited { color: inherit !important; }

/* ============================================================
 * Portal top bar — gedeeld tussen docs.for.energy en admin
 * Kopieer naar:
 *   - fore-portal/static/css/styles.css  (append onderaan)
 *   - document-center/src/app/globals.css (append onderaan)
 * ============================================================ */

.portal-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 44px;
  background: #0a0a0c;
  color: #f5f5f7;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.portal-bar a { color: inherit; text-decoration: none; }

.portal-bar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 20px;
}

.portal-bar__brand img {
  height: 22px;
  width: auto;
  display: block;
}

.portal-bar__brand .accent { color: #98f0ee; }

.portal-bar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.portal-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.portal-bar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
}

.portal-bar__link.is-active {
  color: #98f0ee;
  background: rgba(152, 240, 238, 0.08);
}

.portal-bar__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.portal-bar__user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.portal-bar__user .email { display: inline-block; }

.portal-bar__logout {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  transition: all 0.15s ease;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.portal-bar__logout:hover {
  border-color: rgba(255, 100, 100, 0.4);
  color: #ff8c8c;
}

@media (max-width: 640px) {
  .portal-bar { padding: 0 12px; font-size: 0.78rem; }
  .portal-bar__brand { padding-right: 12px; margin-right: 12px; }
  .portal-bar__link span { display: none; }
  .portal-bar__user .email { display: none; }
}

