/* =============================================================================
   EventLive — Premium overrides for Metronic 8
   Loaded AFTER Metronic bundle. Single accent (emerald). Ocre reserved for
   highlights only. Tinted shadows. Varied radii. Tabular numerals on stats.

   Motion philosophy (Emil Kowalski):
     - Custom cubic-bezier curves (built-in eases lack punch)
     - Buttons feel pressed via scale(0.97), not translateY
     - Never animate from scale(0) — start from 0.95
     - Origin-aware popovers (scale from trigger, not center)
     - Specify exact properties (never `transition: all`)
     - Respect prefers-reduced-motion + (hover: hover) gating
   ============================================================================= */

:root {
    /* ----- Motion tokens (Emil curves) ----- */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);          /* strong ease-out for UI */
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);      /* strong on-screen movement */
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);       /* iOS-style drawer */
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);           /* gentle, material-flavoured */

    --dur-press: 100ms;
    --dur-hover: 160ms;
    --dur-pop: 180ms;     /* dropdowns, tooltips */
    --dur-modal: 220ms;   /* modals, drawers */

    /* Primary — emerald (UEMOA modern identity) */
    --bs-primary: #006A4E;
    --bs-primary-rgb: 0, 106, 78;
    --bs-primary-active: #00543E;
    --bs-primary-light: #E6F3EF;
    --bs-primary-inverse: #ffffff;

    /* Accent — ocre / safran. Reserved for strong highlights (CTAs, badges). */
    --el-accent: #C97B25;
    --el-accent-rgb: 201, 123, 37;
    --el-accent-light: #FFF2E0;
    --el-accent-active: #A56313;

    /* Gold — true yellow-gold, brighter than ocre. Used for *warm* highlights:
       welcome chips, premium markers, hover gradients, success ring pulses.
       Sits between primary (emerald, structural) and accent (ocre, strong CTA).
       Hue chosen to pair cleanly with #006A4E and read as "premium" not "warning". */
    --el-gold: #E5B23D;
    --el-gold-rgb: 229, 178, 61;
    --el-gold-soft: #FCF1D1;
    --el-gold-active: #BC8E1F;

    /* Aside — deep emerald (legible white text, premium feel) */
    --el-aside-bg: #0B3D2E;
    --el-aside-bg-gradient: linear-gradient(180deg, #0B3D2E 0%, #051F17 100%);
    --el-aside-border: rgba(255, 255, 255, 0.06);
    --el-aside-width: 280px;

    /* Surface neutrals — single warm-cool family, slightly cool */
    --el-surface-0: #ffffff;
    --el-surface-1: #FAFBFB;
    --el-surface-2: #F4F6F5;
    --el-border-soft: #E9ECEC;

    /* Shadows — tinted emerald, not generic black */
    --el-shadow-xs: 0 1px 2px 0 rgba(11, 61, 46, 0.04);
    --el-shadow-sm: 0 2px 6px -1px rgba(11, 61, 46, 0.06), 0 1px 2px -1px rgba(11, 61, 46, 0.04);
    --el-shadow-md: 0 6px 14px -3px rgba(11, 61, 46, 0.08), 0 2px 4px -2px rgba(11, 61, 46, 0.05);
    --el-shadow-lg: 0 14px 32px -8px rgba(11, 61, 46, 0.12), 0 4px 8px -4px rgba(11, 61, 46, 0.06);

    /* Radii — varied per scale */
    --el-radius-sm: 0.375rem;
    --el-radius-md: 0.5rem;
    --el-radius-lg: 0.75rem;
    --el-radius-xl: 1rem;
    --el-radius-pill: 999px;

    /* Display font (pairs with Inter for body) */
    --el-font-display: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --el-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* -----------------------------------------------------------------------------
   Typography — body Inter, display Plus Jakarta. Tighter tracking on large.
   ----------------------------------------------------------------------------- */
body,
.fw-normal,
.fw-bold,
.fw-bolder {
    font-family: var(--el-font-body);
}

h1, h2, h3, .page-title h1 {
    font-family: var(--el-font-display);
    letter-spacing: -0.02em;
}

h4, h5, h6 {
    font-family: var(--el-font-display);
    letter-spacing: -0.01em;
}

.text-display {
    font-family: var(--el-font-display);
    letter-spacing: -0.02em;
}

/* Stat blocks — tabular figures so digits line up */
.fs-1, .fs-2, .fs-3,
.kpi-value,
.dashboard-stat,
[data-tabular] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

/* -----------------------------------------------------------------------------
   Primary color override — Metronic uses --bs-primary in many places, but its
   compiled CSS also hardcodes the old blue in selectors with high specificity.
   We override those explicitly. !important is used surgically.
   ----------------------------------------------------------------------------- */

.btn-primary,
.btn.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn-primary.active {
    background-color: var(--bs-primary-active);
    border-color: var(--bs-primary-active);
    color: #fff;
}

.btn-light-primary,
.btn.btn-light-primary {
    background-color: var(--bs-primary-light);
    color: var(--bs-primary);
    border-color: transparent;
}
.btn-light-primary:hover,
.btn.btn-light-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

.text-primary { color: var(--bs-primary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }
.bg-light-primary { background-color: var(--bs-primary-light) !important; }
.border-primary { border-color: var(--bs-primary) !important; }

.badge.bg-primary { background-color: var(--bs-primary); color: #fff; }
.badge.badge-primary { background-color: var(--bs-primary); color: #fff; }
.badge.badge-light-primary { background-color: var(--bs-primary-light); color: var(--bs-primary); }

a { color: var(--bs-primary); }
a:hover { color: var(--bs-primary-active); }

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.4);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.12);
}

.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
}

/* -----------------------------------------------------------------------------
   Accent (ocre) — utility classes for highlights only
   ----------------------------------------------------------------------------- */

.text-accent { color: var(--el-accent) !important; }
.bg-accent { background-color: var(--el-accent) !important; color: #fff; }
.bg-light-accent { background-color: var(--el-accent-light) !important; color: var(--el-accent); }
.badge.bg-accent { background-color: var(--el-accent); color: #fff; }
.badge.badge-light-accent { background-color: var(--el-accent-light); color: var(--el-accent); }
.border-accent { border-color: var(--el-accent) !important; }

/* Gold — yellow-gold highlight. Text color on bg-gold is dark by design
   (gold on white is hard to read; dark text on gold is the legible direction). */
.text-gold { color: var(--el-gold-active) !important; }
.bg-gold { background-color: var(--el-gold) !important; color: #1a2624; }
.bg-light-gold { background-color: var(--el-gold-soft) !important; color: var(--el-gold-active); }
.badge.bg-gold { background-color: var(--el-gold); color: #1a2624; }
.badge.badge-light-gold {
    background-color: var(--el-gold-soft);
    color: var(--el-gold-active);
    border: 1px solid rgba(var(--el-gold-rgb), 0.25);
}
.border-gold { border-color: var(--el-gold) !important; }

/* -----------------------------------------------------------------------------
   Aside (sidebar) — deep emerald gradient, refined hover and active states.

   Geometry rules below fix the persistent overlap issue when Metronic's
   `aside-hoverable` is used : we commit to a full-width persistent sidebar
   on lg+, a proper drawer on small screens. Width tokenized via
   --el-aside-width so the sidebar and wrapper padding stay in sync.
   ----------------------------------------------------------------------------- */

.aside {
    flex-shrink: 0;
}

@media (min-width: 992px) {
    /* Desktop : sidebar fixe, wrapper compensé du même montant.
       On force un layout flex column avec overflow:hidden sur le conteneur
       et flex:1 + overflow-y:auto sur la zone menu — Metronic's data-kt-scroll
       calculait mal la hauteur quand on intercale une carte de contexte event,
       résultat : items en bas inaccessibles. Le flexbox pur résout ça. */
    .aside {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 101;
        width: var(--el-aside-width);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        height: 100vh;
    }
    body.aside-enabled.aside-fixed .wrapper {
        padding-left: var(--el-aside-width);
    }
    /* Header fixe : il vit sous le wrapper et hérite donc du padding, mais
       Metronic peut le forcer en position: fixed full-width. On le re-cale
       par-dessus le sidebar pour éviter le chevauchement. */
    body.header-fixed.aside-enabled.aside-fixed .header {
        left: var(--el-aside-width);
        width: calc(100% - var(--el-aside-width));
    }
}

/* Aside inner flex layout — applies on all sizes for consistency. The logo
   block and event-context card stay fixed at top, the menu zone scrolls. */
.aside .aside-logo,
.aside .aside-context-card {
    flex-shrink: 0;
}
.aside .aside-menu {
    flex: 1 1 auto;
    min-height: 0;       /* critical : allows flex child to actually shrink */
    overflow-y: auto;
    overflow-x: hidden;
}
/* The Metronic-flavoured scroll wrapper inside .aside-menu should NOT force
   an explicit height anymore (it was getting computed wrong by data-kt-scroll).
   We let CSS flexbox drive instead. */
.aside .aside-menu #kt_aside_menu_wrapper {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 1.5rem;
}

/* Custom slim scrollbar in the menu area, matching the dark aside. */
.aside .aside-menu::-webkit-scrollbar {
    width: 6px;
}
.aside .aside-menu::-webkit-scrollbar-track {
    background: transparent;
}
.aside .aside-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 3px;
    transition: background-color var(--dur-hover) var(--ease-out);
}
.aside .aside-menu:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
}
.aside .aside-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

@media (max-width: 991.98px) {
    /* Mobile : drawer mode pris en main par Metronic (data-kt-drawer).
       On s'assure qu'aucun padding-left résiduel ne traîne. */
    body.aside-enabled.aside-fixed .wrapper {
        padding-left: 0;
    }
}

.aside.aside-dark {
    background: var(--el-aside-bg-gradient) !important;
    border-right: 1px solid var(--el-aside-border);
    width: var(--el-aside-width) !important;
    min-width: var(--el-aside-width) !important;
    max-width: var(--el-aside-width) !important;
}

.aside-dark .aside-logo {
    border-bottom: 1px solid var(--el-aside-border);
}

.aside-dark .menu .menu-item .menu-link {
    color: rgba(255, 255, 255, 0.78);
    transition: background-color var(--dur-hover) var(--ease-out),
                color var(--dur-hover) var(--ease-out);
    border-radius: var(--el-radius-md);
}
.aside-dark .menu .menu-item .menu-link .menu-icon i {
    transition: color var(--dur-hover) var(--ease-out);
}
.aside-dark .menu .menu-item .menu-link .menu-icon,
.aside-dark .menu .menu-item .menu-link .menu-icon i {
    color: rgba(255, 255, 255, 0.65);
}
.aside-dark .menu .menu-item .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.aside-dark .menu .menu-item .menu-link:hover .menu-icon i {
    color: #fff;
}
.aside-dark .menu .menu-item.here > .menu-link,
.aside-dark .menu .menu-item.show > .menu-link,
.aside-dark .menu .menu-item > .menu-link.active {
    background-color: rgba(255, 255, 255, 0.10);
    color: #fff;
}
.aside-dark .menu .menu-item.here > .menu-link .menu-icon i,
.aside-dark .menu .menu-item.show > .menu-link .menu-icon i,
.aside-dark .menu .menu-item > .menu-link.active .menu-icon i {
    color: var(--el-accent);
}

/* Section captions inside the sidebar (group headers like "Configuration") */
.aside-dark .menu-section {
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem 0.5rem;
}

/* Context badge (e.g. event name in sidebar header) */
.aside-context-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--el-aside-border);
    border-radius: var(--el-radius-md);
    padding: 0.75rem 0.875rem;
    margin: 0 1rem 1rem;
}
.aside-context-card .aside-context-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
}
.aside-context-card .aside-context-title {
    color: #fff;
    font-weight: 600;
    font-family: var(--el-font-display);
    margin-top: 0.125rem;
    line-height: 1.25;
}

/* -----------------------------------------------------------------------------
   Header — fixed, light, with subtle bottom border
   ----------------------------------------------------------------------------- */
.header {
    box-shadow: var(--el-shadow-xs);
    border-bottom: 1px solid var(--el-border-soft);
    background-color: #fff;
}

.header .header-search-trigger {
    background-color: var(--el-surface-2);
    color: #5e6c69;
    border-radius: var(--el-radius-md);
    border: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease;
}
.header .header-search-trigger:hover {
    background-color: #fff;
    border-color: var(--el-border-soft);
}

.header .header-event-switcher {
    min-width: 240px;
}

/* -----------------------------------------------------------------------------
   Cards — softer radius, tinted shadow, no default border
   ----------------------------------------------------------------------------- */
.card {
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow-xs);
}
.card-header {
    border-bottom: 1px solid var(--el-border-soft);
    background: transparent;
}

/* -----------------------------------------------------------------------------
   Buttons — scale-on-press, custom easing, exact properties (no `transition: all`).
   Hover transform gated behind (hover: hover) to avoid sticky touch states.
   ----------------------------------------------------------------------------- */
.btn {
    transition: background-color var(--dur-hover) var(--ease-out),
                border-color var(--dur-hover) var(--ease-out),
                color var(--dur-hover) var(--ease-out),
                box-shadow var(--dur-hover) var(--ease-out),
                transform var(--dur-press) var(--ease-out);
    border-radius: var(--el-radius-md);
}
.btn:active,
.btn.active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    /* Subtle lift on hover for primary CTAs only — too much on every button is noisy */
    .btn-primary:hover,
    .btn-light-primary:hover {
        box-shadow: 0 4px 12px -2px rgba(var(--bs-primary-rgb), 0.28);
    }
}

/* -----------------------------------------------------------------------------
   Empty state — used by partials.empty-state
   ----------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
}
.empty-state-illustration {
    max-width: 220px;
    margin: 0 auto 1.25rem;
    opacity: 0.95;
}
.empty-state-title {
    font-family: var(--el-font-display);
    font-weight: 600;
    font-size: 1.125rem;
    color: #1a2624;
    margin-bottom: 0.5rem;
    text-wrap: balance;
}
.empty-state-description {
    color: #6b7775;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    text-wrap: pretty;
}

/* -----------------------------------------------------------------------------
   Wizard stepper — KTStepper visual refinement
   ----------------------------------------------------------------------------- */
.el-stepper {
    background: #fff;
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--el-shadow-xs);
}
.el-stepper-list {
    display: flex;
    gap: 0;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.el-stepper-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7775;
    text-decoration: none;
    position: relative;
}
.el-stepper-item + .el-stepper-item::before {
    content: "";
    height: 1px;
    background: var(--el-border-soft);
    flex: 1;
    margin-right: 0.75rem;
}
.el-stepper-item .el-stepper-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--el-surface-2);
    color: #6b7775;
    border: 1px solid var(--el-border-soft);
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.el-stepper-item .el-stepper-label {
    font-weight: 500;
    font-size: 0.875rem;
}
.el-stepper-item.is-done .el-stepper-number {
    background: var(--bs-primary-light);
    color: var(--bs-primary);
    border-color: var(--bs-primary-light);
}
.el-stepper-item.is-done .el-stepper-label {
    color: #1a2624;
}
.el-stepper-item.is-current .el-stepper-number {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.12);
}
.el-stepper-item.is-current .el-stepper-label {
    color: var(--bs-primary);
    font-weight: 600;
}
.el-stepper-item:hover:not(.is-current) .el-stepper-number {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

/* -----------------------------------------------------------------------------
   KPI / stat widgets — display family, tabular nums, accent variants
   ----------------------------------------------------------------------------- */
.kpi-card {
    padding: 1.25rem;
    border-radius: var(--el-radius-lg);
    background: #fff;
    border: 1px solid var(--el-border-soft);
    box-shadow: var(--el-shadow-xs);
}
.kpi-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #6b7775;
    margin-bottom: 0.5rem;
}
.kpi-value {
    font-family: var(--el-font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #0d1a17;
}
.kpi-delta {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}
.kpi-delta.positive { color: var(--bs-primary); }
.kpi-delta.negative { color: #B5351A; }

/* -----------------------------------------------------------------------------
   Toolbar — slightly larger title, breadcrumbs in a softer tone
   ----------------------------------------------------------------------------- */
.toolbar .page-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0d1a17;
    letter-spacing: -0.02em;
}
.toolbar .breadcrumb {
    color: #6b7775;
}
.toolbar .breadcrumb a {
    color: #6b7775;
}
.toolbar .breadcrumb a:hover {
    color: var(--bs-primary);
}

/* -----------------------------------------------------------------------------
   Bootstrap dropdowns — origin-aware. Default Bootstrap scales from center,
   which is wrong for a popover anchored to a button. We set the origin to
   match common placements.
   ----------------------------------------------------------------------------- */
.dropdown-menu {
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-md);
    box-shadow: var(--el-shadow-md);
    padding: 0.375rem;
    /* Default to top-start (most dropdowns drop down from a left-aligned trigger) */
    transform-origin: top left;
    transition: opacity var(--dur-pop) var(--ease-out),
                transform var(--dur-pop) var(--ease-out);
}
.dropdown-menu-end {
    transform-origin: top right;
}
.dropup .dropdown-menu {
    transform-origin: bottom left;
}
.dropup .dropdown-menu-end {
    transform-origin: bottom right;
}

/* Slight inset for items + readable hover */
.dropdown-item {
    border-radius: var(--el-radius-sm);
    padding: 0.5rem 0.75rem;
    transition: background-color var(--dur-press) var(--ease-out),
                color var(--dur-press) var(--ease-out);
}
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bs-primary-light);
    color: var(--bs-primary);
}
.dropdown-item.active {
    background-color: var(--bs-primary);
    color: #fff;
}
.dropdown-header {
    color: #6b7775;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.75rem 0.25rem;
}

/* -----------------------------------------------------------------------------
   Bootstrap modals — Emil rule: never animate from scale(0). Default Bootstrap
   does fade + zoom from 0.7 which is acceptable but we polish.
   Modals keep transform-origin: center (they aren't anchored to a trigger).
   ----------------------------------------------------------------------------- */
.modal.fade .modal-dialog {
    transition: transform var(--dur-modal) var(--ease-out),
                opacity var(--dur-modal) var(--ease-out);
    transform: scale(0.95) translateY(8px);
    opacity: 0;
}
.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.modal-content {
    border: none;
    border-radius: var(--el-radius-lg);
    box-shadow: var(--el-shadow-lg);
}
.modal-header,
.modal-footer {
    border-color: var(--el-border-soft);
}

/* -----------------------------------------------------------------------------
   Cards & KPI — gentle hover lift (mouse only, gated). Card is informational,
   the lift cues "clickable" when there's an anchor inside.
   ----------------------------------------------------------------------------- */
.kpi-card,
.card-hoverable {
    transition: transform var(--dur-hover) var(--ease-out),
                box-shadow var(--dur-hover) var(--ease-out),
                border-color var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .kpi-card:hover,
    .card-hoverable:hover {
        transform: translateY(-2px);
        box-shadow: var(--el-shadow-md);
        border-color: rgba(var(--bs-primary-rgb), 0.18);
    }
}

/* -----------------------------------------------------------------------------
   Stagger utility — for lists that mount together. Cascade 50ms between items.
   Use on parent: <ul class="el-stagger">. Children animate in via @starting-style
   (modern browsers) and fall back to plain visibility elsewhere.
   ----------------------------------------------------------------------------- */
.el-stagger > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 280ms var(--ease-out),
                transform 280ms var(--ease-out);
}

@supports (animation-timeline: view()) or (transition-behavior: allow-discrete) {
    .el-stagger > * {
        @starting-style {
            opacity: 0;
            transform: translateY(6px);
        }
    }
}

.el-stagger > *:nth-child(1)  { transition-delay: 0ms;   }
.el-stagger > *:nth-child(2)  { transition-delay: 40ms;  }
.el-stagger > *:nth-child(3)  { transition-delay: 80ms;  }
.el-stagger > *:nth-child(4)  { transition-delay: 120ms; }
.el-stagger > *:nth-child(5)  { transition-delay: 160ms; }
.el-stagger > *:nth-child(6)  { transition-delay: 200ms; }
.el-stagger > *:nth-child(7)  { transition-delay: 240ms; }
.el-stagger > *:nth-child(8)  { transition-delay: 280ms; }
.el-stagger > *:nth-child(n+9) { transition-delay: 320ms; }

/* -----------------------------------------------------------------------------
   Stepper item entry — wizard is rare/first-time, light delight is OK
   ----------------------------------------------------------------------------- */
.el-stepper-item .el-stepper-number {
    transition: background-color var(--dur-hover) var(--ease-out),
                color var(--dur-hover) var(--ease-out),
                border-color var(--dur-hover) var(--ease-out),
                box-shadow var(--dur-hover) var(--ease-out);
}

/* -----------------------------------------------------------------------------
   Empty state — illustration nudge on container hover (subtle)
   ----------------------------------------------------------------------------- */
.empty-state-illustration {
    transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .empty-state:hover .empty-state-illustration {
        transform: translateY(-3px);
    }
}

/* -----------------------------------------------------------------------------
   Toastr (bundled) overrides — softer corners, tinted shadows, our palette
   ----------------------------------------------------------------------------- */
.toast-success {
    background-color: var(--bs-primary) !important;
    box-shadow: 0 12px 28px -8px rgba(var(--bs-primary-rgb), 0.35) !important;
}
.toast-error {
    background-color: #B5351A !important;
    box-shadow: 0 12px 28px -8px rgba(181, 53, 26, 0.35) !important;
}
.toast-warning {
    background-color: var(--el-accent) !important;
    box-shadow: 0 12px 28px -8px rgba(var(--el-accent-rgb), 0.35) !important;
}
#toast-container > div {
    border-radius: var(--el-radius-md) !important;
    padding: 14px 18px 14px 50px !important;
}

/* -----------------------------------------------------------------------------
   Subtle focus ring for keyboard users (accessibility)
   ----------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb), 0.5);
    outline-offset: 2px;
    border-radius: var(--el-radius-sm);
    transition: outline-color var(--dur-press) var(--ease-out);
}

/* -----------------------------------------------------------------------------
   Reduced motion — keep opacity/color, remove movement
   Per Emil: reduced motion ≠ no motion. Comprehension cues stay.
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .btn:active,
    .btn.active {
        transform: none;
    }
    .kpi-card:hover,
    .card-hoverable:hover {
        transform: none;
    }
}

/* -----------------------------------------------------------------------------
   Skip-to-content link (a11y)
   ----------------------------------------------------------------------------- */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    z-index: 10000;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--el-radius-md);
    box-shadow: var(--el-shadow-md);
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
}
.skip-to-content:focus {
    left: 0.5rem;
}

/* =============================================================================
   PUBLIC LANDING — homepage + event public pages
   ============================================================================= */

/* ----- Section rhythm + typography -------------------------------------------
   Public sections breathe more than back-office ones. Vertical rhythm is built
   on multiples of 1rem so it stays consistent with Bootstrap utilities.
   ---------------------------------------------------------------------------- */
.el-section {
    padding-top: clamp(3.5rem, 7vw, 6.5rem);
    padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
}
.el-section-tight {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.el-section-dark {
    background: linear-gradient(180deg, #0B3D2E 0%, #062418 100%);
    color: #fff;
}
.el-section-dark .el-eyebrow { color: var(--el-accent); }
.el-section-dark .el-h2 { color: #fff; }
.el-section-dark .el-lead { color: rgba(255,255,255,0.78); }

/* Eyebrow / display heading / lead — re-usable across public pages */
.el-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 0.875rem;
}
.el-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.el-h1 {
    font-family: var(--el-font-display);
    font-weight: 800;
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-wrap: balance;
    color: #0d1a17;
    margin-bottom: 1.25rem;
}
.el-h2 {
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.25vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
    color: #0d1a17;
    margin-bottom: 0.75rem;
}
.el-h3 {
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
    color: #0d1a17;
    margin-bottom: 0.5rem;
}
.el-lead {
    font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
    line-height: 1.55;
    color: #5f6b69;
    max-width: 60ch;
    text-wrap: pretty;
}

/* Inline accent — applied to a span inside .el-h1 to highlight one word */
.el-h1 .el-accent-word {
    color: var(--bs-primary);
    position: relative;
    white-space: nowrap;
}

/* ----- Public nav extension --------------------------------------------------
   The base .public-nav lives in layouts/public.blade. We extend it here with
   the secondary link styles + mobile toggler.
   ---------------------------------------------------------------------------- */
.public-nav .public-nav-links {
    display: none;
    gap: 1.5rem;
    align-items: center;
}
@media (min-width: 992px) {
    .public-nav .public-nav-links {
        display: flex;
    }
}
.public-nav .public-nav-links a {
    color: #4a5754;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--dur-hover) var(--ease-out);
}
.public-nav .public-nav-links a:hover {
    color: var(--bs-primary);
}

/* ----- Hero (homepage) -------------------------------------------------------
   Split layout : left text column + right phone-mockup column. Mockup uses
   a 3D transform on lg+ for a subtle premium tilt. On mobile, falls to
   single-column with mockup below.
   ---------------------------------------------------------------------------- */
.el-hero {
    position: relative;
    padding-top: clamp(3rem, 8vw, 6.5rem);
    padding-bottom: clamp(3rem, 8vw, 6.5rem);
    overflow: hidden;
}
.el-hero::before {
    /* Soft emerald glow behind the hero, anchored top-right. Never gradient
       violet/bleu — strictly emerald-tinted. */
    content: "";
    position: absolute;
    top: -8rem;
    right: -6rem;
    width: 36rem;
    height: 36rem;
    background: radial-gradient(closest-side, rgba(0, 106, 78, 0.10), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.el-hero > .container {
    position: relative;
    z-index: 1;
}
.el-hero-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.375rem;
    background: var(--el-gold-soft);
    color: var(--el-gold-active);
    border: 1px solid rgba(var(--el-gold-rgb), 0.20);
    border-radius: var(--el-radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.el-hero-eyebrow-pill .el-pill-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
}

.el-hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}
.btn-el-hero {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--el-radius-md);
}
.btn-el-hero-primary {
    background: var(--bs-primary);
    color: #fff;
    border: 1px solid var(--bs-primary);
}
.btn-el-hero-primary:hover {
    background: var(--bs-primary-active);
    border-color: var(--bs-primary-active);
    color: #fff;
}
.btn-el-hero-ghost {
    background: transparent;
    color: #0d1a17;
    border: 1px solid var(--el-border-soft);
}
.btn-el-hero-ghost:hover {
    background: var(--el-surface-1);
    border-color: #0d1a17;
    color: #0d1a17;
}
.btn-el-hero-ghost .bi-arrow-right {
    transition: transform var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .btn-el-hero-ghost:hover .bi-arrow-right {
        transform: translateX(3px);
    }
}

/* Trust strip below CTA */
.el-trust-strip {
    margin-top: 2.5rem;
    display: flex;
    gap: 2.5rem 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.el-trust-stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--el-border-soft);
}
.el-trust-stat:last-child { border-right: 0; padding-right: 0; }
.el-trust-stat-value {
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    color: #0d1a17;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
/* Eye-magnet : color the central trust stat in gold. The middle one is usually
   the "wow" number (e.g. "4 600+ RDV générés"), highlighting it draws the eye. */
.el-trust-stat:nth-child(2) .el-trust-stat-value {
    color: var(--el-gold-active);
}
.el-trust-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7775;
    font-weight: 500;
}

/* Phone mockup — pure SVG so it scales cleanly + tilts in 3D on desktop */
.el-mockup-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1400px;
    min-height: 480px;
}
.el-mockup-phone {
    width: min(320px, 90%);
    filter: drop-shadow(0 30px 60px rgba(11, 61, 46, 0.22))
            drop-shadow(0 10px 20px rgba(11, 61, 46, 0.10));
    transform-style: preserve-3d;
    transition: transform var(--dur-modal) var(--ease-out);
}
@media (min-width: 992px) {
    .el-mockup-phone {
        transform: rotateY(-12deg) rotateX(4deg) rotateZ(-2deg);
        width: 340px;
    }
    @media (hover: hover) and (pointer: fine) {
        .el-mockup-stage:hover .el-mockup-phone {
            transform: rotateY(-6deg) rotateX(2deg) rotateZ(-1deg);
        }
    }
}
.el-mockup-glow {
    /* Ambient emerald glow behind the phone, separate from the global hero glow */
    position: absolute;
    width: 70%;
    height: 70%;
    background: radial-gradient(closest-side, rgba(201, 123, 37, 0.14), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

/* ----- Logo strip (client / event placeholders) ------------------------------ */
.el-logo-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    align-items: center;
    opacity: 0.85;
}
@media (min-width: 576px) {
    .el-logo-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .el-logo-strip { grid-template-columns: repeat(6, 1fr); }
}
.el-logo-strip-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    color: #6b7775;
    font-family: var(--el-font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.1;
    transition: color var(--dur-hover) var(--ease-out);
}
.el-logo-strip-item:hover { color: #0d1a17; }
.el-logo-strip-item .bi {
    margin-right: 0.375rem;
    color: var(--bs-primary);
    opacity: 0.85;
}

/* ----- Feature pillars (3 columns) -------------------------------------------
   Each pillar = small SVG illustration + title + body + bullet checks.
   Cards have a thin emerald top-border accent on hover.
   ---------------------------------------------------------------------------- */
.el-pillar {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-xl);
    position: relative;
    overflow: hidden;
    transition: border-color var(--dur-hover) var(--ease-out),
                box-shadow var(--dur-hover) var(--ease-out),
                transform var(--dur-hover) var(--ease-out);
}
.el-pillar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.75rem;
    right: 1.75rem;
    height: 2px;
    background: linear-gradient(90deg,
        var(--bs-primary) 0%,
        var(--el-gold) 60%,
        var(--el-accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-pop) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .el-pillar:hover {
        border-color: rgba(var(--bs-primary-rgb), 0.25);
        box-shadow: var(--el-shadow-md);
        transform: translateY(-3px);
    }
    .el-pillar:hover::before {
        transform: scaleX(1);
    }
}
.el-pillar-illustration {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--el-surface-1);
    border-radius: var(--el-radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.el-pillar-illustration svg {
    width: 80%;
    height: auto;
}
.el-pillar-title {
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: 1.1875rem;
    color: #0d1a17;
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}
.el-pillar-body {
    color: #5f6b69;
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.el-pillar-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.el-pillar-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #2a3835;
}
.el-pillar-checks li .bi-check2 {
    color: var(--bs-primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}

/* ----- "How it works" step rail (vertical on mobile, horizontal on desktop) -- */
.el-step-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    position: relative;
}
@media (min-width: 768px) {
    .el-step-rail {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    .el-step-rail::before {
        content: "";
        position: absolute;
        top: 1.25rem;
        left: 1.5rem;
        right: 1.5rem;
        height: 1px;
        /* emerald → gold → ocre : warmer transition that mirrors the user's
           journey from setup (structural emerald) to event-day (premium gold). */
        background: linear-gradient(90deg,
            var(--bs-primary) 0%,
            var(--bs-primary) 25%,
            var(--el-gold) 65%,
            var(--el-accent) 100%);
        opacity: 0.35;
        z-index: 0;
    }
}
.el-step {
    position: relative;
    z-index: 1;
}
.el-step-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}
.el-step-title {
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #0d1a17;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}
.el-step-body {
    font-size: 0.875rem;
    color: #5f6b69;
    line-height: 1.5;
    max-width: 28ch;
}

/* ----- Comparison table ------------------------------------------------------
   Sober B2B comparison vs Brella / Swapcard. Emerald accent on EventLive column.
   ---------------------------------------------------------------------------- */
.el-compare {
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-xl);
    overflow: hidden;
    background: #fff;
}
.el-compare-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    align-items: center;
}
.el-compare-row + .el-compare-row {
    border-top: 1px solid var(--el-border-soft);
}
.el-compare-cell {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: #2a3835;
}
.el-compare-cell.is-head {
    background: var(--el-surface-1);
    font-family: var(--el-font-display);
    font-weight: 600;
    color: #0d1a17;
}
.el-compare-cell.is-criterion {
    font-weight: 500;
    color: #1a2624;
}
.el-compare-cell.is-eventlive {
    background: rgba(0, 106, 78, 0.04);
    color: var(--bs-primary);
    font-weight: 600;
    position: relative;
}
.el-compare-cell.is-eventlive::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -1px;
    width: 3px;
    background: var(--bs-primary);
}
.el-compare-row:first-child .el-compare-cell.is-eventlive::after { top: -1px; }
.el-compare-row:last-child .el-compare-cell.is-eventlive::after { bottom: -1px; }
.el-compare-check {
    color: var(--bs-primary);
    font-size: 1.125rem;
}
.el-compare-dash {
    color: #b7c0be;
    font-size: 1.125rem;
}
@media (max-width: 767.98px) {
    /* Stack into card-per-criterion on mobile : each row becomes a labelled mini-table */
    .el-compare-row {
        grid-template-columns: 1fr 1fr;
        padding: 0.75rem 0;
    }
    .el-compare-cell {
        padding: 0.375rem 1rem;
    }
    .el-compare-cell.is-head {
        display: none;
    }
    .el-compare-row:first-child {
        display: none;
    }
    .el-compare-cell.is-criterion {
        grid-column: 1 / -1;
        font-weight: 600;
        background: var(--el-surface-1);
        padding: 0.625rem 1rem;
    }
    .el-compare-cell::before {
        content: attr(data-label);
        display: block;
        font-size: 0.6875rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #6b7775;
        margin-bottom: 0.125rem;
    }
}

/* ----- Testimonial ----------------------------------------------------------- */
.el-testimonial {
    background: linear-gradient(180deg, #fff 0%, var(--el-surface-1) 100%);
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-xl);
    padding: clamp(2rem, 4vw, 3.5rem);
    position: relative;
}
.el-testimonial-quote {
    font-family: var(--el-font-display);
    font-weight: 600;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: #0d1a17;
    text-wrap: balance;
    margin-bottom: 1.75rem;
}
.el-testimonial-quote::before {
    content: "\201C";
    font-family: var(--el-font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--bs-primary);
    display: block;
    margin-bottom: 0.5rem;
    height: 1.5rem;
}
.el-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.el-testimonial-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--el-gold-soft);
    color: var(--el-gold-active);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid rgba(var(--el-gold-rgb), 0.18);
}
.el-testimonial-meta-name {
    font-family: var(--el-font-display);
    font-weight: 600;
    color: #0d1a17;
}
.el-testimonial-meta-role {
    font-size: 0.8125rem;
    color: #6b7775;
}

/* ----- CTA block (gradient emerald, white text) ------------------------------ */
.el-cta-block {
    background: linear-gradient(135deg, #006A4E 0%, #0B3D2E 100%);
    color: #fff;
    border-radius: var(--el-radius-xl);
    padding: clamp(2.5rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}
.el-cta-block::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(closest-side, rgba(201, 123, 37, 0.18), transparent 70%);
    pointer-events: none;
}
.el-cta-block > * { position: relative; z-index: 1; }
.el-cta-block h2 { color: #fff; }
.el-cta-block .btn-light {
    background: #fff;
    color: var(--bs-primary);
    font-weight: 600;
    border: 0;
}
.el-cta-block .btn-light:hover {
    background: var(--el-accent-light);
    color: var(--el-accent-active);
}
.el-cta-block .btn-outline-light {
    border-color: rgba(255,255,255,0.45);
    color: #fff;
}
.el-cta-block .btn-outline-light:hover {
    background: rgba(255,255,255,0.10);
    border-color: #fff;
    color: #fff;
}

/* ----- Reveal-on-scroll utility ----------------------------------------------
   Drives the IntersectionObserver in the public pages. Defaults to fade+rise.
   Variants: .el-reveal[data-reveal="left"] / "right" / "scale".
   Stagger via data-reveal-delay="80" (ms) on individual children.
   ---------------------------------------------------------------------------- */
.el-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ease-out),
                transform 600ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.el-reveal[data-reveal="left"]  { transform: translateX(-24px); }
.el-reveal[data-reveal="right"] { transform: translateX(24px); }
.el-reveal[data-reveal="scale"] { transform: scale(0.96); }
.el-reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .el-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ----- Public registration & confirmation ------------------------------------
   Two-column form on lg+, stacked below. Right column is a "sticky" recap of
   the event the user is registering to.
   ---------------------------------------------------------------------------- */
.el-register-shell {
    background: var(--el-surface-1);
    min-height: calc(100vh - 60px);
    padding: clamp(2rem, 5vw, 4rem) 0;
}
.el-register-card {
    background: #fff;
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-xl);
    box-shadow: var(--el-shadow-sm);
    overflow: hidden;
}
.el-register-grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .el-register-grid {
        grid-template-columns: 1.1fr 1fr;
    }
}
.el-register-form-col {
    padding: clamp(1.75rem, 4vw, 3rem);
}
.el-register-side-col {
    padding: clamp(1.75rem, 4vw, 3rem);
    background: linear-gradient(180deg, #0B3D2E 0%, #062418 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.el-register-side-col::before {
    content: "";
    position: absolute;
    top: -3rem; right: -3rem;
    width: 16rem; height: 16rem;
    background: radial-gradient(closest-side, rgba(201,123,37,0.18), transparent 70%);
    pointer-events: none;
}
.el-register-side-col > * { position: relative; z-index: 1; }

.el-register-side-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.el-register-side-title {
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
    text-wrap: balance;
}
.el-register-side-meta {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 1.75rem;
}
.el-register-side-meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    list-style: none;
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
}
.el-register-side-meta li .bi {
    color: var(--el-accent);
    font-size: 1rem;
    margin-top: 0.1875rem;
    flex-shrink: 0;
}
.el-register-side-meta li small {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.125rem;
}

.el-register-side-kpis {
    display: flex;
    gap: 1.75rem;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.el-register-side-kpis .v {
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--el-accent);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.el-register-side-kpis .l {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
    margin-top: 0.25rem;
}

/* Form premium feel — generous spacing, clear focus state */
.el-form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2a3835;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.el-form-label small {
    font-weight: 400;
    color: #8a9492;
    font-size: 0.75rem;
}
.el-form-control {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-md);
    font-size: 0.9375rem;
    background: #fff;
    transition: border-color var(--dur-hover) var(--ease-out),
                box-shadow var(--dur-hover) var(--ease-out);
}
.el-form-control:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(var(--bs-primary-rgb), 0.10);
}
.el-form-control.has-error {
    border-color: #B5351A;
    background: #FFF5F2;
}
.el-form-help {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7775;
}

.el-submit-btn {
    width: 100%;
    padding: 0.9375rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: var(--bs-primary);
    color: #fff;
    border: 0;
    border-radius: var(--el-radius-md);
    transition: background-color var(--dur-hover) var(--ease-out),
                box-shadow var(--dur-hover) var(--ease-out),
                transform var(--dur-press) var(--ease-out);
}
.el-submit-btn:hover {
    background: var(--bs-primary-active);
    box-shadow: 0 6px 16px -4px rgba(var(--bs-primary-rgb), 0.35);
}
.el-submit-btn:active { transform: scale(0.98); }
.el-submit-btn[disabled],
.el-submit-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}
.el-submit-btn .el-spinner {
    display: none;
    width: 0.875rem; height: 0.875rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: el-spin 700ms linear infinite;
    margin-right: 0.5rem;
    vertical-align: -2px;
}
.el-submit-btn.is-loading .el-spinner { display: inline-block; }
.el-submit-btn.is-loading .el-submit-label { opacity: 0.8; }
@keyframes el-spin { to { transform: rotate(360deg); } }

.el-form-microcopy {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #6b7775;
    line-height: 1.5;
}
.el-form-microcopy .bi-shield-check {
    color: var(--bs-primary);
    margin-right: 0.25rem;
}

/* ----- Activated (post-registration) success state --------------------------- */
.el-activated-shell {
    background: linear-gradient(180deg, var(--el-surface-1) 0%, #fff 100%);
    min-height: calc(100vh - 60px);
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.el-success-bezel {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--bs-primary-light);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: el-bezel-in 480ms var(--ease-out) both;
}
.el-success-bezel::before {
    /* outer ring */
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.25);
    animation: el-bezel-pulse 1.6s var(--ease-out) 600ms infinite;
}
.el-success-bezel .bi-check2 {
    font-size: 2.5rem;
    font-weight: 700;
    animation: el-check-draw 360ms var(--ease-out) 240ms both;
    opacity: 0;
    transform: scale(0.5);
}
@keyframes el-bezel-in {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
@keyframes el-bezel-pulse {
    0%   { transform: scale(1);    opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0;   }
}
@keyframes el-check-draw {
    to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .el-success-bezel,
    .el-success-bezel::before,
    .el-success-bezel .bi-check2 { animation: none; opacity: 1; transform: none; }
}

.el-next-step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--dur-hover) var(--ease-out),
                box-shadow var(--dur-hover) var(--ease-out),
                transform var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    a.el-next-step:hover {
        border-color: rgba(var(--bs-primary-rgb), 0.30);
        box-shadow: var(--el-shadow-sm);
        transform: translateY(-2px);
    }
}
.el-next-step-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: var(--el-radius-md);
    background: var(--bs-primary-light);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.el-next-step-title {
    font-family: var(--el-font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0d1a17;
    margin-bottom: 0.125rem;
}
.el-next-step-body {
    font-size: 0.8125rem;
    color: #6b7775;
    line-height: 1.45;
}

/* ----- "Why participate" data-driven section (event public page) ------------- */
.el-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .el-why-grid { grid-template-columns: repeat(3, 1fr); }
}
.el-why-card {
    background: #fff;
    border: 1px solid var(--el-border-soft);
    border-radius: var(--el-radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.el-why-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 2.5rem;
    height: 2px;
    background: var(--bs-primary);
}
.el-why-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--el-radius-md);
    background: var(--bs-primary-light);
    color: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}
.el-why-value {
    font-family: var(--el-font-display);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.025em;
    color: #0d1a17;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.375rem;
}
.el-why-label {
    font-family: var(--el-font-display);
    font-weight: 600;
    color: #1a2624;
    margin-bottom: 0.25rem;
}
.el-why-body {
    font-size: 0.875rem;
    color: #6b7775;
    line-height: 1.5;
}
