/*
|--------------------------------------------------------------------------
| AfriPass Executive UI
|--------------------------------------------------------------------------
| EN: Global premium interface layer.
| FR: Couche visuelle premium globale.
*/

:root {
    --ap-navy: #0D1B2A;
    --ap-navy-2: #071421;
    --ap-green: #2BB673;
    --ap-blue: #1E88E5;
    --ap-gold: #F5A623;
    --ap-bg: #F5F7FA;
    --ap-card: rgba(255,255,255,.92);
    --ap-line: rgba(13,27,42,.10);
    --ap-muted: #667085;
    --ap-text: #0D1B2A;
    --ap-shadow: 0 28px 90px rgba(13,27,42,.12);
    --ap-shadow-soft: 0 16px 50px rgba(13,27,42,.08);
    --ap-radius: 28px;
    --ap-radius-lg: 40px;
    --ap-gradient: linear-gradient(135deg, var(--ap-green), var(--ap-blue));
    --ap-gold-gradient: linear-gradient(135deg, var(--ap-gold), var(--ap-green));
}

html {
    scroll-behavior: smooth;
}

body.executive-ui {
    background:
        radial-gradient(circle at 10% 8%, rgba(43,182,115,.10), transparent 26%),
        radial-gradient(circle at 85% 5%, rgba(30,136,229,.12), transparent 28%),
        radial-gradient(circle at 90% 92%, rgba(245,166,35,.10), transparent 24%),
        var(--ap-bg);
    color: var(--ap-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Premium navigation */

.top-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.70);
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px);
    box-shadow: var(--ap-shadow-soft);
    position: sticky;
    top: 14px;
    z-index: 1000;
    transition: all .25s ease;
}

.top-nav.is-scrolled {
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 60px rgba(13,27,42,.16);
}

.top-nav .brand img,
.admin-brand img,
.sidebar img {
    filter: drop-shadow(0 10px 25px rgba(43,182,115,.18));
}

.nav-links a {
    font-weight: 850;
    letter-spacing: -.01em;
}

.btn,
button,
.admin-btn,
.copy-button {
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn:hover,
button:hover,
.admin-btn:hover,
.copy-button:hover {
    transform: translateY(-1px);
}

.btn-primary,
.admin-btn.primary {
    background: var(--ap-gradient) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(43,182,115,.28);
}

/* Executive landing */

.executive-home {
    min-height: 100vh;
    overflow: hidden;
}

.executive-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    min-height: 680px;
    border-radius: 46px;
    color: #fff;
    padding: clamp(34px, 6vw, 76px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(7,20,33,.96), rgba(13,27,42,.94)),
        radial-gradient(circle at 82% 20%, rgba(30,136,229,.48), transparent 30%);
    box-shadow: 0 36px 120px rgba(13,27,42,.20);
    position: relative;
    isolation: isolate;
}

.executive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 78% 14%, rgba(30,136,229,.40), transparent 28%),
        radial-gradient(circle at 10% 82%, rgba(43,182,115,.34), transparent 24%),
        radial-gradient(circle at 88% 88%, rgba(245,166,35,.24), transparent 22%);
    z-index: -1;
}

.executive-hero::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.12);
    pointer-events: none;
}

.executive-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(43,182,115,.14);
    border: 1px solid rgba(43,182,115,.32);
    color: #7FF0B8;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 12px;
}

.executive-hero h1 {
    margin: 24px 0 18px;
    max-width: 780px;
    font-size: clamp(46px, 7vw, 92px);
    line-height: .92;
    letter-spacing: -.07em;
}

.executive-hero h1 span {
    background: linear-gradient(135deg, #fff, #BDE8FF 45%, #7FF0B8);
    -webkit-background-clip: text;
    color: transparent;
}

.executive-hero p {
    max-width: 700px;
    color: rgba(255,255,255,.74);
    font-size: 19px;
    line-height: 1.72;
}

.executive-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.executive-actions .btn,
.executive-actions a {
    min-height: 52px;
    padding-inline: 22px;
    border-radius: 18px;
    font-weight: 950;
}

.executive-hero-visual {
    display: grid;
    gap: 18px;
    position: relative;
}

.executive-phone {
    width: min(390px, 100%);
    margin-left: auto;
    border-radius: 42px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 90px rgba(0,0,0,.26);
    padding: 18px;
}

.executive-phone-inner {
    min-height: 600px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 80% 0%, rgba(30,136,229,.25), transparent 24%),
        #fff;
    color: var(--ap-navy);
    padding: 26px;
}

.executive-avatar {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ap-gradient);
    font-size: 42px;
    font-weight: 950;
    box-shadow: 0 20px 40px rgba(43,182,115,.24);
    margin: 26px auto 18px;
}

.executive-mini-card {
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
    background: #F5F7FA;
    border: 1px solid rgba(13,27,42,.08);
}

.executive-qr {
    width: 150px;
    height: 150px;
    border-radius: 22px;
    margin: 24px auto 0;
    background:
        linear-gradient(90deg, var(--ap-navy) 10px, transparent 10px) 0 0/24px 24px,
        linear-gradient(var(--ap-navy) 10px, transparent 10px) 0 0/24px 24px,
        #fff;
    border: 12px solid #fff;
    box-shadow: 0 16px 38px rgba(13,27,42,.14);
}

/* Global premium components */

.panel,
.stat-card,
.directory-card,
.plan-card,
.sprint5-card,
.sprint5-panel,
.output-box,
.public-card,
.ticket-card,
.admin-panel,
.message-card {
    position: relative;
    border: 1px solid rgba(13,27,42,.08) !important;
    background:
        radial-gradient(circle at var(--mx, 80%) var(--my, 0%), rgba(30,136,229,.08), transparent 24%),
        rgba(255,255,255,.94) !important;
    box-shadow: var(--ap-shadow-soft) !important;
    border-radius: var(--ap-radius) !important;
    overflow: hidden;
}

.panel::before,
.stat-card::before,
.directory-card::before,
.plan-card::before,
.sprint5-card::before,
.sprint5-panel::before,
.admin-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
    pointer-events: none;
}

.dashboard {
    padding-top: 34px;
}

.dashboard-top {
    border-radius: var(--ap-radius-lg);
    padding: 32px;
    background:
        radial-gradient(circle at 88% 10%, rgba(30,136,229,.12), transparent 24%),
        rgba(255,255,255,.84);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--ap-shadow-soft);
    backdrop-filter: blur(16px);
}

.dashboard h1,
.admin-main h1 {
    letter-spacing: -.04em;
}

.stats-grid {
    gap: 18px !important;
}

.stat-card {
    padding: 24px !important;
}

.stat-card span {
    color: var(--ap-muted);
    font-weight: 900;
}

.stat-card strong {
    background: linear-gradient(135deg, var(--ap-navy), var(--ap-blue));
    -webkit-background-clip: text;
    color: transparent;
}

.quick-actions a,
.inline-actions a {
    border-radius: 16px !important;
    background: #F4FBF8 !important;
    border: 1px solid rgba(43,182,115,.16) !important;
    color: var(--ap-navy) !important;
    font-weight: 950 !important;
}

input,
select,
textarea {
    border: 1px solid rgba(13,27,42,.12) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.95) !important;
    min-height: 48px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(43,182,115,.65) !important;
    box-shadow: 0 0 0 4px rgba(43,182,115,.12);
}

/* Sidebar executive polish */

.app-shell {
    background:
        radial-gradient(circle at 94% 4%, rgba(30,136,229,.10), transparent 28%),
        var(--ap-bg);
}

.sidebar {
    background:
        radial-gradient(circle at 20% 0%, rgba(43,182,115,.18), transparent 28%),
        linear-gradient(180deg, #071421, #0D1B2A) !important;
    border-right: 1px solid rgba(255,255,255,.10);
    box-shadow: 18px 0 60px rgba(13,27,42,.16);
}

.sidebar a {
    border-radius: 16px !important;
    font-weight: 850 !important;
    color: rgba(255,255,255,.78) !important;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

/* Admin executive polish */

.admin-body {
    background:
        radial-gradient(circle at 85% 10%, rgba(30,136,229,.13), transparent 28%),
        var(--ap-bg) !important;
}

.admin-sidebar {
    background:
        radial-gradient(circle at 22% 0%, rgba(43,182,115,.18), transparent 28%),
        linear-gradient(180deg, #071421, #0D1B2A) !important;
}

.admin-topbar {
    border-radius: var(--ap-radius-lg);
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(255,255,255,.70);
    box-shadow: var(--ap-shadow-soft);
    padding: 28px;
}

.admin-stat {
    border-radius: 26px !important;
    box-shadow: var(--ap-shadow-soft) !important;
}

/* Public explore/sprint pages */

.explore-hero,
.sprint5-hero,
.org-hero,
.event-hero {
    box-shadow: 0 34px 110px rgba(13,27,42,.18) !important;
    border: 1px solid rgba(255,255,255,.10);
}

.explore-hero h1,
.sprint5-hero h1 {
    letter-spacing: -.06em;
}

/* Floating language switch */

.floating-language-switch {
    border: 1px solid rgba(255,255,255,.72) !important;
    background: rgba(255,255,255,.88) !important;
    box-shadow: 0 20px 70px rgba(13,27,42,.18) !important;
}

/* Landing sections */

.executive-section {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto;
}

.executive-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.executive-section h2 {
    max-width: 760px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -.06em;
}

.executive-section p {
    color: var(--ap-muted);
    line-height: 1.7;
}

.executive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.executive-card {
    min-height: 250px;
    padding: 26px;
    border-radius: var(--ap-radius);
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(13,27,42,.08);
    box-shadow: var(--ap-shadow-soft);
}

.executive-card-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--ap-gradient);
    font-weight: 950;
    margin-bottom: 18px;
}

.executive-card h3 {
    font-size: 24px;
    letter-spacing: -.03em;
}

.executive-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
    margin-top: 18px;
}

.executive-metric {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(13,27,42,.08);
    box-shadow: var(--ap-shadow-soft);
}

.executive-metric strong {
    display: block;
    font-size: 34px;
    letter-spacing: -.04em;
}

.executive-cta {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 80px;
    border-radius: 44px;
    padding: clamp(34px, 6vw, 70px);
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(30,136,229,.40), transparent 30%),
        linear-gradient(135deg, #071421, #0D1B2A);
    box-shadow: 0 34px 110px rgba(13,27,42,.20);
}

.executive-cta h2 {
    font-size: clamp(36px, 6vw, 68px);
    letter-spacing: -.06em;
    line-height: 1;
    max-width: 850px;
}

.executive-cta p {
    color: rgba(255,255,255,.74);
    max-width: 760px;
}

/* Mobile */

@media (max-width: 980px) {
    .executive-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .executive-phone {
        margin: 0;
    }

    .executive-grid,
    .executive-metrics {
        grid-template-columns: 1fr;
    }

    .executive-section-head {
        display: block;
    }

    .top-nav {
        border-radius: 28px;
        position: relative;
        top: auto;
    }
}

@media (max-width: 760px) {
    .executive-hero {
        padding: 28px;
        border-radius: 32px;
    }

    .executive-hero h1 {
        font-size: 44px;
    }

    .dashboard-top,
    .admin-topbar {
        padding: 22px;
        border-radius: 26px;
    }

    .panel,
    .stat-card,
    .directory-card,
    .plan-card,
    .sprint5-card,
    .sprint5-panel {
        border-radius: 22px !important;
    }
}
