/* Public website styles */

:root {
            --primary-color: #ef1b1b;
            --primary-dark: #b91c1c;
            --accent-red: #ff3b3b;
            --accent-red-dark: #b91c1c;
            --dark-bg: #070707;
            --dark-nav: #111111;
            --surface-1: #0d0d0d;
            --surface-2: #151515;
            --surface-3: #1d1d1d;
            --border-color: rgba(255, 255, 255, 0.11);
            --border-red: rgba(239, 27, 27, 0.4);
            --text-white: #ffffff;
            --text-light: #c5c5c5;
            --text-muted: #929292;
            --focus-ring: 0 0 0 0.22rem rgba(239, 27, 27, 0.28);
            color-scheme: dark;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background:
                radial-gradient(circle at 50% -20%, rgba(185, 28, 28, 0.16), transparent 34rem),
                var(--dark-bg);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            color: var(--text-white);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        ::selection {
            background: rgba(239, 27, 27, 0.78);
            color: #fff;
        }
        
        /* Top Navigation Bar - Optimized */
        .top-navbar {
            background: var(--dark-nav);
            padding: 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            position: sticky;
            top: 0;
            z-index: 1000;
        }
        
        .navbar-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1rem;
        }
        
        .navbar-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 0;
            min-height: 70px;
        }
        
        /* Logo Section - Compact */
        .logo-section {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            flex-shrink: 0;
        }
        
        .logo-image {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #10b981, #059669);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
            flex-shrink: 0;
        }
        
        .logo-text {
            display: flex;
            flex-direction: column;
        }
        
        .logo-text .main-text {
            font-size: 1.25rem;
            font-weight: 900;
            color: #ef4444;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            line-height: 1.2;
            white-space: nowrap;
        }
        
        .logo-text .sub-text {
            font-size: 0.75rem;
            color: var(--text-white);
            font-weight: 600;
            opacity: 0.9;
        }
        
        /* Navigation Links - Compact */
        .nav-links {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            list-style: none;
            margin: 0;
            padding: 0;
            flex-wrap: wrap;
        }
        
        .nav-links .nav-item {
            position: relative;
        }
        
        .nav-links .nav-link {
            color: var(--text-white) !important;
            font-weight: 600;
            font-size: 0.875rem;
            padding: 0.5rem 0.875rem !important;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.3s;
            position: relative;
            text-transform: uppercase;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }
        
        .nav-links .nav-link i {
            font-size: 0.9rem;
        }
        
        .nav-links .nav-link:hover {
            background: rgba(239, 27, 27, 0.1);
            color: var(--accent-red) !important;
        }
        
        .nav-links .nav-link.active {
            background: linear-gradient(135deg, rgba(239, 27, 27, 0.2), rgba(185, 28, 28, 0.2));
            color: var(--accent-red) !important;
        }
        
        .nav-links .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
            border-radius: 2px;
        }
        
        /* Right Side Icons & Buttons - Compact */
        .nav-right {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
        }
        
        .icon-button {
            position: relative;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 0.5rem;
            color: var(--text-white);
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
        }
        
        .icon-button:hover {
            background: rgba(239, 27, 27, 0.2);
            border-color: var(--accent-red);
            color: var(--accent-red);
            transform: translateY(-2px);
        }
        
        .notification-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ef4444;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.65rem;
            font-weight: 700;
            border: 2px solid var(--dark-nav);
            transition: all 0.3s;
        }
        
        .notification-badge:empty {
            display: none;
        }
        
        /* Notification Dropdown */
        .notification-dropdown {
            position: relative;
        }
        
        .notification-menu {
            width: 380px;
            max-width: 90vw;
            max-height: 500px;
            background: var(--dark-nav);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
            padding: 0;
            overflow: hidden;
            margin-top: 0.5rem;
        }
        
        .notification-header {
            padding: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(239, 27, 27, 0.05);
        }
        
        .notification-header h6 {
            color: var(--text-white);
            font-weight: 700;
            margin: 0;
            font-size: 1rem;
        }
        
        .notification-list {
            max-height: 350px;
            overflow-y: auto;
            padding: 0.5rem 0;
        }
        
        .notification-item {
            padding: 0.875rem 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            gap: 0.75rem;
            position: relative;
        }
        
        .notification-item:hover {
            background: rgba(239, 27, 27, 0.1);
        }
        
        .notification-item.unread {
            background: rgba(239, 27, 27, 0.05);
        }
        
        .notification-item.unread::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: var(--accent-red);
        }
        
        .notification-icon {
            width: 40px;
            height: 40px;
            min-width: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            flex-shrink: 0;
        }
        
        .notification-icon.success {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }
        
        .notification-icon.danger {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }
        
        .notification-icon.warning {
            background: rgba(251, 191, 36, 0.2);
            color: #fbbf24;
        }
        
        .notification-icon.info {
            background: rgba(239, 27, 27, 0.2);
            color: var(--accent-red);
        }
        
        .notification-icon.primary {
            background: rgba(185, 28, 28, 0.2);
            color: var(--accent-red-dark);
        }
        
        .notification-content {
            flex: 1;
            min-width: 0;
        }
        
        .notification-title {
            color: var(--text-white);
            font-weight: 600;
            font-size: 0.875rem;
            margin-bottom: 0.25rem;
            line-height: 1.4;
        }
        
        .notification-message {
            color: var(--text-light);
            font-size: 0.8rem;
            line-height: 1.4;
            margin-bottom: 0.25rem;
        }
        
        .notification-time {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.7rem;
        }
        
        .notification-empty {
            padding: 2rem 1rem;
            text-align: center;
            color: var(--text-light);
        }
        
        .notification-empty i {
            font-size: 3rem;
            opacity: 0.3;
            margin-bottom: 0.5rem;
        }
        
        .notification-footer {
            padding: 0.75rem 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            background: rgba(0, 0, 0, 0.2);
        }
        
        .notification-loading {
            padding: 2rem;
            color: var(--text-light);
        }
        
        @media (max-width: 768px) {
            .notification-menu {
                width: 320px;
            }
        }
        
        /* Auth Buttons - CSS chung cho header */
        .auth-buttons {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* Scope cụ thể cho header để tránh conflict với form */
        .auth-buttons .auth-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            padding: 0.4rem 0.875rem;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.8rem;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            white-space: nowrap;
            height: 36px;
            cursor: pointer;
            letter-spacing: 0.3px;
        }
        
        .auth-buttons .auth-btn i {
            font-size: 0.9rem;
        }
        
        .auth-buttons .auth-btn-login {
            background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.2));
            color: #a5b4fc;
            border: 1.5px solid rgba(185, 28, 28, 0.4);
            backdrop-filter: blur(10px);
            position: relative;
            overflow: hidden;
        }
        
        .auth-buttons .auth-btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }
        
        .auth-buttons .auth-btn-login:hover {
            background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), rgba(185, 28, 28, 0.3));
            border-color: rgba(185, 28, 28, 0.6);
            color: #c7d2fe;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(185, 28, 28, 0.3);
        }
        
        .auth-buttons .auth-btn-login:hover::before {
            left: 100%;
        }
        
        .auth-buttons .auth-btn-register {
            background: linear-gradient(135deg, #dc2626, #b91c1c, #ec4899);
            background-size: 200% 200%;
            color: #ffffff;
            border: none;
            box-shadow: 
                0 4px 15px rgba(220, 38, 38, 0.4),
                0 0 20px rgba(185, 28, 28, 0.3);
            position: relative;
            overflow: hidden;
            animation: gradient-shift 3s ease infinite;
        }
        
        .auth-buttons .auth-btn-register::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s;
        }
        
        @keyframes gradient-shift {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }
        
        .auth-buttons .auth-btn-register:hover {
            background: linear-gradient(135deg, #b91c1c, #991b1b, #db2777);
            transform: translateY(-2px);
            box-shadow: 
                0 6px 20px rgba(220, 38, 38, 0.5),
                0 0 30px rgba(185, 28, 28, 0.4);
        }
        
        .auth-buttons .auth-btn-register:hover::before {
            left: 100%;
        }
        
        /* User Dropdown */
        .user-dropdown {
            position: relative;
        }
        
        /* User Profile Container */
        .user-profile-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            padding: 0.2rem 0.5rem 0.2rem 0.2rem;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s;
            height: 40px;
        }
        
        .user-profile-container:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.15);
        }
        
        .user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.3s;
        }
        
        .user-profile-container:hover .user-avatar {
            transform: scale(1.05);
        }
        
        .user-avatar-letter {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: #ffd700;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1a1a1a;
            font-weight: 900;
            font-size: 0.95rem;
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
            text-shadow: none;
            transition: all 0.3s;
            letter-spacing: 0;
            padding: 0.1rem;
            line-height: 1;
        }
        
        .user-profile-container:hover .user-avatar-letter {
            box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
            transform: scale(1.02);
        }
        
        .user-dropdown-indicator {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            flex-shrink: 0;
        }
        
        .user-dropdown-indicator i {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.65rem;
            transition: transform 0.3s;
        }
        
        .user-dropdown.show .user-profile-container {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
        }
        
        .user-dropdown.show .user-dropdown-indicator {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.2);
        }
        
        .user-dropdown.show .user-dropdown-indicator i {
            transform: rotate(180deg);
            color: rgba(255, 255, 255, 0.8);
        }
        
        .user-profile-container:hover .user-dropdown-indicator {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.18);
        }
        
        .user-profile-container:hover .user-dropdown-indicator i {
            color: rgba(255, 255, 255, 0.8);
        }
        
        /* Ẩn mũi tên tự động của Bootstrap */
        .user-profile-container.dropdown-toggle::after {
            display: none !important;
        }
        
        .icon-button.dropdown-toggle::after {
            display: none !important;
        }
        
        /* Mobile Menu Toggle */
        .mobile-toggle {
            display: none;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 0.5rem;
            color: var(--text-white);
            font-size: 1.5rem;
            width: 40px;
            height: 40px;
            align-items: center;
            justify-content: center;
        }
        
        /* Dropdown Menu */
        .dropdown-menu {
            border-radius: 12px;
            border: none;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            margin-top: 0.5rem;
            background: var(--dark-nav);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .dropdown-item {
            padding: 0.75rem 1.25rem;
            transition: all 0.3s;
            color: var(--text-white);
        }
        
        .dropdown-item:hover {
            background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
            color: var(--text-white);
        }
        
        /* Mobile Responsive */
        @media (max-width: 992px) {
            .navbar-content {
                position: relative;
                justify-content: space-between;
            }
            
            .logo-section {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                z-index: 1;
            }
            
            .mobile-toggle {
                display: flex;
                order: -1;
                z-index: 2;
            }
            
            .nav-right {
                order: 1;
                z-index: 2;
            }
            
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: var(--dark-nav);
                flex-direction: column;
                align-items: flex-start;
                padding: 1rem;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }
            
            .nav-links.show {
                display: flex;
            }
            
            .nav-links .nav-link {
                width: 100%;
                padding: 0.75rem 1rem !important;
                border-radius: 8px;
                margin-bottom: 0.5rem;
                justify-content: flex-start;
                text-align: left;
            }
            
            .nav-links .nav-item {
                width: 100%;
            }
            
            .logo-text .main-text {
                font-size: 1.1rem;
            }
            
            .logo-text .sub-text {
                font-size: 0.7rem;
            }
            
            .logo-image {
                width: 45px;
                height: 45px;
                font-size: 1.5rem;
            }
        }
        
        @media (max-width: 768px) {
            .navbar-container {
                padding: 0 0.75rem;
            }
            
            .navbar-content {
                padding: 0.5rem 0;
                min-height: 60px;
                position: relative;
                justify-content: space-between;
                display: grid;
                grid-template-columns: 56px 1fr auto; /* trái: menu, giữa: logo, phải: auth */
                align-items: center;
                column-gap: 0.25rem;
            }
            
            .logo-section {
                gap: 0.5rem;
                grid-column: 2;
                justify-content: center;
                text-align: center;
                /* mobile: tránh absolute gây lệch tâm */
                position: static !important;
                left: auto !important;
                transform: none !important;
            }

            .nav-right {
                position: relative;
                z-index: 3;
                grid-column: 3;
                justify-self: end;
                flex: 0 0 auto;
            }

            .auth-buttons {
                position: relative;
                z-index: 4;
                flex-wrap: nowrap;
                justify-content: flex-end;
            }

            .mobile-toggle {
                position: relative;
                z-index: 4;
                grid-column: 1;
                justify-self: start;
            }
            
            .logo-image {
                width: 40px;
                height: 40px;
                font-size: 1.25rem;
            }
            
            .logo-text .main-text {
                font-size: 1rem;
            }
            
            .logo-text .sub-text {
                display: none;
            }
            
            .icon-button {
                width: 36px;
                height: 36px;
                padding: 0.375rem;
                font-size: 1rem;
            }
            
            .auth-buttons .auth-btn {
                padding: 0.4rem 0.75rem;
                font-size: 0.75rem;
                height: 36px;
                border-radius: 10px;
                font-weight: 700;
            }
            
            .auth-buttons .auth-btn i {
                font-size: 0.9rem;
                margin: 0;
            }
            
            .auth-buttons .auth-btn span {
                display: none !important; /* mobile: chỉ hiển thị icon, không hiện chữ */
            }

            /* mobile: thu gọn nút để vừa màn hình và không làm lệch logo */
            .auth-buttons .auth-btn {
                padding: 0.35rem 0.45rem !important;
                width: 52px; /* icon-only button */
                justify-content: center;
            }

            .auth-buttons .auth-btn i {
                margin: 0 !important;
                font-size: 1rem;
            }

            .auth-buttons {
                gap: 0.35rem;
            }
            
            .auth-buttons .auth-btn-login {
                background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(185, 28, 28, 0.25));
                border: 1.5px solid rgba(185, 28, 28, 0.5);
                color: #c7d2fe;
            }
            
            .auth-buttons .auth-btn-register {
                background: linear-gradient(135deg, #dc2626, #b91c1c);
                box-shadow: 
                    0 4px 15px rgba(220, 38, 38, 0.5),
                    0 0 25px rgba(185, 28, 28, 0.4);
            }
            
            .user-profile-container {
                gap: 0.4rem;
                padding: 0.15rem 0.4rem 0.15rem 0.15rem;
                height: 36px;
            }
            
            .user-avatar {
                width: 28px;
                height: 28px;
            }
            
            .user-avatar-letter {
                font-size: 0.875rem;
            }
            
            .user-dropdown-indicator {
                width: 22px;
                height: 22px;
            }
            
            .user-dropdown-indicator i {
                font-size: 0.6rem;
            }
        }
        
        @media (max-width: 576px) {
            .logo-text .main-text {
                font-size: 0.9rem;
            }
            
            .notification-badge {
                width: 16px;
                height: 16px;
                font-size: 0.6rem;
            }
        }

.system-notification-banner {
        background: linear-gradient(135deg, rgba(239, 27, 27, 0.15), rgba(185, 28, 28, 0.15));
        border-bottom: 2px solid rgba(239, 27, 27, 0.3);
        padding: 1rem 0;
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .system-notification-content {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .system-notification-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .system-notification-icon.success {
        background: rgba(34, 197, 94, 0.2);
        color: #22c55e;
    }
    
    .system-notification-icon.danger {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }
    
    .system-notification-icon.warning {
        background: rgba(251, 191, 36, 0.2);
        color: #fbbf24;
    }
    
    .system-notification-icon.info {
        background: rgba(239, 27, 27, 0.2);
        color: var(--accent-red);
    }
    
    .system-notification-icon.primary {
        background: rgba(185, 28, 28, 0.2);
        color: var(--accent-red-dark);
    }
    
    .system-notification-text {
        flex: 1;
        min-width: 200px;
    }
    
    .system-notification-text strong {
        color: var(--text-white);
        font-size: 1rem;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .system-notification-text p {
        color: var(--text-light);
        font-size: 0.875rem;
        margin: 0;
    }
    
    .system-notification-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .close-system-notification {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--text-white);
        border-radius: 8px;
        padding: 0.4rem 0.6rem;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .close-system-notification:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    @media (max-width: 768px) {
        .system-notification-content {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .system-notification-actions {
            width: 100%;
            justify-content: flex-end;
        }
        
        .system-notification-text {
            width: 100%;
        }
    }

.site-footer {
                background: linear-gradient(180deg, var(--dark-nav) 0%, #080808 100%);
                color: white;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                position: relative;
                overflow: hidden;
            }
            
            .site-footer::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                height: 1px;
                background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
            }
            
            .footer-top {
                padding: 4rem 0 3rem;
                position: relative;
            }
            
            .footer-widget {
                margin-bottom: 2rem;
            }
            
            .footer-widget-title {
                color: var(--accent-red);
                font-weight: 700;
                font-size: 1.125rem;
                margin-bottom: 1.5rem;
                position: relative;
                padding-bottom: 0.75rem;
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }
            
            .footer-widget-title::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 40px;
                height: 3px;
                background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
                border-radius: 2px;
            }
            
            .footer-logo {
                display: flex;
                align-items: center;
                gap: 0.75rem;
                margin-bottom: 1.5rem;
            }
            
            .footer-logo-icon {
                width: 50px;
                height: 50px;
                background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.5rem;
                box-shadow: 0 4px 15px rgba(239, 27, 27, 0.3);
            }
            
            .footer-logo-text {
                font-size: 1.25rem;
                font-weight: 900;
                color: var(--accent-red);
                text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            }
            
            .footer-description {
                color: var(--text-light);
                line-height: 1.8;
                font-size: 0.9375rem;
                margin-bottom: 1.5rem;
            }
            
            .footer-badges {
                display: flex;
                flex-wrap: wrap;
                gap: 0.75rem;
            }
            
            .footer-badge {
                display: inline-flex;
                align-items: center;
                gap: 0.5rem;
                padding: 0.5rem 1rem;
                background: rgba(239, 27, 27, 0.1);
                border: 1px solid rgba(239, 27, 27, 0.2);
                border-radius: 8px;
                color: var(--text-white);
                font-size: 0.875rem;
                font-weight: 500;
                transition: all 0.3s;
            }
            
            .footer-badge:hover {
                background: rgba(239, 27, 27, 0.2);
                border-color: var(--accent-red);
                transform: translateY(-2px);
            }
            
            .footer-badge i {
                color: var(--accent-red);
                font-size: 1rem;
            }
            
            .footer-links {
                list-style: none;
                padding: 0;
                margin: 0;
            }
            
            .footer-links li {
                margin-bottom: 0.75rem;
            }
            
            .footer-links li:last-child {
                margin-bottom: 0;
            }
            
            .footer-links a {
                color: var(--text-light);
                text-decoration: none;
                display: flex;
                align-items: center;
                gap: 0.75rem;
                transition: all 0.3s;
                font-size: 0.9375rem;
                padding: 0.25rem 0;
            }
            
            .footer-links a i {
                color: var(--accent-red);
                font-size: 0.875rem;
                width: 16px;
                transition: transform 0.3s;
            }
            
            .footer-links a:hover {
                color: var(--accent-red);
                padding-left: 0.5rem;
            }
            
            .footer-links a:hover i {
                transform: translateX(4px);
            }
            
            .footer-contact-item {
                display: flex;
                align-items: flex-start;
                gap: 1rem;
                margin-bottom: 1.25rem;
                color: var(--text-light);
                font-size: 0.9375rem;
                line-height: 1.6;
            }
            
            .footer-contact-item:last-child {
                margin-bottom: 0;
            }
            
            .footer-contact-icon {
                width: 40px;
                height: 40px;
                min-width: 40px;
                background: rgba(239, 27, 27, 0.1);
                border: 1px solid rgba(239, 27, 27, 0.2);
                border-radius: 10px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--accent-red);
                font-size: 1.125rem;
                transition: all 0.3s;
            }
            
            .footer-contact-item:hover .footer-contact-icon {
                background: rgba(239, 27, 27, 0.2);
                border-color: var(--accent-red);
                transform: scale(1.1);
            }
            
            .footer-contact-content {
                flex: 1;
            }
            
            .footer-contact-label {
                color: var(--text-white);
                font-weight: 600;
                margin-bottom: 0.25rem;
                font-size: 0.875rem;
            }
            
            .footer-contact-value {
                color: var(--text-light);
                word-break: break-word;
            }
            
            .footer-social {
                display: flex;
                gap: 0.75rem;
                margin-top: 1.5rem;
            }
            
            .footer-social-link {
                width: 42px;
                height: 42px;
                background: rgba(255, 255, 255, 0.05);
                border: 1px solid rgba(255, 255, 255, 0.1);
                border-radius: 10px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--text-white);
                font-size: 1.125rem;
                text-decoration: none;
                transition: all 0.3s;
            }
            
            .footer-social-link:hover {
                background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
                border-color: transparent;
                color: white;
                transform: translateY(-3px);
                box-shadow: 0 4px 15px rgba(239, 27, 27, 0.3);
            }
            
            .footer-bottom {
                padding: 2rem 0;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                background: rgba(0, 0, 0, 0.2);
            }
            
            .footer-bottom-content {
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                gap: 1rem;
            }
            
            .footer-copyright {
                color: var(--text-light);
                font-size: 0.875rem;
                margin: 0;
            }
            
            .footer-copyright strong {
                color: var(--accent-red);
                font-weight: 700;
            }
            
            .footer-legal {
                display: flex;
                gap: 1.5rem;
                flex-wrap: wrap;
            }
            
            .footer-legal a {
                color: var(--text-light);
                text-decoration: none;
                font-size: 0.875rem;
                transition: all 0.3s;
            }
            
            .footer-legal a:hover {
                color: var(--accent-red);
            }
            
            @media (max-width: 992px) {
                .footer-top {
                    padding: 3rem 0 2rem;
                }
                
                .footer-widget {
                    margin-bottom: 2.5rem;
                }
            }
            
            @media (max-width: 768px) {
                .footer-top {
                    padding: 2.5rem 0 1.5rem;
                }
                
                .footer-bottom-content {
                    flex-direction: column;
                    text-align: center;
                }
                
                .footer-legal {
                    justify-content: center;
                }
                
                .footer-social {
                    justify-content: center;
                }
            }

/* Shared black-red design system */
html {
    background: var(--dark-bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

a {
    color: var(--accent-red);
}

a:hover {
    color: #ff6b6b;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-red) !important;
    outline-offset: 3px;
    box-shadow: var(--focus-ring) !important;
}

.top-navbar {
    border-bottom: 1px solid var(--border-red);
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(16px);
}

.site-logo-image {
    width: auto;
    max-width: 200px;
    height: 50px;
    object-fit: contain;
}

.site-footer {
    margin-top: 4rem;
}

.footer-description-spaced {
    margin-bottom: 1rem;
}

.notification-action-link,
.notification-view-all {
    color: var(--accent-red) !important;
    text-decoration: none;
}

.notification-action-link {
    font-size: 0.75rem;
}

.notification-view-all {
    font-size: 0.875rem;
}

.dropdown-divider {
    border-color: var(--border-color);
}

.dropdown-logout-button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
}

.auth-readonly-input {
    background-color: rgba(255, 255, 255, 0.03);
}

.account-detail-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: contain;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-image.is-clickable {
    cursor: pointer;
}

.popup-image.is-static {
    cursor: default;
}

.card,
.modal-content,
.dropdown-menu,
.offcanvas {
    color: var(--text-white);
    background-color: var(--surface-2);
    border-color: var(--border-color);
}

.form-control,
.form-select,
.input-group-text {
    color: var(--text-white);
    background-color: var(--surface-1);
    border-color: var(--border-color);
}

.form-control::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.form-control:focus,
.form-select:focus {
    color: var(--text-white);
    background-color: var(--surface-1);
    border-color: var(--accent-red);
    box-shadow: var(--focus-ring);
}

.btn-primary,
.btn-danger {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    box-shadow: 0 0.35rem 1.1rem rgba(185, 28, 28, 0.2);
}

.btn-primary:hover,
.btn-danger:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff3b3b, #991b1b);
    border-color: #ff3b3b;
}

.btn-outline-primary {
    color: var(--accent-red);
    border-color: var(--accent-red);
}

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

.table {
    --bs-table-color: var(--text-white);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-color: #fff;
    --bs-table-hover-bg: rgba(239, 27, 27, 0.06);
}

.flash-alert-success {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.13);
    border: 1px solid rgba(34, 197, 94, 0.42);
}

.flash-alert-danger {
    color: #ff7b7b;
    background: rgba(239, 27, 27, 0.14);
    border: 1px solid rgba(239, 27, 27, 0.44);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) var(--surface-1);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Deduplicated utilities migrated from legacy inline styles */
.u-0049a4e86b { color: rgba(255, 255, 255, 0.6) !important; }
.u-0413a4dc69 { background: linear-gradient(135deg, rgba(239, 27, 27,0.2), rgba(185, 28, 28,0.2)) !important; border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 15px 15px 0 0 !important; }
.u-048b9a2b26 { display: block; }
.u-06eeebc88f { max-width: 100%; height: auto; }
.u-0a563cf175 { background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.5); color: #22c55e; border-radius: 12px; margin-bottom: 1.5rem; }
.u-0c486d2781 { color: #ff3b3b !important; font-weight: 700 !important; margin-bottom: 0.75rem !important; font-size: 0.95rem !important; }
.u-17d832c8fd { font-size: 3rem; opacity: 0.5; }
.u-19bfdbe006 { background: rgba(239, 68, 68, 0.15) !important; border: 1px solid rgba(239, 68, 68, 0.3) !important; border-radius: 10px !important; padding: 1rem !important; margin-bottom: 1rem !important; }
.u-1bf270e4be { background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.5); color: #4ade80; border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.u-1d26750554 { display: block; color: #ef4444; margin-top: 0.5rem; }
.u-1d9fb993b1 { position: absolute; top: 0; left: 0; right: 0; z-index: 1055; padding: 1rem; display: flex; justify-content: flex-end; align-items: center; }
.u-208090be59 { font-size: 3rem; opacity: 0.3; }
.u-231fb775c9 { color: var(--accent-red); }
.u-2350da2395 { color: #ffffff; display: block; margin-bottom: 0.5rem; }
.u-236f9cbb04 { color: #ffffff !important; font-weight: 600 !important; }
.u-27895aa49c { font-size: 0.9rem; }
.u-27d225a353 { background: rgba(251, 191, 36, 0.2); border: 1px solid rgba(251, 191, 36, 0.3); color: #fbbf24; }
.u-29dcbf9904 { padding: 0.75rem; background: rgba(0, 0, 0, 0.2); border-radius: 8px; margin-bottom: 0.5rem; }
.u-2f93a4e1a2 { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; display: block; margin-top: 0.5rem; }
.u-3629a29a23 { font-size: 5rem; color: rgba(255,255,255,0.3); }
.u-3ba0492ff3 { color: #22c55e !important; font-size: 0.85rem !important; }
.u-415b288869 { background: #111111 !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 15px !important; }
.u-4acde126e9 { height: 400px; background: linear-gradient(135deg, rgba(239, 27, 27,0.2), rgba(185, 28, 28,0.2)); border-radius: 20px; }
.u-4d0c15d31b { background: #070707; min-height: calc(100vh - 200px); }
.u-4d51d10355 { color: var(--text-white); }
.u-4e1c475b17 { background: rgba(239, 68, 68, 0.8); border-radius: 50%; width: 45px; height: 45px; opacity: 1; border: 2px solid rgba(255, 255, 255, 0.3); color: #ffffff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s; cursor: pointer; padding: 0; }
.u-52a9596210 { background: transparent; border: none; height: 100vh; }
.u-58054e5474 { background: rgba(251, 191, 36, 0.2) !important; border: 1px solid rgba(251, 191, 36, 0.3) !important; color: #fbbf24 !important; border-radius: 10px !important; padding: 0.875rem !important; margin-bottom: 1.25rem !important; }
.u-5a89b13add { display: none; margin-top: 1rem; }
.u-5d46e3e5b3 { color: #ff3b3b !important; font-weight: 700 !important; font-size: 1.1rem !important; }
.u-60fde2fb3a { padding: 0 !important; }
.u-6510b14f11 { color: #ef4444 !important; font-weight: 700 !important; font-size: 1.5rem !important; }
.u-6c96dd8884 { padding: 0.75rem !important; }
.u-6d4cc1daeb { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger); border-radius: 8px; }
.u-708c1359c0 { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); z-index: 1056; background: rgba(239, 27, 27, 0.8); border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 50%; width: 50px; height: 50px; color: #ffffff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.u-70b98aa308 { background: var(--danger); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; }
.u-70cbde6bd8 { font-size: 5rem; opacity: 0.5; }
.u-7117e3abfb { color: #ffffff; }
.u-728e469d95 { position: relative; width: 100%; min-height: 200px; background: linear-gradient(135deg, rgba(239, 27, 27,0.1), rgba(185, 28, 28,0.1)); border-radius: 15px; overflow: hidden; }
.u-76085d3f68 { font-size: 1.25rem; }
.u-7816dc7acd { position: relative; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.95); padding: 0; }
.u-78d7af8b7e { font-weight: bold; }
.u-79485cfefb { color: var(--text-light); }
.u-8410c989c9 { cursor: pointer; }
.u-8a3a4b9dea { color: rgba(255, 255, 255, 0.7) !important; }
.u-8ae57e885d { font-size: 3rem; }
.u-8c393717e0 { margin-bottom: 1.25rem; padding: 0.875rem 1rem; background: rgba(239, 27, 27, 0.1); border: 1px solid rgba(239, 27, 27, 0.3); border-radius: 10px; font-size: 0.95rem; color: #ff3b3b; }
.u-8d454df327 { color: var(--text-light); font-size: 0.95rem; }
.u-916968dbcc { color: #ef4444 !important; border-bottom-color: rgba(239, 68, 68, 0.3) !important; }
.u-953b378ddf { font-size: 0.875rem !important; }
.u-9747470151 { color: #ef1b1b; font-size: 1rem; margin-bottom: 1rem; }
.u-981cedda04 { color: rgba(255, 255, 255, 0.8); }
.u-9de35c127b { background: rgba(255, 255, 255, 0.1) !important; border: 1px solid rgba(255, 255, 255, 0.2) !important; color: #ffffff !important; padding: 0.75rem !important; font-weight: 600 !important; }
.u-9df5314f8c { color: rgba(255, 255, 255, 0.5); font-style: italic; }
.u-9e6a142ebd { background: rgba(0, 0, 0, 0.2) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 10px !important; padding: 1rem !important; margin-bottom: 1rem !important; }
.u-b96d102121 { background: rgba(255,255,255,0.05); border-radius: 8px; }
.u-ba04dcd525 { font-size: 1rem; }
.u-ba8bfc2f34 { padding: 1.25rem; }
.u-be6e7b47b5 { padding: 1.5rem !important; }
.u-bf864dbf0e { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.5); color: #ff6b6b; border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.u-c0e56f3803 { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 1056; background: rgba(239, 27, 27, 0.8); border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 50%; width: 50px; height: 50px; color: #ffffff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.u-c2bcea0858 { display: flex; justify-content: space-between; align-items: center; }
.u-cabf708cc4 { font-size: 4rem; opacity: 0.3; }
.u-cdd4d804b7 { max-width: 100vw; margin: 0; width: 100%; }
.u-d0d11c1752 { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(239, 27, 27,0.1), rgba(185, 28, 28,0.1)); pointer-events: none; }
.u-d4e08d8328 { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.u-d826239c04 { background-color: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #ef4444; padding: 1rem; border-radius: 10px; margin-bottom: 1.5rem; }
.u-d85dad13e0 { font-size: 5rem; color: rgba(255,255,255,0.3); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.u-dec031c854 { color: rgba(255, 255, 255, 0.6); }
.u-e047b0aeaa { color: var(--text-light); margin-bottom: 1rem; }
.u-e19957c8e0 { letter-spacing: normal; }
.u-e31598320f { color: #ff3b3b !important; font-weight: 700 !important; }
.u-e9a88bd8c1 { background: var(--accent-red); font-size: 0.7rem; margin-left: 0.5rem; }
.u-eb7f9e3fff { background: rgba(239, 27, 27, 0.1); border: 1px solid rgba(239, 27, 27, 0.3); color: var(--accent-red); border-radius: 8px; }
.u-ee349023e3 { color: rgba(255, 255, 255, 0.8); margin-bottom: 0.5rem; }
.u-ee9247b2fb { width: 3rem; height: 3rem; }
.u-eea7d2f472 { width: 100vw; height: 100vh; object-fit: contain; border-radius: 0; box-shadow: none; }
.u-ef906660ec { color: #ef4444 !important; font-size: 0.85rem !important; }
.u-f2892a2e8a { display: none; }
.u-f2c8dbfbbf { user-select: all; cursor: pointer; }
.u-faebabbe6c { color: #ffffff; margin: 0; }
.u-fe0a7e0e7e { color: #ff3b3b; }


/* Deduplicated utilities migrated from legacy inline styles */
.u-7c0f06feca { text-decoration: none; color: inherit; }
.u-849db8af52 { text-decoration: none; color: inherit; display: block; }
.u-c4976e7bbe { color: #ef4444; }

/* Header redesign: brighter charcoal surfaces with compact black-red controls */
.top-navbar {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 82, 82, 0.38);
    background:
        radial-gradient(circle at 15% 0%, rgba(239, 68, 68, 0.17), transparent 26rem),
        rgba(20, 20, 20, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.navbar-container {
    max-width: 1480px;
    padding-inline: 1rem;
}

.navbar-content {
    min-height: 62px;
    gap: 0.8rem;
    padding: 0.48rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(43, 43, 43, 0.96), rgba(24, 24, 24, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 22px rgba(0, 0, 0, 0.26);
}

.logo-section {
    min-width: 0;
}

.logo-image {
    width: 46px;
    height: 46px;
    color: #fff;
    background: linear-gradient(145deg, #ff4d4d, #b3131b);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 7px 18px rgba(239, 27, 27, 0.3);
}

.site-logo-image {
    max-width: 185px;
    height: 46px;
}

.logo-text .main-text {
    color: #ff5555;
    font-size: 1.12rem;
    letter-spacing: 0.35px;
    text-shadow: 0 2px 10px rgba(239, 27, 27, 0.28);
}

.logo-text .sub-text {
    color: #dedede;
    font-size: 0.7rem;
}

.nav-links {
    gap: 0.28rem;
    padding: 0.28rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.045);
}

.nav-links .nav-link {
    min-height: 40px;
    gap: 0.42rem;
    padding: 0.52rem 0.78rem !important;
    color: #ededed !important;
    border: 1px solid transparent;
    border-radius: 10px;
}

.nav-links .nav-link i {
    color: #ff6666;
    font-size: 0.98rem;
}

.nav-links .nav-link:hover {
    border-color: rgba(255, 105, 105, 0.28);
    background: rgba(239, 68, 68, 0.12);
}

.nav-links .nav-link.active {
    border-color: rgba(255, 105, 105, 0.45);
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.23), rgba(110, 16, 20, 0.2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-links .nav-link.active::after {
    bottom: 4px;
    width: 34%;
}

@media (min-width: 992px) {
    .nav-links {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .nav-links .nav-link,
    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        border-color: transparent;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-links .nav-link.active::after {
        bottom: 1px;
        width: 42%;
    }

    .user-profile-copy {
        display: none;
    }

    .user-dropdown,
    .user-profile-container {
        width: 88px;
        min-width: 88px;
        max-width: 88px;
    }

    .user-profile-container {
        gap: 0.4rem;
        padding: 0.24rem 0.38rem 0.24rem 0.24rem;
        justify-content: space-between;
        border-radius: 999px;
    }

    .user-dropdown-indicator {
        display: flex;
        width: 30px;
        height: 30px;
        border-color: rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.07);
    }

    .user-dropdown-indicator i {
        font-size: 0.7rem;
    }

    .notification-dropdown .icon-button {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
}

.icon-button,
.mobile-toggle {
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-buttons {
    gap: 0.45rem;
}

.auth-buttons .auth-btn {
    min-width: 112px;
    height: 42px;
    padding: 0.55rem 0.9rem;
    border-radius: 11px;
    font-size: 0.78rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-buttons .auth-btn-login {
    color: #fff;
    border: 1px solid rgba(255, 116, 116, 0.55);
    background: linear-gradient(145deg, #303030, #202020);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.auth-buttons .auth-btn-login:hover {
    color: #fff;
    border-color: #ff7777;
    background: linear-gradient(145deg, #3a2929, #251c1c);
    box-shadow: 0 7px 18px rgba(239, 68, 68, 0.22);
}

.auth-buttons .auth-btn-register {
    color: #fff;
    border: 1px solid rgba(255, 143, 143, 0.8);
    background: linear-gradient(145deg, #ff4949, #c91620);
    animation: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 7px 20px rgba(239, 27, 27, 0.32);
}

.auth-buttons .auth-btn-register:hover {
    background: linear-gradient(145deg, #ff6060, #df2029);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 9px 24px rgba(239, 27, 27, 0.42);
}

.user-profile-container {
    height: 44px;
    padding: 0.24rem 0.55rem 0.24rem 0.24rem;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
}

.user-avatar {
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(145deg, #ff5050, #b91c1c);
    box-shadow: 0 4px 12px rgba(239, 27, 27, 0.3);
}

.user-avatar-letter {
    display: flex;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 800;
}

.user-profile-copy {
    display: flex;
    min-width: 76px;
    align-items: center;
    line-height: 1.15;
}

.user-profile-copy strong {
    max-width: 110px;
    overflow: hidden;
    color: #fff;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .top-navbar {
        padding: 0.42rem 0;
    }

    .navbar-container {
        padding-inline: 0.65rem;
    }

    .navbar-content {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        grid-template-areas: "toggle logo actions";
        gap: 0.48rem 0.55rem;
        min-height: 58px;
        padding: 0.45rem;
        border-radius: 15px;
    }

    .logo-section {
        position: static;
        grid-area: logo;
        justify-self: center;
        transform: none;
    }

    .mobile-toggle {
        grid-area: toggle;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 11px;
        font-size: 1.35rem;
    }

    .nav-right.is-authenticated {
        grid-area: actions;
        min-width: 0;
        gap: 0.35rem;
        justify-self: end;
    }

    .nav-right.is-guest {
        grid-area: actions;
        width: auto;
        min-width: 0;
        justify-self: end;
    }

    .navbar-content.has-guest-actions {
        grid-template-areas: "toggle logo actions";
    }

    .nav-right.is-guest .auth-buttons {
        display: flex;
        width: auto;
        gap: 0.38rem;
    }

    .auth-buttons .auth-btn {
        width: 42px;
        min-width: 42px;
        height: 42px;
        padding: 0 !important;
        border-radius: 11px;
        justify-content: center;
    }

    .auth-buttons .auth-btn span {
        display: none !important;
    }

    .auth-buttons .auth-btn i {
        margin: 0 !important;
        font-size: 1.08rem;
    }

    .nav-links {
        z-index: 1050;
        top: calc(100% + 0.45rem);
        left: 0;
        right: 0;
        gap: 0.32rem;
        padding: 0.65rem;
        border: 1px solid rgba(255, 116, 116, 0.35);
        border-radius: 14px;
        background: linear-gradient(150deg, rgba(42, 42, 42, 0.99), rgba(20, 20, 20, 0.99));
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55);
    }

    .nav-links .nav-link {
        min-height: 44px;
        margin: 0;
        padding: 0.65rem 0.8rem !important;
        font-size: 0.82rem;
    }

    .nav-links .nav-link.active::after {
        display: none;
    }

    .site-logo-image {
        max-width: 145px;
        height: 42px;
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .logo-text .main-text {
        max-width: 150px;
        overflow: hidden;
        font-size: 0.92rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .logo-text .sub-text {
        display: none;
    }

    .user-profile-copy {
        display: none;
    }

    .user-profile-container {
        width: 82px;
        min-width: 82px;
        max-width: 82px;
        height: 42px;
        gap: 0.35rem;
        padding: 0.2rem 0.35rem 0.2rem 0.2rem;
        justify-content: space-between;
        border-radius: 999px;
    }

    .user-dropdown {
        width: 82px;
        min-width: 82px;
        max-width: 82px;
        flex: 0 0 82px;
    }

    .user-dropdown-indicator {
        display: flex;
        width: 28px;
        height: 28px;
    }

    .notification-dropdown .icon-button {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .notification-menu {
        width: min(360px, calc(100vw - 1.3rem));
    }
}

@media (max-width: 575.98px) {
    .logo-text {
        display: none;
    }

    .site-logo-image {
        max-width: 105px;
    }

    .user-profile-container,
    .user-dropdown {
        max-width: 82px;
    }
}

@media (max-width: 380px) {
    .navbar-container {
        padding-inline: 0.4rem;
    }

    .navbar-content {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        padding-inline: 0.38rem;
    }

    .site-logo-image {
        max-width: 82px;
    }

    .logo-text .main-text {
        max-width: 120px;
        font-size: 0.82rem;
    }

    .auth-buttons .auth-btn {
        font-size: 0.7rem;
    }
}

/* Keep the authenticated desktop control as avatar + arrow only. */
@media (min-width: 992px) {
    .nav-right.is-authenticated .user-profile-copy {
        display: none !important;
    }

    .nav-right.is-authenticated .user-dropdown,
    .nav-right.is-authenticated .user-profile-container {
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
    }

    .nav-right.is-authenticated .user-profile-container {
        gap: 0.4rem;
        padding: 0.24rem 0.38rem 0.24rem 0.24rem;
        justify-content: space-between;
    }

    .nav-right.is-authenticated .user-dropdown-indicator {
        display: flex !important;
        width: 30px;
        min-width: 30px;
        height: 30px;
    }
}

/* Compact footer */
.site-footer {
    position: relative;
    margin-top: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    color: #f5f5f5;
    border-top: 1px solid rgba(255, 92, 92, 0.3);
    background:
        radial-gradient(circle at 12% 0%, rgba(239, 68, 68, 0.13), transparent 25rem),
        linear-gradient(180deg, #151515 0%, #090909 100%);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(420px, 70vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, #ff4545, transparent);
}

.site-footer > .container {
    position: relative;
}

.site-footer > .container::before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    right: 8%;
    width: 240px;
    height: 240px;
    pointer-events: none;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.08);
    filter: blur(85px);
}

.footer-cta {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 76px;
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 99, 99, 0.28);
    border-radius: 16px;
    background:
        linear-gradient(100deg, rgba(239, 68, 68, 0.13), transparent 45%),
        rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-cta::after {
    content: '';
    position: absolute;
    inset: auto -35px -55px auto;
    width: 130px;
    height: 130px;
    pointer-events: none;
    border: 24px solid rgba(239, 68, 68, 0.06);
    border-radius: 50%;
}

.footer-cta-message {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
}

.footer-cta-icon {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 132, 132, 0.48);
    border-radius: 12px;
    background: linear-gradient(145deg, #f04444, #b51620);
    box-shadow: 0 7px 18px rgba(239, 27, 27, 0.24);
}

.footer-cta-message > span:last-child {
    display: grid;
    min-width: 0;
    gap: 0.16rem;
}

.footer-cta-message strong {
    color: #fff;
    font-size: 0.94rem;
    font-weight: 800;
}

.footer-cta-message small {
    color: #aaa;
    font-size: 0.76rem;
    line-height: 1.4;
}

.footer-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.footer-cta-actions a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.55rem 0.78rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-cta-actions a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-cta-primary {
    color: #fff;
    border: 1px solid rgba(255, 140, 140, 0.65);
    background: linear-gradient(145deg, #ef4444, #bc1822);
    box-shadow: 0 6px 16px rgba(239, 27, 27, 0.22);
}

.footer-cta-secondary {
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
}

.footer-cta-secondary:hover {
    border-color: rgba(255, 106, 106, 0.42);
    background: rgba(239, 68, 68, 0.1);
}

.footer-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.75fr) minmax(240px, 1fr);
    gap: clamp(2rem, 4vw, 4.5rem);
    padding: clamp(1.75rem, 3vw, 2.5rem) 0 1.75rem;
}

.footer-nav,
.footer-support {
    padding-left: clamp(1rem, 2vw, 1.75rem);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.footer-brand-link:hover {
    color: #fff;
}

.footer-brand-link:hover .footer-brand-icon {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(239, 27, 27, 0.3);
}

.footer-brand-image {
    display: block;
    width: auto;
    max-width: 132px;
    height: 48px;
    object-fit: contain;
}

.footer-brand-icon {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 116, 116, 0.5);
    border-radius: 12px;
    background: linear-gradient(145deg, #f04444, #a9141d);
    box-shadow: 0 7px 18px rgba(239, 27, 27, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-brand-copy {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
}

.footer-brand-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-brand-copy small {
    overflow: hidden;
    color: #aaa;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-summary {
    max-width: 520px;
    margin: 1rem 0;
    color: #b9b9b9;
    font-size: 0.86rem;
    line-height: 1.65;
}

.footer-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.footer-trust-list span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.62rem;
    color: #dedede;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.73rem;
    font-weight: 650;
}

.footer-trust-list i,
.footer-nav-grid i {
    color: #ff5b5b;
}

.footer-heading {
    display: flex;
    margin: 0 0 1rem;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.footer-heading::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #ef4444;
}

.footer-nav-grid {
    display: grid;
    gap: 0.25rem;
}

.footer-nav-grid a {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.45rem;
    color: #bdbdbd;
    font-size: 0.83rem;
    font-weight: 550;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer-nav-grid a:hover {
    color: #fff;
    transform: translateX(3px);
    background: rgba(239, 68, 68, 0.075);
}

.footer-support-list {
    display: grid;
    gap: 0.5rem;
}

.footer-support-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.65rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

a.footer-support-item:hover {
    color: #fff;
    border-color: rgba(255, 92, 92, 0.36);
    background: rgba(239, 68, 68, 0.08);
}

.footer-support-icon {
    display: inline-flex;
    width: 32px;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #ff6262;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
}

.footer-support-item > span:last-child {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.footer-support-item small {
    color: #858585;
    font-size: 0.67rem;
    line-height: 1.2;
}

.footer-support-item strong {
    overflow-wrap: anywhere;
    color: #dedede;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
}

.site-footer .footer-bottom {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

.site-footer .footer-bottom p {
    margin: 0;
    color: #8f8f8f;
    font-size: 0.75rem;
}

.site-footer .footer-bottom strong {
    color: #d9d9d9;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #989898;
    font-size: 0.72rem;
    white-space: nowrap;
}

.footer-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

@media (max-width: 991.98px) {
    .footer-cta {
        margin-top: 1.25rem;
    }

    .footer-panel {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr);
        gap: 1.75rem 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-nav {
        padding-left: 0;
        border-left: 0;
    }

    .footer-summary {
        margin-block: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        margin-top: 2rem;
    }

    .footer-cta {
        min-height: 0;
        padding: 0.8rem;
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
        border-radius: 13px;
    }

    .footer-cta-message {
        align-items: flex-start;
    }

    .footer-cta-message small {
        font-size: 0.7rem;
    }

    .footer-cta-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-cta-actions a:only-child {
        grid-column: 1 / -1;
    }

    .footer-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        padding: 1.6rem 0 1.25rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-nav,
    .footer-support {
        padding-top: 1.25rem;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-left: 0;
    }

    .footer-brand-image {
        max-width: 112px;
        height: 42px;
    }

    .footer-summary {
        font-size: 0.8rem;
        line-height: 1.55;
    }

    .footer-trust-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-trust-list span:last-child {
        grid-column: 1 / -1;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.2rem 0.75rem;
    }

    .site-footer .footer-bottom {
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
        padding: 1rem 0;
    }

    .footer-status {
        white-space: normal;
    }
}

/* Header logo: consistent horizontal proportions without stretching uploaded art. */
.logo-section.has-uploaded-logo {
    width: 135px;
    min-width: 135px;
    height: 90px;
    min-height: 90px;
    justify-content: center;
    overflow: hidden;
}

.logo-section.has-uploaded-logo .site-logo-image {
    display: block;
    width: 135px;
    max-width: none;
    height: 90px;
    flex: 0 0 135px;
    object-fit: contain;
    object-position: center;
    filter: saturate(1.08) contrast(1.12);
    mix-blend-mode: screen;
    transform: translateZ(0);
}

@media (max-width: 991.98px) {
    .logo-section.has-uploaded-logo {
        width: 99px;
        min-width: 99px;
        height: 66px;
        min-height: 66px;
        justify-content: center;
    }

    .logo-section.has-uploaded-logo .site-logo-image {
        width: 99px;
        height: 66px;
        flex-basis: 99px;
        object-position: center;
    }
}

@media (max-width: 420px) {
    .logo-section.has-uploaded-logo {
        width: 84px;
        min-width: 84px;
        height: 56px;
    }

    .logo-section.has-uploaded-logo .site-logo-image {
        width: 84px;
        height: 56px;
        flex-basis: 84px;
    }
}

/* Flat header shell: controls and navigation stay unchanged, outer rounded frame removed. */
.top-navbar {
    position: sticky;
    padding: 0;
    border-bottom: 1px solid rgba(255, 82, 82, .34);
    background:
        radial-gradient(circle at 8% 45%, rgba(30, 126, 220, .07), transparent 22rem),
        radial-gradient(circle at 68% -90%, rgba(235, 52, 63, .1), transparent 32rem),
        linear-gradient(180deg, rgba(15, 21, 30, .99), rgba(8, 12, 18, .99));
    box-shadow: 0 9px 26px rgba(0, 0, 0, .34);
}

.top-navbar::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 70, 78, .65) 18%, rgba(255, 70, 78, .18) 55%, transparent);
}

.navbar-container {
    max-width: 1520px;
    padding-inline: clamp(.8rem, 2vw, 1.5rem);
}

.navbar-content {
    min-height: 92px;
    padding: .25rem 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 991.98px) {
    .top-navbar { padding: 0; }

    .navbar-container { padding-inline: .65rem; }

    .navbar-content {
        min-height: 62px;
        padding: .28rem 0;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (max-width: 420px) {
    .navbar-container { padding-inline: .45rem; }
    .navbar-content { min-height: 56px; }
}
