/* ================================================================
   LAST.CSS — Moroccan Royal Complaint Platform
   Premium 2026 Design System
   Every class here targets an actual HTML class in the Blade templates.
   ================================================================ */

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
    --morocco-green: #006233;
    --morocco-green-dark: #004D28;
    --morocco-green-light: #008044;
    --morocco-red: #C1272D;
    --morocco-red-dark: #9B1B20;
    --morocco-red-light: #E0434A;
    --morocco-gold: #C8A951;
    --morocco-gold-dark: #A0822D;
    --morocco-gold-light: #E0C872;
    --bg-primary: #F8F9FC;
    --bg-card: #FFFFFF;
    --bg-dark: #0F1117;
    --bg-dark-secondary: #1A1D2E;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-light: #E5E7EB;
    --border-lighter: #CCCCCC;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow-green: 0 0 20px rgba(0, 98, 51, 0.15);
    --shadow-glow-gold: 0 0 20px rgba(200, 169, 81, 0.2);
    --shadow-glow-red: 0 0 20px rgba(193, 39, 45, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --font-arabic: 'Cairo', 'Inter', sans-serif;
    --font-display: 'Amiri', 'Cairo', serif;
    --font-ui: 'Inter', 'Cairo', sans-serif;
    --navbar-height: 68px;
}

/* ─── RESET & BASE ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-arabic);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

body.h-full {
    min-height: 100vh;
}

body.antialiased {
    -webkit-font-smoothing: antialiased;
}

html.h-full {
    height: 100%;
}

a {
    color: var(--morocco-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--morocco-green-dark);
}

img,
svg {
    display: block;
    max-width: 100%;
}

table {
    border-collapse: collapse;
    width: 100%;
}

ul {
    list-style: none;
}

/* ─── UTILITY CLASSES ───────────────────────────────────────────── */
.d-none {
    display: none !important;
}

.d-md-inline {
    display: none !important;
}

@media (min-width: 768px) {
    .d-md-inline {
        display: inline !important;
    }

    .d-md-flex {
        display: flex !important;
    }
}

/* ─── ANIMATIONS ────────────────────────────────────────────────── */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    15%,
    45%,
    75% {
        transform: translateX(-6px);
    }

    30%,
    60%,
    90% {
        transform: translateX(6px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-slideUp {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease both;
}

.animate-scaleIn {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.animate-slideDown {
    animation: slideDown 0.35s ease both;
}

.animate-shake {
    animation: shake 0.5s ease;
}

/* ================================================================
   NAVBAR — Dark Futuristic Government 2026
   ================================================================ */
.navbar-morocco {
    position: sticky;
    top: 0;
    z-index: 1000;
    /*background: rgba(8, 12, 20, 0.92);*/
    background: linear-gradient( to bottom, #0A0E16 0%, #0F1423 100% );
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid rgba(200, 169, 81, 0.08);
    transition: all var(--transition-smooth);
}

.navbar-morocco:hover {
    border-bottom-color: rgba(200, 169, 81, 0.12);
}

/* Gold accent line at top */
.navbar-gold-line {
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--morocco-green) 15%,
            var(--morocco-gold) 35%,
            var(--morocco-red) 50%,
            var(--morocco-gold) 65%,
            var(--morocco-green) 85%,
            transparent 100%);
    background-size: 200% 100%;
    animation: goldShimmer 6s ease-in-out infinite alternate;
}

@keyframes goldShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Bottom glow line */
.navbar-bottom-glow {
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 98, 51, 0.2) 30%,
            rgba(200, 169, 81, 0.3) 50%,
            rgba(0, 98, 51, 0.2) 70%,
            transparent);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ─── Brand Link ────────────────────────────────────────────────── */
.navbar-brand-link {
    text-decoration: none;
    color: #ffffff;
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}

.navbar-brand-link:hover {
    opacity: 0.88;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Emblem with animated glow */
.navbar-emblem-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-emblem-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 81, 0.35) 0%, transparent 70%);
    animation: emblemPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes emblemPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.navbar-emblem {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 8px rgba(200, 169, 81, 0.4));
    transition: transform var(--transition-smooth);
}

.navbar-emblem img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.navbar-brand-link:hover .navbar-emblem {
    transform: rotate(10deg) scale(1.08);
}

.navbar-title {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.navbar-title-arabic {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, rgba(200, 169, 81, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.navbar-title-french {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Government badge */
.navbar-badge-gov {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(200, 169, 81, 0.08);
    border: 1px solid rgba(200, 169, 81, 0.2);
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--morocco-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.navbar-badge-gov i {
    font-size: 0.6rem;
    color: var(--morocco-gold);
}

@media (min-width: 900px) {
    .navbar-badge-gov {
        display: inline-flex;
    }
}

/* ─── Actions ───────────────────────────────────────────────────── */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Separator */
.navbar-sep {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0 4px;
}

/* ─── Language Switcher (native select) — Dark Theme ────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.lang-switcher:hover {
    border-color: rgba(200, 169, 81, 0.3);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.06);
}

.lang-switcher:focus-within {
    border-color: var(--morocco-gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.12);
}

.lang-switcher-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(200, 169, 81, 0.08);
    color: var(--morocco-gold);
    font-size: 0.8rem;
    flex-shrink: 0;
    pointer-events: none;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: transparent;
    padding: 7px 30px 7px 8px;
    padding-inline-start: 8px;
    padding-inline-end: 30px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    outline: none;
    line-height: 1.4;
    min-width: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C8A951' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 8px) center;
    background-size: 12px;
    transition: color var(--transition-fast);
}

[dir="rtl"] .lang-select {
    background-position: 8px center;
}

.lang-select:hover {
    color: var(--morocco-gold);
}

.lang-select:focus {
    color: #ffffff;
}

.lang-select option {
    font-weight: 500;
    color: #111827;
    padding: 6px;
}

/* Keep legacy lang classes for auth pages that still use them */
.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.lang-switcher-btn:hover {
    border-color: var(--morocco-green);
    background: rgba(0, 98, 51, 0.04);
    box-shadow: var(--shadow-xs);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.lang-arrow {
    font-size: 0.55rem !important;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 100;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.lang-option:hover {
    background: rgba(0, 98, 51, 0.05);
    color: var(--morocco-green);
}

.lang-option.active {
    background: rgba(0, 98, 51, 0.08);
    color: var(--morocco-green);
    font-weight: 600;
}

.lang-check {
    margin-inline-start: auto;
    font-size: 0.7rem;
    color: var(--morocco-green);
}

/* ─── User Menu (Pure CSS — :focus-within) ────────────────────── */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-ui);
    color: #ffffff;
}

.user-menu-btn:hover {
    background: rgba(200, 169, 81, 0.08);
    border-color: rgba(200, 169, 81, 0.15);
}

/* Open state when focused within */
.user-menu:focus-within .user-menu-btn {
    background: rgba(200, 169, 81, 0.1);
    border-color: rgba(200, 169, 81, 0.2);
}

.user-menu-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.user-menu-chevron {
    font-size: 0.55rem !important;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-inline-start: 2px;
}

/* Rotate chevron when open */
.user-menu:focus-within .user-menu-chevron {
    transform: rotate(180deg);
    color: var(--morocco-gold);
}

.user-menu-btn:hover .user-menu-chevron {
    color: var(--morocco-gold);
}

/* Avatar */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-family: var(--font-ui);
    color: white;
    background: linear-gradient(145deg, var(--morocco-green) 0%, var(--morocco-green-dark) 100%);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: 34px;
    height: 34px;
    font-size: 0.65rem;
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid rgba(200, 169, 81, 0.3);
}

.avatar-sm {
    font-size: 0.7rem;
}

.avatar-bordered::after {
    border-color: rgba(200, 169, 81, 0.35);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.08);
}

.user-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: #ffffff;
    line-height: 1.2;
}

.user-role {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--morocco-gold);
    background: rgba(200, 169, 81, 0.1);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    line-height: 1.5;
}

/* ─── User Dropdown — Pure CSS (:focus-within) ────────────────── */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    background: rgba(15, 17, 23, 0.96);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(200, 169, 81, 0.15);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 0 60px rgba(200, 169, 81, 0.05);
    padding: 8px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* Show dropdown when user-menu has focus within */
.user-menu:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Dropdown Header */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
}

.user-dropdown-header .avatar {
    width: 38px;
    height: 38px;
    font-size: 0.72rem;
}

.user-dropdown-header .avatar::after {
    display: none;
}

.user-dropdown-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
}

.user-dropdown-role {
    font-size: 0.7rem;
    color: var(--morocco-gold);
    font-weight: 500;
    margin-top: 1px;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 8px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    font-family: var(--font-ui);
    text-align: inherit;
}

.user-dropdown-item:hover {
    background: rgba(200, 169, 81, 0.08);
    color: #ffffff;
}

.user-dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.82rem;
}

.user-dropdown-logout {
    color: rgba(193, 39, 45, 0.8) !important;
}

.user-dropdown-logout:hover {
    background: rgba(193, 39, 45, 0.12) !important;
    color: var(--morocco-red-light) !important;
}

/* Navbar Login Button (when not auth) — Dark Theme */
.navbar-login-btn {
    border-radius: var(--radius-full) !important;
    padding: 8px 18px !important;
    font-size: 0.78rem !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Premium Morocco Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

.footer-morocco {
    position: relative;
   /* background: linear-gradient(
        180deg,
        rgba(10, 12, 18, 0) 0%,
        #0a0c12 3%,
        #0d1117 40%,
        #0f1520 100%
    );*/
    background: linear-gradient(180deg, rgb(33 37 41) 0%, #0a0c12 3%, #0d1117 40%, #0f1520 100%);
    overflow: hidden;
    isolation: isolate;
}

/* ── Layer: Gradient Mesh ── */
.footer-morocco::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 10% 20%, rgba(0, 98, 51, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 90% 60%, rgba(193, 39, 45, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 100%, rgba(200, 169, 81, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Layer: Zellige Pattern ── */
.footer-morocco::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cdefs%3E%3Cpattern id='fz' x='0' y='0' width='120' height='120' patternUnits='userSpaceOnUse'%3E%3Cpolygon points='60,10 67,45 100,30 78,60 110,67 78,78 100,110 67,95 60,120 53,95 20,110 42,78 10,67 42,60 20,30 53,45' fill='none' stroke='%23C8A951' stroke-width='0.5'/%3E%3Crect x='45' y='45' width='30' height='30' transform='rotate(45 60 60)' fill='none' stroke='%23C8A951' stroke-width='0.5'/%3E%3Ccircle cx='60' cy='60' r='20' fill='none' stroke='%23C8A951' stroke-width='0.5'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23fz)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Top separator line ── */
.footer-top-line {
    position: relative;
    z-index: 1;
    height: 1px;
    margin: 0 3rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(200, 169, 81, 0.05) 15%,
        rgba(200, 169, 81, 0.25) 50%,
        rgba(200, 169, 81, 0.05) 85%,
        transparent 100%
    );
}

/* ── Container ── */
.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
}

/* ── Grid ── */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER SECTION — Brand
   ═══════════════════════════════════════════════════════════════ */

.footer-section {
    position: relative;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.25rem;
}

.footer-brand svg {
    filter: drop-shadow(0 0 10px rgba(200, 169, 81, 0.35));
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-brand:hover svg {
    transform: rotate(72deg) scale(1.1);
}

.footer-brand span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #e8e0d0 50%, var(--morocco-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.footer-motto {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 320px;
}

/* Social row */
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
    text-decoration: none;
    transition:
        all 350ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(200, 169, 81, 0.15), rgba(200, 169, 81, 0.05));
    opacity: 0;
    transition: opacity 350ms ease;
}

.footer-social-link:hover {
    color: var(--morocco-gold);
    border-color: rgba(200, 169, 81, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(200, 169, 81, 0.1);
}

.footer-social-link:hover::before {
    opacity: 1;
}

.footer-social-link i {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER SECTION — Links
   ═══════════════════════════════════════════════════════════════ */

.footer-heading {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--morocco-gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--morocco-gold), transparent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-links li {
    position: relative;
}

.footer-links li a,
.footer-links li span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: all 250ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.footer-links li a::before,
.footer-links li span::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--morocco-gold);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-links li a:hover,
.footer-links li span:hover {
    color: rgba(255, 255, 255, 0.85);
    padding-left: 8px;
}

.footer-links li a:hover::before,
.footer-links li span:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.footer-links li i {
    width: 18px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(200, 169, 81, 0.4);
    transition: color 250ms ease;
}

.footer-links li a:hover i,
.footer-links li:hover i {
    color: var(--morocco-gold);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER BOTTOM BAR
   ═══════════════════════════════════════════════════════════════ */

.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 3.5rem;
    padding: 1.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom p {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-bottom-links a {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: color 250ms ease;
}

.footer-bottom-links a:hover {
    color: rgba(200, 169, 81, 0.6);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Floating Geometric Accents
   ═══════════════════════════════════════════════════════════════ */

.footer-geo {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.footer-geo-diamond {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(200, 169, 81, 0.08);
    transform: rotate(45deg);
    animation: footerGeoFloat 12s ease-in-out infinite;
}

.footer-geo-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(0, 98, 51, 0.06);
    animation: footerGeoFloat 16s ease-in-out infinite;
}

@keyframes footerGeoFloat {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) rotate(45deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-15px) rotate(55deg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Noise
   ═══════════════════════════════════════════════════════════════ */

.footer-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fn)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Newsletter / CTA Card
   ═══════════════════════════════════════════════════════════════ */

.footer-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-cta-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition:
        border-color 350ms ease,
        background 350ms ease;
}

.footer-cta-card:hover {
    border-color: rgba(200, 169, 81, 0.15);
    background: rgba(200, 169, 81, 0.03);
}

.footer-cta-label {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.footer-cta-form {
    display: flex;
    gap: 0.5rem;
}

.footer-cta-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    outline: none;
    transition: all 250ms ease;
}

.footer-cta-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.footer-cta-input:focus {
    border-color: rgba(200, 169, 81, 0.4);
    background: rgba(200, 169, 81, 0.05);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.08);
}

.footer-cta-btn {
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--morocco-green), var(--morocco-green-dark));
    border: none;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 350ms cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.footer-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--morocco-green-light), var(--morocco-green));
    opacity: 0;
    transition: opacity 350ms ease;
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 98, 51, 0.3);
}

.footer-cta-btn:hover::before {
    opacity: 1;
}

.footer-cta-btn span {
    position: relative;
    z-index: 1;
}
.footer-logo{
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .footer-container {
        padding: 3rem 1.5rem 0;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-container {
        padding: 2.5rem 1.25rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        gap: 1.5rem;
    }

    .footer-cta-form {
        flex-direction: column;
    }
}
/* ================================================================
   LOGIN PAGE — Oscar-Winning 2026 Futuristic Government Design
   ================================================================ */

/* ─── Universe Container ────────────────────────────────────────── */
.login-universe {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #080C14;
    display: flex;
    flex-direction: column;
}

/* ─── Animated Background ───────────────────────────────────────── */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.login-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 50%, rgba(0, 98, 51, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 80% at 85% 30%, rgba(193, 39, 45, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 80%, rgba(200, 169, 81, 0.08) 0%, transparent 50%);
}

.login-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 169, 81, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 169, 81, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

/* Particles */
.login-bg-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--morocco-gold);
    opacity: 0;
    animation: particleFloat linear infinite;
}

.p-1 {
    width: 3px;
    height: 3px;
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.p-2 {
    width: 2px;
    height: 2px;
    left: 25%;
    animation-duration: 22s;
    animation-delay: 2s;
}

.p-3 {
    width: 4px;
    height: 4px;
    left: 40%;
    animation-duration: 15s;
    animation-delay: 4s;
}

.p-4 {
    width: 2px;
    height: 2px;
    left: 55%;
    animation-duration: 20s;
    animation-delay: 1s;
}

.p-5 {
    width: 3px;
    height: 3px;
    left: 70%;
    animation-duration: 25s;
    animation-delay: 3s;
}

.p-6 {
    width: 2px;
    height: 2px;
    left: 85%;
    animation-duration: 17s;
    animation-delay: 5s;
}

.p-7 {
    width: 3px;
    height: 3px;
    left: 15%;
    animation-duration: 23s;
    animation-delay: 6s;
}

.p-8 {
    width: 2px;
    height: 2px;
    left: 35%;
    animation-duration: 19s;
    animation-delay: 2.5s;
}

.p-9 {
    width: 4px;
    height: 4px;
    left: 60%;
    animation-duration: 21s;
    animation-delay: 4.5s;
}

.p-10 {
    width: 2px;
    height: 2px;
    left: 80%;
    animation-duration: 16s;
    animation-delay: 1.5s;
}

.p-11 {
    width: 3px;
    height: 3px;
    left: 5%;
    animation-duration: 24s;
    animation-delay: 7s;
}

.p-12 {
    width: 2px;
    height: 2px;
    left: 95%;
    animation-duration: 20s;
    animation-delay: 3.5s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Geometric Shapes */
.login-bg-shapes {
    position: absolute;
    inset: 0;
}

.geo-shape {
    position: absolute;
    border: 1px solid rgba(200, 169, 81, 0.08);
    animation: geoFloat 20s ease-in-out infinite;
}

.geo-1 {
    width: 120px;
    height: 120px;
    top: 8%;
    left: 5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
    border-color: rgba(0, 98, 51, 0.1);
}

.geo-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 12%;
    transform: rotate(45deg);
    animation-delay: -5s;
    border-color: rgba(200, 169, 81, 0.06);
}

.geo-3 {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 8%;
    border-radius: 50%;
    animation-delay: -10s;
    border-color: rgba(193, 39, 45, 0.06);
}

.geo-4 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 15%;
    transform: rotate(30deg);
    animation-delay: -7s;
    border-color: rgba(200, 169, 81, 0.08);
}

.geo-5 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 40%;
    border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%;
    animation-delay: -3s;
    border-color: rgba(0, 98, 51, 0.05);
}

@keyframes geoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(5deg);
    }

    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

/* Light Beams */
.light-beam {
    position: absolute;
    width: 1px;
    height: 40%;
    top: -10%;
    opacity: 0;
    animation: beamShoot 8s ease-in-out infinite;
}

.beam-1 {
    left: 20%;
    background: linear-gradient(180deg, transparent, rgba(200, 169, 81, 0.15), transparent);
    animation-delay: 0s;
}

.beam-2 {
    right: 25%;
    background: linear-gradient(180deg, transparent, rgba(0, 98, 51, 0.12), transparent);
    animation-delay: 4s;
}

@keyframes beamShoot {

    0%,
    100% {
        opacity: 0;
        transform: scaleY(0.5) translateY(-20%);
    }

    50% {
        opacity: 1;
        transform: scaleY(1) translateY(10%);
    }
}

/* ─── Main Content ──────────────────────────────────────────────── */
.login-main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    min-height: 0;
}

/* ─── Left Showcase Panel ───────────────────────────────────────── */
.login-showcase {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
}

.showcase-inner {
    text-align: center;
    max-width: 420px;
    animation: loginFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animated Emblem Ring */
.showcase-emblem-ring {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emblem-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(200, 169, 81, 0.2);
    animation: ringPulse 4s ease-in-out infinite;
}

.emblem-ring-inner {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(200, 169, 81, 0.12);
    border-style: dashed;
    animation: ringSpin 30s linear infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes ringSpin {
    to {
        transform: rotate(360deg);
    }
}

.showcase-emblem {
    position: relative;
    z-index: 2;
    animation: emblemFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(200, 169, 81, 0.4));
}

@keyframes emblemFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Showcase Titles */
.showcase-titles {
    margin-bottom: 1.5rem;
}

.showcase-title-ar {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.showcase-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--morocco-gold));
}

.showcase-divider .divider-line:last-child {
    background: linear-gradient(90deg, var(--morocco-gold), transparent);
}

.divider-gem {
    width: 8px;
    height: 8px;
    background: var(--morocco-gold);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(200, 169, 81, 0.5);
}

.showcase-title-fr {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.showcase-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* Government Badge */
.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: rgba(200, 169, 81, 0.08);
    border: 1px solid rgba(200, 169, 81, 0.2);
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

.badge-icon {
    color: var(--morocco-gold);
    font-size: 0.9rem;
}

.badge-text {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--morocco-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
/* ═══════════════════════════════════════════════
   STATS GRID — Modern Glassmorphism Dashboard
   ═══════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.card-stat {
    position: relative;
    border-radius: 20px;
    padding: 1.75rem 1.5rem 1.5rem;
    background: linear-gradient( to bottom, #0A0E16 0%, #0F1423 100% );
    color:white;
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 16px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
    transition:
        transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 400ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 400ms ease;
    cursor: default;
    isolation: isolate;
}

/* ── Gradient mesh blob behind each card ── */
.card-stat::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    transition: opacity 500ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
    pointer-events: none;
}

.card-stat:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.7);
}

.card-stat:hover::before {
    opacity: 0.55;
    transform: translate(-10px, 10px) scale(1.1);
}

/* ── Per-card color identity ── */
.card-stat-green::before  { background: #10B981; }
.card-stat-yellow::before { background: #F59E0B; }
.card-stat-blue::before   { background: #3B82F6; }
.card-stat-red::before    { background: #EF4444; }

.card-stat-green:hover  { border-color: rgba(16, 185, 129, 0.25); }
.card-stat-yellow:hover { border-color: rgba(245, 158, 11, 0.25); }
.card-stat-blue:hover   { border-color: rgba(59, 130, 246, 0.25); }
.card-stat-red:hover    { border-color: rgba(239, 68, 68, 0.25); }

/* ── Bottom accent line — gradient ── */
.card-stat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0.6);
    transition:
        opacity 400ms ease,
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-stat:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.card-stat-green::after  { background: linear-gradient(90deg, #10B981, #34D399, #6EE7B7); }
.card-stat-yellow::after { background: linear-gradient(90deg, #F59E0B, #FBBF24, #FDE68A); }
.card-stat-blue::after   { background: linear-gradient(90deg, #3B82F6, #60A5FA, #93C5FD); }
.card-stat-red::after    { background: linear-gradient(90deg, #EF4444, #F87171, #FCA5A5); }

/* ── Icon ── */
.card-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    position: relative;
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card-stat:hover .card-stat-icon {
    transform: scale(1.08) rotate(-3deg);
}

.card-stat-icon i {
    position: relative;
    z-index: 1;
}

/* ── Label ── */
.card-stat-label {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* ── Value ── */
.card-stat-value {
    font-family: var(--font-ui);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-top: 0.5rem;
    font-variant-numeric: tabular-nums;
}

/* ── Trend badge ── */
.card-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 0.75rem;
    padding: 4px 10px;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 300ms ease;
}

.card-stat-trend:hover {
    transform: scale(1.05);
}

.card-stat-trend i {
    font-size: 0.58rem;
}

.trend-up {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.trend-down {
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
}

.trend-neutral {
    background: rgba(107, 114, 128, 0.08);
    color: #6B7280;
}

/* ═══════════════════════════════════════════════
   SHOWCASE STATS — Dark Glass Strip
   ═══════════════════════════════════════════════ */

.showcase-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem 1rem;
    background:
        linear-gradient(135deg, #004D28 0%, #006233 40%, #007A3D 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Mesh gradient overlay */
.showcase-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(200, 169, 81, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Top highlight edge */
.showcase-stats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 169, 81, 0.4) 30%,
        rgba(200, 169, 81, 0.6) 50%,
        rgba(200, 169, 81, 0.4) 70%,
        transparent 100%
    );
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 2.5rem;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-family: var(--font-ui);
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(
        180deg,
        #F5E6A3 0%,
        #E0C872 30%,
        #C8A951 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(200, 169, 81, 0.3) 30%,
        rgba(200, 169, 81, 0.3) 70%,
        transparent 100%
    );
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

@keyframes statReveal {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.animate-slideUp {
    animation: statReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ═══════════════════════════════════════════════
   DARK MODE VARIANT
   ═══════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    .card-stat {
        background: linear-gradient( to bottom, #0A0E16 0%, #0F1423 100% );
        color:white;
        backdrop-filter: blur(24px) saturate(1.5);
        -webkit-backdrop-filter: blur(24px) saturate(1.5);
        border-color: rgba(255, 255, 255, 0.06);
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.2),
            0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .card-stat:hover {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.25),
            0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .card-stat-label {
        color: rgba(255, 255, 255, 0.45);
    }

    .card-stat-value {
        color: #F1F5F9;
    }

    .trend-up {
        background: rgba(16, 185, 129, 0.12);
        color: #34D399;
    }

    .trend-down {
        background: rgba(239, 68, 68, 0.12);
        color: #F87171;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-stat-value {
        font-size: 1.8rem;
    }

    .showcase-stats {
        flex-wrap: wrap;
        padding: 1.5rem 0.75rem;
        border-radius: 20px;
    }

    .stat-item {
        padding: 0.75rem 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 1.4rem;
    }
}

/* ──────────────────────────────────────────────
   Showcase Stats (inline counter strip)
   ────────────────────────────────────────────── */

.showcase-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg,
            var(--morocco-green-dark) 0%,
            var(--morocco-green) 50%,
            var(--morocco-green-light) 100%);
    border-radius: var(--radius-xl);
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

/* Subtle noise texture overlay */
.showcase-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(200, 169, 81, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.stat-value {
    font-family: var(--font-ui);
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg,
            var(--morocco-gold-light) 0%,
            var(--morocco-gold) 60%,
            var(--morocco-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%);
}

/* ── Entry Animations ── */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .card-stat {
        padding: 1.15rem 1rem;
    }

    .card-stat-value {
        font-size: 1.6rem;
    }

    .showcase-stats {
        flex-wrap: wrap;
        gap: 1.25rem;
        padding: 1.25rem 1rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Right Form Panel ──────────────────────────────────────────── */
.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem 1.5rem;
    position: relative;
}

/* ─── Language Switcher ─────────────────────────────────────────── */
.login-lang {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 20;
}

[dir="rtl"] .login-lang {
    right: auto;
    left: 2rem;
}

.login-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.login-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(200, 169, 81, 0.3);
}

.login-lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.login-lang-code {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.login-lang-arrow {
    font-size: 0.6rem !important;
    transition: transform var(--transition-fast);
}

.login-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 6px;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[dir="rtl"] .login-lang-dropdown {
    right: auto;
    left: 0;
}

.login-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.login-lang-option:hover {
    background: rgba(200, 169, 81, 0.1);
    color: white;
}

.login-lang-option.active {
    background: rgba(0, 98, 51, 0.15);
    color: var(--morocco-gold);
    font-weight: 600;
}

.login-lang-option .fas {
    margin-inline-start: auto;
    font-size: 0.7rem;
}

/* ─── Glass Card ────────────────────────────────────────────────── */
.login-card-glass {
    width: 100%;
    max-width: 440px;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    animation: cardAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
    overflow: hidden;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at 20% 0%, rgba(200, 169, 81, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Card Top Accent */
.glass-card-accent {
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--morocco-green), var(--morocco-gold), var(--morocco-red), var(--morocco-gold), var(--morocco-green), transparent);
    background-size: 200% 100%;
    animation: accentShimmer 4s ease-in-out infinite alternate;
    border-radius: 0 0 2px 2px;
}

@keyframes accentShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Card Header */
.glass-card-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.glass-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 16px rgba(0, 98, 51, 0.3));
}

.glass-card-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.4rem;
}

.glass-card-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

/* ─── Glass Alert ───────────────────────────────────────────────── */
.glass-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    animation: alertSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glass-alert-error {
    color: #fff !important;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.glass-alert-icon {
    flex-shrink: 0;
    color: #EF4444;
    font-size: 0.9rem;
    margin-top: 2px;
}

.glass-alert-content {
    color: #fff !important;

    flex: 1;
    min-width: 0;
}

.glass-alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(239, 68, 68, 0.5);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px;
    transition: color var(--transition-fast);
}

.glass-alert-close:hover {
    color: #EF4444;
}

/* ─── Glass Field ───────────────────────────────────────────────── */
.glass-field {
    margin-bottom: 1.25rem;
    transition: transform var(--transition-fast);
}

.glass-field-focused {
    transform: translateX(4px);
}

[dir="rtl"] .glass-field-focused {
    transform: translateX(-4px);
}

.glass-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
    font-family: var(--font-ui);
    transition: color var(--transition-fast);
}

.glass-field-focused .glass-field-label {
    color: var(--morocco-gold);
}

.glass-field-label i {
    font-size: 0.75rem;
    color: rgba(200, 169, 81, 0.6);
    transition: color var(--transition-fast);
}

.glass-field-focused .glass-field-label i {
    color: var(--morocco-gold);
}

.glass-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.glass-input-icon {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
    transition: color var(--transition-fast);
}

.glass-field-focused .glass-input-icon {
    color: var(--morocco-gold);
}

.glass-input {
    width: 100%;
    padding: 13px 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: white;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    transition: all var(--transition-base);
    outline: none;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.glass-input:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.glass-input:focus {
    border-color: rgba(200, 169, 81, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(200, 169, 81, 0.08), 0 0 20px rgba(200, 169, 81, 0.05);
}

.glass-input-error {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.06) !important;
}

.glass-input-toggle {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 2;
    font-size: 0.9rem;
}

.glass-input-toggle:hover {
    color: var(--morocco-gold);
}

.glass-field-error {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #F87171;
    margin-top: 6px;
    font-weight: 500;
}

.glass-field-error i {
    font-size: 0.7rem;
}

/* ─── Glass Row (Remember + Forgot) ─────────────────────────────── */
.glass-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Custom Checkbox */
.glass-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
}

.glass-check-input {
    display: none;
}

.glass-check-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.glass-check-box i {
    font-size: 0.6rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.glass-check-input:checked+.glass-check-box {
    background: var(--morocco-green);
    border-color: var(--morocco-green);
    box-shadow: 0 0 8px rgba(0, 98, 51, 0.3);
}

.glass-check-input:checked+.glass-check-box i {
    opacity: 1;
    transform: scale(1);
}

.glass-check-label {
    font-weight: 500;
}

/* Forgot Link */
.glass-link {
    font-size: 0.82rem;
    color: var(--morocco-gold);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.glass-link:hover {
    color: var(--morocco-gold-light);
}

.glass-link-arrow {
    font-size: 0.65rem;
    transition: transform var(--transition-fast);
}

.glass-link:hover .glass-link-arrow {
    transform: translateX(3px);
}

/* ─── Submit Button ─────────────────────────────────────────────── */
.glass-submit {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 14px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    background-color: var(--morocco-green) !important;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-submit-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--morocco-green) 0%, var(--morocco-green-dark) 60%, #004D28 100%);
    transition: opacity var(--transition-base);
    z-index: 0;
}

.glass-submit:hover .glass-submit-bg {
    background: linear-gradient(135deg, var(--morocco-green-light) 0%, var(--morocco-green) 60%, var(--morocco-green-dark) 100%);
}

.glass-submit-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 35%,
            rgba(255, 255, 255, 0.08) 45%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.08) 55%,
            transparent 65%);
    transform: translateX(-100%);
    transition: none;
    z-index: 1;
}

.glass-submit:hover .glass-submit-shine {
    animation: submitShine 0.8s ease forwards;
}

@keyframes submitShine {
    to {
        transform: translateX(100%);
    }
}

.glass-submit-content,
.glass-submit-loading {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.glass-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 98, 51, 0.35), 0 0 40px rgba(0, 98, 51, 0.15);
}

.glass-submit:active {
    transform: translateY(0) scale(0.98);
}

.glass-submit:disabled {
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Spinner */
.glass-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ─── Footer (Register Link) ────────────────────────────────────── */
.glass-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.glass-footer-text {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 0.75rem;
}

.glass-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.03);
}

.glass-register-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(200, 169, 81, 0.3);
    color: var(--morocco-gold);
    transform: translateY(-1px);
}

/* ─── Security Badge ────────────────────────────────────────────── */
.login-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2rem;
    position: relative;
}

.security-pulse {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 98, 51, 0.1);
    animation: secPulse 3s ease-in-out infinite;
}

[dir="rtl"] .security-pulse {
    left: auto;
    right: 8px;
}

@keyframes secPulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-50%) scale(1.3);
        opacity: 0;
    }
}

.security-icon {
    color: rgba(0, 98, 51, 0.6);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.security-text {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

/* ─── Bottom Bar ────────────────────────────────────────────────── */
.login-bottom {
    position: relative;
    z-index: 2;
    padding: 0 2rem 1.5rem;
    text-align: center;
}

.bottom-line {
    width: 120px;
    height: 1px;
    margin: 0 auto 1rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.bottom-text {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .login-showcase {
        flex: 0 0 40%;
        padding: 2rem 1.5rem;
    }

    .showcase-title-ar {
        font-size: 2rem;
    }

    .showcase-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .login-main {
        flex-direction: column;
    }

    .login-showcase {
        flex: none;
        padding: 2rem 1.5rem 1rem;
    }

    .showcase-emblem-ring {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    .showcase-emblem {
        width: 60px;
        height: 60px;
    }

    .showcase-title-ar {
        font-size: 1.8rem;
    }

    .showcase-desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .showcase-stats {
        margin-bottom: 1rem;
    }

    .login-form-side {
        padding: 1rem 1.5rem 1.5rem;
    }

    .login-card-glass {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .glass-card-title {
        font-size: 1.4rem;
    }

    .login-lang {
        top: 1rem;
        right: 1rem;
    }

    [dir="rtl"] .login-lang {
        right: auto;
        left: 1rem;
    }

    .geo-shape {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .showcase-title-ar {
        font-size: 1.5rem;
    }

    .showcase-badge {
        padding: 8px 16px;
    }

    .showcase-stats {
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .login-card-glass {
        padding: 1.5rem 1.25rem;
    }

    .glass-input {
        padding: 12px 40px;
    }

    .glass-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .login-showcase {
        padding: 1.5rem 1rem 0.5rem;
    }

    .login-form-side {
        padding: 0.75rem 1rem 1.5rem;
    }
}

/* ================================================================
   LEGACY AUTH LAYOUT (Register, Forgot Password, Reset Password)
   ================================================================ */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

.auth-panel-left {
    flex: 0 0 42%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--morocco-green-dark) 0%, var(--morocco-green) 40%, #004020 100%);
}

.auth-panel-zellige {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, rgba(200, 169, 81, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(200, 169, 81, 0.08) 87.5%),
        linear-gradient(150deg, rgba(200, 169, 81, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(200, 169, 81, 0.08) 87.5%),
        linear-gradient(30deg, rgba(200, 169, 81, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(200, 169, 81, 0.08) 87.5%),
        linear-gradient(150deg, rgba(200, 169, 81, 0.08) 12%, transparent 12.5%, transparent 87%, rgba(200, 169, 81, 0.08) 87.5%);
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    opacity: 0.6;
}

.auth-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.auth-panel-gold-edge {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-panel-gold-edge::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--morocco-gold), transparent);
    opacity: 0.5;
}

[dir="rtl"] .auth-panel-gold-edge::after {
    right: auto;
    left: 0;
}

.auth-panel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 2rem;
    color: white;
}

.auth-emblem {
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 12px rgba(200, 169, 81, 0.4));
}

.emblem-svg {
    animation: float 6s ease-in-out infinite;
}

.auth-panel-titles {
    margin-bottom: 1.5rem;
}

.auth-panel-main-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-panel-sub-title {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--morocco-gold);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.moroccan-divider {
    width: 80px;
    height: 3px;
    margin: 1rem auto;
    background: linear-gradient(90deg, transparent, var(--morocco-gold), transparent);
    border-radius: 2px;
    position: relative;
}

.moroccan-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--morocco-gold);
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.moroccan-divider-sm {
    width: 50px;
    height: 2px;
    margin: 0.75rem auto;
    background: linear-gradient(90deg, transparent, var(--morocco-gold), transparent);
    border-radius: 2px;
}

.auth-panel-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 340px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.auth-motto-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(200, 169, 81, 0.15);
    border: 1px solid rgba(200, 169, 81, 0.3);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.motto-text {
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--morocco-gold-light);
    letter-spacing: 0.02em;
}

.auth-corner-ornament {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.25;
    z-index: 1;
}

.auth-corner-ornament::before,
.auth-corner-ornament::after {
    content: '';
    position: absolute;
    background: var(--morocco-gold);
}

.auth-corner-ornament::before {
    width: 100%;
    height: 2px;
}

.auth-corner-ornament::after {
    width: 2px;
    height: 100%;
}

.auth-corner-ornament.top-start {
    top: 20px;
    left: 20px;
}

.auth-corner-ornament.top-start::before {
    top: 0;
    left: 0;
}

.auth-corner-ornament.top-start::after {
    top: 0;
    left: 0;
}

.auth-corner-ornament.top-end {
    top: 20px;
    right: 20px;
}

.auth-corner-ornament.top-end::before {
    top: 0;
    right: 0;
}

.auth-corner-ornament.top-end::after {
    top: 0;
    right: 0;
}

.auth-corner-ornament.bottom-start {
    bottom: 20px;
    left: 20px;
}

.auth-corner-ornament.bottom-start::before {
    bottom: 0;
    left: 0;
}

.auth-corner-ornament.bottom-start::after {
    bottom: 0;
    left: 0;
}

.auth-corner-ornament.bottom-end {
    bottom: 20px;
    right: 20px;
}

.auth-corner-ornament.bottom-end::before {
    bottom: 0;
    right: 0;
}

.auth-corner-ornament.bottom-end::after {
    bottom: 0;
    right: 0;
}

.auth-panel-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: var(--bg-primary);
}

.auth-lang-switcher {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 10;
}

[dir="rtl"] .auth-lang-switcher {
    right: auto;
    left: 1.5rem;
}

.auth-lang-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.auth-lang-dropdown {
    right: 0;
    min-width: 170px;
}

[dir="rtl"] .auth-lang-dropdown {
    right: auto;
    left: 0;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-lighter);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--morocco-green), var(--morocco-gold), var(--morocco-red));
}

.moroccan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.moroccan-header-emblem {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(200, 169, 81, 0.3));
}

.moroccan-header-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.moroccan-header-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-panel-left {
        flex: none;
        min-height: 30vh;
    }

    .auth-panel-right {
        padding: 1.5rem;
    }

    .login-card {
        padding: 1.5rem;
    }
}

/* ================================================================
   FORM ELEMENTS
   ================================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-family: var(--font-ui);
}

.form-label i {
    font-size: 0.75rem;
    color: var(--morocco-green);
}

.form-input {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:hover {
    border-color: #CBD5E1;
}

.form-input:focus {
    border-color: var(--morocco-green);
    box-shadow: 0 0 0 3px rgba(0, 98, 51, 0.1);
}

.form-input.is-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #EF4444;
    margin-top: 6px;
    font-weight: 500;
}

.form-error i {
    font-size: 0.7rem;
}

/* Input Group */
.input-group {
    display: flex;
    align-items: stretch;
    position: relative;
}

.input-group .form-input {
    padding-inline-start: 44px;
    padding-inline-end: 44px;
}

.input-group-icon {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}

.input-group-append {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    z-index: 1;
    font-size: 0.85rem;
}

.input-group-append:hover {
    color: var(--morocco-green);
}

.password-toggle {
    font-size: 0.9rem;
}

/* Form Rows */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    user-select: none;
}

.form-check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--morocco-green);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check-mark {
    /* visual hook for custom checkbox if needed */
    display: none;
}

.form-check-label {
    font-weight: 500;
}

.form-link {
    font-size: 0.82rem;
    color: var(--morocco-green);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.form-link:hover {
    color: var(--morocco-green-dark);
    text-decoration: underline;
}

/* Form Footer */
.form-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-lighter);
    text-align: center;
}

.form-footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Card Bottom Ornament */
.card-bottom-ornament {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.secure-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.secure-text i {
    color: var(--morocco-green);
    font-size: 0.7rem;
}

/* Auth Copyright */
.auth-copyright {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

/* Primary */
.btn-primary {
    background: linear-gradient(135deg, var(--morocco-green), var(--morocco-green-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(0, 98, 51, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--morocco-green-light), var(--morocco-green));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 98, 51, 0.35);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Secondary */
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1.5px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--morocco-green);
    color: var(--morocco-green);
    box-shadow: var(--shadow-xs);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--morocco-green);
    border: 1.5px solid var(--morocco-green);
}

.btn-outline:hover {
    background: var(--morocco-green);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Block */
.btn-block {
    width: 100%;
}

/* Sizes */
.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

/* Login Button */
.btn-login {
    padding: 13px 28px;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    letter-spacing: 0.01em;
}

.btn-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Loading Spinner */
.loading-spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ================================================================
   DASHBOARD
   ================================================================ */
.dashboard-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Welcome Banner */
.dashboard-welcome-banner {
    position: relative;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 2.5rem 2rem;
    margin: -1.5rem -1.5rem 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--morocco-green) 0%, var(--morocco-green-dark) 50%, var(--morocco-red) 100%);
}

.dashboard-welcome-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(200, 169, 81, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.welcome-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.welcome-text {
    color: white;
    max-width: 600px;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-text h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.welcome-text p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.welcome-actions .btn {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.welcome-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.welcome-banner-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    opacity: 0.5;
    pointer-events: none;
}

[dir="rtl"] .welcome-banner-decoration {
    right: auto;
    left: -30px;
}

.welcome-star {
    animation: float 8s ease-in-out infinite;
}

/* ─── Dashboard Section ─────────────────────────────────────────── */
.dashboard-section {
    background: linear-gradient( to bottom, #0A0E16 0%, #0F1423 100% );
    border-radius: var(--radius-lg);
    color: white;
    padding: 1.5rem;
    border: 1px solid  rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-xs);
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--morocco-green);
    font-size: 0.95rem;
}

.dashboard-charts-row {
    margin-bottom: 1.5rem;
}

/* ─── Tables ────────────────────────────────────────────────────── */
.complaints-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid #666;
}

.complaints-table {
    width: 100%;
    font-size: 0.85rem;
}

.complaints-table thead {
    background: linear-gradient(135deg, rgba(0, 98, 51, 0.03), rgba(0, 98, 51, 0.01));
}

.complaints-table th {
    padding: 12px 16px;
    text-align: start;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #666;
    white-space: nowrap;
}

.complaints-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #666;
    color: var(--text-secondary);
    vertical-align: middle;
}

.complaints-table tbody tr {
    transition: background var(--transition-fast);
}

.complaints-table tbody tr:hover {
    background: rgba(0, 98, 51, 0.02);
}

.complaints-table tbody tr:last-child td {
    border-bottom: none;
}

/* ─── Reference Badge ───────────────────────────────────────────── */
.ref-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(0, 98, 51, 0.08);
    color: var(--morocco-green);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Inter', monospace;
    letter-spacing: 0.02em;
}

/* ─── Badges ────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge i {
    font-size: 0.65rem;
}

/* Status badges */
.badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.badge-in_progress {
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
}

.badge-assigned {
    background: rgba(139, 92, 246, 0.1);
    color: #7C3AED;
}

.badge-resolved {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.badge-closed {
    background: rgba(107, 114, 128, 0.1);
    color: #4B5563;
}

/* Priority badges */
.badge-low {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.badge-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.badge-high {
    background: rgba(249, 115, 22, 0.1);
    color: #EA580C;
}

.badge-critical {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

/* ─── Empty State ───────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.empty-state .btn {
    margin-top: 0.5rem;
}

/* ─── Recent Users ──────────────────────────────────────────────── */
.recent-users-list {
    max-height: 360px;
    overflow-y: auto;
}

.recent-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    margin-bottom: 4px;
    cursor: default;
}

.recent-user-item:hover {
    background: rgba(0, 98, 51, 0.04);
}

/* ─── Quick Action Card ─────────────────────────────────────────── */
.quick-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-lighter);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    cursor: pointer;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

/* ================================================================
   RESPONSIVE — Breakpoints
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .dashboard-welcome-banner {
        padding: 2rem 1.5rem;
    }

    .welcome-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .welcome-text h1 {
        font-size: 1.5rem;
    }

    .welcome-banner-decoration {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --navbar-height: 58px;
    }

    .navbar-gold-line {
        height: 2px;
    }

    .navbar-container {
        padding: 0 0.75rem;
    }

    .navbar-brand {
        gap: 8px;
    }

    .navbar-emblem-wrap {
        width: 36px;
        height: 36px;
    }

    .navbar-emblem svg {
        width: 30px;
        height: 30px;
    }

    .navbar-emblem-glow {
        display: none;
    }

    .navbar-title-french {
        display: none;
    }

    .navbar-title-arabic {
        font-size: 0.92rem;
    }

    .navbar-badge-gov {
        display: none !important;
    }

    .navbar-sep {
        display: none;
    }

    .navbar-actions {
        gap: 4px;
    }

    /* Lang select compact on mobile */
    .lang-switcher {
        border-radius: var(--radius-sm);
    }

    .lang-switcher-icon {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }

    .lang-select {
        font-size: 0.72rem;
        padding: 5px 24px 5px 6px;
        min-width: 65px;
        background-position: calc(100% - 6px) center;
    }

    [dir="rtl"] .lang-select {
        background-position: 6px center;
    }

    /* User menu compact */
    .user-menu-btn {
        padding: 4px 8px 4px 4px;
    }

    .user-menu-chevron {
        display: none;
    }

    .user-dropdown {
        right: -12px;
        min-width: 220px;
    }

    /* Auth Pages — stack vertically */
    .auth-container {
        flex-direction: column;
    }

    .auth-panel-left {
        flex: 0 0 auto;
        min-height: 220px;
        max-height: 280px;
    }

    .auth-panel-content {
        padding: 2rem 1.5rem;
    }

    .auth-panel-main-title {
        font-size: 1.5rem;
    }

    .auth-panel-sub-title {
        font-size: 1rem;
    }

    .auth-panel-description {
        display: none;
    }

    .auth-corner-ornament {
        display: none;
    }

    .auth-panel-right {
        padding: 1.5rem 1rem;
    }

    .login-card {
        padding: 1.75rem 1.5rem;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }

    .moroccan-header-title {
        font-size: 1.3rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    /* Dashboard */
    .dashboard-welcome-banner {
        margin: -1.5rem -1rem 1.5rem;
        padding: 1.75rem 1.25rem;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .welcome-text h1 {
        font-size: 1.25rem;
    }

    .welcome-text p {
        font-size: 0.82rem;
    }

    .welcome-actions {
        width: 100%;
    }

    .welcome-actions .btn {
        flex: 1;
        font-size: 0.82rem;
        padding: 10px 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .card-stat {
        padding: 1.1rem;
    }

    .card-stat-value {
        font-size: 1.4rem;
    }

    .card-stat-label {
        font-size: 0.7rem;
    }

    .dashboard-section {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .section-header h2 {
        font-size: 0.95rem;
    }

    .complaints-table th,
    .complaints-table td {
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-morocco {
        padding: 2.5rem 1.5rem 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .card-stat-value {
        font-size: 1.5rem;
    }

    .welcome-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
    }

    .moroccan-header-title {
        font-size: 1.15rem;
    }

    .auth-lang-switcher {
        top: 0.75rem;
        right: 0.75rem;
    }

    [dir="rtl"] .auth-lang-switcher {
        right: auto;
        left: 0.75rem;
    }
}

/* ─── PRINT ─────────────────────────────────────────────────────── */
@media print {

    .navbar-morocco,
    .footer-morocco,
    .welcome-actions,
    .lang-switcher,
    .user-menu,
    .quick-action-card {
        display: none !important;
    }

    .dashboard-welcome-banner {
        margin: 0;
        border-radius: 0;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .dashboard-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .card-stat {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
    }
}

/* ─── RTL SUPPORT ───────────────────────────────────────────────── */
[dir="rtl"] .navbar-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-title {
    text-align: right;
}

[dir="rtl"] .welcome-text {
    text-align: right;
}

[dir="rtl"] .section-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .section-header h2 {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-stat-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-stat-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-stat-period {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

[dir="rtl"] .form-label {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

[dir="rtl"] .complaints-table th,
[dir="rtl"] .complaints-table td {
    text-align: right;
}

[dir="rtl"] .moroccan-header {
    text-align: center;
}

[dir="rtl"] .auth-panel-content {
    text-align: center;
}

/* ─── SELECTION ─────────────────────────────────────────────────── */
::selection {
    background: rgba(0, 98, 51, 0.15);
    color: var(--morocco-green-dark);
}

/* ─── SCROLLBAR ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ─── FOCUS VISIBLE ─────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--morocco-green);
    outline-offset: 2px;
}

/* ─── REDUCED MOTION ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}


/* ================================================================
   REGISTER PAGE — Futuristic Extension
   ================================================================ */

/* Main layout — scrollable */
.reg-main {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

.reg-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    overflow-y: auto;
}

.reg-card {
    max-width: 560px;
}

/* Step Title */
.reg-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.reg-step-title:first-of-type {
    margin-top: 0;
}

.reg-step-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--morocco-green), var(--morocco-green-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-ui);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 98, 51, 0.3);
}

.reg-step-title>span:last-child {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-ui);
}

/* Type Selection Cards Grid */
.type-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 0.5rem;
}

.type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-ui);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.type-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.type-card-active {
    border-color: var(--morocco-gold) !important;
    background: rgba(200, 169, 81, 0.08) !important;
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.1), 0 4px 16px rgba(200, 169, 81, 0.1);
}

.type-card-active:hover {
    transform: translateY(-2px);
}

.type-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    transition: transform var(--transition-base);
}

.type-card-active .type-card-icon-wrap {
    transform: scale(1.08);
}

.type-card-icon-wrap i {
    font-size: 1.1rem;
}

.type-card-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.01em;
}

.type-card-active .type-card-label {
    color: var(--morocco-gold);
}

.type-card-desc {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.3;
}

.type-card-active .type-card-desc {
    color: rgba(255, 255, 255, 0.5);
}

.type-card-check {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    color: var(--morocco-gold);
    font-size: 0.8rem;
    animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[dir="rtl"] .type-card-check {
    right: auto;
}

@keyframes checkPop {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Delegate Fields */
.reg-delegate-fields {
    padding-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Fields Grid (2 columns) */
.reg-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Register Responsive */
@media (max-width: 768px) {
    .reg-main {
        flex-direction: column;
    }

    .reg-form-side {
        padding: 1rem 1.5rem 1.5rem;
    }

    .reg-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .type-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .type-card {
        padding: 12px 8px;
    }

    .type-card-icon-wrap {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .type-card-icon-wrap i {
        font-size: 0.95rem;
    }

    .type-card-label {
        font-size: 0.78rem;
    }

    .type-card-desc {
        font-size: 0.62rem;
    }

    .reg-fields-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .reg-form-side {
        padding: 0.75rem 1rem 1.5rem;
    }

    .reg-card {
        padding: 1.5rem 1.25rem;
    }

    .reg-step-title {
        margin-top: 1rem;
    }
}

select option {
    color: black;
    /* obligatoire */
    background: white;
    /* obligatoire */
}

select optgroup {
    color: #999999;
    /* obligatoire */
    background: white;
    /* obligatoire */
}

/************************************************************
***
*** UPLOAD DROPZONE STYLE
***
*************************************************************/
.drop-zone {
    border: 1.5px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: var(--transition-base);
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: var(--morocco-gold);
    box-shadow: var(--shadow-glow-gold);
    transform: translateY(-2px);
}

.drop-zone i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--morocco-gold);
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-zone-big {
    color: #FFF;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.drop-zone-big:hover {
    border-color: var(--morocco-gold);
    background: rgba(200, 169, 81, 0.05);
    transform: translateY(-2px);
}

.preview-img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 12px;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--morocco-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.drop-zone-big {
    cursor: pointer;
    position: relative;
}

.drop-zone-big:hover {
    transform: scale(1.01);
}

.drop-zone-big input {
    display: none;
}


/* ================================================================
   COMPLAINTS — Forms, Detail, Table, Statuses
   ================================================================ */

/* ─── Form Extensions ─────────────────────────────────────────── */
.form-select {
    width: 100%;
    padding: 11px 16px;
    padding-inline-end: 40px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-card);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 14px;
    transition: all var(--transition-fast);
    outline: none;
    cursor: pointer;
}

[dir="rtl"] .form-select {
    background-position: 12px center;
}

.form-select:hover {
    border-color: #CBD5E1;
}

.form-select:focus {
    border-color: var(--morocco-green);
    box-shadow: 0 0 0 3px rgba(0, 98, 51, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-required {
    color: var(--morocco-red);
    font-weight: 700;
}

.form-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

.form-input-error {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-lighter);
}

/* Custom checkbox for form-check */
.form-check-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    background: var(--bg-card);
}

.form-check-box i {
    font-size: 0.6rem;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition-fast);
}

.form-check-input:checked+.form-check-box {
    background: var(--morocco-green);
    border-color: var(--morocco-green);
    box-shadow: 0 0 6px rgba(0, 98, 51, 0.25);
}

.form-check-input:checked+.form-check-box i {
    opacity: 1;
    transform: scale(1);
}

/* ─── Empty State ──────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 98, 51, 0.08), rgba(200, 169, 81, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state-icon i {
    font-size: 2rem;
    color: var(--morocco-green);
    opacity: 0.6;
}

.empty-state-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state .btn {
    margin-top: 0.5rem;
}

/* ─── Badges ────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.badge i {
    font-size: 0.6rem;
}

.badge-lg {
    padding: 6px 14px;
    font-size: 0.78rem;
    gap: 6px;
}

.badge-lg i {
    font-size: 0.7rem;
}

.badge-category {
    background: rgba(0, 98, 51, 0.08);
    color: var(--morocco-green);
    border: 1px solid rgba(0, 98, 51, 0.15);
}

/* Priority Badges */
.priority-low {
    background: rgba(107, 114, 128, 0.08);
    color: #6B7280;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

.priority-medium {
    background: rgba(59, 130, 246, 0.08);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.priority-high {
    background: rgba(245, 158, 11, 0.08);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.priority-urgent {
    background: rgba(249, 115, 22, 0.08);
    color: #F97316;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.priority-critical {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Status Badges */
.status-pending {
    background: rgba(107, 114, 128, 0.08);
    color: #6B7280;
    border: 1px solid rgba(107, 114, 128, 0.15);
}

.status-progress {
    background: rgba(59, 130, 246, 0.08);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.status-assigned {
    background: rgba(168, 85, 247, 0.08);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.status-resolved {
    background: rgba(16, 185, 129, 0.08);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.08);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.status-closed {
    background: rgba(107, 114, 128, 0.06);
    color: #9CA3AF;
    border: 1px solid rgba(107, 114, 128, 0.12);
}

.status-archived {
    background: rgba(107, 114, 128, 0.04);
    color: #D1D5DB;
    border: 1px solid rgba(107, 114, 128, 0.1);
}

/* ─── Complaint Table Cells ────────────────────────────────────── */
.complaint-ref {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--morocco-green);
    letter-spacing: 0.02em;
}

.complaint-subject {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.complaint-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.complaint-date-inline {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.complaint-date-inline i {
    font-size: 0.7rem;
}

/* ─── Complaint Meta Row ───────────────────────────────────────── */
.complaint-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* ─── Complaint Detail Grid ────────────────────────────────────── */
.complaint-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.complaint-detail-main,
.complaint-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.complaint-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
}

.complaint-detail-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.complaint-detail-title i {
    font-size: 0.8rem;
    color: var(--morocco-green);
}

.complaint-detail-text {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.complaint-description {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Response Card */
.complaint-response-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(0, 98, 51, 0.04));
    border-color: rgba(16, 185, 129, 0.15);
}

/* ─── Complaint Sidebar ────────────────────────────────────────── */
.complaint-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
}

.complaint-sidebar-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-lighter);
}

.complaint-sidebar-title i {
    font-size: 0.78rem;
    color: var(--morocco-green);
}

.complaint-sidebar-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.complaint-sidebar-field:last-child {
    margin-bottom: 0;
}

.sidebar-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ─── Status Timeline ──────────────────────────────────────────── */
.status-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 1rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 1px;
    background: var(--border-lighter);
}

.timeline-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--morocco-green);
    border: 2px solid rgba(0, 98, 51, 0.2);
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
}

.timeline-arrow {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin: 0 4px;
}

.timeline-from {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: inline-block;
}

.timeline-date {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.timeline-comment {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

/* ─── Complaint Attachments ────────────────────────────────────── */
.complaint-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.complaint-attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(0, 98, 51, 0.03);
    border: 1px solid var(--border-lighter);
    transition: all var(--transition-fast);
}

.complaint-attachment-item:hover {
    background: rgba(0, 98, 51, 0.06);
}

.complaint-attachment-item i {
    font-size: 0.9rem;
    color: var(--morocco-green);
    width: 18px;
    text-align: center;
}

.attachment-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-size {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ─── Complaint Comments ───────────────────────────────────────── */
.complaint-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.complaint-comment-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-lighter);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-author i {
    color: var(--morocco-green);
    font-size: 0.78rem;
}

.comment-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Pagination ────────────────────────────────────────────────── */
.pagination-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .complaint-detail-grid {
        grid-template-columns: 1fr;
    }

    .complaint-meta-row {
        gap: 0.4rem;
    }
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    .complaint-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}