/* ==========================================================================
   IDRAK Enhanced - main.css
   Design values measured from the official idrak.com home page:
   brand green #90bd3b, headings #333, body text #414141 (light weight),
   system sans-serif font, 50px/60px hero title, 10px-radius outline button,
   430px slider, slide-out "Sections" menu.
   ========================================================================== */

:root {
    --green: #90bd3b;          /* official brand green: fills, borders, dots */
    --green-ink: #557c10;      /* darker green for TEXT and solid buttons (readable on white) */
    --green-soft: #eef5dc;
    --on-green: #1d2a06;       /* dark text used on top of the brand green */
    --ink: #333;
    --text: #414141;
    --muted: #58585a;
    --line: #e4e4e4;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --slide-time: 6s;          /* keep in sync with DELAY in main.js */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: #212529;
    background: #f4f4f4 linear-gradient(135deg, #ececec 0%, #fafafa 45%, #efefef 100%) fixed;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #1c1c1c; outline-offset: 3px; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.narrow { max-width: 720px; }
.Icon { width: 1.1em; height: 1.1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.SkipLink { position: absolute; left: -999px; top: 8px; z-index: 300; background: #fff; padding: 8px 14px; border-radius: 6px; }
.SkipLink:focus { left: 8px; }

/* ------------------------------ Loader ---------------------------------- */
.Loader {
    position: fixed; inset: 0; z-index: 200;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: #ebebeb;
    transition: opacity .4s ease, visibility .4s ease;
    animation: loaderOut .4s ease 2.4s forwards;   /* safety net if JS is off */
}
.Loader img { width: 170px; }
body.loaded .Loader { opacity: 0; visibility: hidden; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.Loader--arcs { position: relative; width: 140px; height: 62px; overflow: hidden; }
.Loader--arcs span {
    position: absolute; left: 50%; border-radius: 50%;
    border: 4px solid transparent; transform: translateX(-50%);
    animation: arcPulse 1.4s ease-in-out infinite;
}
.Loader--arcs span:nth-child(1) { width: 138px; height: 138px; top: 0;    border-top-color: var(--green); }
.Loader--arcs span:nth-child(2) { width: 108px; height: 108px; top: 15px; border-top-color: #58585a; animation-delay: .15s; }
.Loader--arcs span:nth-child(3) { width: 78px;  height: 78px;  top: 30px; border-top-color: #fff;    animation-delay: .3s; }
@keyframes arcPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ------------------------------ Buttons --------------------------------- */
.Btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px;
    border: 1px solid transparent; border-radius: var(--radius);
    font-size: 15px; font-weight: 700; line-height: 1.2;
    background: none;
    transition: background-color .2s, color .2s, border-color .2s;
}
.Btn--solid { background: var(--green-ink); border-color: var(--green-ink); color: #fff; }
.Btn--solid:hover { background: #456409; border-color: #456409; }
.Btn--outline { border-color: var(--green); color: var(--green-ink); }
.Btn--outline:hover { background: var(--green-ink); border-color: var(--green-ink); color: #fff; }
.Btn--ghost { color: var(--muted); }
.Btn--ghost:hover { color: var(--green-ink); }
.Header--Right .Btn { padding: 8px 16px; font-size: 14px; }

/* ------------------------------ Header ---------------------------------- */
.Header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 30px 0; }
.Header--inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.Header--Logo img { height: 52px; width: auto; }
.Header--Right { display: flex; align-items: center; gap: 8px; }
.Header--User { font-size: 14px; color: var(--muted); margin-right: 4px; }
.Header--Logout { margin: 0; }

.Language { position: relative; }
.Language--toggle {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px;
    background: rgba(255, 255, 255, .7); color: var(--muted); font-size: 13px; font-weight: 600;
}
.Language--toggle .Icon { width: 14px; height: 14px; }
.Language--menu {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 120px; z-index: 30;
    padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
.Language--menu[hidden] { display: none; }
.Language--menu li span { display: block; padding: 6px 10px; font-size: 13px; color: var(--muted); }
.Language--menu .is-current { font-weight: 700; color: var(--ink); }
.Language--menu .is-disabled { color: #aaa; }

.Hamburger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 9px; border: 0; background: none;
}
.Hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: background-color .2s; }
.Hamburger:hover span { background: var(--green-ink); }

/* ---------------------- Slide-out "Sections" menu ------------------------ */
.Sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
    width: min(340px, 86vw); padding: 28px 32px; overflow-y: auto;
    background: #fff; box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
    transform: translateX(105%); transition: transform .35s ease;
}
.Sidebar.is-open { transform: none; }
.Sidebar--title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.Sidebar--title h2 { font-size: 20px; }
.Sidebar--close { width: 36px; height: 36px; border: 0; background: none; color: var(--ink); }
.Sidebar li a { display: block; padding: 12px 0; font-size: 18px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.Sidebar li a:hover { color: var(--green-ink); }
.Sidebar li.is-new:first-of-type { margin-top: 0; }
.Sidebar li.is-new a { color: var(--green-ink); }
.Sidebar--logout { display: block; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 18px; font-weight: 500; color: var(--muted); }
.Sidebar--logout:hover { color: #b71c1c; }
.SidebarOverlay {
    position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .18);
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.SidebarOverlay.is-open { opacity: 1; pointer-events: auto; }

/* ------------------------------- Hero ----------------------------------- */
.Hero {
    position: relative; min-height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding: 150px 0 170px;
}
.Hero--map {
    position: absolute; right: -5%; top: 50%; width: 75%; max-width: none;
    transform: translateY(-50%); opacity: .55; pointer-events: none; z-index: 0;
}

.SideTabs { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.SideTabs a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 76px; padding: 12px 6px; font-size: 11px; font-weight: 600; color: var(--muted);
    background: rgba(255, 255, 255, .55); border-radius: 0 var(--radius) var(--radius) 0;
    opacity: .6; transition: opacity .2s, color .2s;
}
.SideTabs a:hover { opacity: 1; color: var(--green-ink); }
.SideTabs .Icon { width: 24px; height: 24px; }

.Slider { position: relative; z-index: 1; height: 430px; }
.Slider--Item {
    position: absolute; inset: 0 60px 0 90px; display: flex; align-items: center;
    opacity: 0; visibility: hidden; transform: translateX(24px);
    transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.Slider--Item.is-active { opacity: 1; visibility: visible; transform: none; }
.Slider--Item .Left { flex: 0 0 40%; padding-right: 30px; }
.Slider--Item h2 { font-size: 50px; line-height: 60px; font-weight: 700; margin-bottom: 24px; }
.Slider--Item p { max-width: 340px; font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--text); margin-bottom: 34px; }
.Slider--Item .Btn--outline { padding: 12px 65px 12px 55px; font-size: 16px; }
.Slider--Item .Right { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; }
.Slider--Item .Right img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .12)); pointer-events: none; }

.Slider--Dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.Dot { position: relative; width: 22px; height: 22px; padding: 0; border: 0; background: none; }
.Dot svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.Dot circle { fill: none; stroke-width: 2; }
.Dot .track { stroke: #bdbdbd; }
.Dot .fill { stroke: var(--green); stroke-dasharray: 63; stroke-dashoffset: 63; }
.Dot.is-active .fill { animation: dotFill var(--slide-time) linear forwards; }
.Slider.is-paused .Dot.is-active .fill { animation: none; stroke-dashoffset: 0; }
.Slider.is-held .Dot.is-active .fill { animation-play-state: paused; }
@keyframes dotFill { to { stroke-dashoffset: 0; } }
.Dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #bdbdbd; transition: background-color .2s; }
.Dot.is-active::after { background: var(--green); }
.Slider--Toggle { width: 26px; height: 26px; padding: 0; border: 0; background: none; color: var(--muted); }
.Slider--Toggle .Icon { width: 16px; height: 16px; }
.Slider--Toggle .Icon--play { display: none; }
.Slider.is-paused .Slider--Toggle .Icon--play { display: block; }
.Slider.is-paused .Slider--Toggle .Icon--pause { display: none; }

.Hero--bottom {
    position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    padding-right: 95px;   /* leaves room for the floating chat button */
}

.Newest {
    display: flex; width: 315px; min-height: 97px; background: #fff; border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow); overflow: hidden; transition: transform .2s;
}
.Newest:hover { transform: translateY(-2px); }
.Newest .title {
    display: flex; align-items: center; justify-content: center; width: 34px; flex: none;
    background: var(--green); color: var(--on-green); font-size: 13px; font-weight: 700;
    writing-mode: vertical-rl; transform: rotate(180deg);
}
.Newest .content { flex: 1; padding: 12px 14px; min-width: 0; }
.Newest h3 { font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
.Newest p { font-size: 12px; color: var(--muted); }
.Newest .image { width: 97px; flex: none; }
.Newest .image img { width: 100%; height: 100%; object-fit: cover; }

.Copyright { display: flex; align-items: center; gap: 22px; }
.Copyright p { font-size: 11px; line-height: 1.5; color: var(--muted); text-align: right; }
.Copyright strong { display: block; color: var(--ink); }
.Copyright a { text-decoration: underline; }
.Copyright--iso { height: 46px; width: auto; }
.socials { display: flex; gap: 8px; }
.socials a {
    display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border-radius: 50%; background: #c9c9c9; color: #fff; transition: background-color .2s;
}
.socials a:hover { background: var(--green-ink); }
.socials .Icon { width: 15px; height: 15px; }

/* ------------------------------ Sections -------------------------------- */
.Section { padding: 90px 0; scroll-margin-top: 20px; }
.SectionHead { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.SectionHead h2 { font-size: 36px; margin-bottom: 14px; }
.SectionHead p { color: var(--text); font-weight: 300; }
.Eyebrow {
    display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 20px;
    background: var(--green); color: var(--on-green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.Simulations { background: rgba(255, 255, 255, .6); }
.Cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.Card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 30px; }
.Card--media { height: 210px; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #f2f2f2, #fff 60%, #ececec); }
.Card--media img { max-height: 100%; width: auto; object-fit: contain; }
.Card--body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.Card--meta { display: flex; gap: 8px; margin-bottom: 12px; }
.Tag, .Chip { padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.Tag { background: var(--green-soft); color: #3f5d0a; }
.Chip { background: #fff2cc; color: #6b4a00; }
.Card h3 { font-size: 21px; margin-bottom: 10px; }
.Card--body > p { font-size: 15px; font-weight: 300; color: var(--text); margin-bottom: 16px; }
.Steps { margin-bottom: 22px; }
.Steps li { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; font-size: 14px; color: var(--text); }
.Steps .Icon { margin-top: 3px; width: 15px; height: 15px; color: var(--green-ink); }
.Card .Btn { margin-top: auto; align-self: flex-start; }

.Access { background: transparent; }
.AccessSteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 960px; margin: 0 auto; }
.AccessSteps li { text-align: center; padding: 8px 12px; }
.AccessSteps h3 { font-size: 19px; margin: 14px 0 8px; }
.AccessSteps p { font-size: 15px; font-weight: 300; color: var(--text); }
.Num {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--green); color: var(--on-green); font-size: 20px; font-weight: 700;
}
.AccessCta { display: flex; justify-content: center; gap: 14px; margin-top: 40px; }
.AccessCta .Btn { padding: 12px 38px; font-size: 16px; }

/* ------------------------- Inner (placeholder) pages -------------------- */
.Inner main { min-height: 70vh; padding-top: 150px; }
.Placeholder { text-align: center; }
.Placeholder h1 { font-size: 40px; margin-bottom: 14px; }
.Placeholder p { margin-bottom: 28px; font-weight: 300; }

/* ------------------------------ Simulations ------------------------------ */
.SimPage { padding-top: 10px; }
.BackLink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.BackLink:hover { color: var(--green-ink); }
.Icon--flip { transform: scaleX(-1); }
.SimHead { margin: 14px 0 24px; }
.SimHead h1 { font-size: 36px; margin: 10px 0 8px; }
.SimHead p { max-width: 780px; font-weight: 300; color: var(--text); }
.SimLayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.SimStage, .SimPanel { background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.SimStage { padding: 16px; min-width: 0; }
.SimScene { position: relative; border-radius: 10px; overflow: hidden; background: #f6f7f2; }
.SimScene canvas { display: block; touch-action: manipulation; cursor: crosshair; }
.SimControls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; padding-top: 16px; }
.SimControl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.SimControl--row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.SimControl--row .SimControl--label { flex-basis: 100%; }
.SimControl--label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.SimControl--label output { margin-left: 4px; color: var(--green-ink); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.SimControl--hint { font-size: 13px; color: var(--muted); }
.SimControl input[type="range"] { width: 210px; accent-color: var(--green-ink); }
.Btn--sm { padding: 8px 14px; font-size: 14px; }
.Segmented { display: inline-flex; border: 1px solid #c9c9c9; border-radius: 8px; overflow: hidden; }
.Segmented button { padding: 8px 13px; border: 0; border-right: 1px solid #e0e0e0; background: #fff; font-size: 14px; font-weight: 600; color: var(--muted); }
.Segmented button:last-child { border-right: 0; }
.Segmented button:hover { color: var(--green-ink); }
.Segmented button[aria-checked="true"] { background: var(--green-ink); color: #fff; }
.SimCheck { margin: 0; color: var(--ink); }

.SimPanel { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding-bottom: 16px; }
.SimTabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.SimTabs button { padding: 14px 8px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 700; color: var(--muted); }
.SimTabs button[aria-selected="true"] { color: var(--green-ink); border-bottom-color: var(--green); }
.SimTabPanel { padding: 16px 18px 0; }
.SimMetrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 18px; }
.SimMetric { padding: 8px 10px; border-left: 3px solid var(--line); border-radius: 8px; background: #f6f7f4; transition: background-color .3s; }
.SimMetric dt { font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.SimMetric dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.SimMetric.is-good { border-left-color: var(--green); background: var(--green-soft); }
.SimMetric.is-alert { border-left-color: #c62828; background: #fdecec; }
.SimPanel--title { margin-bottom: 6px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.SimLog li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.SimLog time { flex: none; padding-top: 1px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.SimLog--step span { font-weight: 700; color: var(--ink); }
.SimLog--good span { color: #2f4708; }
.SimLog--warn span { color: #8e1c1c; }
.SimLearn h3 { margin: 16px 0 6px; font-size: 16px; }
.SimLearn h3:first-child { margin-top: 0; }
.SimLearn p { font-size: 14px; line-height: 1.6; color: var(--text); }
.SimFormula { margin-top: 8px; padding: 8px 10px; border-radius: 6px; background: #f4f4f4; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px !important; color: var(--ink) !important; }
.SimNote { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.SimOthers { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.SimOthers a { font-weight: 700; color: var(--green-ink); text-decoration: underline; }
.SimError { padding: 30px; text-align: center; }
.SimResultsWrap { padding: 16px 4px 4px; background: #fff; overflow-x: auto; }
.SimResultsWrap h3 { margin-bottom: 10px; font-size: 15px; }
.SimResults { font-size: 13px; }
.SimResults th { padding: 8px 10px; }
.SimResults td { padding: 8px 10px; white-space: normal; min-width: 70px; }
.SimResults td:last-child { min-width: 190px; }
.SimResults tbody:empty::after { content: "Finish a run to see it here."; display: block; padding: 10px; color: var(--muted); }

/* Biometric kiosk */
.SimScene--kiosk { padding: 18px; background: linear-gradient(160deg, #eef1f3, #fafafa); }
.Kiosk--progress { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; counter-reset: step; }
.Kiosk--progress li { padding: 4px 10px; border-radius: 20px; background: #e3e6e8; font-size: 12px; font-weight: 700; color: var(--muted); counter-increment: step; }
.Kiosk--progress li::before { content: counter(step) ". "; }
.Kiosk--progress li.is-current { background: var(--green-ink); color: #fff; }
.Kiosk--progress li.is-done { background: var(--green-soft); color: #2f4708; }
.Kiosk--body { max-width: 520px; margin: 0 auto; padding: 18px 18px 14px; border-radius: 22px; background: #2f3337; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.Kiosk--camera { width: 16px; height: 16px; margin: 0 auto 12px; border: 3px solid #555b61; border-radius: 50%; background: #111; transition: box-shadow .3s; }
.Kiosk--screen { min-height: 340px; padding: 20px; border-radius: 10px; background: #fff; }
.Kiosk--head h2 { font-size: 22px; margin-bottom: 4px; }
.Kiosk--head p { margin-bottom: 14px; font-size: 14px; color: var(--text); }
.Kiosk--row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.Kiosk--row .Btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--green) inset; }
.Kiosk--small { font-size: 13px; color: var(--muted); }
.Kiosk--screen > .Btn { margin-top: 8px; }
.Kiosk--bar { height: 8px; margin: 12px 0; border-radius: 4px; background: #e6e6e6; overflow: hidden; }
.Kiosk--bar span { display: block; width: 0; height: 100%; background: var(--green); }
.Kiosk--data { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 6px 0 12px; font-size: 14px; }
.Kiosk--data dt { color: var(--muted); }
.Kiosk--data dd { margin: 0; font-weight: 700; color: var(--ink); }
.Kiosk--data dd.is-ok::after { content: "  \2713"; color: #2e7d32; }
.Kiosk--data dd.is-bad { color: #b71c1c; }
.Kiosk--data dd.is-bad::after { content: "  \2717"; }
.Kiosk--mrz { margin-bottom: 12px; padding: 8px 10px; border-radius: 6px; background: #f1f3f4; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: .08em; word-break: break-all; }
.Kiosk--alert { margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; background: #fdecec; font-size: 14px; font-weight: 700; color: #8e1c1c; }
.Kiosk--face canvas { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto; border-radius: 8px; }
.Kiosk--controls { margin-top: 10px; font-size: 14px; }
.Kiosk--controls label { font-weight: 700; color: var(--ink); }
.Kiosk--controls input[type="range"] { width: 100%; accent-color: var(--green-ink); }
.Kiosk--status { min-height: 21px; margin-top: 8px; font-size: 14px; color: var(--text); }
.Kiosk--status.is-bad { color: #8e1c1c; }
.Kiosk--status.is-ok { color: #2e7d32; }
.Kiosk--print { display: block; width: 120px; height: auto; margin: 6px auto; border-radius: 50% 50% 44% 44%; }
.Kiosk--cipher { max-height: 110px; margin: 12px 0 6px; padding: 10px; overflow: auto; border-radius: 6px; background: #1e2327; font-size: 12px; line-height: 1.5; color: #b9f6ca; white-space: pre-wrap; word-break: break-all; }
.Kiosk--bar-net span { background: #4a6fa5; }
.Kiosk--devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.Kiosk--dev { padding: 8px 4px; border-radius: 8px; background: #3d4246; font-size: 11px; font-weight: 700; color: #b0b6bb; text-align: center; transition: background-color .3s, color .3s; }
.Kiosk--dev.is-active { background: var(--green); color: var(--on-green); box-shadow: 0 0 14px rgba(144, 189, 59, .7); }
.Kiosk--camera.is-active { border-color: var(--green); box-shadow: 0 0 12px 3px rgba(144, 189, 59, .8); }

/* --------------------------- Engagement report --------------------------- */
.ReportActions { display: flex; flex-wrap: wrap; gap: 10px; }
.ReportFilter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 26px; padding: 16px 18px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.ReportFilter .Field { margin: 0; min-width: 160px; }
.ReportFilter .Btn { padding: 11px 22px; }
.ReportCard { margin-bottom: 22px; padding: 6px 20px 16px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.ReportCard .DashTitle { margin: 14px 0 8px; font-size: 18px; }
.ReportCard--sub { margin: -4px 0 8px; font-size: 13px; color: var(--muted); }
.ReportGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ReportGrid .ReportCard { margin-bottom: 0; }
.Chart { display: block; width: 100%; height: auto; font-family: var(--font); }
.Chart--hit:hover { fill: rgba(0, 0, 0, .04); }
.Legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 4px; font-size: 13px; color: var(--text); }
.Legend li { display: flex; align-items: center; gap: 7px; }
.Legend--key { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.Legend--green { background: #557c10; }
.Legend--blue { background: #2f6db5; }
.TableLink { font-weight: 700; color: var(--green-ink); text-decoration: underline; }
.Table--sub { display: block; font-size: 12px; }
.Report .Table { white-space: normal; }
.ChatHistory { display: grid; gap: 10px; }
.ChatHistory li { padding: 12px 16px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.ChatHistory--meta { font-size: 12px; color: var(--muted); }
.ChatHistory--q { margin: 4px 0; font-weight: 700; color: var(--ink); }
.ChatHistory--a { font-size: 14px; font-weight: 300; color: var(--text); }

/* Print / "Save as PDF": only the report itself */
@media print {
    @page { size: A4; margin: 14mm; }
    body { background: #fff !important; font-size: 11pt; }
    .Header, .Sidebar, .SidebarOverlay, .Loader, .SiteFooter, .Chat, .SkipLink, .NoPrint, .ReportFilter, .Flashes { display: none !important; }
    .Inner main { padding-top: 0; min-height: 0; }
    .Section { padding: 0; }
    .ReportBlock, .Stats, .Table tr { break-inside: avoid; }
    .ReportCard, .Stats, .Table tr, .ChatHistory li { break-inside: avoid; }
    .ReportGrid { grid-template-columns: 1fr; }
    .TableWrap { overflow: visible; }
    .Panel { box-shadow: none; padding: 0; }
    .PageMap, .SideTabs--page { display: none !important; }
    .Inner main { padding-top: 0; }
    .PageHead { margin-bottom: 20px; }
    .PageHead h1 { font-size: 28px; line-height: 34px; }
}

/* ---------------------------- User management ---------------------------- */
.UsersHead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 40px 0 14px; }
.UsersHead .DashTitle { margin: 0; }
.UsersTable td { vertical-align: middle; }
.RoleForm { display: flex; align-items: center; gap: 6px; }
.RoleForm select { padding: 6px 8px; font: inherit; font-size: 14px; border: 1px solid #c9c9c9; border-radius: 6px; background: #fff; }
.Btn--danger { border-color: #c62828; color: #b71c1c; background: #fff; }
.Btn--danger:hover { background: #b71c1c; border-color: #b71c1c; color: #fff; }
.ConfirmForm { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------- Alerts / flashes ---------------------------- */
.Flashes { margin-bottom: 8px; }
.Alert { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius); border-left: 4px solid; font-size: 15px; }
.Alert--success { background: var(--green-soft); border-color: var(--green); color: #2f4708; }
.Alert--error   { background: #fdecec; border-color: #c62828; color: #8e1c1c; }
.Alert--info    { background: #eef3fa; border-color: #4a6fa5; color: #263f63; }

/* ---------------------- Login / register / verify ------------------------ */
.Auth { padding-top: 10px; }
.AuthCard {
    width: 100%; max-width: 560px; margin: 0 auto; padding: 34px 36px 30px;
    background: #fff; border-radius: 16px; box-shadow: var(--shadow);
}
.AuthCard h1 { font-size: 28px; margin-bottom: 8px; }
.AuthCard--lead { margin-bottom: 22px; font-weight: 300; color: var(--text); }
.AuthCard--note { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.AuthCard--note a, .AuthCard--lead a { color: var(--green-ink); font-weight: 700; text-decoration: underline; }
.AuthCard--note .Icon { vertical-align: -2px; }
.AuthCard--resend { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.AuthTabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.AuthTabs a { padding: 11px; text-align: center; font-weight: 700; color: var(--muted); background: #f7f7f7; }
.AuthTabs a:hover { color: var(--green-ink); }
.AuthTabs a.is-active { background: #fff; color: var(--green-ink); box-shadow: inset 0 -3px 0 var(--green); }

.Form--row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.Field { margin-bottom: 16px; }
.Field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.Field--hint { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.Field input, .Field select {
    width: 100%; padding: 11px 13px; font: inherit; font-size: 16px; color: #212529;
    background: #fff; border: 1px solid #c9c9c9; border-radius: 8px; transition: border-color .2s, box-shadow .2s;
}
.Field input:focus, .Field select:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px rgba(144, 189, 59, .35); }
.Field [aria-invalid="true"] { border-color: #c62828; background: #fffafa; }
.PhoneField { border: 0; padding: 0; min-width: 0; }
.PhoneField legend { display: block; padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.PhoneGroup { display: grid; grid-template-columns: 104px 1fr; gap: 10px; }
.PhoneGroup--code { position: relative; }
.PhoneGroup--plus {
    position: absolute; left: 1px; top: 1px; bottom: 1px; width: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 700; color: var(--ink);
    background: #f2f2f2; border-right: 1px solid #c9c9c9; border-radius: 7px 0 0 7px; pointer-events: none;
}
.Field .PhoneGroup--code input { padding-left: 42px; font-variant-numeric: tabular-nums; }
.Field .PhoneGroup--number input { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.FieldError { margin-top: 6px; font-size: 13px; color: #b71c1c; }
.FieldError[hidden] { display: none; }
.OtpInput { font-size: 26px !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.Check { display: flex; align-items: center; gap: 8px; margin: 2px 0 20px; font-size: 14px; color: var(--muted); cursor: pointer; }
.Check input { width: 16px; height: 16px; accent-color: var(--green-ink); }
.Btn--block { width: 100%; padding: 13px 22px; font-size: 16px; }
.Btn:disabled { opacity: .6; cursor: wait; }
.LinkButton { padding: 0; border: 0; background: none; color: var(--green-ink); font-weight: 700; text-decoration: underline; }

/* ------------------------------ Dashboards ------------------------------- */
.Dashboard { padding-top: 10px; }
.DashHead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.DashHead h1 { font-size: 36px; margin-bottom: 6px; }
.DashHead p { font-weight: 300; color: var(--text); }
.DashTitle { font-size: 22px; margin: 40px 0 14px; }
.Stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.Stats--six { grid-template-columns: repeat(6, 1fr); }
.Stats li { padding: 18px 20px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); border-top: 4px solid var(--green); }
.Stats strong { display: block; font-size: 30px; color: var(--ink); line-height: 1.1; }
.Stats span { font-size: 13px; color: var(--muted); }
.Card--title { font-size: 21px; margin-bottom: 10px; }
.Card--placeholder .Icon { width: 64px; height: 64px; color: var(--green); }
.Tag--dark { background: #333; color: #fff; }
.Muted { color: var(--muted); }
.TableWrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.Table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.Table th { padding: 12px 16px; text-align: left; background: #333; color: #fff; font-weight: 700; }
.Table td { padding: 11px 16px; border-top: 1px solid var(--line); }
.Table tbody tr:hover { background: #fafcf5; }
.Status { padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.Status--ok { background: var(--green-soft); color: #2f4708; }
.Status--fail { background: #fdecec; color: #8e1c1c; }
.Dashboard .Alert { margin-top: 30px; }

/* ------------------------------- Footer --------------------------------- */
.SiteFooter { padding: 40px 0 28px; background: #fff; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.SiteFooter--inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.SiteFooter strong { display: block; margin-bottom: 4px; color: var(--ink); }
.SiteFooter nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.SiteFooter nav a:hover { color: var(--green-ink); }
.SiteFooter--note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.SiteFooter--note a { text-decoration: underline; }

/* ------------------------------ Chatbot --------------------------------- */
.Chat { position: fixed; right: 24px; bottom: 24px; z-index: 70; }
.Chat--toggle {
    display: flex; align-items: center; justify-content: center; width: 58px; height: 58px;
    border: 0; border-radius: 50%; background: var(--green-ink); color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s, background-color .2s;
}
.Chat--toggle:hover { background: #456409; transform: scale(1.06); }
.Chat--toggle .Icon { width: 26px; height: 26px; }
.Chat--panel {
    position: absolute; right: 0; bottom: 72px; width: 350px; max-width: calc(100vw - 32px);
    height: 480px; max-height: calc(100vh - 120px);
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border-radius: 16px; box-shadow: 0 16px 50px rgba(0, 0, 0, .22);
}
.Chat--panel[hidden] { display: none; }
.Chat--head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #333; color: #fff; }
.Chat--head strong { display: block; font-size: 15px; }
.Chat--head span { font-size: 12px; color: #cfd8bf; }
.Chat--close { width: 32px; height: 32px; border: 0; background: none; color: #fff; }
.Chat--log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fafafa; }
.Msg { max-width: 86%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.Msg--bot { align-self: flex-start; background: #ececec; color: #222; border-bottom-left-radius: 4px; }
.Msg--user { align-self: flex-end; background: var(--green-ink); color: #fff; border-bottom-right-radius: 4px; }
.Msg.is-typing { opacity: .6; }
.Chat--chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #fafafa; }
.Chat--chips[hidden] { display: none; }
.Chat--chips button { padding: 5px 10px; border: 1px solid var(--green); border-radius: 16px; background: #fff; font-size: 12px; color: var(--green-ink); }
.Chat--chips button:hover { background: var(--green-soft); }
.Chat--form { display: flex; gap: 8px; padding: 12px; background: #fafafa; border-top: 1px solid var(--line); }
.Chat--form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 10px; font: inherit; font-size: 14px; }
.Chat--form button { display: flex; align-items: center; justify-content: center; width: 42px; border: 0; border-radius: 10px; background: var(--green-ink); color: #fff; }
.Chat--form button:disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Inner pages in the idrak.com style
   Measured from idrak.com/all-product/ and /contact/: 50px bold page title over the
   dotted world map, content in ONE white panel (10px radius, soft shadow, 50px padding),
   product cards with a 1px #ebebeb border and no shadow, 14px uppercase card titles,
   a short green bar before "See more", flat thin rules instead of tinted boxes.
   ========================================================================== */
main { position: relative; }
.Inner main { padding-top: 140px; }
.PageMap { position: absolute; top: 40px; right: 0; width: 62%; max-width: 900px; opacity: .5; pointer-events: none; z-index: 0; }
.SideTabs--page { position: fixed; top: 50%; }
.Page { position: relative; z-index: 1; padding: 0 0 70px; scroll-margin-top: 20px; }
.PageHead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 50px; }
.PageHead h1, .PageHead--title { margin: 0; font-size: 50px; line-height: 60px; font-weight: 700; color: var(--ink); }
.PageHead--sub { max-width: 720px; margin-top: 12px; font-size: 15px; font-weight: 300; color: var(--text); }
.PageHead--actions { display: flex; flex-wrap: wrap; gap: 10px; }
.Panel { position: relative; background: #fff; border-radius: 10px; box-shadow: 0 16px 28px rgba(0, 0, 0, .09); padding: 50px; }
.PanelTitle { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--ink); }
.Lead { margin-bottom: 22px; font-size: 16px; font-weight: 300; color: var(--text); }
.BackLink { margin-bottom: 18px; }
.Flashes { position: relative; z-index: 2; margin-bottom: 20px; }

/* figures: one strip with thin dividers instead of separate tiles */
.Stats, .Stats--six { gap: 0; margin-bottom: 44px; border-top: 1px solid #ebebeb; border-bottom: 1px solid #ebebeb; }
.Stats li { padding: 20px 22px; background: none; border: 0; border-left: 1px solid #ebebeb; border-radius: 0; box-shadow: none; }
.Stats li:first-child { border-left: 0; padding-left: 0; }
.Stats strong { font-size: 30px; font-weight: 700; color: var(--ink); }
.Stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* cards: idrak "Product" cards */
.Cards { gap: 30px; }
.Card { border: 1px solid #ebebeb; border-radius: 10px; box-shadow: none; background: #fff; transition: border-color .2s; }
.Card:hover { border-color: #cfcfcf; }
.Card--media { height: 200px; padding: 24px; background: #fff; }
.Card--body { padding: 18px 15px 20px; }
.Card .Card--tag { margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
.Card .Card--title { margin-bottom: 10px; font-size: 14px; line-height: 21px; font-weight: 600; text-transform: uppercase; color: var(--ink); }
.Card--title a:hover { color: var(--green-ink); }
.Card .Card--text { margin-bottom: 18px; line-height: 1.55; font-size: 14px; font-weight: 300; color: var(--text); }
.Card--foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.Card--foot::before { content: ""; width: 30px; height: 3px; background: var(--green); }
.Card--link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.Card--link:hover { color: var(--green-ink); }
.Card--link .Icon { width: 14px; height: 14px; }

/* labels: plain text, no pills */
.Tag { padding: 0; border-radius: 0; background: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--green-ink); }
.Tag--dark { background: none; color: var(--ink); }
.Status { display: inline-flex; align-items: center; gap: 6px; padding: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 600; }
.Status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.Status--ok { background: none; color: #2f4708; }
.Status--ok::before { background: var(--green); }
.Status--fail { background: none; color: #8e1c1c; }
.Status--fail::before { background: #c62828; }

/* tables: white, thin rules */
.TableWrap { position: relative; background: none; border-radius: 0; box-shadow: none; } /* keeps hidden screen-reader labels inside the scroll box */
.Table th { padding: 10px 14px; background: none; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.Table td { padding: 12px 14px; border-top: 1px solid #ebebeb; }
.Table tbody tr:first-child td { border-top: 0; }
.Table tbody tr:hover { background: #fafafa; }
.Table tbody tr[hidden] { display: none; }
.PanelTitle + .TableWrap, .UsersHead + .TableWrap { margin-bottom: 10px; }
.UsersHead { margin: 44px 0 14px; }
.UsersTable { font-size: 13px; }
.UsersTable th, .UsersTable td { padding-left: 8px; padding-right: 8px; }
.UsersTable .Btn--sm, .RoleForm .Btn--sm { padding: 5px 10px; font-size: 13px; }
.UsersTable .RoleForm select { padding: 5px 6px; font-size: 13px; }
.Panel > .PanelTitle:not(:first-child), .Panel > .UsersHead + .TableWrap + .PanelTitle { margin-top: 44px; }
.RoleForm select, .Field input, .Field select { border-radius: 4px; }
.Btn--sm { border-radius: 6px; }

/* report */
.ReportFilter { margin-bottom: 34px; padding: 14px 18px; background: #f7f7f7; border-radius: 6px; box-shadow: none; }
.ReportBlock { margin-bottom: 46px; }
.ReportBlock--head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.ReportBlock--head .PanelTitle { margin-bottom: 6px; }
.ChartScroll { overflow-x: auto; }
.ReportBlock, .ReportGrid > * { min-width: 0; }
.ReportHint { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.ReportGrid { gap: 50px; margin-bottom: 46px; }
.ReportGrid .ReportBlock { margin-bottom: 0; }
.Chart [role="button"] { cursor: pointer; outline: none; }
.Chart--hit:hover, .Chart--hit:focus-visible { fill: rgba(144, 189, 59, .12); }
.Chart--hit.is-selected { fill: rgba(144, 189, 59, .22); }
.Chart--bar path { transition: opacity .2s; }
.Chart--bar:hover path, .Chart--bar:focus-visible path { opacity: .8; }
.Chart--bar:focus-visible rect { fill: rgba(0, 0, 0, .04); }
.Chart.has-selection .Chart--bar:not(.is-selected) { opacity: .35; }
.Chart--bar.is-selected rect { fill: rgba(144, 189, 59, .08); }
.ReportDetail { margin-bottom: 46px; padding: 22px 24px; border: 1px solid #ebebeb; border-left: 3px solid var(--green); border-radius: 6px; transition: opacity .2s; }
.ReportDetail:focus { outline: none; }
.ReportDetail.is-loading { opacity: .55; }
.ReportDetail--head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.ReportDetail .PanelTitle { margin-bottom: 4px; }
.ReportDetail .Table td { white-space: normal; }
.TableTools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 14px; }
.TableTools .Field { margin: 0; min-width: 200px; }
.TableTools input, .TableTools select { padding: 8px 10px; font-size: 14px; }
.TableTools--count { margin-left: auto; font-size: 13px; color: var(--muted); }
.SortBtn { padding: 0; border: 0; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.SortBtn::after { content: " \2195"; color: #b3b3b3; }
th[aria-sort="ascending"] .SortBtn::after { content: " \2191"; color: var(--green-ink); }
th[aria-sort="descending"] .SortBtn::after { content: " \2193"; color: var(--green-ink); }
.SortBtn:hover { color: var(--green-ink); }
.ChatHistory li { border: 1px solid #ebebeb; border-radius: 6px; box-shadow: none; }

/* simulations */
.SimPage .Panel { padding: 30px; }
.SimStage, .SimPanel { border: 1px solid #ebebeb; border-radius: 10px; box-shadow: none; }
.SimMetric { border-radius: 4px; }
.SimNote { margin-top: 18px; }

/* login, register, verify: the white panel, left-aligned under the title as on the Contact page */
.Auth { padding-top: 0; }
.AuthCard { max-width: 620px; margin: 0; padding: 44px 50px; border-radius: 10px; box-shadow: 0 16px 28px rgba(0, 0, 0, .09); }
.AuthTabs { border: 0; border-bottom: 1px solid #ebebeb; border-radius: 0; }
.AuthTabs a { background: none; }
.AuthTabs a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); }

/* slide-out menu: green panel as on idrak.com */
.Sidebar { width: min(460px, 92vw); padding: 55px 80px; background: #72a746; box-shadow: none; }
.Sidebar--title h2 { font-size: 16px; font-weight: 400; color: rgba(0, 0, 0, .7); }
.Sidebar--close { color: #fff; }
.Sidebar li a, .Sidebar li.is-new a, .Sidebar--logout { padding: 9px 0; border: 0; font-size: 22px; font-weight: 700; color: #fff; }
.Sidebar li a:hover, .Sidebar--logout:hover { color: #fff; opacity: .75; }
.Sidebar li.is-new:first-of-type { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .35); }

/* home page sections */
.HomeSection { padding-top: 90px; }
.HomeSection:last-of-type { padding-bottom: 90px; }
.AccessSteps { max-width: none; margin: 0 0 10px; gap: 40px; }
.AccessSteps li { padding: 0; text-align: left; }
.Num { display: block; width: auto; height: auto; border-radius: 0; background: none; font-size: 32px; font-weight: 300; color: var(--green-ink); }
.Num::after { content: ""; display: block; width: 30px; height: 3px; margin-top: 10px; background: var(--green); }
.AccessSteps h3 { margin: 16px 0 8px; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.AccessCta { justify-content: flex-start; margin-top: 36px; }

/* compact footer, bottom right, as on idrak.com */
.SiteFooter { padding: 10px 0 34px; background: none; border: 0; }
.SiteFooter--inner { justify-content: flex-end; }

/* small details */
.Alert { border-radius: 4px; }
.Chat--chips button, .Kiosk--progress li { border-radius: 4px; }
.Segmented { border-radius: 6px; }

/* ---------------------------- Scroll reveal ----------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1199px) {
    .SideTabs { display: none; }
    .Slider--Item { inset: 0 50px 0 0; }
}

@media (max-width: 991px) {
    .Cards { grid-template-columns: 1fr 1fr; }
    .Stats--six { grid-template-columns: repeat(3, 1fr); }
    .SimLayout, .ReportGrid { grid-template-columns: 1fr; }
    .SimPanel { position: static; max-height: none; }
    .Panel { padding: 40px 34px; }
    .Stats--six li:nth-child(4) { border-left: 0; padding-left: 0; }
    .Stats--six li:nth-child(n+4) { border-top: 1px solid #ebebeb; }
    .Slider--Item h2 { font-size: 40px; line-height: 48px; }
    .Hero--bottom { padding-right: 15px; }
}

@media (max-width: 767px) {
    .Header { padding: 18px 0; }
    .Header--Logo img { height: 42px; }
    .Header--Right .Btn--ghost { display: none; }       /* Register stays; Log in is in the menu */
    .Header--Right .Header--User { display: none; }

    .Hero { min-height: 0; padding: 110px 0 40px; display: block; }
    .Hero--map { width: 160%; right: -30%; top: 30%; }

    .Slider { height: 600px; }
    .Slider--Item { inset: 0 0 50px 0; flex-direction: column-reverse; justify-content: flex-end; text-align: center; align-items: center; }
    .Slider--Item .Left { flex: none; padding: 0; width: 100%; }
    .Slider--Item .Right { flex: none; height: 240px; width: 100%; margin-bottom: 24px; }
    .Slider--Item h2 { font-size: 32px; line-height: 40px; margin-bottom: 14px; }
    .Slider--Item p { margin: 0 auto 24px; }
    .Slider--Dots { top: auto; bottom: 0; right: 50%; transform: translateX(50%); flex-direction: row; }

    .Hero--bottom { position: static; transform: none; flex-direction: column; align-items: stretch; padding: 0 15px; margin-top: 24px; }
    .Newest { width: 100%; }
    .Copyright { justify-content: space-between; flex-wrap: wrap; }
    .Copyright p { text-align: left; }

    .Section { padding: 60px 0; }
    .SectionHead h2 { font-size: 28px; }
    .Cards, .AccessSteps { grid-template-columns: 1fr; }

    .Inner main { padding-top: 110px; }
    .PageMap { width: 120%; top: 60px; opacity: .35; }
    .PageHead { margin-bottom: 28px; }
    .PageHead h1, .PageHead--title { font-size: 32px; line-height: 40px; }
    .Panel { padding: 26px 18px; }
    .AuthCard { padding: 26px 18px 22px; }
    .Stats li, .Stats li:first-child { padding: 14px 10px; }
    .Stats li:first-child { padding-left: 0; }
    .Stats--six li:nth-child(odd) { border-left: 0; padding-left: 0; }
    .Stats--six li:nth-child(4) { border-left: 1px solid #ebebeb; padding-left: 10px; }
    .Stats--six li:nth-child(n+3) { border-top: 1px solid #ebebeb; }
    .Sidebar { padding: 40px 32px; }
    .AccessSteps { gap: 28px; }
    .HomeSection { padding-top: 60px; }
    .TableTools .Field { min-width: 0; flex: 1 1 100%; }
    .TableTools--count { margin-left: 0; }
    .ChartScroll .Chart { min-width: 640px; }
    .ReportGrid .ChartScroll .Chart { min-width: 470px; }
    .SiteFooter--inner { justify-content: flex-start; }
    .AuthCard { padding: 26px 18px 22px; border-radius: 12px; }
    .Form--row { grid-template-columns: 1fr; }
    .DashHead h1 { font-size: 28px; }
    .Stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .Stats li { padding: 14px 12px; }
    .Stats strong { font-size: 24px; }
    .Stats--six { grid-template-columns: 1fr 1fr; }
    .Header--Logout { display: none; }
    .SimHead h1 { font-size: 28px; }
    .SimStage { padding: 10px; }
    .SimControls { gap: 14px; }
    .SimControl, .SimControl input[type="range"] { width: 100%; }
    .Segmented { display: flex; }
    .Segmented button { flex: 1; padding: 8px 6px; }
    .SimScene--kiosk { padding: 10px; }
    .Kiosk--body { padding: 12px 10px 10px; border-radius: 16px; }
    .Kiosk--screen { padding: 14px; }

    .Chat { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}
