/* =========================================================================
   Wateen HR Platform — Landing Visual Identity
   Light premium theme derived from the brand logo:
   Deep Navy · Royal Blue · Teal · Amber-Gold (the "pulse" / وتين = artery)
   ========================================================================= */

:root {
    /* Brand core */
    --navy: #0E2E63;
    --navy-deep: #0A2249;
    --royal: #1B62B3;
    --royal-bright: #2A7BD4;
    --teal: #18A2B8;
    --teal-bright: #16BBD3;
    --gold: #F5A623;
    --gold-bright: #FFB638;
    --gold-soft: #FFF3DD;

    /* Surfaces & ink (light) */
    --bg: #EDF3FB;
    --bg-2: #F6F9FD;
    --surface: #FFFFFF;
    --surface-2: #F4F8FD;
    --ink: #0E2240;
    --ink-2: #46597A;
    --ink-3: #7E92AE;
    --line: rgba(14, 46, 99, 0.10);
    --line-2: rgba(14, 46, 99, 0.18);

    /* Compatibility aliases (used across markup & JS) */
    --primary: var(--royal);
    --primary-hover: #14528f;
    --accent: var(--teal);
    --accent-glow: rgba(24, 162, 184, 0.30);
    --cyan: #1296B0;
    --cyan-glow: rgba(24, 162, 184, 0.28);
    --bg-dark: var(--bg);
    --bg-surface: var(--surface-2);
    --bg-card: var(--surface);
    --bg-card-hover: var(--surface);
    --border: var(--line);
    --border-hover: var(--line-2);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-2);
    --text-muted: var(--ink-3);
    --success: #0F9D6C;
    --danger: #E23D6B;
    --warning: #E0930C;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(14, 46, 99, 0.06);
    --shadow: 0 16px 36px rgba(14, 46, 99, 0.10);
    --shadow-lg: 0 34px 70px rgba(14, 46, 99, 0.16);
    --shadow-gold: 0 12px 30px rgba(245, 166, 35, 0.32);
    --shadow-navy: 0 30px 70px rgba(10, 34, 73, 0.35);

    /* Gradients */
    --grad-brand: linear-gradient(135deg, var(--navy) 0%, var(--royal) 50%, var(--teal) 100%);
    --grad-cool: linear-gradient(135deg, var(--royal), var(--teal));
    --grad-gold: linear-gradient(135deg, var(--gold), var(--gold-bright));

    /* Type */
    --font-ar: 'Cairo', system-ui, sans-serif;
    --font-en: 'Outfit', sans-serif;

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1240px;
}

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

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-ar);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient background: soft mesh + faint dotted grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(620px 620px at 88% -4%, rgba(24, 162, 184, 0.14), transparent 60%),
        radial-gradient(700px 700px at -6% 12%, rgba(27, 98, 179, 0.12), transparent 60%),
        radial-gradient(560px 560px at 50% 108%, rgba(245, 166, 35, 0.10), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(14, 46, 99, 0.05) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
    mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: fixed;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(150px);
    opacity: 0.5;
    z-index: 0;
}
.glow-orb-1 { top: -160px; right: -140px; background: radial-gradient(circle, rgba(24,162,184,0.28) 0%, transparent 70%); }
.glow-orb-2 { top: 760px; left: -220px; background: radial-gradient(circle, rgba(27,98,179,0.22) 0%, transparent 70%); }
.glow-orb-3 { bottom: 360px; right: -200px; background: radial-gradient(circle, rgba(245,166,35,0.16) 0%, transparent 70%); }

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-weight: 800; line-height: 1.25; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

/* Visually hidden but accessible to screen readers / assistive tech */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .container { padding: 0 1.25rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Glass / surface cards ---------- */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.glass-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-2);
    box-shadow: var(--shadow);
}

/* ---------- Pulse line (signature brand motif) ---------- */
.pulse-divider {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: block;
    overflow: visible;
}
.pulse-divider .track { stroke: var(--line-2); stroke-width: 2; fill: none; }
.pulse-divider .beat {
    stroke: var(--gold);
    stroke-width: 3.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 6px rgba(245, 166, 35, 0.45));
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: pulseDraw 4.5s ease-in-out infinite;
}
.pulse-divider .dot { fill: var(--gold); }
@keyframes pulseDraw {
    0% { stroke-dashoffset: 1400; }
    55% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1400; }
}

/* ---------- Header / navbar ---------- */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(247, 250, 253, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}
.main-header.scrolled {
    background: rgba(247, 250, 253, 0.9);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(14, 46, 99, 0.07);
}
.navbar-container { height: 78px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; }
.logo-img { height: 42px; width: auto; display: block; }
@media (max-width: 920px) { .logo-img { height: 34px; } }

/* Force western/latin digits and LTR for numeric strings (phones, etc.) */
.ltr-num { direction: ltr; unicode-bidi: isolate; font-family: var(--font-en); }

.nav-menu { display: flex; gap: 2.25rem; align-items: center; }
.nav-link { font-weight: 700; color: var(--ink-2); font-size: 0.95rem; position: relative; padding: 0.4rem 0; }
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; right: 0; width: 0; height: 2px;
    background: var(--grad-gold); border-radius: 2px; transition: var(--transition);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.nav-wa {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: #128C4B; font-weight: 800; font-size: 0.9rem;
    padding: 0.45rem 0.6rem; border-radius: 99px;
}
.nav-wa:hover { color: #0e7a41; }
.nav-toggle {
    display: none; background: var(--surface); border: 1px solid var(--line);
    width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
    color: var(--navy); font-size: 1.15rem; align-items: center; justify-content: center;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(247, 250, 253, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.85rem 0.5rem; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 920px) {
    .nav-menu { display: none; }
    .nav-wa span { display: none; }
    .nav-wa { padding: 0.4rem; }
    .nav-toggle { display: inline-flex; }
    .navbar-container { height: 66px; }
    .logo-img { height: 32px; }
    .nav-actions { gap: 0.45rem; }
    .nav-actions .btn-primary { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
    .nav-actions .btn-primary i { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    font-family: var(--font-ar); font-weight: 800; font-size: 1rem;
    padding: 0.8rem 1.9rem; border-radius: var(--radius-md); cursor: pointer;
    border: none; position: relative; z-index: 1; overflow: hidden; transition: var(--transition);
}

.btn-primary {
    background: var(--grad-gold);
    color: var(--navy);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(245, 166, 35, 0.42); }

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--line-2);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--royal); transform: translateY(-3px); }

.btn-cyan {
    background: var(--grad-cool);
    color: #fff;
    box-shadow: 0 12px 30px var(--accent-glow);
}
.btn-cyan:hover { transform: translateY(-3px); box-shadow: 0 16px 38px var(--accent-glow); }

.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.08rem; border-radius: var(--radius-md); }

/* On dark navy backgrounds, secondary buttons invert */
.on-dark .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    backdrop-filter: blur(8px);
}
.on-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255,255,255,0.4); }

/* ---------- Section header ---------- */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 4rem; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--gold-soft); color: #b9740a;
    border: 1px solid rgba(245, 166, 35, 0.3);
    padding: 0.4rem 1.1rem; border-radius: 99px;
    font-size: 0.82rem; font-weight: 800; margin-bottom: 1.25rem;
}
.eyebrow i { color: var(--gold); }
.section-title {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800; margin-bottom: 1rem; color: var(--navy); letter-spacing: -0.5px;
}
.section-title .hl {
    background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-desc { color: var(--ink-2); font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero-section { padding: 5rem 0 4rem; position: relative; }
.hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } }

.hero-content { text-align: right; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: var(--surface); border: 1px solid var(--line);
    padding: 0.5rem 1.1rem; border-radius: 99px;
    font-size: 0.86rem; font-weight: 800; color: var(--royal);
    margin-bottom: 1.75rem; box-shadow: var(--shadow-sm);
}
.hero-tag i { color: var(--gold); }
.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    font-weight: 800; line-height: 1.22; margin-bottom: 1.5rem; color: var(--navy); letter-spacing: -1px;
}
.hero-title .hl {
    position: relative;
    background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.18rem; color: var(--ink-2); max-width: 560px; margin-bottom: 2.25rem; line-height: 1.85; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.25rem; flex-wrap: wrap; }
@media (max-width: 980px) {
    .hero-content { text-align: center; }
    .hero-subtitle { margin-inline: auto; }
    .hero-actions { justify-content: center; }
}
@media (max-width: 460px) { .hero-actions { flex-direction: column; } .hero-actions .btn { width: 100%; } }

.hero-trust { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; color: var(--ink-2); font-size: 0.9rem; font-weight: 700; }
.hero-trust .item { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust .item i { color: var(--success); }
@media (max-width: 980px) { .hero-trust { justify-content: center; } }

/* Hero visual: dark navy dashboard mock */
.hero-preview {
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, #102C5A 0%, #0A1F40 100%);
    padding: 0.6rem;
    box-shadow: var(--shadow-navy);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-preview::before {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius-xl);
    background: radial-gradient(420px 200px at 80% 0%, rgba(24,162,184,0.25), transparent 70%);
    pointer-events: none;
}
.hero-preview-bar { height: 38px; display: flex; align-items: center; padding: 0 1rem; gap: 0.5rem; }
.hero-preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-preview-dot.red { background: #ff5f57; }
.hero-preview-dot.yellow { background: #febc2e; }
.hero-preview-dot.green { background: #28c840; }
.hero-preview-url {
    margin-right: auto; color: rgba(255,255,255,0.55); font-size: 0.78rem; font-family: var(--font-en);
    background: rgba(255,255,255,0.06); padding: 0.2rem 0.8rem; border-radius: 99px;
}
.hero-preview-body {
    background: #0C2350; border-radius: 0 0 22px 22px; padding: 1.4rem;
    display: grid; grid-template-columns: 200px 1fr; gap: 1.4rem; min-height: 400px; text-align: right;
    border-top: 1px solid rgba(255,255,255,0.06);
}
@media (max-width: 540px) {
    .hero-preview-body { grid-template-columns: 1fr; }
    .hero-preview-sidebar { display: none !important; }
}
.hero-preview-sidebar { display: flex; flex-direction: column; gap: 0.35rem; border-left: 1px solid rgba(255,255,255,0.07); padding-left: 0.9rem; }
.preview-sidebar-item {
    padding: 0.6rem 0.8rem; border-radius: 10px; display: flex; align-items: center; gap: 0.6rem;
    color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 600;
}
.preview-sidebar-item i { width: 18px; text-align: center; }
.preview-sidebar-item.active { background: rgba(24,162,184,0.16); color: var(--teal-bright); font-weight: 800; }

.hero-preview-content { display: flex; flex-direction: column; gap: 1.1rem; }
.preview-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.preview-stat-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.9rem; }
.preview-stat-card .lbl { font-size: 0.72rem; color: rgba(255,255,255,0.6); }
.preview-stat-card .val { font-size: 1.5rem; font-weight: 800; color: #fff; font-family: var(--font-en); margin-top: 0.2rem; }

.preview-chart-mock {
    flex-grow: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: flex-end;
    height: 200px; position: relative;
}
.preview-chart-title { position: absolute; top: 1rem; right: 1.2rem; font-weight: 700; font-size: 0.82rem; color: rgba(255,255,255,0.85); }
.preview-chart-bars { display: flex; justify-content: space-around; align-items: flex-end; height: 100%; padding-top: 2.4rem; }
.preview-chart-bar {
    width: 30px; background: linear-gradient(to top, var(--royal-bright), var(--teal-bright));
    border-radius: 6px 6px 0 0; position: relative; transform-origin: bottom;
    animation: barGrowScale 1.4s cubic-bezier(.16,1,.3,1) forwards;
}
.preview-chart-bar::after {
    content: attr(data-val); position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    font-size: 0.68rem; font-family: var(--font-en); color: rgba(255,255,255,0.7);
}

/* floating mini-card on hero */
.hero-float {
    position: absolute; bottom: -26px; right: -18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 0.85rem 1.1rem; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 0.75rem; z-index: 3;
    animation: float 5s ease-in-out infinite;
}
.hero-float .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 1.1rem; }
.hero-float .t1 { font-size: 0.72rem; color: var(--ink-3); font-weight: 700; }
.hero-float .t2 { font-size: 1.05rem; color: var(--navy); font-weight: 800; font-family: var(--font-en); }
@media (max-width: 560px) { .hero-float { display: none; } }

/* ---------- Logos / trust strip ---------- */
.trust-strip { padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip .lead { text-align: center; color: var(--ink-3); font-weight: 700; margin-bottom: 1.5rem; font-size: 0.9rem; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; }
.trust-badge { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink-2); font-weight: 800; font-size: 0.95rem; }
.trust-badge i { color: var(--teal); font-size: 1.2rem; }

/* ---------- Stats ---------- */
.stats-section { padding: 4.5rem 0; }
.stats-card {
    background: var(--grad-brand); border-radius: var(--radius-xl); padding: 3rem 2rem;
    box-shadow: var(--shadow-navy); position: relative; overflow: hidden;
}
.stats-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(500px 240px at 90% -10%, rgba(245,166,35,0.18), transparent 60%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.stat-item { text-align: center; color: #fff; }
.stat-number {
    font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; font-family: var(--font-en);
    background: linear-gradient(135deg, #fff, var(--gold-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem; line-height: 1;
}
.stat-label { font-size: 0.98rem; font-weight: 700; color: rgba(255,255,255,0.82); }

/* ---------- Features explorer tabs ---------- */
.features-explorer-tabs { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tab-btn {
    background: var(--surface); border: 1px solid var(--line);
    padding: 0.8rem 1.4rem; border-radius: 99px; color: var(--ink-2); cursor: pointer;
    font-family: var(--font-ar); font-weight: 800; font-size: 0.92rem; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.tab-btn.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.tab-btn:hover:not(.active) { border-color: var(--royal); color: var(--navy); transform: translateY(-2px); }
.tab-content { display: none; }
.tab-content.active { display: grid; animation: fadeIn 0.6s ease-out forwards; }

/* ---------- Feature cards (bento-friendly) ---------- */
.feature-card { padding: 2.25rem; }
.feature-card::before {
    content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
    background: var(--grad-gold); transform: scaleX(0); transform-origin: right; transition: transform .45s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 54px; height: 54px; border-radius: 15px;
    background: linear-gradient(135deg, rgba(27,98,179,0.12), rgba(24,162,184,0.12));
    color: var(--royal); font-size: 1.4rem; transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--grad-brand); color: #fff; transform: rotate(-6deg) scale(1.05); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.22rem; font-weight: 800; color: var(--navy); }
.feature-card p { color: var(--ink-2); font-size: 0.96rem; line-height: 1.8; }
.feature-icon-group { display: contents; }

/* ---------- Calculator ---------- */
.calc-container { max-width: 1040px; margin: 3.5rem auto 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.25rem; }
@media (max-width: 900px) { .calc-container { grid-template-columns: 1fr; } }
.calc-panel { padding: 2.25rem; }
.calc-subtitle {
    font-size: 1.05rem; font-weight: 800; margin-bottom: 1.4rem; color: var(--navy);
    border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
}
.calc-subtitle i { color: var(--teal); }
.calc-group { margin-bottom: 1.6rem; }
.calc-label { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 0.7rem; font-size: 0.93rem; color: var(--ink); }
.calc-label .val {
    color: var(--royal); font-family: var(--font-en); font-size: 1.05rem; font-weight: 800;
    background: rgba(27,98,179,0.08); padding: 0.1rem 0.7rem; border-radius: 8px;
}
.calc-range {
    width: 100%; height: 7px; background: rgba(14,46,99,0.1); border-radius: 99px; outline: none; -webkit-appearance: none; appearance: none;
}
.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
    background: var(--grad-gold); cursor: pointer; box-shadow: 0 0 0 4px rgba(245,166,35,0.18); transition: transform .2s;
    border: 2px solid #fff;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); cursor: pointer; border: 2px solid #fff; }

.calc-select-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.calc-select-btn {
    background: var(--surface-2); border: 1px solid var(--line); padding: 0.75rem 0.5rem; border-radius: 11px;
    text-align: center; font-weight: 700; cursor: pointer; transition: var(--transition); font-size: 0.88rem; color: var(--ink-2);
    font-family: inherit; line-height: inherit; width: 100%;
}
.calc-select-btn.active { background: rgba(24,162,184,0.1); border-color: var(--teal); color: var(--teal); font-weight: 800; box-shadow: inset 0 0 0 1px var(--teal); }
.calc-select-btn:hover:not(.active) { border-color: var(--royal); color: var(--navy); }

.calc-toggle-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: rgba(14,46,99,0.18); transition: .4s; border-radius: 26px; }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background: #fff; transition: .4s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle-switch input:checked + .toggle-slider { background: var(--teal); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }

/* Receipt = a real-looking payslip */
.calc-receipt {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2.25rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
    position: relative;
}
.calc-receipt::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--grad-brand); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.receipt-header { text-align: center; border-bottom: 2px dashed var(--line-2); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.receipt-header h4 { font-size: 1.18rem; color: var(--navy); margin-bottom: 0.25rem; }
.receipt-header p { font-size: 0.82rem; color: var(--ink-3); }
.receipt-row { display: flex; justify-content: space-between; margin-bottom: 0.9rem; font-size: 0.93rem; color: var(--ink-2); }
.receipt-row .val { font-family: var(--font-en); font-weight: 800; color: var(--ink); }
.receipt-row.addition .val { color: var(--success); }
.receipt-row.deduction .val { color: var(--danger); }
.receipt-divider { border-top: 1px solid var(--line); margin: 0.75rem 0 1rem; }
.receipt-total {
    display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, rgba(27,98,179,0.08), rgba(24,162,184,0.08));
    border: 1px solid rgba(24,162,184,0.25); border-radius: var(--radius-md); margin-top: auto;
}
.receipt-total .lbl { font-weight: 800; font-size: 1.02rem; color: var(--navy); }
.receipt-total .val { font-size: 1.7rem; font-weight: 800; font-family: var(--font-en); color: var(--royal); }
.receipt-total .val span { font-size: 0.9rem; font-family: var(--font-ar); font-weight: 700; margin-right: 0.3rem; color: var(--ink-2); }

/* ---------- Fingerprint sync (dark terminal on light page) ---------- */
.sync-container { max-width: 1040px; margin: 3.5rem auto 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.25rem; }
@media (max-width: 900px) { .sync-container { grid-template-columns: 1fr; } }
.sync-device-list { padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.sync-list-title { font-size: 1.05rem; font-weight: 800; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.sync-list-title i { color: var(--teal); }
.sync-device-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.1rem; display: flex; align-items: center; justify-content: space-between; transition: var(--transition); }
.sync-device-card:hover { border-color: var(--royal); transform: translateX(-4px); }
.device-info { display: flex; align-items: center; gap: 0.9rem; }
.device-avatar { width: 42px; height: 42px; border-radius: 11px; background: rgba(14,46,99,0.06); display: grid; place-items: center; font-size: 1.15rem; color: var(--ink-3); }
.sync-device-card.online .device-avatar { color: var(--success); background: rgba(15,157,108,0.12); }
.device-name { font-weight: 800; font-size: 0.92rem; color: var(--navy); }
.device-ip { font-size: 0.78rem; color: var(--ink-3); font-family: var(--font-en); }
.device-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 800; }
.pulse-ring { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--success); color: var(--success); }
.pulse-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulseRing 1.8s cubic-bezier(0,0,0.2,1) infinite; pointer-events: none; }
.pulse-ring.offline { background: var(--ink-3); }
.pulse-ring.offline::after { display: none; }

.sync-log-panel { background: #0A1F40; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; min-height: 340px; box-shadow: var(--shadow-navy); }
.sync-log-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.9rem; margin-bottom: 0.9rem; }
.sync-log-title { font-size: 1rem; font-weight: 800; color: var(--teal-bright); display: flex; align-items: center; gap: 0.5rem; }
.sync-log-tag { background: rgba(255,255,255,0.08); padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.72rem; color: rgba(255,255,255,0.7); font-family: var(--font-en); }
.sync-log-body { flex-grow: 1; font-size: 0.84rem; color: #cbd9ec; overflow-y: auto; max-height: 250px; display: flex; flex-direction: column; gap: 0.7rem; padding-left: 0.4rem; }
.log-item { border-right: 2px solid var(--teal); padding-right: 0.75rem; animation: slideIn 0.3s ease-out; line-height: 1.5; }
.log-item .time { color: rgba(255,255,255,0.45); font-size: 0.78rem; margin-left: 0.4rem; font-family: var(--font-en); }
.log-item.success { border-right-color: #34d399; }
.log-item.info { border-right-color: var(--gold); }

/* ---------- Architecture / isolation ---------- */
.iso-card { padding: 2.5rem 1.75rem; text-align: center; }
.iso-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 1.4rem; }
.iso-icon.b1 { background: rgba(24,162,184,0.12); color: var(--teal); }
.iso-icon.b2 { background: rgba(27,98,179,0.12); color: var(--royal); }
.iso-icon.b3 { background: rgba(15,157,108,0.12); color: var(--success); }
.iso-card h3 { margin-bottom: 0.6rem; font-size: 1.15rem; color: var(--navy); }
.iso-card p { font-size: 0.92rem; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.price-slider-container { max-width: 620px; margin: 0 auto 3rem; text-align: center; background: var(--surface); border: 1px solid var(--line); padding: 2.25rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.price-slider-lbl { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--navy); }
.price-slider-lbl span { color: var(--royal); font-family: var(--font-en); font-size: 1.8rem; font-weight: 800; margin: 0 0.4rem; }

.pricing-result { max-width: 720px; margin: 0 auto 2.5rem; padding: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; border: 1px solid var(--line); }
.pricing-result.enterprise { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-soft), var(--surface)); }
.pricing-result-main { text-align: center; min-width: 160px; }
.pricing-total { font-size: 3.4rem; font-weight: 800; font-family: var(--font-en); color: var(--royal); line-height: 1; }
.pricing-total-label { font-size: 0.98rem; color: var(--ink-2); margin-top: 0.3rem; }
.pricing-result-details { flex: 1; min-width: 220px; }
.pricing-result-details p { color: var(--ink-2); }

.pricing-tiers-grid { max-width: 820px; margin: 0 auto 2.5rem; display: flex; flex-direction: column; gap: 0.7rem; }
.pricing-tier-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); transition: var(--transition); }
.pricing-tier-row.active { border-color: var(--gold); background: linear-gradient(90deg, var(--gold-soft), var(--surface)); box-shadow: var(--shadow-sm); transform: translateX(-4px); }
.pricing-tier-range { font-weight: 700; color: var(--navy); }
.pricing-tier-rate { font-weight: 800; font-family: var(--font-en); color: var(--royal); text-align: left; }
.pricing-tier-rate span { display: block; font-size: 0.78rem; font-weight: 600; font-family: var(--font-ar); color: var(--ink-3); margin-top: 0.1rem; }

.pricing-features { list-style: none; }
.pricing-features-inline { max-width: 820px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; }
.pricing-features-inline li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--ink-2); font-weight: 700; }
.pricing-features-inline i { color: var(--success); }

@media (max-width: 640px) {
    .pricing-result { flex-direction: column; text-align: center; }
    .pricing-tier-row { flex-direction: column; align-items: flex-start; }
    .pricing-tier-rate { text-align: right; }
}

/* ---------- FAQ ---------- */
.faq-container { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.faq-question { padding: 1.4rem 1.6rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; font-weight: 800; font-size: 1.02rem; color: var(--navy); user-select: none; }
.faq-question:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1); color: var(--ink-2); font-size: 0.95rem; }
.faq-answer-content { padding: 0 1.6rem 1.5rem; }
.faq-item.active { border-color: var(--royal); }
.faq-item.active .faq-answer { max-height: 420px; }
.faq-icon { font-size: 0.85rem; transition: var(--transition); color: var(--ink-3); flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--gold); }

/* ---------- CTA ---------- */
.cta-card {
    background: var(--grad-brand); padding: 4rem 3rem; border-radius: var(--radius-xl); text-align: center;
    box-shadow: var(--shadow-navy); position: relative; overflow: hidden;
}
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 240px at 15% 110%, rgba(245,166,35,0.25), transparent 60%); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; color: #fff; }
.cta-card p { color: rgba(255,255,255,0.85); font-size: 1.12rem; max-width: 600px; margin: 0 auto 2.25rem; }

/* ---------- Forms (create-app) ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 3rem 2.75rem; box-shadow: var(--shadow); }
.form-title { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; text-align: center; margin-bottom: 0.6rem; color: var(--navy); }
.form-intro { text-align: center; color: var(--ink-2); margin-bottom: 2.5rem; font-size: 1.02rem; }
.form-section-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 1.4rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); color: var(--navy); display: flex; align-items: center; gap: 0.55rem; }
.form-section-title i { color: var(--teal); }
.form-group { margin-bottom: 1.6rem; }
.form-label { display: block; font-weight: 800; margin-bottom: 0.6rem; color: var(--ink); font-size: 0.92rem; }
.form-control {
    width: 100%; padding: 0.95rem 1.15rem; background: var(--surface-2);
    border: 1px solid var(--line-2); border-radius: var(--radius-md); color: var(--ink);
    font-family: var(--font-ar); font-size: 1rem; transition: var(--transition);
}
.form-control:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(24,162,184,0.14); background: var(--surface); }
.form-control::placeholder { color: var(--ink-3); }
.text-muted { color: var(--ink-3); font-size: 0.84rem; }
small.text-muted { display: block; margin-top: 0.45rem; }
.subdomain-input-group {
    display: flex; align-items: stretch; direction: ltr;
    border: 1px solid var(--line-2); border-radius: var(--radius-md);
    overflow: hidden; background: var(--surface-2); transition: var(--transition);
}
.subdomain-input-group:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(24,162,184,0.14); background: var(--surface); }
.subdomain-input-group .form-control {
    flex: 1; min-width: 0; border: none; border-radius: 0;
    background: transparent; box-shadow: none;
}
.subdomain-input-group .form-control:focus { box-shadow: none; background: transparent; }
.domain-suffix {
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border-left: 1px solid var(--line-2);
    padding: 0.95rem 1.25rem; font-family: var(--font-en); font-size: 1rem;
    font-weight: 700; color: var(--navy); min-width: 130px; white-space: nowrap;
    flex-shrink: 0;
}
.password-field-wrap { position: relative; }
.password-field-wrap .form-control { padding-left: 2.85rem; }
.password-toggle-btn {
    position: absolute; left: 0.65rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--ink-3); cursor: pointer;
    padding: 0.35rem; font-size: 1rem; line-height: 1; transition: var(--transition);
}
.password-toggle-btn:hover { color: var(--teal); }
.phone-input-row { display: flex; align-items: stretch; gap: 0.65rem; direction: ltr; }
.phone-input-row .country-code-select { flex: 0 0 auto; min-width: 140px; max-width: 190px; }
.phone-input-row .phone-national-input { flex: 1; min-width: 0; }
@media (max-width: 520px) {
    .form-card { padding: 2rem 1.35rem; }
    .phone-input-row { flex-direction: column; gap: 0.5rem; }
    .phone-input-row .country-code-select { max-width: 100%; width: 100%; }
    .domain-suffix { min-width: 118px; padding: 0.85rem 0.9rem; font-size: 0.92rem; }
}
.verify-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(237,243,251,0.94); backdrop-filter: blur(14px);
    align-items: center; justify-content: center; padding: 1.25rem;
}
.verify-modal-overlay.open { display: flex; }
.verify-modal {
    width: 100%; max-width: 440px; padding: 2rem;
    border-color: var(--teal); box-shadow: var(--shadow-lg);
}
.verify-modal h3 { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 800; color: var(--navy); text-align: center; }
.verify-modal .verify-desc { text-align: center; color: var(--ink-2); font-size: 0.92rem; margin-bottom: 1.25rem; }
.verify-modal .verify-phone-display {
    text-align: center; font-family: var(--font-en); direction: ltr;
    font-weight: 800; color: var(--navy); font-size: 1.05rem;
    padding: 0.75rem; background: var(--surface-2); border-radius: var(--radius-md);
    margin-bottom: 1rem; border: 1px solid var(--line);
}
.verify-modal .otp-input-row { display: flex; gap: 0.5rem; direction: ltr; margin-top: 0.75rem; }
.verify-modal .otp-input-row .form-control { letter-spacing: 0.5rem; text-align: center; font-size: 1.25rem; }

/* ---------- Footer (dark navy) ---------- */
.main-footer { background: linear-gradient(180deg, #0B2349 0%, #07182F 100%); padding: 5rem 0 2.5rem; margin-top: 7rem; position: relative; z-index: 1; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3.5rem; }
@media (max-width: 880px) { .footer-container { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 560px) { .footer-container { grid-template-columns: 1fr; } }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 1.4rem; }
.footer-logo-chip { display: inline-flex; background: #fff; border-radius: 14px; padding: 10px 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.footer-logo-chip img { height: 38px; width: auto; display: block; }
.footer-desc { color: rgba(255,255,255,0.62); max-width: 360px; font-size: 0.93rem; }
.footer-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 1.4rem; color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-links a { color: rgba(255,255,255,0.62); font-size: 0.93rem; display: flex; align-items: center; gap: 0.4rem; }
.footer-links a:hover { color: var(--gold); transform: translateX(-4px); }
.footer-wa { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.3); color: #4ade80; padding: 0.75rem 1.1rem; border-radius: 12px; font-weight: 800; font-family: var(--font-en); font-size: 0.95rem; margin-top: 0.5rem; }
.footer-wa:hover { background: rgba(37,211,102,0.2); transform: translateY(-2px); }
.footer-wa i { font-size: 1.25rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.88rem; }

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
    position: fixed; bottom: 22px; left: 22px; z-index: 1500;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.6rem;
    box-shadow: 0 10px 30px rgba(37,211,102,0.45); transition: var(--transition);
    animation: float 4s ease-in-out infinite;
}
.fab-wa:hover { transform: scale(1.1) translateY(-2px); color: #fff; }

/* ---------- Legal / article ---------- */
.article-card { padding: 3rem 2.75rem; }
.article-card h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--navy); margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; }
.article-card h2 { font-size: 1.3rem; color: var(--navy); margin-top: 2.2rem; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.article-card h2 i { color: var(--teal); }
.article-card p { margin-bottom: 1.4rem; color: var(--ink-2); }
.article-card p.lead { color: var(--ink); font-size: 1.05rem; }
.support-page { padding: 3rem 1.25rem 4rem; max-width: 880px; }
.support-article { overflow-wrap: anywhere; }
.support-article a:not(.btn) { color: var(--royal); text-decoration: underline; text-underline-offset: 3px; }
.support-article .policy-date { color: var(--ink-3); font-size: .9rem; }
.support-article h2 { scroll-margin-top: 100px; }
.support-list { padding-inline-start: 1.4rem; color: var(--ink-2); margin: 0 0 1.4rem; }
.support-list li { margin-bottom: .8rem; line-height: 1.9; }
.support-callout { border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; background: var(--surface); }
.support-callout h2 { margin-top: 0; }
.support-callout .support-contact { margin: 1rem 0 0; }
.support-action { white-space: normal; min-height: 48px; text-align: center; }
@media (max-width: 600px) {
    .support-page { padding: 1.5rem .75rem 2rem; }
    .support-article { padding: 1.4rem 1rem; }
    .support-article h2 { font-size: 1.15rem; line-height: 1.6; }
    .support-callout { padding: 1rem; }
    .support-action { width: 100%; }
}

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
/* Composited ripple (transform+opacity) replacing a box-shadow keyframe animation,
   which cannot run on the compositor thread and forces paint on every frame. */
@keyframes pulseRing { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; transform: none; } }
@keyframes barGrowScale { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   3D / DEPTH LAYER  (perspective scenes, interactive tilt, aurora)
   ========================================================================= */

/* Animated aurora mesh — replaces the static blobs with living depth */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
    mix-blend-mode: multiply; will-change: transform;
}
.aurora .a1 { width: 46vw; height: 46vw; top: -12vw; right: -8vw; background: radial-gradient(circle, rgba(24,162,184,0.55), transparent 65%); animation: drift1 22s ease-in-out infinite; }
.aurora .a2 { width: 42vw; height: 42vw; top: 30vh; left: -12vw; background: radial-gradient(circle, rgba(27,98,179,0.5), transparent 65%); animation: drift2 26s ease-in-out infinite; }
.aurora .a3 { width: 38vw; height: 38vw; bottom: -10vw; right: 18vw; background: radial-gradient(circle, rgba(245,166,35,0.4), transparent 65%); animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-4vw,4vh,0) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(5vw,-3vh,0) scale(1.15); } }
@keyframes drift3 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-3vw,-4vh,0) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none !important; } }

/* Perspective stage */
.scene { perspective: 1600px; perspective-origin: 50% 30%; }

/* Interactive tilt elements: JS sets --rx / --ry / --mx / --my */
.tilt {
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
    will-change: transform;
}
.tilt-strong { transition: transform .12s ease-out; }

/* Glare overlay that follows the pointer */
.glare { position: relative; }
.glare::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.5), transparent 45%);
    opacity: 0; transition: opacity .3s ease; mix-blend-mode: overlay; z-index: 4;
}
.glare:hover::after { opacity: 0.6; }

/* Depth layers inside a tilted card (parallax in Z) */
.layer { transform: translateZ(var(--z, 0px)); transition: transform .25s ease; }
.layer-1 { --z: 28px; }
.layer-2 { --z: 56px; }
.layer-3 { --z: 90px; }

/* Floating 3D chips */
.chip3d {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 0.8rem 1rem; box-shadow: var(--shadow), 0 2px 0 rgba(14,46,99,0.05);
    display: flex; align-items: center; gap: 0.7rem;
}
.chip3d .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.bento > * { grid-column: span 2; }
.bento .b-wide { grid-column: span 3; }
.bento .b-tall { grid-row: span 2; }
.bento .b-full { grid-column: span 6; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > *, .bento .b-wide, .bento .b-full { grid-column: span 2; } .bento .b-tall { grid-row: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .b-wide, .bento .b-full { grid-column: span 1; } }

/* Bento card surface with depth + sheen */
.bento-card {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.9rem; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.bento-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.bento-card .spark { position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(24,162,184,0.06), transparent 70%); opacity: 0; transition: opacity .4s; }
.bento-card:hover .spark { opacity: 1; }
.bento-dark { background: linear-gradient(160deg, #102C5A, #0A1F40); color: #fff; border-color: rgba(255,255,255,0.08); box-shadow: var(--shadow-navy); }
.bento-dark h3, .bento-dark h4 { color: #fff; }
.bento-dark p { color: rgba(255,255,255,0.72); }
.bento-gold { background: linear-gradient(160deg, var(--gold), var(--gold-bright)); color: var(--navy); border-color: transparent; box-shadow: var(--shadow-gold); }
.bento-gold h3, .bento-gold h4 { color: var(--navy); }
.bento-gold p { color: rgba(14,34,64,0.85); }

/* Hero 3D scene tweaks */
.hero-preview.tilt { box-shadow: var(--shadow-navy); }
.hero-preview .hero-float { transform: translateZ(70px); }

/* Marquee (modules ticker) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-pill { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 0.6rem 1.1rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; box-shadow: var(--shadow-sm); }
.marquee-pill i { color: var(--teal); }
@keyframes marquee { to { transform: translateX(50%); } }

/* Number badge for steps/how-it-works */
.step-num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-en); font-weight: 800; font-size: 1.2rem; background: var(--grad-brand); color: #fff; box-shadow: var(--shadow); flex-shrink: 0; }

/* Subtle scroll progress bar */
.scroll-bar { position: fixed; top: 0; right: 0; height: 3px; width: 0; background: var(--grad-gold); z-index: 2000; box-shadow: 0 0 10px rgba(245,166,35,0.6); }

/* =========================================================================
   PREMIUM POLISH LAYER
   ========================================================================= */

/* Richer page base */
body { background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 16%, var(--bg) 100%); }

/* Cards: soft inner sheen + stronger, branded hover */
.glass-card { background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%); }
.feature-card:hover, .iso-card:hover { box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(24,162,184,0.22); border-color: rgba(24,162,184,0.35); }
.bento-card:hover { border-color: rgba(24,162,184,0.35); }

/* Button shine sweep */
.btn { overflow: hidden; }
/* Animates transform (compositor-only) instead of `left` (forces layout on every
   frame): translateX(509%) covers the same total travel distance as the original
   left: -130% -> 150%, expressed relative to this pseudo-element's own 55% width. */
.btn-primary::after, .btn-cyan::after {
    content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg) translateX(0); transition: transform .7s cubic-bezier(.16,1,.3,1); pointer-events: none;
}
.btn-primary:hover::after, .btn-cyan:hover::after { transform: skewX(-20deg) translateX(509%); }

/* Eyebrow tweak */
.eyebrow { box-shadow: 0 6px 18px rgba(245,166,35,0.14); }

/* Gold underline accent under highlighted hero words */
.hero-title .hl::after {
    content: ''; position: absolute; right: 0; bottom: -6px; width: 100%; height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' fill='none'%3E%3Cpath d='M2 8 C40 2, 80 2, 120 6 S180 10, 198 4' stroke='%23F5A623' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.9;
}

.hero-section { overflow: hidden; }
.hero-grid { position: relative; z-index: 1; }

/* ----- Richer dashboard mock ----- */
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.2rem; }
.preview-head .ttl { color: #fff; font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.preview-head .live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: #34d399; font-weight: 700; }
.preview-head .live .d { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; color: #34d399; }
.preview-head .live .d::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulseRing 1.8s cubic-bezier(0,0,0.2,1) infinite; pointer-events: none; }

.preview-mid { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 1rem; }
.donut { width: 96px; height: 96px; border-radius: 50%; position: relative; background: conic-gradient(var(--teal-bright) 0 62%, var(--royal-bright) 62% 84%, var(--gold) 84% 100%); flex-shrink: 0; }
.donut::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: #0C2350; }
.donut .c { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-en); font-weight: 800; font-size: 1.15rem; z-index: 1; }
.legend { display: flex; flex-direction: column; gap: 0.5rem; }
.legend .li { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.78); font-size: 0.78rem; }
.legend .dot { width: 9px; height: 9px; border-radius: 3px; }
.legend .num { margin-right: auto; color: #fff; font-family: var(--font-en); font-weight: 700; }

.avatars { display: flex; align-items: center; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #0C2350; margin-right: -9px; display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; color: #fff; font-family: var(--font-en); }
.avatars .more { background: var(--gold); color: var(--navy); margin-right: 0; }

/* =========================================================================
   PORTALS · DEVICE MOCKUPS · MODULES MEGA  (authentic product showcase)
   ========================================================================= */

/* ----- Four portals ----- */
.portals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .portals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portals-grid { grid-template-columns: 1fr; } }
.portal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; overflow: hidden; }
.portal-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-cool); }
.portal-card.is-gold::before { background: var(--grad-gold); }
.portal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(24,162,184,0.3); }
.portal-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: linear-gradient(135deg, rgba(27,98,179,0.12), rgba(24,162,184,0.12)); color: var(--royal); margin-bottom: 1rem; }
.portal-card.is-gold .portal-ic { background: var(--gold-soft); color: #b9740a; }
.portal-card h3 { font-size: 1.18rem; color: var(--navy); margin-bottom: 0.2rem; }
.portal-role { font-size: 0.78rem; font-weight: 800; color: var(--teal); margin-bottom: 0.9rem; }
.portal-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.portal-list li { font-size: 0.88rem; color: var(--ink-2); display: flex; align-items: center; gap: 0.5rem; }
.portal-list li i { color: var(--teal); font-size: 0.8rem; width: 14px; }

/* ----- Device scene (PWA: phone + desktop) ----- */
.device-scene { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; min-height: 460px; perspective: 1800px; }

/* Desktop / browser window */
.device-desktop { width: min(620px, 100%); border-radius: 16px; background: linear-gradient(160deg, #102C5A, #0A1F40); padding: 0.55rem; box-shadow: var(--shadow-navy); border: 1px solid rgba(255,255,255,0.08); transform: rotateY(6deg) rotateX(3deg); transform-style: preserve-3d; }
.device-desktop .dd-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.6rem 0.5rem; }
.device-desktop .dd-bar i { width: 9px; height: 9px; border-radius: 50%; }
.dd-screen { background: #0C2350; border-radius: 10px; padding: 0.9rem; min-height: 320px; display: grid; grid-template-columns: 130px 1fr; gap: 0.8rem; }
.dd-side { display: flex; flex-direction: column; gap: 0.3rem; border-left: 1px solid rgba(255,255,255,0.08); padding-left: 0.6rem; }
.dd-side .it { font-size: 0.68rem; color: rgba(255,255,255,0.6); padding: 0.4rem 0.5rem; border-radius: 8px; display: flex; align-items: center; gap: 0.45rem; }
.dd-side .it i { width: 14px; text-align: center; }
.dd-side .it.on { background: rgba(24,162,184,0.16); color: var(--teal-bright); font-weight: 800; }
.dd-main { display: flex; flex-direction: column; gap: 0.6rem; }
.dd-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
.dd-cards .cc { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; padding: 0.55rem; }
.dd-cards .cc .l { font-size: 0.6rem; color: rgba(255,255,255,0.6); }
.dd-cards .cc .v { font-size: 1.05rem; font-weight: 800; color: #fff; font-family: var(--font-en); }
.dd-chart { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 9px; display: flex; align-items: flex-end; justify-content: space-around; padding: 0.7rem; gap: 0.4rem; min-height: 120px; }
.dd-chart span { width: 18px; border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--royal-bright), var(--teal-bright)); }

/* Phone */
.device-phone {
    width: 230px; flex-shrink: 0; background: #0A1F40; border-radius: 36px; padding: 9px;
    box-shadow: var(--shadow-navy); border: 1px solid rgba(255,255,255,0.12);
    position: relative; margin-right: -70px; margin-bottom: -10px; z-index: 3;
    transform: rotateY(-8deg) rotateX(2deg) translateZ(40px); transform-style: preserve-3d;
    animation: floaty 6s ease-in-out infinite;
}
@media (max-width: 720px) { .device-phone { margin-right: 0; margin-top: -120px; transform: none; } .device-desktop { transform: none; } .device-scene { flex-direction: column; align-items: center; } }
.dp-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; background: #0A1F40; border-radius: 0 0 12px 12px; z-index: 5; }
.dp-screen { background: var(--bg); border-radius: 28px; overflow: hidden; height: 470px; display: flex; flex-direction: column; }
.dp-top { background: var(--grad-brand); padding: 1.4rem 1rem 1rem; color: #fff; }
.dp-top .row { display: flex; align-items: center; justify-content: space-between; }
.dp-top .hi { font-size: 0.7rem; opacity: 0.85; }
.dp-top .nm { font-size: 0.95rem; font-weight: 800; }
.dp-top .bell { width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,0.15); display: grid; place-items: center; font-size: 0.8rem; }
.dp-body { flex: 1; padding: 0.8rem; display: flex; flex-direction: column; gap: 0.6rem; overflow: hidden; }
.dp-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.8rem; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-sm); }
.dp-stat .l { font-size: 0.72rem; color: var(--ink-2); display: flex; align-items: center; gap: 0.4rem; }
.dp-stat .l i { color: var(--teal); }
.dp-stat .v { font-size: 0.95rem; font-weight: 800; color: var(--navy); font-family: var(--font-en); }
.dp-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.7rem; font-size: 0.72rem; color: var(--ink-2); display: flex; align-items: center; gap: 0.5rem; box-shadow: var(--shadow-sm); }
.dp-row .tag { margin-right: auto; font-size: 0.62rem; font-weight: 800; padding: 0.1rem 0.5rem; border-radius: 99px; }
.dp-nav { display: flex; justify-content: space-around; padding: 0.6rem 0.3rem; background: #fff; border-top: 1px solid var(--line); }
.dp-nav span { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.56rem; color: var(--ink-3); font-weight: 700; }
.dp-nav span i { font-size: 0.85rem; }
.dp-nav span.on { color: var(--teal); }

.device-note { position: absolute; z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.9rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--navy); font-size: 0.85rem; }
.device-note i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.device-note.n1 { top: 6%; right: 4%; animation: floaty 5s ease-in-out infinite; }
.device-note.n2 { bottom: 8%; left: 2%; animation: floaty 6.5s ease-in-out infinite; }
@media (max-width: 720px) { .device-note { display: none; } }

/* ----- Modules mega grid ----- */
.modules-mega { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .modules-mega { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules-mega { grid-template-columns: 1fr; } }
.module-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: var(--transition); }
.module-group:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(24,162,184,0.3); }
.module-group .mg-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.module-group .mg-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: linear-gradient(135deg, rgba(27,98,179,0.12), rgba(24,162,184,0.12)); color: var(--royal); flex-shrink: 0; }
.module-group h3 { font-size: 1.02rem; color: var(--navy); }
.module-group ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.module-group li { font-size: 0.84rem; color: var(--ink-2); display: flex; align-items: center; gap: 0.45rem; }
.module-group li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ----- Communication / reports compact lists ----- */
.icon-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.icon-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.icon-list .li-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; background: var(--gold-soft); color: #b9740a; }
.icon-list .li-tx b { display: block; color: var(--navy); font-size: 0.98rem; }
.icon-list .li-tx span { color: var(--ink-2); font-size: 0.88rem; }

/* ----- ATS card ----- */
.ats-card { padding: 1.75rem; }
.ats-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; margin-bottom: 1rem; }
.ats-title { font-weight: 800; color: var(--navy); }
.ats-title i { color: var(--teal); }
.ats-on { font-size: 0.75rem; font-weight: 800; color: var(--success); background: rgba(15,157,108,0.1); padding: 0.2rem 0.7rem; border-radius: 99px; }
.ats-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.ats-row:last-child { border-bottom: none; }
.ats-av { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--navy); font-size: 0.8rem; flex-shrink: 0; }
.ats-info { flex: 1; min-width: 0; }
.ats-name { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.ats-bar { height: 6px; background: var(--surface-2); border-radius: 99px; margin-top: 0.35rem; overflow: hidden; }
/* Anchored to the right (RTL start edge, where a plain block box of fixed width
   naturally sits in a direction:rtl container) and scaled in via transform instead
   of animating `width`, so this runs on the compositor instead of forcing layout
   on every frame. */
.ats-fill { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: right; background: linear-gradient(90deg, var(--royal), var(--teal)); border-radius: 99px; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.ats-score { text-align: left; flex-shrink: 0; }
.ats-pct { font-weight: 800; color: var(--navy); }
.ats-rec { font-size: 0.66rem; font-weight: 800; }
.ats-rec.rec-ok { color: var(--success); }
.ats-rec.rec-mid { color: var(--gold-bright); }
.ats-rec.rec-no { color: var(--danger); }

/* =========================================================================
   3D ANIMATION LAYER  (continuous depth + scroll-driven 3D entrance)
   ========================================================================= */

/* Continuous, gentle 3D rotation of the hero dashboard (real depth via preserve-3d) */
.hero-preview { transform-style: preserve-3d; animation: tilt3d 11s ease-in-out infinite; }
@keyframes tilt3d {
    0%, 100% { transform: rotateY(-5deg) rotateX(2.5deg); }
    50%      { transform: rotateY(5deg)  rotateX(-1.5deg); }
}

/* Slow auto-orbit for the PWA device scene */
.device-desktop { animation: orbitL 13s ease-in-out infinite; }
.device-phone   { animation: floaty 6s ease-in-out infinite, orbitR 13s ease-in-out infinite; }
@keyframes orbitL {
    0%, 100% { transform: rotateY(7deg) rotateX(3deg); }
    50%      { transform: rotateY(2deg) rotateX(1deg); }
}
@keyframes orbitR {
    0%, 100% { transform: rotateY(-9deg) rotateX(2deg) translateZ(40px); }
    50%      { transform: rotateY(-3deg) rotateX(0deg) translateZ(60px); }
}

/* Scroll-driven 3D entrance: cards rise & rotate into place as they reveal */
.reveal.r3d { transform: perspective(1300px) rotateX(16deg) translateY(54px) scale(0.96); transform-origin: 50% 100%; }
.reveal.r3d.in { transform: perspective(1300px) rotateX(0deg) translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
    .hero-preview, .device-desktop, .device-phone { animation: none !important; }
    .reveal.r3d { transform: none; }
}
@media (max-width: 720px) {
    .device-desktop, .device-phone { animation: floaty 6s ease-in-out infinite; }
}

/* ---------- Key highlights (compact grid) ---------- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.highlight-card {
    padding: 1.75rem 1.5rem;
    text-align: right;
}
.highlight-card:hover { transform: translateY(-5px); }
.highlight-ic {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.15rem;
    background: linear-gradient(135deg, rgba(27,98,179,0.12), rgba(24,162,184,0.12));
    color: var(--royal); margin-bottom: 1rem;
}
.highlight-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.45rem; }
.highlight-card p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 980px) { .highlights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .highlights-grid { grid-template-columns: 1fr; } }

/* ---------- Live attendance monitor strip ---------- */
.live-monitor-strip {
    max-width: 1040px; margin: 0 auto 2rem;
    background: linear-gradient(160deg, #102C5A 0%, #0A1F40 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-navy);
    color: #fff;
}
.lm-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.lm-title { font-weight: 800; font-size: 0.98rem; display: flex; align-items: center; gap: 0.5rem; color: var(--teal-bright); }
.lm-live { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.75); }
.lm-live .d { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; color: #34d399; }
.lm-live .d::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulseRing 1.8s cubic-bezier(0,0,0.2,1) infinite; pointer-events: none; }
.lm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.lm-stat { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.75rem 0.9rem; text-align: center; }
.lm-stat .l { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.6); font-weight: 700; margin-bottom: 0.2rem; }
.lm-stat .v { font-size: 1.35rem; font-weight: 800; font-family: var(--font-en); }
.lm-feed { display: flex; flex-direction: column; gap: 0.45rem; }
.lm-event {
    display: grid; grid-template-columns: 52px 1fr auto auto; gap: 0.65rem; align-items: center;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 0.55rem 0.75rem; font-size: 0.82rem;
}
.lm-event .t { font-family: var(--font-en); color: rgba(255,255,255,0.5); font-size: 0.76rem; }
.lm-event .n { font-weight: 800; color: #fff; }
.lm-event .a { font-size: 0.76rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 99px; }
.lm-event .a.in { background: rgba(52,211,153,0.15); color: #34d399; }
.lm-event .a.late { background: rgba(245,166,35,0.15); color: var(--gold-bright); }
.lm-event .b { font-size: 0.74rem; color: rgba(255,255,255,0.55); }
.lm-event.warn { border-color: rgba(245,166,35,0.25); }
@media (max-width: 720px) {
    .lm-stats { grid-template-columns: repeat(2, 1fr); }
    .lm-event { grid-template-columns: 48px 1fr; }
    .lm-event .a, .lm-event .b { grid-column: 2; }
}
