* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #050508;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 100, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, #050508 0%, #0a0a12 50%, #050508 100%);
    color: #e8e8e8;
    min-height: 100vh;
    letter-spacing: 0.01em;
}

/* App Layout */
.app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Header/Topbar - Style Tactical */
.header,
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(8, 8, 12, 0.98);
    border-bottom: 2px solid rgba(0, 255, 100, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    position: relative;
    flex-shrink: 0;
    z-index: 1000;
}

.header::before,
.topbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.3), transparent);
}

.header-left,
.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 100, 0.3));
    transition: all 0.2s;
}

.logo:hover {
    filter: drop-shadow(0 0 12px rgba(0, 255, 100, 0.5));
    transform: scale(1.05);
}

.sidebar-toggle {
    background: rgba(8, 8, 12, 0.9);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    border-radius: 6px;
    color: #00ff64;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(0, 255, 100, 0);
    position: relative;
    overflow: hidden;
}

.sidebar-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 255, 100, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.sidebar-toggle:hover {
    background: rgba(0, 255, 100, 0.1);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 4px 12px rgba(0, 255, 100, 0.2), 0 0 0 4px rgba(0, 255, 100, 0.1);
    transform: translateY(-1px);
}

.sidebar-toggle:hover::before {
    width: 200px;
    height: 200px;
}

.sidebar-toggle:active {
    transform: translateY(0);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.map-time {
    min-width: 80px;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(8, 8, 12, 0.8);
    border: 1.5px solid rgba(0, 255, 100, 0.2);
    color: #00ff64;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 255, 100, 0.1);
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.4);
}

.map-time.duo-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    min-width: 140px;
}

.map-time .sep {
    opacity: 0.5;
    color: rgba(0, 255, 100, 0.6);
}

/* Time Display */
.time-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    background: rgba(8, 8, 12, 0.8);
    border: 1.5px solid rgba(0, 255, 100, 0.2);
    color: #00ff64;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 255, 100, 0.1);
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.4);
}

.time-sep {
    opacity: 0.5;
    color: rgba(0, 255, 100, 0.6);
}

/* Room ID Container */
.room-id-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(8, 8, 12, 0.9);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    color: #00ff64;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(0, 255, 100, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-id-container:hover {
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 4px 12px rgba(0, 255, 100, 0.2);
    background: rgba(8, 8, 12, 1);
}

.room-id-value {
    color: #00ff64;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 255, 100, 0.6), 0 0 20px rgba(0, 255, 100, 0.3);
}

.room-id-copy {
    background: transparent;
    border: none;
    color: rgba(0, 255, 100, 0.6);
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 4px;
    font-size: 16px;
    line-height: 1;
    position: relative;
    min-width: 24px;
    min-height: 24px;
}

.room-id-copy:hover {
    background: rgba(0, 255, 100, 0.1);
    color: #00ff64;
    transform: scale(1.1);
}

.room-id-copy:active {
    transform: scale(0.95);
}

.room-id-copy.copied {
    animation: checkPulse 0.5s ease-out;
}

@keyframes checkPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.room-id-copy .copy-icon,
.room-id-copy .check-icon {
    display: inline-block;
    transition: all 0.3s;
}

.room-id-copy .check-icon {
    color: #00ff64;
    font-weight: bold;
    font-size: 18px;
}

.room-id-join {
    background: rgba(0, 255, 100, 0.1);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    color: #00ff64;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-id-join:hover {
    background: rgba(0, 255, 100, 0.15);
    border-color: rgba(0, 255, 100, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 255, 100, 0.2);
}

.room-id-join:active {
    transform: translateY(0);
}

/* Buttons */
.btn-icon {
    background: rgba(8, 8, 12, 0.9);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    border-radius: 6px;
    color: #00ff64;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.btn-icon:hover {
    background: rgba(0, 255, 100, 0.1);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 4px 12px rgba(0, 255, 100, 0.2);
    transform: translateY(-1px);
}

.btn-primary {
    padding: 10px 18px;
    background: rgba(0, 255, 100, 0.1);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    border-radius: 6px;
    color: #00ff64;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    background: rgba(0, 255, 100, 0.15);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 4px 12px rgba(0, 255, 100, 0.2);
    transform: translateY(-1px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 10px 18px;
    background: rgba(8, 8, 12, 0.9);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    border-radius: 6px;
    color: #00ff64;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 255, 100, 0.1);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 4px 12px rgba(0, 255, 100, 0.2);
    transform: translateY(-1px);
}

.btn-toggle {
    background: rgba(0, 255, 100, 0.1);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    border-radius: 6px;
    color: #00ff64;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    font-weight: 700;
}

.btn-toggle:hover {
    background: rgba(0, 255, 100, 0.2);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 100, 0.3);
}

.auth-btn {
    padding: 10px 18px;
    background: rgba(0, 255, 100, 0.1);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    border-radius: 6px;
    color: #00ff64;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.2), transparent);
    transition: left 0.5s;
}

.auth-btn:hover {
    background: rgba(0, 255, 100, 0.15);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 4px 12px rgba(0, 255, 100, 0.2);
    transform: translateY(-1px);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:active {
    transform: translateY(0);
}

/* Modal - Style Tactical (legacy) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(8, 8, 12, 0.98);
    border: 2px solid rgba(0, 255, 100, 0.3);
    border-radius: 12px;
    padding: 32px;
    width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 255, 100, 0.1);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.5), transparent);
}

.modal-close {
    float: right;
    cursor: pointer;
    font-size: 24px;
    color: #888;
    transition: all 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    color: #00ff64;
    background: rgba(0, 255, 100, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   AUTH MODAL - Modern Login/Register Interface
   ═══════════════════════════════════════════════════════════════ */

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal[style*="flex"] {
    opacity: 1;
    visibility: visible;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 20, 10, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px);
}

.auth-modal-container {
    position: relative;
    width: 440px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(165deg, rgba(15, 20, 18, 0.95) 0%, rgba(8, 10, 12, 0.98) 100%);
    border: 1px solid rgba(0, 255, 100, 0.15);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 0 0 1px rgba(0, 255, 100, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(0, 255, 100, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal[style*="flex"] .auth-modal-container {
    transform: translateY(0) scale(1);
}

/* Close button */
.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.auth-close-btn svg {
    width: 20px;
    height: 20px;
    color: #666;
    transition: all 0.2s;
}

.auth-close-btn:hover {
    background: rgba(255, 68, 68, 0.15);
    transform: rotate(90deg);
}

.auth-close-btn:hover svg {
    color: #ff4444;
}

/* Brand section */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.auth-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 100, 0.3) 0%, transparent 70%);
    filter: blur(30px);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.auth-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(0, 255, 100, 0.4));
}

.auth-tagline {
    margin: 12px 0 0;
    font-size: 0.9em;
    color: #666;
    letter-spacing: 1px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 32px;
    position: relative;
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: #666;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.auth-tab-icon {
    font-size: 1.1em;
}

.auth-tab:hover {
    color: #aaa;
}

.auth-tab.active {
    color: #00ff64;
}

.auth-tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.15) 0%, rgba(0, 255, 100, 0.05) 100%);
    border: 1px solid rgba(0, 255, 100, 0.3);
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.auth-tabs[data-mode="register"] .auth-tab-indicator {
    transform: translateX(100%);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input groups */
.auth-input-group {
    position: relative;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #555;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 2;
}

.auth-input-icon svg {
    width: 100%;
    height: 100%;
}

.auth-input {
    width: 100%;
    padding: 18px 50px 18px 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 
        0 0 0 4px rgba(0, 255, 100, 0.1),
        0 0 30px rgba(0, 255, 100, 0.1);
}

.auth-input:focus ~ .auth-input-icon {
    color: #00ff64;
}

/* Floating label */
.auth-label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1em;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 6px;
}

.auth-input:focus ~ .auth-label,
.auth-input:not(:placeholder-shown) ~ .auth-label {
    top: 0;
    left: 14px;
    font-size: 0.75em;
    color: #00ff64;
    background: linear-gradient(180deg, transparent 45%, rgba(8, 10, 12, 1) 45%);
    transform: translateY(-50%);
}

/* Password toggle */
.auth-password-toggle {
    position: absolute;
    right: 14px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;
    color: #555;
    transition: all 0.2s;
}

.auth-password-toggle:hover {
    background: rgba(0, 255, 100, 0.1);
}

.auth-password-toggle:hover svg {
    color: #00ff64;
}

/* Password strength indicator */
.auth-password-strength {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s;
}

.strength-fill.weak { width: 33%; background: #ff4444; }
.strength-fill.medium { width: 66%; background: #ffaa00; }
.strength-fill.strong { width: 100%; background: #00ff64; }

.strength-text {
    font-size: 0.75em;
    color: #666;
    min-width: 80px;
}

.strength-text.weak { color: #ff4444; }
.strength-text.medium { color: #ffaa00; }
.strength-text.strong { color: #00ff64; }

/* Forgot password link */
.auth-forgot-password {
    margin-top: 8px;
    text-align: right;
}

.auth-forgot-password a {
    font-size: 0.85em;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-password a:hover {
    color: #00ff64;
    text-decoration: underline;
}

/* Submit button */
.auth-submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.2) 0%, rgba(0, 200, 80, 0.15) 100%);
    border: 2px solid rgba(0, 255, 100, 0.4);
    border-radius: 14px;
    color: #00ff64;
    font-size: 1.05em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.2), transparent);
    transition: left 0.5s;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.3) 0%, rgba(0, 200, 80, 0.25) 100%);
    border-color: rgba(0, 255, 100, 0.6);
    box-shadow: 
        0 0 30px rgba(0, 255, 100, 0.3),
        0 10px 40px rgba(0, 255, 100, 0.2);
    transform: translateY(-2px);
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.auth-submit-btn:hover .auth-submit-icon svg {
    transform: translateX(4px);
}

.auth-submit-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 100, 0.3);
    border-top-color: #00ff64;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-submit-btn.loading .auth-submit-text,
.auth-submit-btn.loading .auth-submit-icon {
    opacity: 0;
}

.auth-submit-btn.loading .auth-submit-loader {
    display: block;
    position: absolute;
}

/* Mode switch */
.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.auth-switch-text {
    color: #666;
    font-size: 0.9em;
}

.auth-switch-btn {
    background: transparent;
    border: none;
    color: #00ff64;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.auth-switch-btn:hover {
    background: rgba(0, 255, 100, 0.1);
    text-decoration: underline;
}

/* Decorative elements */
.auth-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 24px;
}

.auth-grid {
    position: absolute;
    inset: -50%;
    background-image: 
        linear-gradient(rgba(0, 255, 100, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 100, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.5;
}

/* Input validation states */
.auth-input.error {
    border-color: rgba(255, 68, 68, 0.6);
    animation: inputShake 0.4s ease-in-out;
}

.auth-input.error ~ .auth-input-icon {
    color: #ff4444;
}

.auth-input.success {
    border-color: rgba(0, 255, 100, 0.5);
}

.auth-input.success ~ .auth-input-icon {
    color: #00ff64;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-modal-container {
        padding: 30px 24px;
        border-radius: 20px;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
    
    .auth-tab-text {
        display: none;
    }
    
    .auth-tab-icon {
        font-size: 1.3em;
    }
    
    .auth-input {
        padding: 16px 45px;
        font-size: 0.95em;
    }
}

/* Presence Panel - Style Tactical */
.presence-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: rgba(8, 8, 12, 0.95);
    border: 2px solid rgba(0, 255, 100, 0.2);
    border-radius: 10px;
    padding: 16px;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    z-index: 2000;
}

.presence-panel h3 {
    margin: 0 0 12px 0;
    font-size: 0.95em;
    color: #00ff64;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    border-bottom: 1px solid rgba(0, 255, 100, 0.2);
    padding-bottom: 8px;
}

.presence-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.presence-panel li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 0.9em;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(20, 20, 28, 0.6);
    border: 1px solid rgba(0, 255, 100, 0.1);
    transition: all 0.2s;
}

.presence-panel li:hover {
    background: rgba(0, 255, 100, 0.05);
    border-color: rgba(0, 255, 100, 0.3);
}

.presence-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px currentColor, inset 0 0 4px currentColor;
}

/* Marqueur de position utilisateur sur la carte */
.user-position-marker {
    background: transparent !important;
    border: none !important;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.85em;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.form-group input {
    padding: 12px;
    background: rgba(8, 8, 12, 0.8);
    border: 1.5px solid rgba(0, 255, 100, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 100, 0.1);
    background: rgba(8, 8, 12, 0.95);
}

.primary-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.2), rgba(0, 200, 255, 0.2));
    border: 1.5px solid rgba(0, 255, 100, 0.4);
    border-radius: 6px;
    color: #00ff64;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.3), rgba(0, 200, 255, 0.3));
    border-color: rgba(0, 255, 100, 0.6);
    box-shadow: 0 4px 12px rgba(0, 255, 100, 0.2);
    transform: translateY(-1px);
}

.link-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    color: #00ff64;
    cursor: pointer;
    text-decoration: none;
    margin-top: 8px;
    font-size: 13px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-btn:hover {
    color: #00ff88;
    text-decoration: underline;
}

/* Bouton lien dans le formulaire d'authentification */
.btn-link {
    width: 100%;
    padding: 10px 18px;
    background: rgba(8, 8, 12, 0.6);
    border: 1.5px solid rgba(0, 255, 100, 0.2);
    border-radius: 6px;
    color: #00ff64;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
}

.btn-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.1), transparent);
    transition: left 0.5s;
}

.btn-link:hover {
    background: rgba(0, 255, 100, 0.08);
    border-color: rgba(0, 255, 100, 0.4);
    color: #00ff88;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 255, 100, 0.15);
    text-decoration: none;
}

.btn-link:hover::before {
    left: 100%;
}

.btn-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 255, 100, 0.1);
}

/* Main Content */
.main {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 0;
}

/* App Container (alias) */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.app-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    gap: 0;
}

/* Sidebar - Style Tactical */
.sidebar {
    width: 340px;
    min-width: 340px;
    background: rgba(8, 8, 12, 0.98);
    padding: 24px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6), inset -1px 0 0 rgba(0, 255, 100, 0.1);
    border-right: 2px solid rgba(0, 255, 100, 0.15);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.1em;
    margin: 0;
    color: #00ff64;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.3);
}

.sidebar.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    width: 0;
    min-width: 0;
    padding: 0;
    border-right: none;
}

.sidebar h2 {
    font-size: 1.1em;
    margin-bottom: 16px;
    color: #00ff64;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.3);
}

.map-selector {
    margin-bottom: 24px;
}

.map-select,
.select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(8, 8, 12, 0.8);
    border: 1.5px solid rgba(0, 255, 100, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.map-select:hover,
.select:hover {
    border-color: rgba(0, 255, 100, 0.4);
    background: rgba(8, 8, 12, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 255, 100, 0.05);
}

.map-select:focus,
.select:focus {
    outline: none;
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 100, 0.1);
}

/* Legend - Style Tactical */
.legend {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid rgba(0, 255, 100, 0.15);
}

.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.legend-header h2 {
    font-size: 1.1em;
    margin: 0;
    color: #00ff64;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.3);
}

.toggle-legend-btn {
    background: rgba(0, 255, 100, 0.1);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    border-radius: 6px;
    color: #00ff64;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    font-weight: 700;
}

.toggle-legend-btn:hover {
    background: rgba(0, 255, 100, 0.2);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 100, 0.3);
}

.legend-content {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.legend-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: none;
    overflow: visible;
}

.legend-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-group {
    background: rgba(20, 20, 28, 0.6);
    border-radius: 10px;
    padding: 14px;
    border: 1.5px solid rgba(0, 255, 100, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.legend-group:last-child {
    margin-bottom: 0;
}

.legend-group:hover {
    border-color: rgba(0, 255, 100, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 255, 100, 0.1);
}

.legend-search-container {
    margin-bottom: 16px;
}

.legend-search {
    width: 100%;
    padding: 10px 14px;
    background: rgba(8, 8, 12, 0.8);
    border: 1.5px solid rgba(0, 255, 100, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 13px;
    transition: all 0.2s;
    font-weight: 500;
}

.legend-search:focus {
    outline: none;
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 100, 0.1);
    background: rgba(8, 8, 12, 0.95);
}

.legend-search::placeholder {
    color: #666;
    opacity: 0.8;
}

.legend-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9em;
    font-style: italic;
}

.legend-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0, 255, 100, 0.15);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    background: rgba(0, 255, 100, 0.03);
}

.legend-group-header:hover {
    background: rgba(0, 255, 100, 0.08);
    border-bottom-color: rgba(0, 255, 100, 0.3);
    transform: translateX(2px);
}

.legend-group-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.legend-group-title {
    flex: 1;
    font-size: 0.9em;
    color: #00ff64;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.legend-group-count {
    font-size: 0.75em;
    color: rgba(0, 255, 100, 0.6);
    font-weight: 600;
    background: rgba(0, 255, 100, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 32px;
    text-align: center;
}

.legend-group-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 8px;
    padding-top: 8px;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    max-height: none;
    overflow: visible;
}

.legend-group-items.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(8, 8, 12, 0.6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    position: relative;
    min-height: auto;
}

.legend-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(0, 255, 100, 0);
    border-radius: 8px 0 0 8px;
    transition: all 0.2s;
}

.legend-item:hover {
    background: rgba(0, 255, 100, 0.08);
    border-color: rgba(0, 255, 100, 0.25);
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 255, 100, 0.1);
}

.legend-item:hover::before {
    background: rgba(0, 255, 100, 0.5);
}

.legend-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00ff64;
    pointer-events: auto;
}

.legend-item-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 255, 100, 0.3));
    transition: all 0.2s ease;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(0, 255, 100, 0.05);
    padding: 2px;
    pointer-events: none;
}

.legend-item-label {
    flex: 1;
    font-size: 0.9em;
    color: #e0e0e0;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    line-height: 1.4;
    pointer-events: none;
}

.legend-item.active {
    background: rgba(0, 255, 100, 0.12);
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 0 0 2px rgba(0, 255, 100, 0.1), inset 0 1px 0 rgba(0, 255, 100, 0.2);
}

.legend-item.active::before {
    background: rgba(0, 255, 100, 0.8);
    width: 4px;
}

.legend-item.active .legend-item-label {
    color: #00ff64;
    font-weight: 600;
}

.legend-item.active .legend-item-icon {
    filter: drop-shadow(0 0 6px rgba(0, 255, 100, 0.6));
    transform: scale(1.1);
}

.legend-item-count {
    font-size: 0.75em;
    color: rgba(0, 255, 100, 0.7);
    font-weight: 600;
    background: rgba(0, 255, 100, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 28px;
    text-align: center;
    font-family: 'Courier New', monospace;
    margin-left: auto;
    transition: all 0.2s;
}

.legend-item.active .legend-item-count {
    background: rgba(0, 255, 100, 0.2);
    color: #00ff64;
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.3);
}

.legend-item-hidden {
    display: none !important;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Map Section */
.map-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.map-view {
    width: 100%;
    height: 100%;
    position: relative;
    background: #050508;
}

.leaflet-container {
    background: #050508 !important;
}

/* Map Controls - Style Tactical */
.map-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1200;
}

.map-control-group {
    background: rgba(8, 8, 12, 0.95);
    border: 2px solid rgba(0, 255, 100, 0.2);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    min-width: 140px;
}

.map-control-title {
    font-size: 0.75em;
    color: #00ff64;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 10px;
}

.floor-select {
    width: 100%;
    background: rgba(8, 8, 12, 0.8);
    border: 1.5px solid rgba(0, 255, 100, 0.2);
    color: #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.floor-select:hover {
    border-color: rgba(0, 255, 100, 0.4);
    background: rgba(8, 8, 12, 0.95);
}

.floor-select:focus {
    outline: none;
    border-color: rgba(0, 255, 100, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 100, 0.1);
}

/* Zoom Control - Style Tactical */
.zoom-control-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zoom-slider {
    flex: 1;
    height: 6px;
    background: rgba(20, 20, 28, 0.6);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 100, 0.2);
    -webkit-appearance: none;
    appearance: none;
}

.zoom-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #00ff64;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(8, 8, 12, 0.8);
    transition: all 0.2s;
}

.zoom-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 12px rgba(0, 255, 100, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.zoom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #00ff64;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(8, 8, 12, 0.8);
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.zoom-value {
    font-size: 0.85em;
    color: #00ff64;
    min-width: 50px;
    text-align: right;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.4);
    font-size: 12px;
}

#map {
    width: 100%;
    height: 100%;
    background: #050508 !important;
}

.leaflet-tile-container img {
    opacity: 1 !important;
    display: block !important;
}

/* ═══════════════════════════════════════════════════════════════
   LOADING SPINNER
   ═══════════════════════════════════════════════════════════════ */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
}

.loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 100, 0.2);
    border-top-color: var(--accent-color, #00ff64);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--accent-color, #00ff64);
    font-size: 1.1em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Loading Error / Retry UI */
.loading-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
    text-align: center;
    padding: 40px;
}

.loading-error .error-icon {
    font-size: 48px;
    opacity: 0.8;
}

.loading-error p {
    color: #a0a0a0;
    font-size: 1.1em;
    margin: 0;
}

.retry-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.15) 0%, rgba(0, 255, 100, 0.05) 100%);
    border: 2px solid rgba(0, 255, 100, 0.4);
    border-radius: 8px;
    color: #00ff64;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.retry-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.25) 0%, rgba(0, 255, 100, 0.1) 100%);
    border-color: rgba(0, 255, 100, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.3);
    transform: translateY(-2px);
}

.retry-btn:active {
    transform: translateY(0);
}

.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #666;
    padding: 40px;
}

.welcome-message h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #00ff64;
    text-shadow: 0 0 20px rgba(0, 255, 100, 0.5);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.welcome-message p {
    font-size: 1.2em;
    color: #888;
    letter-spacing: 1px;
}

/* Drawing Section - Style Tactical */
.drawing-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid rgba(0, 255, 100, 0.15);
}

.drawing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.drawing-header h2 {
    font-size: 1.1em;
    margin: 0;
    color: #00ff64;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.3);
}

.drawing-content {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.drawing-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    overflow: hidden;
}

.drawing-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION AGENT - Positions Équipe
   ═══════════════════════════════════════════════════════════════ */

.agent-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    overflow: hidden;
}

.agent-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.agent-description {
    font-size: 0.9em;
    color: #a0a0a0;
    line-height: 1.5;
    margin: 0;
}

.agent-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 255, 100, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color, #00ff64);
}

.agent-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85em;
    color: #c0c0c0;
}

.agent-step .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--accent-color, #00ff64);
    color: #000;
    font-weight: bold;
    font-size: 0.8em;
    border-radius: 50%;
}

.agent-step code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--accent-color, #00ff64);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0d3320 0%, #155d2a 100%);
    color: var(--accent-color, #00ff64);
    border: 1px solid rgba(0, 255, 100, 0.3);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-download:hover {
    background: linear-gradient(135deg, #155d2a 0%, #1a7a35 100%);
    border-color: var(--accent-color, #00ff64);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 100, 0.2);
}

/* Container pour les boutons de téléchargement */
.agent-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Bouton principal - Installateur */
.btn-download-primary {
    background: linear-gradient(135deg, #0d3320 0%, #155d2a 100%);
    padding: 16px 20px;
    font-size: 1.05em;
    position: relative;
    overflow: hidden;
}

.btn-download-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.15), transparent);
    transition: left 0.5s;
}

.btn-download-primary:hover::before {
    left: 100%;
}

/* Bouton secondaire - ZIP */
.btn-download-secondary {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(0, 255, 100, 0.2);
    padding: 10px 16px;
    font-size: 0.85em;
    color: #a0a0a0;
}

.btn-download-secondary:hover {
    background: rgba(30, 30, 40, 0.9);
    border-color: rgba(0, 255, 100, 0.4);
    color: var(--accent-color, #00ff64);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Version de l'agent */
.agent-version {
    font-size: 0.75em;
    color: #555;
    margin: 0;
    text-align: center;
    font-family: 'Consolas', monospace;
}

.agent-note {
    font-size: 0.8em;
    color: #666;
    margin: 0;
    font-style: italic;
    text-align: center;
}

.drawing-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.drawing-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawing-control-group input[type="color"] {
    display: none !important;
}

.drawing-control-group label {
    font-size: 0.85em;
    color: #a0a0a0;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 11px;
}

.drawing-control-group input[type="range"] {
    flex: 1;
    height: 6px;
    background: rgba(20, 20, 28, 0.6);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 100, 0.2);
}

.drawing-control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #00ff64;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(8, 8, 12, 0.8);
    transition: all 0.2s;
}

.drawing-control-group input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 12px rgba(0, 255, 100, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.drawing-control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #00ff64;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(8, 8, 12, 0.8);
    box-shadow: 0 0 8px rgba(0, 255, 100, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

#drawingWidthValue {
    font-size: 0.85em;
    color: #00ff64;
    min-width: 40px;
    text-align: right;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.4);
}

.drawing-buttons {
    flex-direction: column;
    gap: 10px;
}

.clear-my-drawings-btn,
.clear-drawings-btn {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1.5px solid;
    position: relative;
    overflow: hidden;
}

.clear-my-drawings-btn {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.clear-my-drawings-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    transform: translateY(-1px);
}

.clear-drawings-btn {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.clear-drawings-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transform: translateY(-1px);
}

.drawing-info {
    margin-top: 14px;
    padding: 14px;
    background: rgba(20, 20, 28, 0.5);
    border-radius: 8px;
    font-size: 0.85em;
    color: #a0a0a0;
    line-height: 1.8;
    border: 1px solid rgba(0, 255, 100, 0.1);
}

.drawing-info p {
    margin: 6px 0;
}

.drawing-info strong {
    color: #00ff64;
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.drawing-info kbd {
    background: rgba(0, 255, 100, 0.15);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #00ff64;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Section Raccourcis - Style Tactical (indépendante de drawingContent) */
.shortcuts-section {
    margin-top: 24px;
    padding-top: 24px;
    padding-bottom: 0;
    border-top: 2px solid rgba(0, 255, 100, 0.15);
    display: block;
}

.shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.shortcuts-header h3 {
    font-size: 0.95em;
    margin: 0;
    color: #00ff64;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(0, 255, 100, 0.3);
}

.shortcuts-content {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.shortcuts-content.collapsed {
    max-height: 0;
    overflow: hidden;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(20, 20, 28, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 100, 0.1);
}

.shortcut-item label {
    font-size: 0.8em;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 10px;
}

.shortcut-display {
    padding: 6px 12px;
    background: rgba(0, 255, 100, 0.15);
    border: 1.5px solid rgba(0, 255, 100, 0.3);
    border-radius: 6px;
    color: #00ff64;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Scrollbar personnalisée - Style Tactical */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(20, 20, 28, 0.3);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 100, 0.4);
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 100, 0.2);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 100, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .app-main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 200px;
    }
}

/* Section Quêtes - Utilise les mêmes styles que la légende avec couleur orange */
.quests-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: none;
    overflow: visible;
}

.quests-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Style orange pour le titre des quêtes */
#questsSection .section-header h2 {
    color: #ff6b00;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}

/* Style orange pour la barre de recherche des quêtes */
#questsSection .legend-search {
    border: 1.5px solid rgba(255, 107, 0, 0.2);
}

#questsSection .legend-search:focus {
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* Style orange pour les groupes de quêtes */
#questsItems .legend-group {
    border-color: rgba(255, 107, 0, 0.15);
}

#questsItems .legend-group:hover {
    border-color: rgba(255, 107, 0, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 107, 0, 0.1);
}

/* Style orange pour les headers de groupes de quêtes */
#questsItems .legend-group-header {
    border-bottom-color: rgba(255, 107, 0, 0.15);
    background: rgba(255, 107, 0, 0.03);
}

#questsItems .legend-group-header:hover {
    background: rgba(255, 107, 0, 0.08);
    border-bottom-color: rgba(255, 107, 0, 0.3);
}

/* Style orange pour les titres de groupes de quêtes */
#questsItems .legend-group-title {
    color: #ff6b00;
}

/* Style orange pour les compteurs de groupes de quêtes */
#questsItems .legend-group-count {
    color: rgba(255, 107, 0, 0.6);
    background: rgba(255, 107, 0, 0.1);
}

/* Icône du trader dans le header du groupe de quêtes */
#questsItems .legend-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.quest-group-trader-icon {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 1.5px solid rgba(255, 107, 0, 0.3);
    transition: all 0.2s ease;
}

.quest-group-trader-icon:hover {
    border-color: rgba(255, 107, 0, 0.6);
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 107, 0, 0.3);
}

.loading, .no-quests, .error {
    padding: 20px;
    text-align: center;
    color: #a0a0a0;
    font-size: 0.9em;
}

.error {
    color: #ff4444;
}

/* Menu déroulant auth */
.auth-menu-container {
    position: relative;
}

.auth-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(8, 8, 12, 0.98);
    border: 2px solid rgba(0, 255, 100, 0.3);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    animation: slideDown 0.2s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #e8e8e8;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.dropdown-item:hover {
    background: rgba(0, 255, 100, 0.1);
    color: #00ff64;
}

.dropdown-item:active {
    background: rgba(0, 255, 100, 0.15);
}

/* Dropdown link (for external links like Discord) */
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.dropdown-discord-icon {
    width: 18px;
    height: 18px;
    color: #5865F2;
    transition: all 0.2s;
}

.dropdown-link:hover .dropdown-discord-icon {
    color: #7289DA;
    transform: scale(1.1);
}

/* Dropdown divider */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.2), transparent);
    margin: 6px 12px;
}

/* ═══════════════════════════════════════════════════════════════
   SETTINGS MODAL - Modern Design
   ═══════════════════════════════════════════════════════════════ */

.settings-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 20, 10, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px);
}

.settings-modal-container {
    position: relative;
    width: 420px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(165deg, rgba(15, 20, 18, 0.95) 0%, rgba(8, 10, 12, 0.98) 100%);
    border: 1px solid rgba(0, 255, 100, 0.15);
    border-radius: 24px;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 
        0 0 0 1px rgba(0, 255, 100, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(0, 255, 100, 0.08);
    animation: fadeIn 0.25s ease-out;
}

/* Hide scrollbar but allow scrolling */
.settings-modal-container::-webkit-scrollbar {
    width: 6px;
}

.settings-modal-container::-webkit-scrollbar-track {
    background: transparent;
}

.settings-modal-container::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 100, 0.3);
    border-radius: 3px;
}

.settings-modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 100, 0.5);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.settings-header-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.15) 0%, rgba(0, 255, 100, 0.05) 100%);
    border: 1px solid rgba(0, 255, 100, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.settings-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Settings Tabs */
.settings-tabs-container {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 28px;
    width: 100%;
    box-sizing: border-box;
}

.settings-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #666;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 0;
    overflow: hidden;
}

.settings-tab-btn span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.settings-tab-btn:hover {
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
}

.settings-tab-btn.active {
    color: #00ff64;
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.15) 0%, rgba(0, 255, 100, 0.05) 100%);
    border: 1px solid rgba(0, 255, 100, 0.3);
}

.settings-tab-btn.danger:hover {
    color: #ff6666;
    background: rgba(255, 68, 68, 0.1);
}

.settings-tab-btn.danger.active {
    color: #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15) 0%, rgba(255, 68, 68, 0.05) 100%);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.settings-tab-icon {
    font-size: 1.1em;
}

.settings-tab-content {
    /* No animation to prevent scrollbar issues */
    opacity: 1;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Danger Zone */
.settings-danger-zone {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 68, 68, 0.05) 100%);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.danger-zone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.danger-zone-icon {
    font-size: 1.3em;
}

.danger-zone-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #ff4444;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.danger-zone-text {
    margin: 0;
    color: #cc8888;
    font-size: 0.9em;
    line-height: 1.6;
}

.danger-zone-text strong {
    color: #ff4444;
}

/* Delete button */
.settings-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2) 0%, rgba(200, 40, 40, 0.15) 100%);
    border: 2px solid rgba(255, 68, 68, 0.5);
    border-radius: 14px;
    color: #ff4444;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-delete-btn:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.3) 0%, rgba(200, 40, 40, 0.25) 100%);
    border-color: rgba(255, 68, 68, 0.7);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Settings Error Message */
.settings-error-msg {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
    animation: fadeSlideIn 0.3s ease;
}

.settings-error-msg.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.settings-error-msg.success {
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.3);
    color: #00ff64;
}

/* Legacy support */
.btn-danger {
    background: rgba(255, 68, 68, 0.1);
    border: 1.5px solid rgba(255, 68, 68, 0.5);
    color: #ff4444;
}

.btn-danger:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.7);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM NOTIFICATION MODAL - Tactical Theme
   ═══════════════════════════════════════════════════════════════ */

.notification-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-modal.active {
    opacity: 1;
    visibility: visible;
}

.notification-modal-content {
    background: rgba(8, 8, 12, 0.98);
    border: 2px solid rgba(0, 255, 100, 0.3);
    border-radius: 16px;
    padding: 0;
    width: 420px;
    max-width: 90vw;
    box-shadow: 
        0 0 0 1px rgba(0, 255, 100, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(0, 255, 100, 0.1);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.notification-modal.active .notification-modal-content {
    transform: translateY(0) scale(1);
}

/* Glow line at top */
.notification-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.8), transparent);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Modal header */
.notification-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 16px;
    position: relative;
}

.notification-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Icon variants */
.notification-modal-icon.success {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.15), rgba(0, 255, 100, 0.05));
    border: 1.5px solid rgba(0, 255, 100, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.2), inset 0 0 20px rgba(0, 255, 100, 0.1);
}

.notification-modal-icon.error {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15), rgba(255, 68, 68, 0.05));
    border: 1.5px solid rgba(255, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2), inset 0 0 20px rgba(255, 68, 68, 0.1);
}

.notification-modal-icon.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.05));
    border: 1.5px solid rgba(255, 193, 7, 0.4);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2), inset 0 0 20px rgba(255, 193, 7, 0.1);
}

.notification-modal-icon.info {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.15), rgba(0, 200, 255, 0.05));
    border: 1.5px solid rgba(0, 200, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.2), inset 0 0 20px rgba(0, 200, 255, 0.1);
}

.notification-modal-icon.confirm {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 107, 0, 0.05));
    border: 1.5px solid rgba(255, 107, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2), inset 0 0 20px rgba(255, 107, 0, 0.1);
}

.notification-modal-title {
    flex: 1;
    margin: 0;
    font-size: 1.35em;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Modal body */
.notification-modal-body {
    padding: 0 28px 24px;
}

.notification-modal-message {
    margin: 0;
    font-size: 0.95em;
    color: #b0b0b0;
    line-height: 1.7;
    white-space: pre-line;
}

/* Highlight text in message */
.notification-modal-message strong {
    color: #00ff64;
    font-weight: 600;
}

/* Modal footer */
.notification-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 28px 28px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 255, 100, 0.1);
}

/* Modal buttons */
.notification-modal-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.notification-modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.4s;
}

.notification-modal-btn:hover::before {
    left: 100%;
}

/* Primary button (confirm) */
.notification-modal-btn.primary {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.2), rgba(0, 255, 100, 0.1));
    border: 1.5px solid rgba(0, 255, 100, 0.5);
    color: #00ff64;
    box-shadow: 0 4px 15px rgba(0, 255, 100, 0.15);
}

.notification-modal-btn.primary:hover {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.3), rgba(0, 255, 100, 0.15));
    border-color: rgba(0, 255, 100, 0.7);
    box-shadow: 0 6px 20px rgba(0, 255, 100, 0.25);
    transform: translateY(-2px);
}

.notification-modal-btn.primary:active {
    transform: translateY(0);
}

/* Secondary button (cancel) */
.notification-modal-btn.secondary {
    background: rgba(30, 30, 40, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

.notification-modal-btn.secondary:hover {
    background: rgba(40, 40, 55, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    transform: translateY(-2px);
}

/* Danger button variant */
.notification-modal-btn.danger {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(255, 68, 68, 0.1));
    border: 1.5px solid rgba(255, 68, 68, 0.5);
    color: #ff4444;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.15);
}

.notification-modal-btn.danger:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.3), rgba(255, 68, 68, 0.15));
    border-color: rgba(255, 68, 68, 0.7);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.25);
    transform: translateY(-2px);
}

/* Single button centered */
.notification-modal-footer.single-button {
    justify-content: center;
}

.notification-modal-footer.single-button .notification-modal-btn {
    flex: 0 1 auto;
    min-width: 160px;
}

/* Email verification special styling */
.notification-modal.email-verify .notification-modal-content::before {
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.8), transparent);
}

.notification-modal.email-verify .notification-modal-btn.primary {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(0, 200, 255, 0.1));
    border-color: rgba(0, 200, 255, 0.5);
    color: #00c8ff;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.15);
}

.notification-modal.email-verify .notification-modal-btn.primary:hover {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.3), rgba(0, 200, 255, 0.15));
    border-color: rgba(0, 200, 255, 0.7);
    box-shadow: 0 6px 20px rgba(0, 200, 255, 0.25);
}

/* Shake animation for errors */
@keyframes modalShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.notification-modal.shake .notification-modal-content {
    animation: modalShake 0.5s ease-in-out;
}

/* Input Modal Field */
.input-modal-field {
    margin-top: 16px;
}

.input-modal-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(8, 8, 12, 0.9);
    border: 2px solid rgba(0, 255, 100, 0.3);
    border-radius: 8px;
    color: #00ff64;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.input-modal-input:focus {
    outline: none;
    border-color: rgba(0, 255, 100, 0.6);
    box-shadow: 0 0 0 4px rgba(0, 255, 100, 0.1), 0 0 20px rgba(0, 255, 100, 0.2);
    background: rgba(8, 8, 12, 1);
}

.input-modal-input::placeholder {
    color: rgba(0, 255, 100, 0.3);
    font-weight: 400;
    letter-spacing: 1px;
}

.input-modal-input.error {
    border-color: rgba(255, 68, 68, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.1);
    animation: modalShake 0.3s ease-in-out;
}
