/* ============================================================
   MOBIGLASS HOLOGRAPHIC — Events Interface
   Squadron 42 / Star Citizen inspired holographic UI
   ============================================================ */

/* ── Holo variables alignées sur la nouvelle palette ── */
:root {
    --holo-cyan:       #41C9A8;
    --holo-cyan-dim:   rgba(65, 201, 168, 0.10);
    --holo-cyan-mid:   rgba(65, 201, 168, 0.32);
    --holo-cyan-glow:  rgba(65, 201, 168, 0.55);
    --holo-white:      rgba(255, 255, 255, 0.92);
    --holo-amber:      #C8A52A;
    --holo-amber-dim:  rgba(200, 165, 42, 0.25);
    --holo-green:      #41C9A8;
    --holo-green-dim:  rgba(65, 201, 168, 0.22);
    --holo-red:        #f87171;
    --holo-orange:     #D85B1F;
    --holo-orange-dim: rgba(216, 91, 31, 0.20);
    --holo-depth1:     rgba(8, 13, 20, 0.88);
    --holo-depth2:     rgba(8, 13, 20, 0.95);
    --holo-border:     rgba(65, 201, 168, 0.32);
    --holo-border-hi:  rgba(65, 201, 168, 0.75);
    --holo-metal:      #576070;
    --holo-gold:       #C8A52A;
    --holo-gold-dark:  #9E7E18;
    --holo-gold-dark:  #9E7E18;
}

/* ============================================================
   EVENTS VIEW — Holographic Projection Environment
   ============================================================ */

#events-view {
    position: relative;
}

/* Hex grid background overlay */
#events-view::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104'%3E%3Cpolygon points='30,2 58,17 58,47 30,62 2,47 2,17' fill='none' stroke='rgba(65,201,168,0.045)' stroke-width='0.8'/%3E%3Cpolygon points='30,54 58,69 58,99 30,114 2,99 2,69' fill='none' stroke='rgba(65,201,168,0.045)' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: 60px 104px;
    opacity: 1;
    animation: holo-hex-drift 40s linear infinite;
}

/* Projection source glow — centre bas */
#events-view::after {
    content: '';
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center bottom,
        rgba(65, 201, 168, 0.08) 0%,
        rgba(65, 201, 168, 0.04) 40%,
        transparent 70%);
    animation: holo-projector-pulse 5s ease-in-out infinite;
}

@keyframes holo-hex-drift {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 104px; }
}

@keyframes holo-projector-pulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleY(1); }
    50%       { opacity: 1;   transform: translateX(-50%) scaleY(1.08); }
}

/* ============================================================
   MOBIGLASS HEADER BAR
   ============================================================ */

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0 2rem;
    padding: 1.5rem 2rem 1.5rem 2.5rem;
    position: relative;
    background: linear-gradient(90deg,
        rgba(14, 21, 32, 0.95) 0%,
        rgba(20, 29, 42, 0.85) 100%);
    border: 1px solid rgba(65, 201, 168, 0.15);
    border-left: 3px solid #C8A52A;
    border-top: 1px solid rgba(200, 165, 42, 0.5);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
    box-shadow:
        0 0 30px rgba(200, 165, 42, 0.06),
        inset 0 0 60px rgba(200, 165, 42, 0.02);
    overflow: visible;
    z-index: 2;
}

/* Top luminous line → gold */
.events-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        #C8A52A 0%,
        rgba(200, 165, 42, 0.4) 50%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(200, 165, 42, 0.6), 0 0 25px rgba(200, 165, 42, 0.2);
}

/* MobiGlass status readout — right side */
.events-header::after {
    content: 'MOBIGLASS v4.2 // REGISTRE DES OPÉRATIONS // SYNCHRO: ACTIF ▮';
    position: absolute;
    top: -22px; left: 2.5rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 2.5px;
    color: var(--holo-cyan);
    opacity: 0.6;
    animation: holo-readout-blink 3s step-end infinite;
}

@keyframes holo-readout-blink {
    0%, 89% { opacity: 0.6; }
    90%, 94% { opacity: 0; }
    95%, 100% { opacity: 0.6; }
}

.events-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--holo-white);
    text-shadow:
        0 0 10px var(--holo-cyan),
        0 0 25px rgba(65, 201, 168, 0.5),
        0 0 50px rgba(65, 201, 168, 0.2);
    position: relative;
}

/* Pulsing dot indicator on title */
.events-header h2::before {
    content: '◉ ';
    color: var(--holo-green);
    font-size: 0.7em;
    text-shadow: 0 0 8px var(--holo-green), 0 0 20px var(--holo-green);
    animation: holo-dot-pulse 2s ease-in-out infinite;
}

@keyframes holo-dot-pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 8px var(--holo-green), 0 0 20px var(--holo-green); }
    50%       { opacity: 0.4; text-shadow: none; }
}

/* Status panel — top right of header */
.holo-status-panel {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-right: 1.5rem;
}

.holo-status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.holo-status-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 2px;
    color: rgba(65, 201, 168, 0.5);
    text-transform: uppercase;
}

.holo-status-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 1px;
    color: var(--holo-green);
    text-shadow: 0 0 6px var(--holo-green);
}

/* ============================================================
   HOLOGRAPHIC FILTER BAR
   ============================================================ */

.filters-section {
    display: flex;
    gap: 0.75rem;
    margin: 0.5rem 0 2.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.filters-section::before {
    content: 'FILTRES //';
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(65, 201, 168, 0.4);
    align-self: center;
    white-space: nowrap;
}

.search-input,
.filter-select {
    padding: 0.65rem 1.2rem;
    background: rgba(14, 21, 32, 0.8);
    border: 1px solid var(--holo-border);
    border-radius: 0;
    color: var(--holo-white);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 1px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    color-scheme: dark;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
    position: relative;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--holo-cyan);
    box-shadow:
        0 0 0 1px rgba(65, 201, 168, 0.25),
        0 0 20px rgba(65, 201, 168, 0.12),
        inset 0 0 20px rgba(65, 201, 168, 0.04);
    background: rgba(20, 29, 42, 0.9);
}

.search-input::placeholder {
    color: rgba(65, 201, 168, 0.3);
    font-style: normal;
}

.filter-select option {
    background: var(--bg-main);
    color: var(--text-primary);
}

/* ============================================================
   EVENTS GRID
   ============================================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
    margin: 1rem 0 4rem;
    position: relative;
    z-index: 2;
}

/* ============================================================
   HOLOGRAPHIC EVENT CARD
   ============================================================ */

.event-card {
    position: relative;
    background:
        linear-gradient(145deg,
            rgba(65, 201, 168, 0.04) 0%,
            rgba(14, 21, 32, 0.88) 30%,
            rgba(14, 21, 32, 0.92) 100%);
    border: 1px solid var(--holo-border);
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    clip-path: polygon(
        0 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0 calc(100% - 20px),
        0 0
    );
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(65, 201, 168, 0.02);
    animation: holo-card-float 6s ease-in-out infinite;
    overflow: hidden;
}

/* Stagger float animations */
.event-card:nth-child(2n)  { animation-delay: -2s; }
.event-card:nth-child(3n)  { animation-delay: -4s; }
.event-card:nth-child(4n)  { animation-delay: -1s; }
.event-card:nth-child(5n)  { animation-delay: -3s; }

@keyframes holo-card-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-5px); }
}

/* Vertical left accent bar */
.event-card::before {
    content: '';
    position: absolute;
    top: 20px; bottom: 20px; left: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--holo-cyan) 30%,
        rgba(65, 201, 168, 0.6) 70%,
        transparent 100%);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 5;
}

/* Scan-line sweep overlay */
.event-card::after {
    content: '';
    position: absolute;
    top: -5%;
    left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(65, 201, 168, 0.035) 50%,
        transparent 100%);
    z-index: 4;
    pointer-events: none;
    animation: holo-scanline-sweep 4s linear infinite;
    animation-play-state: paused;
}

@keyframes holo-scanline-sweep {
    0%   { top: -40%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

.event-card:hover::after {
    animation-play-state: running;
}

.event-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 8px var(--holo-cyan), 0 0 16px rgba(65, 201, 168, 0.4);
}

.event-card:hover {
    border-color: var(--holo-border-hi);
    box-shadow:
        0 0 0 1px rgba(65, 201, 168, 0.2),
        0 0 40px rgba(65, 201, 168, 0.18),
        0 0 80px rgba(65, 201, 168, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(65, 201, 168, 0.04);
    animation-play-state: paused;
    transform: translateY(-6px) scale(1.012);
}

/* ── Corner brackets ── */
.holo-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 10;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    opacity: 0.4;
}
.event-card:hover .holo-corner { opacity: 1; }

.holo-corner-tl {
    top: 4px; left: 4px;
    border-top: 1.5px solid var(--holo-cyan);
    border-left: 1.5px solid var(--holo-cyan);
}
.holo-corner-tr {
    top: 4px; right: 4px;
    border-top: 1.5px solid var(--holo-cyan);
    border-right: 1.5px solid var(--holo-cyan);
}
.holo-corner-bl {
    bottom: 4px; left: 4px;
    border-bottom: 1.5px solid var(--holo-cyan);
    border-left: 1.5px solid var(--holo-cyan);
}
.holo-corner-br {
    bottom: 4px; right: 4px;
    border-bottom: 1.5px solid var(--holo-cyan);
    border-right: 1.5px solid var(--holo-cyan);
}

/* ── Card ID label (top-right) ── */
.holo-card-id {
    position: absolute;
    top: 8px; right: 22px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 2px;
    color: rgba(65, 201, 168, 0.35);
    z-index: 10;
    transition: color 0.3s ease;
}
.event-card:hover .holo-card-id { color: rgba(65, 201, 168, 0.65); }

/* ── Glitch line (horizontal flicker) ── */
.holo-glitch-line {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(65, 201, 168, 0.5) 30%,
        rgba(65, 201, 168, 0.2) 70%,
        transparent 100%);
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    animation: holo-glitch-trigger 8s step-end infinite;
}

@keyframes holo-glitch-trigger {
    0%, 85%  { top: 40%; opacity: 0; }
    86%       { top: 40%; opacity: 0.6; }
    87%       { top: 60%; opacity: 0.4; }
    88%       { top: 30%; opacity: 0.5; }
    89%, 100% { opacity: 0; }
}

/* ── Scanlines texture overlay ── */
.holo-scanlines-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 3px
    );
}

/* ── Inner content wrapper ── */
.event-card-inner {
    padding: 1.6rem 1.75rem 1.5rem;
    position: relative;
    z-index: 7;
}

/* ── Category badge ── */
.event-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(65, 201, 168, 0.08);
    border: 1px solid rgba(65, 201, 168, 0.35);
    color: var(--holo-cyan);
    padding: 0.2rem 0.75rem;
    border-radius: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* ── Event title ── */
.event-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0.5rem 0 1rem;
    color: var(--holo-white);
    line-height: 1.35;
    text-shadow: 0 0 15px rgba(65, 201, 168, 0.25);
    transition: text-shadow 0.3s ease;
}

.event-card:hover .event-title {
    text-shadow: 0 0 20px rgba(65, 201, 168, 0.5), 0 0 40px rgba(65, 201, 168, 0.2);
}

/* ── Event info rows ── */
.event-info {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.75rem 0;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(65, 201, 168, 0.65);
    letter-spacing: 0.2px;
}

/* Replace emoji icons with HUD style */
.event-info-item::before {
    content: '▸';
    color: var(--holo-cyan);
    opacity: 0.7;
    font-size: 0.65rem;
}

/* ── Description ── */
.event-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.65;
    margin: 0.5rem 0 1rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.3px;
}

/* ── Holographic capacity bar ── */
.holo-capacity-bar {
    position: relative;
    height: 3px;
    background: rgba(65, 201, 168, 0.1);
    margin: 0.75rem 0 1rem;
    border: 1px solid rgba(65, 201, 168, 0.15);
    overflow: hidden;
}

.holo-capacity-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg,
        rgba(65, 201, 168, 0.4) 0%,
        var(--holo-cyan) 80%,
        rgba(65, 201, 168, 0.8) 100%);
    box-shadow: 0 0 6px var(--holo-cyan), 2px 0 8px rgba(65, 201, 168, 0.6);
    transition: width 0.8s ease;
}

/* Bar fill animation on load */
.holo-capacity-fill {
    animation: holo-bar-load 1s ease-out both;
}

@keyframes holo-bar-load {
    from { width: 0% !important; opacity: 0; }
}

/* Capacity full = amber warning */
.holo-capacity-fill.full {
    background: linear-gradient(90deg,
        rgba(200, 165, 42, 0.4) 0%,
        var(--holo-gold) 100%);
    box-shadow: 0 0 6px var(--holo-gold);
}

/* ── Footer ── */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(65, 201, 168, 0.1);
    position: relative;
}

.event-footer::before {
    content: '';
    position: absolute;
    top: -1px; left: 0;
    width: 40px; height: 1px;
    background: var(--holo-cyan);
    box-shadow: 0 0 6px var(--holo-cyan);
}

/* ── Participants counter ── */
.event-participants {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: var(--holo-green);
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px var(--holo-green-dim);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.event-participants-label {
    font-size: 0.52rem;
    color: rgba(65, 201, 168, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── Card load-in animation ── */
@keyframes holo-card-materialize {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
        filter: blur(4px);
    }
    60% {
        opacity: 0.8;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.event-card {
    animation: holo-card-materialize 0.5s ease-out both, holo-card-float 6s ease-in-out infinite;
}

.event-card:nth-child(1)  { animation-delay: 0.05s, 0s; }
.event-card:nth-child(2)  { animation-delay: 0.12s, -2s; }
.event-card:nth-child(3)  { animation-delay: 0.19s, -4s; }
.event-card:nth-child(4)  { animation-delay: 0.26s, -1s; }
.event-card:nth-child(5)  { animation-delay: 0.33s, -3s; }
.event-card:nth-child(6)  { animation-delay: 0.4s,  -5s; }

/* Hover stops float */
.event-card:hover {
    animation: holo-card-float 0s none;
}

/* ============================================================
   HOLOGRAPHIC BUTTON — override existing btn-primary
   ============================================================ */

#events-view .btn-primary,
#events-view .btn.btn-primary {
    background: transparent;
    border: 1px solid var(--holo-cyan);
    color: var(--holo-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 2px;
    padding: 0.55rem 1.2rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    text-shadow: 0 0 8px rgba(65, 201, 168, 0.5);
    box-shadow: 0 0 12px rgba(65, 201, 168, 0.12),
                inset 0 0 12px rgba(65, 201, 168, 0.04);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#events-view .btn-primary::before,
#events-view .btn.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(65, 201, 168, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

#events-view .btn-primary:hover::before,
#events-view .btn.btn-primary:hover::before {
    transform: translateX(100%);
}

#events-view .btn-primary:hover,
#events-view .btn.btn-primary:hover {
    background: rgba(65, 201, 168, 0.1);
    box-shadow: 0 0 20px rgba(65, 201, 168, 0.3),
                inset 0 0 20px rgba(65, 201, 168, 0.08);
    color: #ffffff;
}

/* ── Create Event button in header ── */
#create-event-btn {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    border: 1px solid var(--holo-green);
    color: var(--holo-green);
    background: rgba(65, 201, 168, 0.06);
    padding: 0.6rem 1.4rem;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    text-shadow: 0 0 8px var(--holo-green);
    box-shadow: 0 0 16px rgba(65, 201, 168, 0.15);
    transition: all 0.25s ease;
    cursor: pointer;
    text-transform: uppercase;
}

#create-event-btn:hover {
    background: rgba(65, 201, 168, 0.12);
    box-shadow: 0 0 28px rgba(65, 201, 168, 0.3);
}

/* ============================================================
   HOLOGRAPHIC OCCASIONAL FLICKER — whole card
   ============================================================ */

@keyframes holo-card-flicker {
    0%, 92%, 100% { opacity: 1; }
    93%  { opacity: 0.85; }
    94%  { opacity: 1; }
    95%  { opacity: 0.9; }
    96%  { opacity: 1; }
}

.event-card {
    animation:
        holo-card-materialize 0.5s ease-out both,
        holo-card-float 6s ease-in-out 0.5s infinite,
        holo-card-flicker 12s step-end infinite;
}

.event-card:nth-child(2n)  { animation-delay: 0.12s, -2s, -3s; }
.event-card:nth-child(3n)  { animation-delay: 0.19s, -4s, -7s; }
.event-card:nth-child(4n)  { animation-delay: 0.26s, -1s, -2s; }

.event-card:hover {
    animation: none;
    opacity: 1;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

#events-list:empty::after,
.events-grid > p {
    grid-column: 1/-1;
    text-align: center;
    color: rgba(65, 201, 168, 0.4) !important;
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 0.85rem !important;
    letter-spacing: 2px !important;
    padding: 4rem 2rem !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    .events-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        clip-path: none;
    }
    .holo-status-panel { display: none; }
    .filters-section::before { display: none; }
}

/* ============================================================
   MOBIGLASS — EVENT DETAIL PAGE
   ============================================================ */

#event-detail-view {
    position: relative;
}

/* Override the generic form-container for detail view */
#event-detail-view .form-container {
    max-width: 1080px;
    background:
        linear-gradient(160deg, rgba(65, 201, 168, 0.04) 0%, rgba(14, 21, 32, 0.95) 40%),
        rgba(8, 13, 20, 0.97);
    border: 1px solid var(--holo-border);
    box-shadow:
        0 0 60px rgba(65, 201, 168, 0.07),
        0 30px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 100px rgba(65, 201, 168, 0.02);
}

#event-detail-view .form-container::before {
    content: '■ MOBIGLASS // DÉTAIL DE MISSION // ACCÈS AUTORISÉ ▮';
    color: var(--holo-cyan);
    opacity: 0.5;
    letter-spacing: 2.5px;
    background: linear-gradient(90deg, rgba(8, 13, 20, 0.98) 0%, rgba(20, 29, 42, 0.95) 100%);
    border-bottom-color: var(--holo-border);
}

#event-detail-view .form-container::after {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--holo-cyan) 30%,
        rgba(65, 201, 168, 0.5) 70%,
        transparent 100%);
    box-shadow: 0 0 12px var(--holo-cyan), 0 0 30px rgba(65, 201, 168, 0.3);
    height: 2px;
}

/* ── Back button ── */
#event-detail-view .btn-secondary {
    background: transparent;
    border: 1px solid rgba(65, 201, 168, 0.3);
    color: rgba(65, 201, 168, 0.6);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 2px;
    padding: 0.55rem 1.2rem;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    transition: all 0.2s ease;
}
#event-detail-view .btn-secondary:hover {
    border-color: var(--holo-cyan);
    color: var(--holo-cyan);
    box-shadow: 0 0 16px rgba(65, 201, 168, 0.2);
}

/* ── Mission banner (title area) ── */
.holo-mission-banner {
    position: relative;
    padding: 2rem 2rem 2rem 2.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg,
        rgba(65, 201, 168, 0.06) 0%,
        rgba(14, 21, 32, 0.9) 100%);
    border: 1px solid var(--holo-border);
    border-left: 3px solid var(--holo-cyan);
    clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
    overflow: hidden;
}

.holo-mission-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        var(--holo-cyan), rgba(65,201,168,0.3), transparent);
    box-shadow: 0 0 10px var(--holo-cyan);
}

/* Animated scanline on banner */
.holo-mission-banner::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 60px;
    background: linear-gradient(180deg,
        transparent, rgba(65,201,168,0.04), transparent);
    animation: holo-banner-scan 5s linear infinite;
    pointer-events: none;
}

@keyframes holo-banner-scan {
    0%   { top: -60px; }
    100% { top: 110%; }
}

.holo-mission-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.holo-mission-id {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 3px;
    color: rgba(65, 201, 168, 0.4);
}

.holo-mission-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 0.25rem 0.9rem;
    border: 1px solid;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.holo-mission-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--holo-white);
    text-shadow:
        0 0 15px rgba(65, 201, 168, 0.4),
        0 0 40px rgba(65, 201, 168, 0.15);
    line-height: 1.2;
    margin: 0.5rem 0 1rem;
}

.holo-mission-category {
    display: inline-flex;
    align-items: center;
    background: rgba(65, 201, 168, 0.08);
    border: 1px solid rgba(65, 201, 168, 0.35);
    color: var(--holo-cyan);
    padding: 0.2rem 0.9rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* ── Two-column layout ── */
.holo-detail-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ── Holographic section panel ── */
.holo-panel {
    position: relative;
    background: rgba(14, 21, 32, 0.7);
    border: 1px solid var(--holo-border);
    padding: 1.75rem;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.holo-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        var(--holo-cyan), rgba(65,201,168,0.3), transparent 80%);
    opacity: 0.7;
}

/* Corner accent */
.holo-panel::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent rgba(65, 201, 168, 0.15) transparent;
}

.holo-panel-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 3px;
    color: var(--holo-cyan);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.holo-panel-title::before {
    content: '◉';
    font-size: 0.5rem;
    color: var(--holo-green);
    text-shadow: 0 0 6px var(--holo-green);
    animation: holo-dot-pulse 2s ease-in-out infinite;
}

.holo-panel-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--holo-border), transparent);
    margin-bottom: 1.5rem;
    margin-top: -1rem;
}

/* ── Data rows ── */
.holo-data-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: start;
}

.holo-data-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(65, 201, 168, 0.4);
    text-transform: uppercase;
    padding-top: 0.1rem;
}

.holo-data-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.2px;
}

.holo-data-value.highlight {
    color: var(--holo-cyan);
    text-shadow: 0 0 8px rgba(65, 201, 168, 0.4);
}

/* ── Description text ── */
.holo-description-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(138, 155, 171, 0.7);
    letter-spacing: 0.3px;
}

.holo-requirements-box {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(65, 201, 168, 0.04);
    border-left: 2px solid rgba(65, 201, 168, 0.3);
}

.holo-requirements-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(65, 201, 168, 0.5);
    margin-bottom: 0.5rem;
    display: block;
}

/* ── JOIN PANEL ── */
.holo-join-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.holo-join-status-ok {
    padding: 1rem;
    text-align: center;
    background: transparent;
    border: 1px solid rgba(200, 165, 42, 0.5);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #C8A52A;
    text-shadow: 0 0 8px rgba(200, 165, 42, 0.35);
}

.holo-join-status-full {
    padding: 1rem;
    text-align: center;
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.3);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: var(--holo-red);
}

.holo-capacity-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 2px;
    color: rgba(65, 201, 168, 0.4);
    margin-bottom: 0.4rem;
    display: block;
}

/* ── Btn overrides for detail view ── */
#event-detail-view .btn-primary {
    background: transparent;
    border: 1px solid var(--holo-cyan);
    color: var(--holo-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 2px;
    padding: 0.75rem 1.2rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    text-shadow: 0 0 8px rgba(65, 201, 168, 0.5);
    box-shadow: 0 0 12px rgba(65, 201, 168, 0.12), inset 0 0 12px rgba(65, 201, 168, 0.04);
    width: 100%;
    transition: all 0.2s ease;
    cursor: pointer;
}
#event-detail-view .btn-primary:hover:not(:disabled) {
    background: rgba(65, 201, 168, 0.1);
    box-shadow: 0 0 24px rgba(65, 201, 168, 0.3);
    color: #fff;
}
#event-detail-view .btn-primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(65, 201, 168, 0.2);
}

#event-detail-view .btn-success {
    background: transparent;
    border: 1px solid var(--holo-green);
    color: var(--holo-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    padding: 0.65rem 1rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    text-shadow: 0 0 6px var(--holo-green);
    width: 100%;
    transition: all 0.2s ease;
    cursor: pointer;
}
#event-detail-view .btn-success:hover {
    background: rgba(65, 201, 168, 0.08);
    box-shadow: 0 0 20px rgba(65, 201, 168, 0.2);
}

#event-detail-view .btn-danger {
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: var(--holo-red);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.7rem;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    transition: all 0.2s ease;
    cursor: pointer;
}
#event-detail-view .btn-danger:hover {
    background: rgba(248, 113, 113, 0.1);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.2);
}

/* ── Crews section ── */
.holo-crews-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
}

.holo-crews-title {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--holo-white);
    text-shadow: 0 0 12px rgba(65, 201, 168, 0.3);
}

.holo-crews-count {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(65, 201, 168, 0.4);
    border: 1px solid rgba(65, 201, 168, 0.2);
    padding: 0.2rem 0.6rem;
}

.holo-crews-grid {
    display: grid;
    gap: 1.25rem;
}

/* ── Single crew card ── */
.holo-crew-card {
    position: relative;
    background: rgba(8, 13, 20, 0.85);
    border: 1px solid var(--holo-border);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.holo-crew-card.is-my-crew {
    border-color: rgba(65, 201, 168, 0.5);
    box-shadow: 0 0 30px rgba(65, 201, 168, 0.08);
}

.holo-crew-card:hover {
    border-color: rgba(65, 201, 168, 0.6);
    box-shadow: 0 0 30px rgba(65, 201, 168, 0.1);
}

.holo-crew-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--holo-cyan), rgba(65,201,168,0.2), transparent);
    opacity: 0.6;
}

.holo-crew-header {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: start;
}

.holo-crew-name {
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--holo-white);
    text-shadow: 0 0 12px rgba(65, 201, 168, 0.3);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.holo-crew-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    color: var(--holo-green);
    border: 1px solid rgba(65, 201, 168, 0.4);
    padding: 0.15rem 0.5rem;
    text-shadow: 0 0 6px var(--holo-green);
}

.holo-crew-role {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: rgba(65, 201, 168, 0.5);
    margin-bottom: 0.75rem;
}

/* Crew members list */
.holo-members-list {
    border-top: 1px solid rgba(65, 201, 168, 0.08);
    padding: 1rem 1.5rem 1.5rem;
    display: grid;
    gap: 0.5rem;
}

.holo-members-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 2.5px;
    color: rgba(65, 201, 168, 0.35);
    margin-bottom: 0.5rem;
    display: block;
}

.holo-member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.9rem;
    background: rgba(65, 201, 168, 0.03);
    border-left: 2px solid rgba(65, 201, 168, 0.2);
    transition: background 0.2s;
}

.holo-member-row.is-me {
    background: rgba(65, 201, 168, 0.05);
    border-left-color: rgba(65, 201, 168, 0.5);
}

.holo-member-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.holo-member-role-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    color: rgba(65, 201, 168, 0.45);
    letter-spacing: 1px;
}

.holo-member-you {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: var(--holo-green);
}

.holo-empty-msg {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: rgba(65, 201, 168, 0.25);
    letter-spacing: 1.5px;
    text-align: center;
    padding: 1rem;
}

/* ── Participants panel (admin) ── */
.holo-participants-section {
    margin-top: 2.5rem;
}

.holo-participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: rgba(65, 201, 168, 0.02);
    border-left: 2px solid rgba(65, 201, 168, 0.15);
    margin-bottom: 0.4rem;
    transition: background 0.2s;
}
.holo-participant-row:hover { background: rgba(65, 201, 168, 0.04); }

.holo-participant-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.holo-participant-role-badge {
    font-size: 0.58rem;
    color: rgba(65, 201, 168, 0.4);
    margin-left: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .holo-detail-grid {
        grid-template-columns: 1fr;
    }
    .holo-crew-header {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MOBIGLASS — CREATE EVENT FORM
   ============================================================ */

#create-event-view .form-container {
    max-width: 900px;
    background:
        linear-gradient(160deg, rgba(65, 201, 168, 0.04) 0%, rgba(14, 21, 32, 0.96) 40%),
        rgba(8, 13, 20, 0.98);
    border: 1px solid var(--holo-border);
    box-shadow:
        0 0 60px rgba(65, 201, 168, 0.07),
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 0 100px rgba(65, 201, 168, 0.02);
}

#create-event-view .form-container::before {
    content: '■ MOBIGLASS // INITIALISATION D\'OPÉRATION // SAISIE EN COURS ▮';
    color: var(--holo-cyan);
    opacity: 0.5;
    letter-spacing: 2.5px;
    background: linear-gradient(90deg, rgba(8,13,20,0.98) 0%, rgba(20,29,42,0.95) 100%);
    border-bottom-color: var(--holo-border);
}

#create-event-view .form-container::after {
    background: linear-gradient(90deg,
        transparent 0%, var(--holo-cyan) 30%,
        rgba(65,201,168,0.4) 70%, transparent 100%);
    box-shadow: 0 0 12px var(--holo-cyan), 0 0 30px rgba(65,201,168,0.25);
    height: 2px;
}

/* Form title */
#create-event-view .form-container h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--holo-white);
    text-shadow: 0 0 15px rgba(65,201,168,0.4), 0 0 40px rgba(65,201,168,0.15);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--holo-border);
}

#create-event-view .form-container h2::before {
    content: '◉';
    font-size: 0.6em;
    color: var(--holo-green);
    text-shadow: 0 0 8px var(--holo-green), 0 0 20px var(--holo-green);
    animation: holo-dot-pulse 2s ease-in-out infinite;
}

#create-event-view .form-container h2::after {
    display: none; /* remove old underline */
}

/* ── Form labels ── */
#create-event-view .form-group label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    color: rgba(65, 201, 168, 0.55);
    text-transform: uppercase;
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

#create-event-view .form-group label::before {
    content: '▸';
    font-size: 0.7em;
    color: var(--holo-cyan);
    opacity: 0.5;
}

#create-event-view .form-group:focus-within label {
    color: var(--holo-cyan);
}
#create-event-view .form-group:focus-within label::before {
    opacity: 1;
    text-shadow: 0 0 6px var(--holo-cyan);
}

/* ── Inputs, textareas, selects ── */
#create-event-view .form-group input,
#create-event-view .form-group textarea,
#create-event-view .form-group select {
    background: rgba(14, 21, 32, 0.85);
    border: 1px solid rgba(65, 201, 168, 0.2);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.84rem;
    letter-spacing: 0.5px;
    padding: 0.8rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    color-scheme: dark;
    position: relative;
}

#create-event-view .form-group input:focus,
#create-event-view .form-group textarea:focus,
#create-event-view .form-group select:focus {
    outline: none;
    border-color: var(--holo-cyan);
    background: rgba(20, 29, 42, 0.9);
    box-shadow:
        0 0 0 1px rgba(65, 201, 168, 0.2),
        0 0 20px rgba(65, 201, 168, 0.1),
        inset 0 0 25px rgba(65, 201, 168, 0.04);
}

#create-event-view .form-group input::placeholder,
#create-event-view .form-group textarea::placeholder {
    color: rgba(65, 201, 168, 0.2);
    font-style: normal;
    letter-spacing: 0.5px;
}

#create-event-view .form-group select option {
    background: var(--bg-main);
    color: rgba(255, 255, 255, 0.9);
}

#create-event-view .form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Date input calendar icon color */
#create-event-view input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(170deg);
    opacity: 0.5;
    cursor: pointer;
}
#create-event-view input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ── Form row ── */
#create-event-view .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ── Section separator ── */
.holo-form-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.holo-form-separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--holo-border), transparent);
}
.holo-form-separator-line.right {
    background: linear-gradient(270deg, var(--holo-border), transparent);
}

.holo-form-separator-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(65, 201, 168, 0.4);
    white-space: nowrap;
    text-transform: uppercase;
}

/* ============================================================
   CREWS SECTION — Holographic override
   ============================================================ */

#create-event-view .crews-section {
    margin-top: 0;
    padding: 1.75rem;
    background:
        linear-gradient(145deg, rgba(65, 201, 168, 0.04) 0%, rgba(14, 21, 32, 0.9) 100%);
    border: 1px solid var(--holo-border);
    border-left: 3px solid var(--holo-cyan);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(65, 201, 168, 0.06),
        inset 0 0 60px rgba(65, 201, 168, 0.02);
}

/* Top glow line */
#create-event-view .crews-section::before {
    content: '';
    background: linear-gradient(90deg,
        var(--holo-cyan), rgba(65,201,168,0.3), transparent 80%);
    box-shadow: 0 0 8px var(--holo-cyan);
    height: 1px;
    opacity: 0.8;
}

/* Remove old left stripe */
#create-event-view .crews-section::after {
    display: none;
}

/* Crews title */
#create-event-view .crews-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--holo-white);
    text-shadow: 0 0 12px rgba(65, 201, 168, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

#create-event-view .crews-section h3::before {
    content: '◉';
    font-size: 0.5em;
    color: var(--holo-green);
    text-shadow: 0 0 8px var(--holo-green);
    animation: holo-dot-pulse 2s ease-in-out infinite;
}

#create-event-view .crews-section > p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: rgba(65, 201, 168, 0.3);
    margin-bottom: 1.5rem;
}

/* ── Crews table ── */
#create-event-view .crews-table {
    background: rgba(8, 13, 20, 0.8);
    border: 1px solid var(--holo-border);
    border-collapse: collapse;
    width: 100%;
}

#create-event-view .crews-table thead {
    background: rgba(65, 201, 168, 0.04);
    border-bottom: 1px solid var(--holo-border);
}

#create-event-view .crews-table th {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    color: var(--holo-cyan);
    padding: 0.9rem 1rem;
    text-transform: uppercase;
    font-weight: 400;
}

#create-event-view .crews-table td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(65, 201, 168, 0.06);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
}

#create-event-view .crews-table tbody tr {
    transition: background 0.2s ease;
}

#create-event-view .crews-table tbody tr:hover {
    background: rgba(65, 201, 168, 0.03);
}

/* Active row — left glow bar */
#create-event-view .crews-table tbody tr:focus-within {
    background: rgba(65, 201, 168, 0.04);
}

#create-event-view .crews-table tbody tr:focus-within td:first-child {
    border-left: 2px solid var(--holo-cyan);
    box-shadow: inset 3px 0 10px rgba(65, 201, 168, 0.1);
}

/* Inputs inside table */
#create-event-view .crews-table input,
#create-event-view .crews-table select {
    background: rgba(14, 21, 32, 0.8);
    border: 1px solid rgba(65, 201, 168, 0.15);
    border-radius: 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    color-scheme: dark;
}

#create-event-view .crews-table input:focus,
#create-event-view .crews-table select:focus {
    outline: none;
    border-color: var(--holo-cyan);
    box-shadow: 0 0 10px rgba(65, 201, 168, 0.12),
                inset 0 0 10px rgba(65, 201, 168, 0.04);
}

#create-event-view .crews-table input::placeholder {
    color: rgba(65, 201, 168, 0.18);
}

#create-event-view .crews-table select option {
    background: var(--bg-main);
    color: rgba(255, 255, 255, 0.85);
}

/* Delete row button */
#create-event-view .crews-table button {
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: var(--holo-red);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    padding: 0.35rem 0.7rem;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    border-radius: 0;
}

#create-event-view .crews-table button:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: var(--holo-red);
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.2);
}

/* Empty row */
#create-event-view .empty-row td {
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: rgba(65, 201, 168, 0.2) !important;
    padding: 1.5rem;
}

/* Add crew button */
#create-event-view .crews-section > .btn-success {
    margin-top: 0.5rem;
    background: transparent;
    border: 1px solid rgba(65, 201, 168, 0.35);
    color: var(--holo-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    padding: 0.6rem 1.25rem;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    text-shadow: 0 0 8px rgba(65, 201, 168, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    border-radius: 0;
}

#create-event-view .crews-section > .btn-success:hover {
    background: rgba(65, 201, 168, 0.08);
    box-shadow: 0 0 20px rgba(65, 201, 168, 0.2);
}

/* ── Form action buttons ── */
#create-event-view .form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(65, 201, 168, 0.1);
    position: relative;
}

/* Accent line above buttons */
#create-event-view .form-buttons::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 1px;
    background: var(--holo-cyan);
    box-shadow: 0 0 8px var(--holo-cyan);
}

/* Submit button */
#create-event-view .form-buttons .btn-primary {
    background: transparent;
    border: 1px solid var(--holo-cyan);
    color: var(--holo-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 3px;
    padding: 0.9rem 2.5rem;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    text-shadow: 0 0 8px rgba(65, 201, 168, 0.5);
    box-shadow: 0 0 20px rgba(65, 201, 168, 0.12),
                inset 0 0 20px rgba(65, 201, 168, 0.04);
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

/* Sweep effect on submit */
#create-event-view .form-buttons .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(65,201,168,0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

#create-event-view .form-buttons .btn-primary:hover::before {
    transform: translateX(100%);
}

#create-event-view .form-buttons .btn-primary:hover {
    background: rgba(65, 201, 168, 0.1);
    box-shadow: 0 0 35px rgba(65, 201, 168, 0.3),
                inset 0 0 25px rgba(65, 201, 168, 0.06);
    color: #fff;
}

/* Cancel button */
#create-event-view .form-buttons .btn-secondary {
    background: transparent;
    border: 1px solid rgba(65, 201, 168, 0.2);
    color: rgba(65, 201, 168, 0.45);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 2px;
    padding: 0.9rem 1.8rem;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    border-radius: 0;
}

#create-event-view .form-buttons .btn-secondary:hover {
    border-color: rgba(65, 201, 168, 0.4);
    color: var(--holo-cyan);
    box-shadow: 0 0 16px rgba(65, 201, 168, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #create-event-view .form-row {
        grid-template-columns: 1fr;
    }
    #create-event-view .form-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    #create-event-view .form-buttons .btn-primary,
    #create-event-view .form-buttons .btn-secondary {
        clip-path: none;
        text-align: center;
    }
}

/* ============================================================
   MOBIGLASS — PROFILE / DOSSIER CITOYEN
   ============================================================ */

#profile-view {
    position: relative;
}

/* ── Container ── */
#profile-view .profile-container {
    max-width: 1100px;
    margin: 3rem auto;
}

/* ── Page title ── */
#profile-view .profile-container > h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--holo-white);
    text-shadow: 0 0 15px rgba(65,201,168,0.4);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
}
#profile-view .profile-container > h2::before {
    content: '◉';
    font-size: 0.55em;
    color: var(--holo-green);
    text-shadow: 0 0 8px var(--holo-green);
    animation: holo-dot-pulse 2s ease-in-out infinite;
}
#profile-view .profile-container > h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--holo-border), transparent);
    margin-left: 0.5rem;
}

/* ── Profile sections override ── */
#profile-view .profile-section {
    background:
        linear-gradient(145deg, rgba(65,201,168,0.04) 0%, rgba(14,21,32,0.88) 100%);
    border: 1px solid var(--holo-border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 30px rgba(0,0,0,0.4),
        inset 0 0 60px rgba(65,201,168,0.02);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
    transition: border-color 0.3s, box-shadow 0.3s;
}
#profile-view .profile-section:hover {
    border-color: rgba(65,201,168,0.5);
    box-shadow: 0 0 30px rgba(65,201,168,0.08), 0 4px 30px rgba(0,0,0,0.5);
}

/* Left bar */
#profile-view .profile-section::before {
    content: '';
    position: absolute;
    top: 16px; bottom: 0; left: 0;
    width: 2px;
    background: linear-gradient(180deg,
        var(--holo-cyan) 0%, rgba(65,201,168,0.3) 60%, transparent 100%);
    opacity: 0.6;
}

/* Top glow line */
#profile-view .profile-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        var(--holo-cyan), rgba(65,201,168,0.3), transparent 80%);
    box-shadow: 0 0 8px rgba(65,201,168,0.4);
    opacity: 0.8;
}

/* Section h3 titles */
#profile-view .profile-section h3 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 3.5px;
    color: var(--holo-cyan);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(65,201,168,0.1);
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
#profile-view .profile-section h3::before {
    content: '◉';
    font-size: 0.55em;
    color: var(--holo-green);
    text-shadow: 0 0 6px var(--holo-green);
    animation: holo-dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ============================================================
   CITIZEN RECORD — profile-info content
   ============================================================ */

.holo-citizen-record {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

/* Avatar block */
.holo-citizen-avatar {
    width: 100px;
    height: 100px;
    position: relative;
    flex-shrink: 0;
}

.holo-citizen-avatar-inner {
    width: 100%;
    height: 100%;
    background: rgba(14,21,32,0.9);
    border: 1px solid var(--holo-border);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.holo-citizen-avatar-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
        rgba(65,201,168,0.08) 0%, transparent 70%);
    animation: holo-projector-pulse 3s ease-in-out infinite;
}

.holo-citizen-initial {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--holo-cyan);
    text-shadow: 0 0 20px rgba(65,201,168,0.6), 0 0 40px rgba(65,201,168,0.3);
    position: relative;
    z-index: 1;
}

/* Bracket corners on avatar */
.holo-citizen-avatar::before,
.holo-citizen-avatar::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 5;
    transition: opacity 0.3s;
}
.holo-citizen-avatar::before {
    bottom: 2px; right: 2px;
    border-bottom: 1.5px solid var(--holo-cyan);
    border-right: 1.5px solid var(--holo-cyan);
    opacity: 0.5;
}
.holo-citizen-avatar::after {
    top: 2px; left: 2px;
    border-top: 1.5px solid var(--holo-cyan);
    border-left: 1.5px solid var(--holo-cyan);
    opacity: 0.5;
}

/* Citizen data block */
.holo-citizen-data {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.holo-citizen-callsign {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--holo-white);
    text-shadow: 0 0 12px rgba(65,201,168,0.3);
    margin-bottom: 0.25rem;
}

.holo-citizen-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 0.5rem;
}

.holo-citizen-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 2px;
    color: rgba(65,201,168,0.4);
    text-transform: uppercase;
}

.holo-citizen-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.2px;
}

.holo-citizen-value.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--holo-gold);
    text-shadow: 0 0 8px rgba(200,165,42,0.4);
}

/* Stats row */
.holo-citizen-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(65,201,168,0.1);
}

.holo-stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 60px;
}

.holo-stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--holo-cyan);
    text-shadow: 0 0 15px rgba(65,201,168,0.5);
    line-height: 1;
}

.holo-stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 1.5px;
    color: rgba(65,201,168,0.35);
    text-transform: uppercase;
    text-align: center;
}

/* ============================================================
   EVENT MINI-CARDS (My Events / Joined Events)
   ============================================================ */

.holo-event-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.holo-event-entry {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(14,21,32,0.6);
    border: 1px solid rgba(65,201,168,0.15);
    border-left: 2px solid rgba(65,201,168,0.4);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.holo-event-entry::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(65,201,168,0.3), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.holo-event-entry:hover {
    background: rgba(20,29,42,0.7);
    border-color: rgba(65,201,168,0.45);
    box-shadow: 0 0 20px rgba(65,201,168,0.07);
}
.holo-event-entry:hover::before { opacity: 1; }

.holo-event-entry-left {
    min-width: 0;
}

.holo-event-entry-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--holo-white);
    text-shadow: 0 0 10px rgba(65,201,168,0.2);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.holo-event-entry-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.holo-event-entry-info {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    color: rgba(65,201,168,0.4);
    letter-spacing: 1px;
}

.holo-event-entry-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    padding: 0.15rem 0.55rem;
    border: 1px solid;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

/* Mini capacity bar */
.holo-entry-capacity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
.holo-entry-bar {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: rgba(65,201,168,0.1);
    border: 1px solid rgba(65,201,168,0.1);
}
.holo-entry-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(65,201,168,0.4), var(--holo-cyan));
    box-shadow: 0 0 4px var(--holo-cyan);
    transition: width 0.6s ease;
}
.holo-entry-bar-fill.full {
    background: linear-gradient(90deg, rgba(200,165,42,0.4), var(--holo-gold));
    box-shadow: 0 0 4px var(--holo-gold);
}
.holo-entry-capacity-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: rgba(65,201,168,0.4);
    white-space: nowrap;
}

/* Action buttons in entries */
.holo-event-entry-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.holo-btn-view {
    background: transparent;
    border: 1px solid rgba(65,201,168,0.35);
    color: var(--holo-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.9rem;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    border-radius: 0;
}
.holo-btn-view:hover {
    background: rgba(65,201,168,0.08);
    border-color: var(--holo-cyan);
    box-shadow: 0 0 12px rgba(65,201,168,0.2);
}

.holo-btn-leave {
    background: transparent;
    border: 1px solid rgba(200,165,42,0.35);
    color: var(--holo-gold);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.9rem;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    border-radius: 0;
}
.holo-btn-leave:hover {
    background: rgba(200,165,42,0.08);
    border-color: var(--holo-gold);
    box-shadow: 0 0 12px rgba(200,165,42,0.2);
}

.holo-btn-delete {
    background: transparent;
    border: 1px solid rgba(248,113,113,0.35);
    color: var(--holo-red);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.9rem;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    border-radius: 0;
}
.holo-btn-delete:hover {
    background: rgba(248,113,113,0.08);
    border-color: var(--holo-red);
    box-shadow: 0 0 12px rgba(248,113,113,0.2);
}

/* Empty state message */
.holo-profile-empty {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(65,201,168,0.25);
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(65,201,168,0.07);
}

/* Animate entries in */
@keyframes holo-entry-slide {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.holo-event-entry {
    animation: holo-entry-slide 0.35s ease both;
}
.holo-event-entry:nth-child(2) { animation-delay: 0.06s; }
.holo-event-entry:nth-child(3) { animation-delay: 0.12s; }
.holo-event-entry:nth-child(4) { animation-delay: 0.18s; }
.holo-event-entry:nth-child(5) { animation-delay: 0.24s; }

/* Responsive */
@media (max-width: 640px) {
    .holo-citizen-record { grid-template-columns: 1fr; }
    .holo-citizen-avatar { width: 72px; height: 72px; }
    .holo-event-entry { grid-template-columns: 1fr; }
    .holo-event-entry-actions { justify-content: flex-end; }
}

/* ============================================================
   TYPOGRAPHIE — Amélioration lisibilité
   Rajdhani pour labels/valeurs, mono réservé aux codes/IDs
   ============================================================ */

/* ── Titres de panels ── */
.holo-panel-title,
.holo-panel-title::before,
.holo-crews-title,
#create-event-view .form-container h2,
#events-view .form-container h2,
#event-detail-view .form-container h2 {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
}

/* ── Labels de données ── */
.holo-data-label,
.holo-citizen-label,
.holo-capacity-label,
.holo-members-label,
.holo-requirements-label,
.holo-crew-role,
.holo-stat-label,
.event-participants-label,
.holo-participants-label,
.holo-member-role-tag,
.holo-panel-title .holo-crew-count,
.holo-entry-capacity-text,
.filters-section::before,
.holo-crews-count,
.holo-form-separator-label {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    letter-spacing: 1px !important;
}

/* ── Valeurs de données ── */
.holo-data-value,
.holo-citizen-value,
.holo-member-name,
.holo-citizen-callsign + *,
.holo-event-entry-title,
.holo-description-text,
.holo-participant-name {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.2px !important;
}

/* ── Infos événement ── */
.event-info-item,
.holo-event-entry-info {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.2px !important;
}

/* ── Participants/capacité ── */
.event-participants {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
}

/* ── Crew names ── */
.holo-crew-name {
    font-family: 'Orbitron', monospace !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px !important;
}

.holo-crew-role {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
}

/* ── Messages vides ── */
.holo-empty-msg,
.holo-profile-empty {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
}

/* ── Champs de saisie ── */
#create-event-view .form-group input,
#create-event-view .form-group textarea,
#create-event-view .form-group select,
#create-event-view .crews-table input,
#create-event-view .crews-table select,
.search-input,
.filter-select {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.2px !important;
}

/* ── Labels de formulaire ── */
#create-event-view .form-group label {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 1px !important;
}

/* ── En-têtes de tableau équipages ── */
#create-event-view .crews-table th {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 1.5px !important;
}

#create-event-view .crews-table td {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.2px !important;
}

/* ── Section profil h3 ── */
#profile-view .profile-section h3 {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 2px !important;
}

/* ── Status infos dans entries ── */
.holo-event-entry-status {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.72rem !important;
    letter-spacing: 1px !important;
}

/* ── Éléments MONO conservés (codes, IDs, boutons) ── */
/* Boutons, IDs, horloges, badges de statut → Share Tech Mono conservé */
.holo-card-id,
.holo-mission-id,
.holo-mission-status,
.holo-status-label,
.holo-status-value,
#holo-clock,
.events-header::after,
#event-detail-view .form-container::before,
#create-event-view .form-container::before,
.holo-btn-view,
.holo-btn-leave,
.holo-btn-delete,
#events-view .btn-primary,
#events-view .btn.btn-primary,
#event-detail-view .btn-primary,
#event-detail-view .btn-danger,
#event-detail-view .btn-success,
#event-detail-view .btn-secondary,
#create-event-view .form-buttons .btn-primary,
#create-event-view .form-buttons .btn-secondary,
#create-event-view .crews-section > .btn-success,
#create-event-btn {
    /* Garder Share Tech Mono — c'est intentionnel pour ces éléments */
    font-family: 'Share Tech Mono', monospace;
}

/* ============================================================
   SOLUTION B — Header or + Bouton plein gold
   ============================================================ */

/* ── EVENT CARD — header band gold ── */
.event-card .event-card-header {
    background: rgba(200, 165, 42, 0.07);
    border-bottom: 1px solid rgba(200, 165, 42, 0.25);
    padding: 0.65rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Override event-card-inner padding top (header takes that space) */
.event-card .event-card-inner {
    padding: 1.2rem 1.75rem 1.5rem !important;
}

/* Category badge in card header — gold */
.event-card .event-category {
    background: rgba(200, 165, 42, 0.10) !important;
    border: 1px solid rgba(200, 165, 42, 0.45) !important;
    color: var(--gold) !important;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    font-size: 0.58rem !important;
    padding: 0.15rem 0.7rem !important;
    margin-bottom: 0 !important;
    letter-spacing: 2px;
    font-family: 'Share Tech Mono', monospace;
}

/* Status in card header — teal */
.event-card .event-card-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 1.5px;
    color: var(--cyan-glow);
    text-shadow: 0 0 8px rgba(65, 201, 168, 0.4);
}

/* ── CARD BUTTON — solid gold ── */
#events-view .btn-primary,
#events-view .btn.btn-primary {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #080D14 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 0 16px rgba(200, 165, 42, 0.25) !important;
}

#events-view .btn-primary:hover,
#events-view .btn.btn-primary:hover {
    background: #DEB830 !important;
    box-shadow: 0 0 28px rgba(200, 165, 42, 0.45) !important;
    color: #080D14 !important;
}

/* Disable sweep animation on solid button */
#events-view .btn-primary::before,
#events-view .btn.btn-primary::before {
    display: none !important;
}

/* ── DETAIL PAGE — mission banner gold header ── */
.holo-mission-banner {
    border-left-color: var(--gold) !important;
}

.holo-mission-banner::before {
    background: linear-gradient(90deg, var(--gold), rgba(200,165,42,0.3), transparent) !important;
    box-shadow: 0 0 10px var(--gold) !important;
}

.holo-mission-category {
    background: rgba(200, 165, 42, 0.10) !important;
    border: 1px solid rgba(200, 165, 42, 0.45) !important;
    color: var(--gold) !important;
}

/* Detail page — join button solid gold */
#event-detail-view .btn-primary {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #080D14 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 0 16px rgba(200, 165, 42, 0.2) !important;
}
#event-detail-view .btn-primary:hover:not(:disabled) {
    background: #DEB830 !important;
    box-shadow: 0 0 28px rgba(200, 165, 42, 0.4) !important;
    color: #080D14 !important;
}
#event-detail-view .btn-primary:disabled {
    background: rgba(200, 165, 42, 0.2) !important;
    color: rgba(8, 13, 20, 0.5) !important;
    border-color: rgba(200, 165, 42, 0.2) !important;
}

/* ── CREATE EVENT — submit button solid gold ── */
#create-event-view .form-buttons .btn-primary {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: #080D14 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow: 0 0 20px rgba(200, 165, 42, 0.2) !important;
}
#create-event-view .form-buttons .btn-primary:hover {
    background: #DEB830 !important;
    box-shadow: 0 0 35px rgba(200, 165, 42, 0.4) !important;
    color: #080D14 !important;
}
#create-event-view .form-buttons .btn-primary::before {
    display: none !important;
}

/* ── PANEL TITLES — gold left accent dot ── */
.holo-panel-title::before {
    color: var(--gold) !important;
    text-shadow: 0 0 8px rgba(200, 165, 42, 0.6) !important;
    animation: holo-gold-pulse 2.5s ease-in-out infinite !important;
}

@keyframes holo-gold-pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(200,165,42,0.6); }
    50%       { opacity: 0.5; text-shadow: none; }
}

/* ── PROFILE section h3 dots ── */
#profile-view .profile-section h3::before {
    color: var(--gold) !important;
    text-shadow: 0 0 6px rgba(200, 165, 42, 0.5) !important;
}

/* ── CREWS SECTION title dot ── */
.holo-crews-title {
    text-shadow: 0 0 12px rgba(200, 165, 42, 0.2) !important;
}

/* ============================================================
   SOLUTION A — Crews : Zone supérieure or
   ============================================================ */

/* ── Crew card — top gold header zone ── */
.holo-crew-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.5rem 0.9rem;
    background: transparent;
    border-bottom: 1px solid rgba(65, 201, 168, 0.1);
    position: relative;
}

.holo-crew-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(200,165,42,0.5), rgba(200,165,42,0.15), transparent 70%);
}

/* Ship name — or */
.holo-crew-top .holo-crew-name {
    color: #C8A52A !important;
    text-shadow: 0 0 12px rgba(200, 165, 42, 0.3) !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.35rem;
}

/* Badge "votre équipage" — or plein */
.holo-crew-top .holo-crew-badge {
    background: transparent !important;
    border: 1px solid rgba(200, 165, 42, 0.5) !important;
    color: #C8A52A !important;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    padding: 0.15rem 0.6rem;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
    display: inline-block;
    margin-top: 0.2rem;
}

/* Rôle label sous le nom — discret */
.holo-crew-top .holo-crew-role {
    color: rgba(87, 96, 112, 0.8) !important;
    font-size: 0.72rem !important;
    margin-top: 0.15rem;
}

/* ── Bouton ASSIGNÉ — contour or ── */
.btn-crew-assigned {
    background: transparent;
    border: 1px solid rgba(200, 165, 42, 0.55);
    color: #C8A52A;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 0.55rem 1.1rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    cursor: default;
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(200, 165, 42, 0.4);
}

/* ── Bouton EMBARQUER / TRANSFERT — teal outline ── */
.btn-crew-join {
    background: transparent;
    border: 1px solid rgba(65, 201, 168, 0.45);
    color: #41C9A8;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 0.55rem 1.1rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}
.btn-crew-join:hover {
    background: rgba(65, 201, 168, 0.08);
    box-shadow: 0 0 14px rgba(65, 201, 168, 0.2);
}

/* ── Bouton COMPLET — rouge discret ── */
.btn-crew-full {
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: rgba(248, 113, 113, 0.6);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 0.55rem 1.1rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    cursor: not-allowed;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Membre "is-me" — accent or dans mon équipage ── */
.holo-crew-card.is-my-crew .holo-member-row.is-me {
    background: rgba(200, 165, 42, 0.06) !important;
    border-left-color: rgba(200, 165, 42, 0.6) !important;
}

.holo-crew-card.is-my-crew .holo-member-row.is-me .holo-member-name {
    color: rgba(255, 255, 255, 0.9);
}

.holo-crew-card.is-my-crew .holo-member-row.is-me .holo-member-you {
    color: #C8A52A !important;
    text-shadow: 0 0 6px rgba(200, 165, 42, 0.4);
}

/* ── Card is-my-crew — bordure or ── */
.holo-crew-card.is-my-crew {
    border-color: rgba(200, 165, 42, 0.35) !important;
    box-shadow: 0 0 30px rgba(200, 165, 42, 0.06) !important;
}

/* ── Barre capacité — or pour mon équipage ── */
.holo-crew-card.is-my-crew .holo-capacity-fill {
    background: linear-gradient(90deg, rgba(200,165,42,0.5), #C8A52A) !important;
    box-shadow: 0 0 6px rgba(200, 165, 42, 0.5) !important;
}

.holo-crew-card.is-my-crew .holo-entry-capacity-text,
.holo-crew-card.is-my-crew [style*="font-family:'Share Tech Mono'"] {
    color: rgba(200, 165, 42, 0.6);
}

/* ============================================================
   CREW CARDS — Agrandissement des textes
   ============================================================ */

.holo-crew-name {
    font-size: 1.1rem !important;
    letter-spacing: 2px !important;
}

.holo-crew-top .holo-crew-name {
    font-size: 1.15rem !important;
}

.holo-crew-badge {
    font-size: 0.7rem !important;
    letter-spacing: 1.5px !important;
    padding: 0.2rem 0.7rem !important;
}

.holo-crew-role {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.holo-members-label {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.78rem !important;
    letter-spacing: 2px !important;
}

.holo-member-name {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

.holo-member-role-tag {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

.holo-member-you {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

.holo-empty-msg {
    font-size: 0.88rem !important;
    letter-spacing: 1.5px !important;
}

.holo-capacity-label {
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
}

.btn-crew-assigned,
.btn-crew-join,
.btn-crew-full {
    font-size: 0.72rem !important;
    letter-spacing: 2px !important;
    padding: 0.6rem 1.2rem !important;
}

/* ============================================================
   EVENTS PAGE — Boutons outline only
   ============================================================ */

/* ── Bouton "▸ ACCÉDER" → outline gold, fond transparent ── */
#events-view .btn-primary,
#events-view .btn.btn-primary {
    background: transparent !important;
    border: 1px solid rgba(200, 165, 42, 0.6) !important;
    color: #C8A52A !important;
    font-weight: 600 !important;
    text-shadow: 0 0 8px rgba(200, 165, 42, 0.3) !important;
    box-shadow: none !important;
}

#events-view .btn-primary:hover,
#events-view .btn.btn-primary:hover {
    background: rgba(200, 165, 42, 0.08) !important;
    box-shadow: 0 0 16px rgba(200, 165, 42, 0.2) !important;
    border-color: #C8A52A !important;
    color: #fff !important;
}

/* ── Bouton "Créer un événement" → outline gold ── */
#create-event-btn {
    background: transparent !important;
    border: 1px solid rgba(200, 165, 42, 0.6) !important;
    color: #C8A52A !important;
    text-shadow: 0 0 8px rgba(200, 165, 42, 0.3) !important;
    box-shadow: none !important;
}

#create-event-btn:hover {
    background: rgba(200, 165, 42, 0.08) !important;
    box-shadow: 0 0 16px rgba(200, 165, 42, 0.2) !important;
}

/* ============================================================
   CARTES — Suppression flottement + correction blur hover-out
   ============================================================ */

/* Supprime toutes les animations de flottement et flicker */
.event-card,
.event-card:nth-child(1),
.event-card:nth-child(2),
.event-card:nth-child(3),
.event-card:nth-child(4),
.event-card:nth-child(5),
.event-card:nth-child(6),
.event-card:nth-child(2n),
.event-card:nth-child(3n),
.event-card:nth-child(4n),
.event-card:nth-child(5n) {
    animation: none !important;
    animation-delay: 0s !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Hover : juste un léger scale, sans animation */
.event-card:hover {
    animation: none !important;
    transform: translateY(-4px) scale(1.01) !important;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

/* Sortie hover propre, sans blur */
.event-card:not(:hover) {
    transform: none !important;
    filter: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

/* ============================================================
   CREATE-EVENT + PROFIL — Palette gold (même style events-header)
   ============================================================ */

/* ── CREATE-EVENT : form-container bordure gauche + top or ── */
#create-event-view .form-container {
    border-left: 3px solid var(--holo-cyan) !important;
    border-top: 1px solid var(--holo-border) !important;
    border-color: var(--holo-border) !important;
    box-shadow:
        0 0 60px rgba(65, 201, 168, 0.07),
        0 30px 80px rgba(0, 0, 0, 0.7),
        inset 0 0 100px rgba(65, 201, 168, 0.02) !important;
}

/* Top line teal */
#create-event-view .form-container::after {
    background: linear-gradient(90deg,
        var(--holo-cyan) 0%,
        rgba(65, 201, 168, 0.4) 50%,
        transparent 100%) !important;
    box-shadow: 0 0 12px var(--holo-cyan), 0 0 30px rgba(65, 201, 168, 0.25) !important;
}

/* Barre de statut top → gold */
#create-event-view .form-container::before {
    color: var(--holo-cyan) !important;
    background: linear-gradient(90deg, rgba(8,13,20,0.98) 0%, rgba(20,29,42,0.95) 100%) !important;
    border-bottom-color: var(--holo-border) !important;
}

/* Séparateurs de section → or */
.holo-form-separator-line {
    background: linear-gradient(90deg, rgba(200, 165, 42, 0.35), transparent) !important;
}
.holo-form-separator-line.right {
    background: linear-gradient(270deg, rgba(200, 165, 42, 0.35), transparent) !important;
}
.holo-form-separator-label {
    color: rgba(200, 165, 42, 0.55) !important;
}

/* Crews section → or */
#create-event-view .crews-section {
    border-left: 3px solid #C8A52A !important;
    border-color: rgba(200, 165, 42, 0.3) !important;
    box-shadow:
        0 0 20px rgba(200, 165, 42, 0.05),
        inset 0 0 60px rgba(200, 165, 42, 0.01) !important;
}

#create-event-view .crews-section::before {
    background: linear-gradient(90deg,
        #C8A52A, rgba(200, 165, 42, 0.3), transparent 80%) !important;
    box-shadow: 0 0 8px rgba(200, 165, 42, 0.5) !important;
}

/* Focus fields → or */
#create-event-view .form-group input:focus,
#create-event-view .form-group textarea:focus,
#create-event-view .form-group select:focus,
#create-event-view .crews-table input:focus,
#create-event-view .crews-table select:focus {
    border-color: rgba(200, 165, 42, 0.7) !important;
    box-shadow:
        0 0 0 1px rgba(200, 165, 42, 0.15),
        0 0 20px rgba(200, 165, 42, 0.08),
        inset 0 0 25px rgba(200, 165, 42, 0.03) !important;
}

/* Label focus → or */
#create-event-view .form-group:focus-within label {
    color: #C8A52A !important;
}
#create-event-view .form-group:focus-within label::before {
    color: #C8A52A !important;
    text-shadow: 0 0 6px rgba(200, 165, 42, 0.5) !important;
}

/* ── PROFIL : sections bordure gauche + top or ── */
#profile-view .profile-section {
    border-color: rgba(200, 165, 42, 0.25) !important;
    border-left: 2px solid rgba(200, 165, 42, 0.6) !important;
}

#profile-view .profile-section::before {
    background: linear-gradient(180deg,
        #C8A52A 0%, rgba(200, 165, 42, 0.3) 60%, transparent 100%) !important;
    opacity: 0.7 !important;
}

#profile-view .profile-section::after {
    background: linear-gradient(90deg,
        #C8A52A, rgba(200, 165, 42, 0.3), transparent 80%) !important;
    box-shadow: 0 0 8px rgba(200, 165, 42, 0.4) !important;
}

/* Titre h2 profil → or */
#profile-view .profile-container > h2::after {
    background: linear-gradient(90deg, rgba(200, 165, 42, 0.3), transparent) !important;
}

/* Statistiques citizen → or */
.holo-stat-number {
    color: #C8A52A !important;
    text-shadow: 0 0 15px rgba(200, 165, 42, 0.4) !important;
}

/* Barre de séparation stats → or */
.holo-citizen-stats > div[style*="background:rgba(65"] {
    background: rgba(200, 165, 42, 0.15) !important;
}

/* Event entries profil → accent gauche or */
.holo-event-entry {
    border-left-color: rgba(200, 165, 42, 0.45) !important;
}

.holo-event-entry:hover {
    border-color: rgba(200, 165, 42, 0.5) !important;
    box-shadow: 0 0 20px rgba(200, 165, 42, 0.06) !important;
}

/* ============================================================
   CREATE-EVENT — Or uniquement sur Briefing & Prérequis
   ============================================================ */

/* Séparateurs généraux → revenir au teal */
.holo-form-separator-line {
    background: linear-gradient(90deg, rgba(65, 201, 168, 0.25), transparent) !important;
}
.holo-form-separator-line.right {
    background: linear-gradient(270deg, rgba(65, 201, 168, 0.25), transparent) !important;
}
.holo-form-separator-label {
    color: rgba(65, 201, 168, 0.45) !important;
}

/* Séparateur "Briefing & Prérequis" → or */
.holo-form-separator:nth-of-type(3) .holo-form-separator-line {
    background: linear-gradient(90deg, rgba(200, 165, 42, 0.45), transparent) !important;
}
.holo-form-separator:nth-of-type(3) .holo-form-separator-line.right {
    background: linear-gradient(270deg, rgba(200, 165, 42, 0.45), transparent) !important;
}
.holo-form-separator:nth-of-type(3) .holo-form-separator-label {
    color: rgba(200, 165, 42, 0.65) !important;
}

/* Textarea description + requirements → bordure or au focus */
#create-event-view #event-description:focus,
#create-event-view #event-requirements:focus {
    border-color: rgba(200, 165, 42, 0.7) !important;
    box-shadow:
        0 0 0 1px rgba(200, 165, 42, 0.12),
        0 0 20px rgba(200, 165, 42, 0.08),
        inset 0 0 25px rgba(200, 165, 42, 0.03) !important;
}

/* Bloc prérequis → contour or */
#create-event-view #event-requirements {
    border-color: rgba(200, 165, 42, 0.2) !important;
}

/* Label description + requirements → or */
#create-event-view label[for="event-description"],
#create-event-view label[for="event-requirements"] {
    color: rgba(200, 165, 42, 0.6) !important;
}
#create-event-view label[for="event-description"]::before,
#create-event-view label[for="event-requirements"]::before {
    color: #C8A52A !important;
}

/* ============================================================
   CREATE-EVENT — Briefing & Prérequis : teal d'origine au focus
   ============================================================ */
#create-event-view #event-description,
#create-event-view #event-requirements {
    border-color: rgba(65, 201, 168, 0.2) !important;
}

#create-event-view #event-description:focus,
#create-event-view #event-requirements:focus {
    border-color: var(--holo-cyan) !important;
    box-shadow:
        0 0 0 1px rgba(65, 201, 168, 0.2),
        0 0 20px rgba(65, 201, 168, 0.1),
        inset 0 0 25px rgba(65, 201, 168, 0.04) !important;
    background: rgba(8, 13, 20, 0.9) !important;
}

#create-event-view .form-group:has(#event-description):focus-within label,
#create-event-view .form-group:has(#event-requirements):focus-within label {
    color: var(--holo-cyan) !important;
}

#create-event-view .form-group:has(#event-description):focus-within label::before,
#create-event-view .form-group:has(#event-requirements):focus-within label::before {
    color: var(--holo-cyan) !important;
    text-shadow: 0 0 6px rgba(65, 201, 168, 0.5) !important;
}

/* ── Briefing & Prérequis — séparateur + labels : teal au repos ── */
.holo-form-separator:nth-of-type(3) .holo-form-separator-line {
    background: linear-gradient(90deg, rgba(65, 201, 168, 0.25), transparent) !important;
}
.holo-form-separator:nth-of-type(3) .holo-form-separator-line.right {
    background: linear-gradient(270deg, rgba(65, 201, 168, 0.25), transparent) !important;
}
.holo-form-separator:nth-of-type(3) .holo-form-separator-label {
    color: rgba(65, 201, 168, 0.45) !important;
}

#create-event-view label[for="event-description"],
#create-event-view label[for="event-requirements"] {
    color: rgba(65, 201, 168, 0.55) !important;
}
#create-event-view label[for="event-description"]::before,
#create-event-view label[for="event-requirements"]::before {
    color: var(--holo-cyan) !important;
    text-shadow: none !important;
}

/* ============================================================
   CREATE-EVENT — Gold focus sur tous les champs (sauf briefing/prérequis)
   ============================================================ */

#create-event-view .form-group input:not(#event-description):not(#event-requirements):focus,
#create-event-view .form-group select:focus,
#create-event-view #event-title:focus,
#create-event-view #event-location:focus,
#create-event-view #event-capacity:focus,
#create-event-view #event-date:focus,
#create-event-view #custom-category:focus {
    border-color: #C8A52A !important;
    background: var(--bg-section) !important;
    box-shadow:
        0 0 0 1px rgba(200, 165, 42, 0.15),
        0 0 20px rgba(200, 165, 42, 0.1),
        inset 0 0 25px rgba(200, 165, 42, 0.04) !important;
}

#create-event-view .form-group:has(input:not(#event-description):not(#event-requirements)):focus-within label,
#create-event-view .form-group:has(select):focus-within label {
    color: #C8A52A !important;
}

#create-event-view .form-group:has(input:not(#event-description):not(#event-requirements)):focus-within label::before,
#create-event-view .form-group:has(select):focus-within label::before {
    color: #C8A52A !important;
    text-shadow: 0 0 6px rgba(200, 165, 42, 0.5) !important;
    opacity: 1 !important;
}

/* ============================================================
   CREATE-EVENT — Briefing + Prérequis : contour gold au focus,
   fond sombre conservé (pas de teinte gold sur l'arrière-plan)
   ============================================================ */

#create-event-view #event-description:focus,
#create-event-view #event-requirements:focus {
    border-color: #C8A52A !important;
    background: rgba(8, 13, 20, 0.9) !important;
    box-shadow:
        0 0 0 1px rgba(200, 165, 42, 0.15),
        0 0 20px rgba(200, 165, 42, 0.1),
        inset 0 0 0px transparent !important;
}

#create-event-view .form-group:has(#event-description):focus-within label,
#create-event-view .form-group:has(#event-requirements):focus-within label {
    color: #C8A52A !important;
}

#create-event-view .form-group:has(#event-description):focus-within label::before,
#create-event-view .form-group:has(#event-requirements):focus-within label::before {
    color: #C8A52A !important;
    text-shadow: 0 0 6px rgba(200, 165, 42, 0.5) !important;
}

/* Aussi retirer le fond teinté gold sur tous les inputs au focus */
#create-event-view .form-group input:focus,
#create-event-view .form-group textarea:focus,
#create-event-view .form-group select:focus {
    background: rgba(8, 13, 20, 0.9) !important;
}

/* Fond sombre neutre sur tous les champs au focus — pas de teinte gold */
#create-event-view .form-group input:focus,
#create-event-view .form-group textarea:focus,
#create-event-view .form-group select:focus,
#create-event-view #event-title:focus,
#create-event-view #event-location:focus,
#create-event-view #event-capacity:focus,
#create-event-view #event-date:focus,
#create-event-view #custom-category:focus,
#create-event-view #event-description:focus,
#create-event-view #event-requirements:focus {
    background: rgba(8, 13, 20, 0.95) !important;
}

/* ── Briefing + Prérequis : fond strict neutre, inset supprimé ── */
#create-event-view #event-description:focus,
#create-event-view #event-requirements:focus {
    background: var(--bg-section) !important;
    box-shadow:
        0 0 0 1px rgba(200, 165, 42, 0.15),
        0 0 20px rgba(200, 165, 42, 0.1) !important;
}

/* ============================================================
   EVENT DETAIL — Textes en blanc
   ============================================================ */

/* Données de Mission : valeurs → blanc (sauf highlight=date et status inline) */
.holo-data-value {
    color: #FFFFFF;
}

/* Date (classe .highlight) → gold conservé */
.holo-data-value.highlight {
    color: var(--gold) !important;
    text-shadow: 0 0 8px rgba(200, 165, 42, 0.4) !important;
}

/* Briefing de Mission : description → blanc */
.holo-description-text {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* Prérequis d'accès : texte → blanc */
.holo-requirements-box .holo-description-text {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* ============================================================
   EVENT DETAIL — Date + Status cyan / Capacité blanc
   ============================================================ */

/* Date → cyan */
.holo-data-value.highlight {
    color: var(--cyan-glow) !important;
    text-shadow: 0 0 8px rgba(65, 201, 168, 0.4) !important;
}

/* Taux d'occupation label → blanc */
.holo-capacity-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* X / Y PLACES (cartes + détail) → blanc */
.event-participants {
    color: #FFFFFF !important;
}
.event-participants-label {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Places dispo dans le panneau join → blanc */
#event-detail-view .holo-join-panel [style*="color"] {
    color: #FFFFFF !important;
}

/* ============================================================
   CREW CARDS — Rôle + Registre + Message vide en blanc/agrandis
   ============================================================ */

.holo-crew-role {
    color: #FFFFFF !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.holo-members-label {
    color: #FFFFFF !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
}

.holo-empty-msg {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.95rem !important;
    letter-spacing: 1.5px !important;
}

/* Membre — ID et Rôle en blanc */
.holo-member-role-tag {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.82rem !important;
}

/* Cartes événements — date cyan, lieu blanc */
.event-info-date {
    color: var(--cyan-glow) !important;
    text-shadow: 0 0 8px rgba(65, 201, 168, 0.3) !important;
}

.event-info-location {
    color: #FFFFFF !important;
}

/* Page event detail — Rôle vaisseau plus grand et blanc */
.holo-crew-top .holo-crew-role {
    color: #FFFFFF !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* Nom des vaisseaux → blanc */
.holo-crew-top .holo-crew-name {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/* Bouton Retour aux événements → gold */
#event-detail-view .btn-secondary {
    border-color: rgba(200, 165, 42, 0.6) !important;
    color: #C8A52A !important;
    text-shadow: 0 0 8px rgba(200, 165, 42, 0.3) !important;
}

#event-detail-view .btn-secondary:hover {
    background: rgba(200, 165, 42, 0.08) !important;
    border-color: #C8A52A !important;
    box-shadow: 0 0 16px rgba(200, 165, 42, 0.2) !important;
    color: #fff !important;
}



/* Profil — Labels ID/Grade/Enrôlement + infos entrées événements en blanc */
.holo-citizen-label {
    color: rgba(255, 255, 255, 0.55) !important;
}

.holo-event-entry-info {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Profil — Messages vides en blanc atténué */
.holo-profile-empty {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Profil — Bouton VOIR en gold */
.holo-btn-view {
    border-color: rgba(200, 165, 42, 0.5) !important;
    color: #C8A52A !important;
}

.holo-btn-view:hover {
    background: rgba(200, 165, 42, 0.08) !important;
    border-color: #C8A52A !important;
    box-shadow: 0 0 12px rgba(200, 165, 42, 0.2) !important;
    color: #fff !important;
}

/* Profil — Labels stats (OPS CRÉÉES, OPS REJOINTES, TOTAL) en cyan */
.holo-stat-label {
    color: var(--cyan-glow) !important;
}

/* ============================================================
   JAUGES DYNAMIQUES — Couleur selon taux de remplissage
   ============================================================ */

.holo-capacity-fill.cap-green,
.holo-entry-bar-fill.cap-green {
    background: linear-gradient(90deg, rgba(52,211,153,0.5), #34d399) !important;
    box-shadow: 0 0 6px rgba(52,211,153,0.6), 2px 0 8px rgba(52,211,153,0.4) !important;
}

.holo-capacity-fill.cap-lime,
.holo-entry-bar-fill.cap-lime {
    background: linear-gradient(90deg, rgba(163,230,53,0.5), #a3e635) !important;
    box-shadow: 0 0 6px rgba(163,230,53,0.5), 2px 0 8px rgba(163,230,53,0.3) !important;
}

.holo-capacity-fill.cap-gold,
.holo-entry-bar-fill.cap-gold {
    background: linear-gradient(90deg, rgba(200,165,42,0.5), #C8A52A) !important;
    box-shadow: 0 0 6px rgba(200,165,42,0.6), 2px 0 8px rgba(200,165,42,0.4) !important;
}

.holo-capacity-fill.cap-orange,
.holo-entry-bar-fill.cap-orange {
    background: linear-gradient(90deg, rgba(216,91,31,0.5), #D85B1F) !important;
    box-shadow: 0 0 6px rgba(216,91,31,0.6), 2px 0 8px rgba(216,91,31,0.4) !important;
}

.holo-capacity-fill.cap-red,
.holo-entry-bar-fill.cap-red {
    background: linear-gradient(90deg, rgba(248,113,113,0.5), #f87171) !important;
    box-shadow: 0 0 6px rgba(248,113,113,0.6), 2px 0 8px rgba(248,113,113,0.4) !important;
}

/* ── Compteurs capacité — couleur dynamique ── */
.event-participants.cap-green,
.cap-count.cap-green { color: #34d399 !important; }

.event-participants.cap-lime,
.cap-count.cap-lime  { color: #a3e635 !important; }

.event-participants.cap-gold,
.cap-count.cap-gold  { color: #C8A52A !important; }

.event-participants.cap-orange,
.cap-count.cap-orange { color: #D85B1F !important; }

.event-participants.cap-red,
.cap-count.cap-red   { color: #f87171 !important; }

/* Données de mission — labels en blanc atténué */
.holo-data-label {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================================
   CREATE-EVENT — Fond neutre, seul bouton "Lancer" en gold
   ============================================================ */

/* Séparateurs → teal d'origine */
.holo-form-separator-line {
    background: linear-gradient(90deg, rgba(65, 201, 168, 0.25), transparent) !important;
}
.holo-form-separator-line.right {
    background: linear-gradient(270deg, rgba(65, 201, 168, 0.25), transparent) !important;
}
.holo-form-separator-label {
    color: rgba(65, 201, 168, 0.45) !important;
}

/* Crews section → teal */
#create-event-view .crews-section {
    border-left: 3px solid var(--holo-cyan) !important;
    border-color: var(--holo-border) !important;
    box-shadow: none !important;
}
#create-event-view .crews-section::before {
    background: linear-gradient(90deg, var(--holo-cyan), rgba(65,201,168,0.3), transparent 80%) !important;
    box-shadow: 0 0 8px rgba(65,201,168,0.3) !important;
}

/* Bouton "Lancer l'opération" → gold outline */
#create-event-view .form-buttons .btn-primary {
    background: transparent !important;
    border: 1px solid rgba(200, 165, 42, 0.7) !important;
    color: #C8A52A !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(200,165,42,0.3) !important;
    box-shadow: 0 0 16px rgba(200,165,42,0.1) !important;
}
#create-event-view .form-buttons .btn-primary:hover {
    background: rgba(200, 165, 42, 0.08) !important;
    box-shadow: 0 0 28px rgba(200,165,42,0.3) !important;
    color: #fff !important;
}

/* Bouton Annuler → rouge */
#create-event-view .form-buttons .btn-secondary {
    border-color: rgba(248, 113, 113, 0.5) !important;
    color: #f87171 !important;
    text-shadow: none !important;
}
#create-event-view .form-buttons .btn-secondary:hover {
    background: rgba(248, 113, 113, 0.08) !important;
    border-color: #f87171 !important;
    box-shadow: 0 0 16px rgba(248,113,113,0.2) !important;
    color: #fff !important;
}

/* Séparateurs de section create-event — texte légèrement agrandi */
.holo-form-separator-label {
    font-size: 0.75rem !important;
    letter-spacing: 2.5px !important;
    font-weight: 700 !important;
}

/* Titre "Initialisation d'Opération" — légèrement agrandi */
#create-event-view .form-container h2 {
    font-size: 1.25rem !important;
    letter-spacing: 4px !important;
}

/* Séparateurs create-event → blanc */
.holo-form-separator-label {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Titre "Initialisation d'Opération" → blanc */
#create-event-view .form-container h2 {
    color: #FFFFFF !important;
    text-shadow: 0 0 15px rgba(255,255,255,0.1) !important;
}

/* Bouton "Ajouter un équipage" → gold */
#create-event-view .crews-section > .btn-success {
    background: transparent !important;
    border: 1px solid rgba(200, 165, 42, 0.6) !important;
    color: #C8A52A !important;
    text-shadow: 0 0 8px rgba(200,165,42,0.3) !important;
    box-shadow: none !important;
}
#create-event-view .crews-section > .btn-success:hover {
    background: rgba(200, 165, 42, 0.08) !important;
    box-shadow: 0 0 16px rgba(200,165,42,0.2) !important;
    color: #fff !important;
}

/* Losange ◈ en cyan, texte séparateur en blanc */
.holo-sep-icon {
    color: var(--cyan-glow) !important;
    text-shadow: 0 0 6px rgba(65, 201, 168, 0.5) !important;
}

/* Labels de champs → blanc, légèrement agrandis, losange cyan */
#create-event-view .form-group label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
}

/* Le ▸ avant le label reste cyan */
#create-event-view .form-group label::before {
    color: var(--cyan-glow) !important;
    text-shadow: 0 0 6px rgba(65, 201, 168, 0.5) !important;
    opacity: 1 !important;
}

/* Description équipages → blanc, légèrement agrandi */
#create-event-view .crews-section > p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
}

/* "// AUCUN ÉQUIPAGE CONFIGURÉ //" → blanc atténué */
#create-event-view .empty-row td {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.82rem !important;
    letter-spacing: 1.5px !important;
}

/* Bouton "Rejoindre l'opération" → outline gold, fond transparent */
#event-detail-view .btn-primary {
    background: transparent !important;
    border: 1px solid rgba(200, 165, 42, 0.7) !important;
    color: #C8A52A !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(200,165,42,0.3) !important;
    box-shadow: 0 0 12px rgba(200,165,42,0.08) !important;
}
#event-detail-view .btn-primary:hover:not(:disabled) {
    background: rgba(200, 165, 42, 0.08) !important;
    box-shadow: 0 0 24px rgba(200,165,42,0.3) !important;
    color: #fff !important;
}
#event-detail-view .btn-primary:disabled {
    background: transparent !important;
    border-color: rgba(200,165,42,0.2) !important;
    color: rgba(200,165,42,0.3) !important;
}

/* EFFECTIF label → agrandi */
.holo-crew-top .holo-capacity-label {
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
    color: rgba(255,255,255,0.6) !important;
}

/* "X PLACES LIBRES" → agrandi */
.holo-crew-top [style*="PLACE"] ,
.holo-crew-top span[style*="letter-spacing"] {
    font-size: 0.82rem !important;
}

/* Bouton TRANSFERT / EMBARQUER → dark gold */
.btn-crew-join {
    background: transparent !important;
    border-color: rgba(158, 126, 24, 0.7) !important;
    color: var(--gold-dark) !important;
    text-shadow: 0 0 8px rgba(158,126,24,0.4) !important;
}
.btn-crew-join:hover {
    background: rgba(158, 126, 24, 0.1) !important;
    border-color: var(--gold-dark) !important;
    box-shadow: 0 0 14px rgba(158,126,24,0.25) !important;
    color: #C8A52A !important;
}

/* PRÉREQUIS D'ACCÈS label → cyan, agrandi */
.holo-requirements-label {
    color: var(--cyan-glow) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-shadow: 0 0 6px rgba(65,201,168,0.4) !important;
}

/* Badge "X UNITÉS" → cyan */
.holo-crews-count {
    color: var(--cyan-glow) !important;
    border-color: rgba(65, 201, 168, 0.35) !important;
}

/* ═══════════════════════════════════════════════════════════════
   OPÉRATIONS CLASSIFIÉES — JOIN REQUESTS
   ═══════════════════════════════════════════════════════════════ */

/* Statut demande en attente */
.holo-join-status-pending {
    padding: 1rem;
    text-align: center;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
    line-height: 1.6;
}

/* Statut demande refusée */
.holo-join-status-rejected {
    padding: 1rem;
    text-align: center;
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.3);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    color: #f87171;
}

/* Ligne de demande d'accès (vue créateur) */
.holo-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}
.holo-request-row:last-child { border-bottom: none; }

.holo-request-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 0.5px;
}

.holo-request-message {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    color: rgba(200, 165, 42, 0.65);
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}


/* ─── Toggle "Opération Classifiée" dans le formulaire ─── */
.holo-redacted-toggle {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0.5rem 0 1.5rem;
    padding: 1rem 1.4rem;
    border: 1px solid rgba(65, 201, 168, 0.2);
    background: rgba(14, 21, 32, 0.6);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
    position: relative;
}
.holo-redacted-toggle::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(65,201,168,0.5), transparent 70%);
}
.holo-redacted-toggle::after {
    content: '';
    position: absolute;
    bottom: 1px; left: 0; right: 0;
    height: 1px;
    background: rgba(65, 201, 168, 0.2);
    pointer-events: none;
}
#event-redacted:checked + label.holo-redacted-toggle::after {
    background: rgba(245, 158, 11, 0.3);
}
.holo-redacted-toggle:hover {
    border-color: rgba(65, 201, 168, 0.4);
    background: rgba(14, 21, 32, 0.8);
}

/* LED indicateur */
.holo-redacted-led {
    flex-shrink: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s;
}
.holo-led-off { color: rgba(65, 201, 168, 0.3); display: inline; }
.holo-led-on  { color: #f59e0b; text-shadow: 0 0 10px rgba(245,158,11,0.7); display: none; }

/* Corps texte */
.holo-redacted-body { flex: 1; }
.holo-redacted-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 0.35rem;
}
.holo-redacted-label-off { color: rgba(65, 201, 168, 0.65); display: inline; }
.holo-redacted-label-on  { color: #f59e0b; text-shadow: 0 0 8px rgba(245,158,11,0.35); display: none; }

.holo-redacted-desc {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: rgba(200, 180, 140, 0.4);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Bouton switch à droite */
.holo-redacted-switch {
    flex-shrink: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
}
.holo-switch-text-off {
    display: inline;
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.06);
    text-shadow: 0 0 8px rgba(245,158,11,0.3);
    padding: 0.4rem 0.85rem;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.holo-switch-text-on {
    display: none;
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.55);
    background: rgba(248, 113, 113, 0.08);
    box-shadow: 0 0 12px rgba(248,113,113,0.15);
    padding: 0.4rem 0.85rem;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

/* ─── État ACTIVÉ ─── */
#event-redacted:checked ~ label.holo-redacted-toggle,
#event-redacted:checked + label.holo-redacted-toggle {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(20, 14, 5, 0.7);
}
#event-redacted:checked + label.holo-redacted-toggle::before {
    background: linear-gradient(90deg, rgba(245,158,11,0.6), transparent 70%);
}
#event-redacted:checked + label .holo-led-off            { display: none; }
#event-redacted:checked + label .holo-led-on             { display: inline; }
#event-redacted:checked + label .holo-redacted-label-off { display: none; }
#event-redacted:checked + label .holo-redacted-label-on  { display: inline; }
#event-redacted:checked + label .holo-switch-text-off    { display: none; }
#event-redacted:checked + label .holo-switch-text-on     { display: inline; }

/* ─── Bouton "DEMANDES D'ACCÈS" dans le panneau droit ─── */
.holo-requests-btn {
    width: 100%;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #f59e0b;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.08), inset 0 0 12px rgba(245, 158, 11, 0.03);
    transition: all 0.2s ease;
}
.holo-requests-btn:hover {
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.holo-requests-count {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    letter-spacing: 1px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ─── Modale demandes d'accès ─── */
/* ─── Modale demandes d'accès — alignée sur le style global ─── */
.holo-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.holo-modal {
    position: relative;
    background: rgba(14, 21, 32, 0.96);
    border: 1px solid var(--holo-border);
    padding: 1.75rem;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
    backdrop-filter: blur(6px);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.55);
    animation: holo-modal-in 0.18s ease-out;
}

.holo-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        var(--holo-cyan),
        rgba(65,201,168,0.3),
        transparent 80%);
    opacity: 0.7;
}

.holo-modal::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent rgba(65, 201, 168, 0.15) transparent;
}

@keyframes holo-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Scrollbar dans la modale — cohérente avec le global */
.holo-modal::-webkit-scrollbar       { width: 6px; }
.holo-modal::-webkit-scrollbar-track { background: var(--bg-main, #080D14); }
.holo-modal::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.3); border-radius: 3px; }
.holo-modal::-webkit-scrollbar-thumb:hover { background: rgba(245,158,11,0.55); }

.holo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.holo-modal-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 3px;
    color: var(--holo-cyan);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.holo-modal-title::before {
    content: '◉';
    font-size: 0.5rem;
    color: var(--holo-green);
    text-shadow: 0 0 6px var(--holo-green);
}

/* Bouton FERMER — cohérent avec btn-secondary */
.holo-modal-close {
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f59e0b;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
    transition: all 0.15s ease;
}
.holo-modal-close:hover {
    border-color: rgba(248, 113, 113, 0.5);
    color: #f87171;
    background: rgba(248, 113, 113, 0.06);
    text-shadow: none;
}

/* Séparateur — cohérent avec --line-subtle */
.holo-modal-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--holo-border), transparent);
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

/* Boutons OUI / NON dans la modale — style clip-path holographique du site */
.holo-modal .btn-success {
    background: transparent;
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: var(--success, #34d399);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    text-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}
.holo-modal .btn-success:hover {
    background: rgba(52, 211, 153, 0.1);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.2);
}

.holo-modal .btn-danger {
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: var(--danger, #f87171);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}
.holo-modal .btn-danger:hover {
    background: rgba(248, 113, 113, 0.1);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.2);
}

/* ─── Textarea dans la modale d'envoi de demande ─── */
.holo-modal-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(14, 21, 32, 0.85);
    border: 1px solid rgba(65, 201, 168, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    padding: 0.8rem 1rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.holo-modal-textarea:focus {
    border-color: rgba(65, 201, 168, 0.55);
    background: rgba(20, 29, 42, 0.9);
    box-shadow: 0 0 0 1px rgba(65,201,168,0.15), 0 0 20px rgba(65,201,168,0.08);
}
.holo-modal-textarea::placeholder {
    color: rgba(65, 201, 168, 0.2);
    font-style: normal;
}

/* Bouton primary dans la modale */
.holo-modal .btn-primary {
    background: transparent;
    border: 1px solid rgba(65, 201, 168, 0.5);
    color: #41c9a8;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 0.7rem 1rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    text-shadow: 0 0 8px rgba(65,201,168,0.4);
    box-shadow: 0 0 12px rgba(65,201,168,0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}
.holo-modal .btn-primary:hover {
    background: rgba(65, 201, 168, 0.08);
    box-shadow: 0 0 24px rgba(65,201,168,0.2);
    color: #fff;
}

/* ─── Carte classifiée — contour rouge ─── */
.event-card--redacted {
    border-color: rgba(248, 113, 113, 0.55) !important;
    background:
        linear-gradient(145deg,
            rgba(248, 113, 113, 0.04) 0%,
            rgba(14, 21, 32, 0.88) 30%,
            rgba(14, 21, 32, 0.92) 100%) !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(248, 113, 113, 0.08),
        inset 0 0 40px rgba(248, 113, 113, 0.03) !important;
}
.event-card--redacted:hover {
    border-color: rgba(248, 113, 113, 0.8) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(248, 113, 113, 0.15),
        inset 0 0 40px rgba(248, 113, 113, 0.05) !important;
}

/* ═══════════════════════════════════════════════════════════════
   AUTO-REFRESH — LIVE INDICATOR + TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Point LIVE pulsant ─── */
#live-indicator {
    display: none;
    align-items: center;
    gap: 0.4rem;
}

.holo-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #41c9a8;
    box-shadow: 0 0 6px rgba(65, 201, 168, 0.8);
    animation: holo-live-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes holo-live-pulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 6px  rgba(65,201,168,0.8); }
    50%       { opacity: 0.3; box-shadow: 0 0 12px rgba(65,201,168,0.3); }
}

/* ─── Conteneur toasts ─── */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
}

/* ─── Toast base ─── */
.holo-toast {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    padding: 0.75rem 1.25rem;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    opacity: 0;
    transform: translateX(120%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 360px;
    line-height: 1.5;
}

.holo-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

/* ─── Variantes ─── */
.holo-toast--success {
    background: rgba(14, 21, 32, 0.97);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #34d399;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 16px rgba(52,211,153,0.1);
}

.holo-toast--error {
    background: rgba(14, 21, 32, 0.97);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #f87171;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 16px rgba(248,113,113,0.1);
}

.holo-toast--info {
    background: rgba(14, 21, 32, 0.97);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 16px rgba(245,158,11,0.08);
}

/* ═══════════════════════════════════════════════════════════════
   ÉDITEUR MARKDOWN — TOOLBAR
   ═══════════════════════════════════════════════════════════════ */

.holo-editor {
    display: flex;
    flex-direction: column;
}

.holo-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.6rem;
    background: rgba(8, 15, 25, 0.95);
    border: 1px solid rgba(65, 201, 168, 0.2);
    border-bottom: none;
}

.holo-editor-btn {
    background: transparent;
    border: 1px solid rgba(65, 201, 168, 0.25);
    color: rgba(65, 201, 168, 0.7);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
    transition: all 0.15s ease;
    line-height: 1.4;
}
.holo-editor-btn b {
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
}
.holo-editor-btn:hover {
    background: rgba(65, 201, 168, 0.1);
    border-color: rgba(65, 201, 168, 0.55);
    color: #41c9a8;
    text-shadow: 0 0 6px rgba(65, 201, 168, 0.4);
}

.holo-editor-hint {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    color: rgba(65, 201, 168, 0.25);
    margin-left: auto;
}

/* La textarea colle à la toolbar sans son propre bord supérieur */
.holo-editor textarea {
    border-top: none !important;
}

/* ── Rendu Markdown dans la fiche event ── */
.holo-description-text .md-list {
    margin: 0.4rem 0 0.4rem 1rem;
    padding: 0;
    list-style: none;
}
.holo-description-text .md-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.6;
}
.holo-description-text .md-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--holo-cyan, #41c9a8);
    font-size: 0.7rem;
    top: 0.1rem;
}
.holo-description-text strong {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255,255,255,0.2);
}

/* ═══════════════════════════════════════════════════════════════
   MODALS SYSTÈME — remplacent alert/confirm natifs
   ═══════════════════════════════════════════════════════════════ */

.holo-system-modal-box {
    min-width: 340px;
    max-width: 480px;
}

.holo-system-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.holo-system-modal-icon {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.holo-system-modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.holo-system-modal-message {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: rgba(220, 210, 190, 0.85);
    line-height: 1.7;
    letter-spacing: 0.5px;
    margin: 0 0 1.5rem;
}

.holo-system-modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.holo-system-btn {
    background: transparent;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 2px;
    padding: 0.5rem 1.1rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(65,201,168,0.5);
    color: #41c9a8;
}
.holo-system-btn:hover {
    background: rgba(65,201,168,0.08);
    box-shadow: 0 0 16px rgba(65,201,168,0.2);
}

.holo-system-btn-confirm {
    border-color: rgba(200, 165, 42, 0.55);
    color: #C8A52A;
}
.holo-system-btn-confirm:hover {
    background: rgba(200,165,42,0.08);
    box-shadow: 0 0 16px rgba(200,165,42,0.25);
}

.holo-system-btn-cancel {
    border-color: rgba(248, 113, 113, 0.45);
    color: #f87171;
}
.holo-system-btn-cancel:hover {
    background: rgba(248,113,113,0.08);
    box-shadow: 0 0 14px rgba(248,113,113,0.2);
}
