/* ===== NeoMine Neon/Cyberpunk Theme ===== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.85);
    --bg-card-hover: rgba(20, 20, 35, 0.95);
    --neon-cyan: #00fff2;
    --neon-magenta: #ff00ff;
    --neon-green: #39ff14;
    --neon-yellow: #ffff00;
    --neon-orange: #ff6600;
    --neon-red: #ff0044;
    --neon-blue: #0066ff;
    --text-primary: #e0e0e0;
    --text-secondary: #8888aa;
    --border-glow: rgba(0, 255, 242, 0.3);
    --glass-bg: rgba(15, 15, 30, 0.6);
    --glass-border: rgba(0, 255, 242, 0.15);
}

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

html {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--bg-dark);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 3px; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background: grid + radial glows */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(0, 255, 242, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 0, 255, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(0, 102, 255, 0.02) 0%, transparent 70%),
        linear-gradient(rgba(0, 255, 242, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 242, 0.025) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(0, 255, 242, 0.015) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(255, 0, 255, 0.01) 0%, transparent 50%);
    animation: bgDrift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(3%, 2%) rotate(3deg); }
}

/* ===== Typography ===== */

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.neon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(0, 255, 242, 0.5));
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 242, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(0, 255, 242, 0.8)); }
}

.mono {
    font-family: 'Share Tech Mono', monospace;
}

/* ===== Navigation ===== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
}

.navbar .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.navbar .nav-links {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    list-style: none;
}

.navbar .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.navbar .nav-links a:hover {
    color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.08);
    border-color: rgba(0, 255, 242, 0.15);
    text-shadow: 0 0 12px rgba(0, 255, 242, 0.4);
    transform: translateY(-1px);
}

.navbar .nav-links a.active {
    color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.12);
    border-color: rgba(0, 255, 242, 0.25);
    text-shadow: 0 0 12px rgba(0, 255, 242, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 242, 0.1), inset 0 0 12px rgba(0, 255, 242, 0.05);
}

.navbar .nav-links a[style*="magenta"]:hover {
    background: rgba(255, 0, 255, 0.08);
    border-color: rgba(255, 0, 255, 0.15);
    text-shadow: 0 0 12px rgba(255, 0, 255, 0.4);
}

.navbar .nav-links a[style*="magenta"].active {
    background: rgba(255, 0, 255, 0.12);
    border-color: rgba(255, 0, 255, 0.25);
    text-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.1), inset 0 0 12px rgba(255, 0, 255, 0.05);
}

/* ===== Nav Dropdown ===== */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-dropdown-toggle:hover {
    background: rgba(255, 0, 255, 0.08);
    border-color: rgba(255, 0, 255, 0.15);
    text-shadow: 0 0 12px rgba(255, 0, 255, 0.4);
    transform: translateY(-1px);
}

.nav-dropdown-toggle.active {
    background: rgba(255, 0, 255, 0.12);
    border-color: rgba(255, 0, 255, 0.25);
    text-shadow: 0 0 12px rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.1), inset 0 0 12px rgba(255, 0, 255, 0.05);
}

.nav-dropdown.open .nav-dropdown-toggle {
    background: rgba(255, 0, 255, 0.12);
    border-color: rgba(255, 0, 255, 0.25);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 12px;
    padding: 0.4rem;
    min-width: 140px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    color: var(--neon-magenta);
    background: rgba(255, 0, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.4);
}

.nav-dropdown-menu a.active {
    color: var(--neon-magenta);
    background: rgba(255, 0, 255, 0.12);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.navbar .user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.navbar .nav-user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.3rem 0.7rem 0.3rem 0.3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 242, 0.15);
    background: rgba(0, 255, 242, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .nav-user-link:hover {
    border-color: rgba(0, 255, 242, 0.35);
    background: rgba(0, 255, 242, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.15);
    transform: translateY(-1px);
}

.navbar .nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    image-rendering: pixelated;
    border: 1px solid rgba(0, 255, 242, 0.3);
    transition: border-color 0.3s ease;
}

.navbar .nav-user-link:hover .nav-avatar {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 255, 242, 0.4);
}

.navbar .user-info .username {
    color: var(--neon-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
}

.navbar .user-info .btn-logout {
    background: rgba(255, 0, 68, 0.06);
    border: 1px solid rgba(255, 0, 68, 0.25);
    color: var(--neon-red);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .user-info .btn-logout:hover {
    background: rgba(255, 0, 68, 0.15);
    border-color: rgba(255, 0, 68, 0.5);
    box-shadow: 0 0 18px rgba(255, 0, 68, 0.25);
    transform: translateY(-1px);
}

/* ===== Hamburger Menu ===== */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Layout ===== */

.page-container {
    margin-top: 60px;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 0 15px rgba(0, 255, 242, 0.3));
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Cards (Glassmorphism) ===== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.03), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.3;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 40px rgba(0, 255, 242, 0.15), 0 0 80px rgba(0, 255, 242, 0.05), inset 0 0 30px rgba(0, 255, 242, 0.03);
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.card-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 255, 242, 0.4);
}

.card-value.magenta { color: var(--neon-magenta); text-shadow: 0 0 20px rgba(255, 0, 255, 0.4); }
.card-value.green { color: var(--neon-green); text-shadow: 0 0 20px rgba(57, 255, 20, 0.4); }
.card-value.yellow { color: var(--neon-yellow); text-shadow: 0 0 20px rgba(255, 255, 0, 0.4); }
.card-value.orange { color: var(--neon-orange); text-shadow: 0 0 20px rgba(255, 102, 0, 0.4); }
.card-value.red { color: var(--neon-red); text-shadow: 0 0 20px rgba(255, 0, 68, 0.4); }

/* ===== Grid System ===== */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .navbar { padding: 0 1rem; }
    .page-container { padding: 1rem; }
    .neon-title { font-size: 2rem; }

    .navbar .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        display: none;
        backdrop-filter: blur(20px);
        z-index: 999;
    }

    .navbar .nav-links.open {
        display: flex;
    }

    .navbar .nav-links a {
        padding: 0.7rem 1rem;
        font-size: 1.05rem;
        border-radius: 20px;
    }

    .navbar .nav-links a:hover,
    .navbar .nav-links a.active {
        background: rgba(0, 255, 242, 0.08);
    }

    .hamburger {
        display: flex !important;
    }

    .nav-dropdown-toggle {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        min-width: auto;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-dropdown-menu a {
        padding: 0.7rem 1rem;
        font-size: 1.05rem;
        border-radius: 20px;
        color: var(--neon-magenta);
    }

    .navbar .user-info .username {
        display: none;
    }

    .navbar .nav-user-link {
        padding: 0.2rem;
        border-color: transparent;
        background: transparent;
    }

    .navbar .nav-user-link:hover {
        border-color: rgba(0, 255, 242, 0.25);
    }

    .landing .hero-title {
        font-size: 2.5rem;
    }
}

/* ===== Stat Cards ===== */

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
}

.stat-card .stat-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.6rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 242, 0.3);
}

/* ===== Tables ===== */

.table-container {
    overflow-x: auto;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
}

thead th {
    background: rgba(0, 255, 242, 0.08);
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

tbody td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

tbody tr:hover {
    background: rgba(0, 255, 242, 0.03);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ===== Buttons ===== */

.btn {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.7rem 1.8rem;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

/* --- Primary (Cyan) --- */
.btn-primary {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.06);
    text-shadow: 0 0 8px rgba(0, 255, 242, 0.3);
}

.btn-primary::before {
    background: var(--neon-cyan);
}

.btn-primary:hover {
    color: #0a0a0f;
    text-shadow: none;
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.5), 0 0 60px rgba(0, 255, 242, 0.2);
    transform: translateY(-2px);
}

/* --- Magenta --- */
.btn-magenta {
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
    background: rgba(255, 0, 255, 0.06);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.btn-magenta::before {
    background: var(--neon-magenta);
}

.btn-magenta:hover {
    color: #0a0a0f;
    text-shadow: none;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5), 0 0 60px rgba(255, 0, 255, 0.2);
    transform: translateY(-2px);
}

/* --- Green --- */
.btn-green {
    border-color: var(--neon-green);
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.06);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.btn-green::before {
    background: var(--neon-green);
}

.btn-green:hover {
    color: #0a0a0f;
    text-shadow: none;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.5), 0 0 60px rgba(57, 255, 20, 0.2);
    transform: translateY(-2px);
}

.btn-red {
    border-color: #ff4444;
    color: #ff4444;
    background: rgba(255, 68, 68, 0.08);
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
}

.btn-red::before {
    background: #ff4444;
}

.btn-red:hover {
    color: #0a0a0f;
    text-shadow: none;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5), 0 0 60px rgba(255, 68, 68, 0.2);
    transform: translateY(-2px);
}

.btn-orange {
    border-color: #ff9500;
    color: #ff9500;
    background: rgba(255, 149, 0, 0.08);
    text-shadow: 0 0 8px rgba(255, 149, 0, 0.3);
}

.btn-orange::before {
    background: #ff9500;
}

.btn-orange:hover {
    color: #0a0a0f;
    text-shadow: none;
    box-shadow: 0 0 30px rgba(255, 149, 0, 0.5), 0 0 60px rgba(255, 149, 0, 0.2);
    transform: translateY(-2px);
}

/* --- Small Buttons --- */
.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* ===== Forms ===== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.15);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ===== Toggle Switch ===== */

.toggle {
    position: relative;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle .slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle input:checked + .slider {
    background: rgba(57, 255, 20, 0.15);
    border-color: var(--neon-green);
}

.toggle input:checked + .slider::before {
    transform: translateX(24px);
    background: var(--neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* ===== Status Badges ===== */

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-online {
    background: rgba(57, 255, 20, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.badge-offline {
    background: rgba(255, 0, 68, 0.15);
    color: var(--neon-red);
    border: 1px solid rgba(255, 0, 68, 0.3);
}

.badge-away {
    background: rgba(255, 255, 0, 0.15);
    color: var(--neon-yellow);
    border: 1px solid rgba(255, 255, 0, 0.3);
}

.badge-admin {
    background: rgba(255, 0, 255, 0.15);
    color: var(--neon-magenta);
    border: 1px solid rgba(255, 0, 255, 0.3);
}

/* ===== Chat Log ===== */

.chat-log {
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
}

.chat-message {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
}

.chat-message:hover {
    background: rgba(0, 255, 242, 0.05);
}

.chat-message .chat-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.chat-message .chat-player {
    color: var(--neon-cyan);
}

.chat-message .chat-server {
    color: var(--neon-magenta);
    font-size: 0.75rem;
}

.chat-message .chat-text {
    color: var(--text-primary);
}

/* ===== Progress Bar ===== */

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.4);
}

.progress-bar .progress-fill.warning {
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-orange));
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.4);
}

.progress-bar .progress-fill.danger {
    background: linear-gradient(90deg, var(--neon-orange), var(--neon-red));
    box-shadow: 0 0 10px rgba(255, 0, 68, 0.4);
}

/* ===== Landing Page (opsucht-style) ===== */

.text-cyan { color: #64b5f6; }

.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- LP Hero --- */
.lp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: hidden;
    background: url('/images/hero-bg.png') center 40% / cover no-repeat;
    background-color: #0d1b2a;
}

.lp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13, 27, 42, 0.8) 0%, rgba(13, 27, 42, 0.5) 35%, rgba(13, 27, 42, 0.3) 60%, rgba(13, 27, 42, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

.lp-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lp-hero-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    min-height: 100vh;
}

.lp-hero-text {
    max-width: 50%;
    padding: 0 0 14rem;
    align-self: flex-end;
}

/* Hero Characters */
.lp-hero-characters {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-width: 0;
    align-self: flex-end;
    margin-bottom: -4px;
}

.lp-hero-char-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s ease;
    object-fit: contain;
}

.lp-hero-char-img:hover {
    filter: drop-shadow(0 0 30px rgba(0, 255, 242, 0.4)) drop-shadow(0 0 60px rgba(0, 0, 0, 0.4));
}

.lp-hero-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.lp-hero-desc {
    color: #b0bec5;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.lp-hero-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(100, 181, 246, 0.3);
}

.lp-hero-btn:hover {
    background: linear-gradient(135deg, #90caf9, #64b5f6);
    box-shadow: 0 6px 30px rgba(100, 181, 246, 0.45);
    transform: translateY(-2px);
}

.lp-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #0f1923);
    z-index: 3;
    pointer-events: none;
}

/* --- LP Sections --- */
.lp-section {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
    background: #0f1923;
}

.lp-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* --- LP Features --- */
.lp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lp-feature-card {
    background: rgba(25, 40, 60, 0.6);
    border: 1px solid rgba(100, 181, 246, 0.1);
    border-radius: 16px;
    padding: 2.5rem 1.8rem;
    text-align: center;
    transition: all 0.35s ease;
}

.lp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.lp-feature-highlight {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    border-color: transparent;
}

.lp-feature-highlight:hover {
    box-shadow: 0 8px 40px rgba(100, 181, 246, 0.35);
}

.lp-feature-highlight h3,
.lp-feature-highlight p {
    color: #fff !important;
}

.lp-feature-icon {
    margin-bottom: 1.2rem;
    color: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.lp-feature-icon svg {
    width: 48px;
    height: 48px;
}

.lp-feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.lp-feature-card p {
    color: #90a4ae;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- LP Join --- */
.lp-join-bg {
    background: #0f1923;
}

.lp-join-subtitle {
    text-align: center;
    color: #90a4ae;
    font-size: 1rem;
    margin-bottom: 2rem;
    margin-top: -1.5rem;
}

/* Edition Tabs - opsucht style: white pill */
.lp-join-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border-radius: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding: 4px;
}

.lp-join-tab {
    height: 48px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: #2e7d32;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lp-join-tab:hover {
    background: rgba(100, 181, 246, 0.1);
}

.lp-join-tab.active {
    background: #4CB0FF;
    color: #fff;
    transition-delay: 0.2s;
}

/* Join Box - two columns */
.lp-join-box {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(25, 40, 60, 0.5);
    border: 1px solid rgba(100, 181, 246, 0.1);
    border-radius: 16px;
    padding: 0;
    display: flex;
    overflow: hidden;
}

.lp-join-steps {
    flex: 1;
    padding: 2.5rem;
}

.lp-join-content {
    display: none;
}

.lp-join-content.active {
    display: block;
}

/* Right visual area - opsucht style: solid blue */
.lp-join-visual {
    width: 45%;
    min-width: 340px;
    background: #4CB0FF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: background-color 0.3s ease 0.2s;
}

.lp-join-visual-inner {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.lp-join-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lp-join-visual-label,
.lp-join-visual-version {
    display: none;
}

.lp-step {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.lp-step:last-child {
    margin-bottom: 0;
}

.lp-step-num {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 12px rgba(100, 181, 246, 0.3);
}

.lp-step-text {
    color: #b0bec5;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 0.3rem;
}

.lp-step-text strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

/* IP inline badge */
.lp-ip-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(25, 40, 60, 0.8);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 6px;
    padding: 0.25rem 0.7rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #64b5f6;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.lp-ip-inline:hover {
    border-color: #64b5f6;
    background: rgba(100, 181, 246, 0.1);
    box-shadow: 0 0 12px rgba(100, 181, 246, 0.2);
}

.lp-ip-inline.copied {
    border-color: #66bb6a;
    color: #66bb6a;
}

.lp-ip-copy-icon {
    font-size: 0.8rem;
}

/* --- LP News Preview --- */
.lp-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.lp-news-card {
    background: rgba(25, 40, 60, 0.6);
    border: 1px solid rgba(100, 181, 246, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.lp-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(100, 181, 246, 0.25);
}

.lp-news-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.lp-news-card-body {
    padding: 1.2rem 1.4rem;
}

.lp-news-card-date {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #64b5f6;
}

.lp-news-card-body h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.lp-news-card-body p {
    color: #90a4ae;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-news-more {
    text-align: center;
    margin-top: 2.5rem;
}

/* --- LP Footer --- */
.lp-footer {
    position: relative;
    z-index: 1;
    background: #0a1018;
    padding: 3rem 0 2rem;
}

.lp-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-footer-ip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.8rem;
    background: rgba(25, 40, 60, 0.6);
    border: 1px solid rgba(100, 181, 246, 0.15);
    border-radius: 30px;
    color: #ffffff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lp-footer-ip:hover {
    border-color: #64b5f6;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.15);
}

.lp-footer-ip-icon {
    color: #64b5f6;
    font-size: 0.7rem;
}

.lp-footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #64b5f6, #90caf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-footer-links {
    display: flex;
    gap: 1.5rem;
}

.lp-footer-links a {
    color: #78909c;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.lp-footer-links a:hover {
    color: #64b5f6;
}

.lp-footer-copy {
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: #546e7a;
    line-height: 1.8;
}

.lp-footer-copy span {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* --- LP Fade-in on Scroll --- */
.lp-fade {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.lp-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- LP Responsive --- */
@media (max-width: 1024px) {
    .lp-features,
    .lp-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .lp-hero-split {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
        padding-top: 5rem;
    }

    .lp-hero-text {
        max-width: 100%;
        padding: 0 0 2rem;
        align-self: center;
    }

    .lp-hero-characters {
        align-self: center;
        margin-bottom: -4px;
    }

    .lp-hero-char-img {
        max-width: 340px;
    }

    .lp-hero::before {
        background: linear-gradient(to bottom, rgba(13, 27, 42, 0.7) 0%, rgba(13, 27, 42, 0.4) 50%, rgba(13, 27, 42, 0.3) 100%);
    }
}

@media (max-width: 768px) {
    .lp-hero-text h1 {
        font-size: 2.2rem;
    }

    .lp-hero-text {
        padding: 0 0 1.5rem;
    }

    .lp-hero-desc {
        font-size: 0.9rem;
    }

    .lp-hero-char-img {
        max-width: 260px;
    }

    .lp-hero-split {
        padding-top: 4rem;
    }

    .lp-features,
    .lp-news-grid {
        grid-template-columns: 1fr;
    }

    .lp-section {
        padding: 3rem 0;
    }

    .lp-section-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .lp-join-box {
        flex-direction: column;
    }

    .lp-join-steps {
        padding: 1.5rem;
    }

    .lp-join-visual {
        width: 100%;
        min-width: unset;
        border-left: none;
        border-top: 1px solid rgba(100, 181, 246, 0.1);
        padding: 2rem 1.5rem;
    }

    .lp-join-tabs {
        max-width: 100%;
    }

    .lp-join-tab {
        font-size: 0.65rem;
        padding: 0.55rem 1rem;
    }

    .lp-footer-top {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .lp-footer-links {
        justify-content: center;
    }

    .lp-footer-ip {
        margin: 0 auto;
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== Login Page ===== */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.login-box .login-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
}

.login-box .login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-box .error-msg {
    background: rgba(255, 0, 68, 0.1);
    border: 1px solid rgba(255, 0, 68, 0.3);
    color: var(--neon-red);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
}

.login-box .success-msg {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: var(--neon-green);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    display: none;
}

/* ===== Confirm Dialog ===== */
.confirm-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0); backdrop-filter: blur(0px);
    z-index: 2500; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}

.confirm-overlay.active {
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    opacity: 1; pointer-events: all;
}

.confirm-dialog {
    background: rgba(12,12,22,0.98); border: 1px solid rgba(0, 255, 242, 0.2);
    border-radius: 16px; padding: 0; width: 90%; max-width: 460px;
    position: relative; overflow: hidden;
    transform: scale(0.7) translateY(30px); opacity: 0;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 80px rgba(0,0,0,0.6), 0 0 40px rgba(0, 255, 242, 0.08);
}

.confirm-overlay.active .confirm-dialog {
    transform: scale(1) translateY(0); opacity: 1;
}

.confirm-dialog.closing {
    transform: scale(0.85) translateY(-20px); opacity: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.confirm-header {
    position: relative; padding: 1.8rem 2rem 1rem; text-align: center;
    overflow: hidden;
}

.confirm-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
    animation: confirmGlow 2s ease-in-out infinite;
}

@keyframes confirmGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.confirm-icon {
    width: 64px; height: 64px; margin: 0 auto 1rem;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; position: relative;
    animation: confirmIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes confirmIconPop {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.confirm-icon.delete {
    background: rgba(255,0,68,0.12); border: 2px solid rgba(255,0,68,0.35);
    color: var(--neon-red); text-shadow: 0 0 20px rgba(255,0,68,0.5);
    box-shadow: 0 0 30px rgba(255,0,68,0.15);
}

.confirm-icon.warning {
    background: rgba(255,165,0,0.12); border: 2px solid rgba(255,165,0,0.35);
    color: var(--neon-orange); text-shadow: 0 0 20px rgba(255,165,0,0.5);
    box-shadow: 0 0 30px rgba(255,165,0,0.15);
}

.confirm-title {
    font-family: 'Orbitron', sans-serif; font-size: 1.2rem;
    color: var(--text-primary); margin-bottom: 0.2rem;
    letter-spacing: 1px;
    animation: confirmTextSlide 0.4s ease 0.15s both;
}

@keyframes confirmTextSlide {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.confirm-body {
    padding: 0 2rem; text-align: center;
    animation: confirmTextSlide 0.4s ease 0.25s both;
}

.confirm-body p {
    color: rgba(255, 255, 255, 0.85); font-size: 1rem; line-height: 1.6;
    font-family: 'Rajdhani', sans-serif; font-weight: 500;
}

.confirm-body .highlight {
    color: var(--neon-cyan); font-family: 'Share Tech Mono', monospace;
    font-weight: 600;
}

.confirm-actions {
    display: flex; gap: 0.8rem; padding: 1.5rem 2rem 1.8rem;
    justify-content: center;
    animation: confirmTextSlide 0.4s ease 0.35s both;
}

.confirm-actions .btn {
    min-width: 140px; justify-content: center; font-size: 0.95rem;
    padding: 0.75rem 1.8rem; font-family: 'Orbitron', sans-serif;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    border-radius: 8px; cursor: pointer; position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.confirm-actions .btn-cancel {
    background: rgba(100,100,120,0.08); border: 2px solid rgba(100,100,120,0.3);
    color: var(--text-secondary); display: inline-flex; align-items: center;
    font-family: 'Orbitron', sans-serif; font-weight: 700; border-radius: 8px;
    cursor: pointer; transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    letter-spacing: 1px; text-transform: uppercase;
}

.confirm-actions .btn-cancel:hover {
    background: rgba(100,100,120,0.2); border-color: rgba(100,100,120,0.6);
    color: var(--text-primary); transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ===== Loading Spinner ===== */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 242, 0.1);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== Perk Item ===== */

.perk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.perk-item:last-child {
    border-bottom: none;
}

.perk-item .perk-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.perk-item .perk-active {
    color: var(--neon-green);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
}

.perk-item .perk-inactive {
    color: var(--neon-red);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
}

/* ===== Friend Card ===== */

.friend-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.friend-card:hover {
    border-color: var(--glass-border);
    background: rgba(0, 255, 242, 0.03);
}

.friend-card .friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    image-rendering: pixelated;
}

.friend-card .friend-info {
    flex: 1;
}

.friend-card .friend-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.friend-card .friend-server {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== Search Bar ===== */

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.1);
}

.search-bar::before {
    content: '\1F50D';
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.5;
}

/* ===== Pagination ===== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pagination button {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s ease;
}

.pagination button:hover,
.pagination button.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== Animations ===== */

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 242, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 242, 0.4); }
}

.glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* ===== Empty State ===== */

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1rem;
}

/* ===== Tooltip ===== */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip:hover::after {
    opacity: 1;
}

/* ===== Transaction Type Colors ===== */

.tx-pay { color: var(--neon-red); }
.tx-receive { color: var(--neon-green); }
.tx-deposit { color: var(--neon-yellow); }
.tx-withdraw { color: var(--neon-orange); }
.tx-admin { color: var(--neon-magenta); }

/* ===== Server Selector ===== */

.server-selector {
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--neon-cyan);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 160px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%2300fff2' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.5rem;
}

.server-selector:hover,
.server-selector:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.2);
}

.server-selector option {
    background: #0a0a0f;
    color: var(--text-primary);
}

/* ===== Web Online Badge ===== */

.badge-web-online {
    background: rgba(0, 255, 242, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 255, 242, 0.3);
}

/* ===== Public Navbar ===== */

.public-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
}

.public-navbar .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.public-navbar .public-links {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.public-navbar .public-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.public-navbar .public-links a:hover {
    color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.08);
    border-color: rgba(0, 255, 242, 0.15);
    text-shadow: 0 0 12px rgba(0, 255, 242, 0.4);
    transform: translateY(-1px);
}

.public-navbar .public-links a.active {
    color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.12);
    border-color: rgba(0, 255, 242, 0.25);
    text-shadow: 0 0 12px rgba(0, 255, 242, 0.5);
}

.public-navbar .public-links a.btn-panel {
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.3);
    background: rgba(57, 255, 20, 0.08);
}

.public-navbar .public-links a.btn-panel:hover {
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.15);
    border-color: rgba(57, 255, 20, 0.5);
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.15);
}

/* ===== Public Hamburger ===== */

.public-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.public-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.public-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.public-hamburger.active span:nth-child(2) { opacity: 0; }
.public-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .public-navbar .public-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        display: none;
        backdrop-filter: blur(20px);
        z-index: 999;
    }

    .public-navbar .public-links.open {
        display: flex;
    }

    .public-hamburger {
        display: flex !important;
    }
}

/* ===== News Cards ===== */

.news-grid {
    display: grid;
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.1), inset 0 0 30px rgba(0, 255, 242, 0.02);
    transform: translateY(-2px);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card.pinned {
    border-color: rgba(255, 255, 0, 0.2);
}

.news-card.pinned::before {
    background: linear-gradient(90deg, transparent, var(--neon-yellow), transparent);
    opacity: 0.6;
}

.news-card .news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--glass-border);
}

.news-card .news-body {
    padding: 1.5rem;
}

.news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.news-card .news-meta .news-date {
    color: var(--neon-cyan);
}

.news-card .news-meta .news-author {
    color: var(--neon-magenta);
}

.news-card .news-meta .badge-pinned {
    background: rgba(255, 255, 0, 0.15);
    color: var(--neon-yellow);
    border: 1px solid rgba(255, 255, 0, 0.3);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.news-card .news-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.news-card .news-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
}

.news-card .news-content-preview {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Rules Page ===== */

.rules-section {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rules-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
}

.rules-section:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.08);
}

.rules-section .rules-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--neon-cyan);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rules-section .rules-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* ===== Public Hero with News ===== */

.public-hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.public-hero .hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.public-hero .hero-title .neo {
    background: linear-gradient(135deg, #00fff2, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.public-hero .hero-title .mine {
    background: linear-gradient(135deg, #0066ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.public-hero .hero-subtitle {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ===== Admin News/Rules Management ===== */

.admin-news-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.admin-news-item:hover {
    background: rgba(0, 255, 242, 0.03);
}

.admin-news-item:last-child {
    border-bottom: none;
}

.admin-news-item .news-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.admin-news-item .news-info {
    flex: 1;
    min-width: 0;
}

.admin-news-item .news-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.admin-news-item .news-info .meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.admin-news-item .news-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

/* ===== Modal (reusable) ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-box h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--neon-red);
    background: rgba(255, 0, 68, 0.1);
}

/* Textarea for admin */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Image preview */
.image-preview {
    margin-top: 0.5rem;
    max-width: 200px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
}

/* Badge pinned toggle */
.btn-pin {
    background: rgba(255, 255, 0, 0.06);
    border: 2px solid rgba(255, 255, 0, 0.35);
    color: var(--neon-yellow);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.3);
}

.btn-pin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--neon-yellow);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-pin:hover::before {
    width: 300px;
    height: 300px;
}

.btn-pin:hover {
    color: #0a0a0f;
    text-shadow: none;
    box-shadow: 0 0 25px rgba(255, 255, 0, 0.4), 0 0 50px rgba(255, 255, 0, 0.15);
    transform: translateY(-2px);
}

/* --- Danger (Red) --- */
.btn-danger {
    background: rgba(255, 0, 68, 0.06);
    border: 2px solid rgba(255, 0, 68, 0.35);
    color: var(--neon-red);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 0 8px rgba(255, 0, 68, 0.3);
}

.btn-danger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--neon-red);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-danger:hover::before {
    width: 300px;
    height: 300px;
}

.btn-danger:hover {
    color: #ffffff;
    text-shadow: none;
    box-shadow: 0 0 25px rgba(255, 0, 68, 0.4), 0 0 50px rgba(255, 0, 68, 0.15);
    transform: translateY(-2px);
}

/* --- Edit (Cyan) --- */
.btn-edit {
    background: rgba(0, 255, 242, 0.06);
    border: 2px solid rgba(0, 255, 242, 0.35);
    color: var(--neon-cyan);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-shadow: 0 0 8px rgba(0, 255, 242, 0.3);
}

.btn-edit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--neon-cyan);
    transform: translate(-50%, -50%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-edit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-edit:hover {
    color: #0a0a0f;
    text-shadow: none;
    box-shadow: 0 0 25px rgba(0, 255, 242, 0.4), 0 0 50px rgba(0, 255, 242, 0.15);
    transform: translateY(-2px);
}

/* ===== Image Mode Switch ===== */

.image-mode-switch {
    display: inline-flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 20, 0.5);
}

.btn-sm-mode {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-sm-mode:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-sm-mode.active {
    background: rgba(0, 255, 242, 0.15);
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 242, 0.4);
    box-shadow: inset 0 0 15px rgba(0, 255, 242, 0.08);
}

/* ===== Upload Dropzone ===== */

.upload-dropzone {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(10, 10, 20, 0.4);
    overflow: hidden;
}

.upload-dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 242, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.upload-dropzone:hover {
    border-color: rgba(0, 255, 242, 0.3);
    background: rgba(10, 10, 20, 0.6);
}

.upload-dropzone:hover::before {
    opacity: 1;
}

.upload-dropzone.dragover {
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.05);
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.15), inset 0 0 30px rgba(0, 255, 242, 0.05);
    transform: scale(1.01);
}

.upload-dropzone.dragover::before {
    opacity: 1;
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-dropzone .upload-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.3);
}

.upload-dropzone:hover .upload-icon,
.upload-dropzone.dragover .upload-icon {
    transform: translateY(-4px) scale(1.1);
    filter: grayscale(0);
}

.upload-dropzone .upload-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.upload-dropzone:hover .upload-text {
    color: var(--text-primary);
}

.upload-dropzone .upload-hint {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 0.3rem;
}

/* Upload selected state */
.upload-dropzone.has-file {
    border-color: rgba(57, 255, 20, 0.4);
    border-style: solid;
    background: rgba(57, 255, 20, 0.04);
}

.upload-dropzone.has-file .upload-icon {
    filter: grayscale(0);
}

.upload-dropzone .upload-filename {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--neon-green);
    margin-top: 0.4rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.upload-dropzone.has-file .upload-filename {
    display: flex;
}

.upload-dropzone.has-file .upload-text,
.upload-dropzone.has-file .upload-hint {
    display: none;
}

/* Upload success animation */
@keyframes uploadPulse {
    0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.4); }
    50% { box-shadow: 0 0 25px 5px rgba(57, 255, 20, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

@keyframes uploadCheck {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.upload-dropzone.upload-success {
    animation: uploadPulse 0.8s ease-out;
}

.upload-dropzone .upload-check {
    display: none;
    font-size: 1.4rem;
    color: var(--neon-green);
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.6);
}

.upload-dropzone.has-file .upload-check {
    display: inline;
    animation: uploadCheck 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Image preview enhanced */
.image-preview {
    max-width: 220px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-top: 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@keyframes previewSlideIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.image-preview.show {
    animation: previewSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.image-preview:hover {
    border-color: rgba(0, 255, 242, 0.3);
    box-shadow: 0 4px 25px rgba(0, 255, 242, 0.1);
    transform: scale(1.02);
}

/* URL input with icon */
.url-input-wrapper {
    position: relative;
}

.url-input-wrapper::before {
    content: '\1F517';
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

.url-input-wrapper input {
    padding-left: 2.3rem;
}

/* ===== Multi-Image List ===== */

.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.image-list-item {
    position: relative;
    width: 110px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    animation: previewSlideIn 0.3s ease forwards;
}

.image-list-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-list-item .img-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 0, 60, 0.85);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 22px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 3;
}

.image-list-item:hover .img-remove {
    opacity: 1;
}

.image-list-item .img-remove:hover {
    transform: scale(1.15);
    background: var(--neon-red);
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.image-list-item.removing {
    animation: imgRemove 0.3s ease forwards;
}

@keyframes imgRemove {
    to { opacity: 0; transform: scale(0.8); width: 0; margin: 0; padding: 0; }
}

/* URL add row */
.url-add-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.url-add-row input {
    flex: 1;
}

.btn-add-url {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 242, 0.1);
    border: 1px solid rgba(0, 255, 242, 0.3);
    border-radius: 6px;
    color: var(--neon-cyan);
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-add-url:hover {
    background: rgba(0, 255, 242, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.2);
}

/* ===== Rules Image ===== */

.rules-section .rules-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    display: block;
}

/* News multi-image gallery */
.news-image-gallery {
    display: flex;
    gap: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.news-image-gallery img {
    flex: 1;
    min-width: 0;
    height: 200px;
    object-fit: cover;
}

.news-image-gallery img:only-child {
    height: 220px;
}

/* Rules multi-image gallery */
.rules-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rules-image-gallery img {
    flex: 1 1 300px;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

/* ===== Lightbox ===== */

.news-image,
.news-image-gallery img,
.rules-image,
.rules-image-gallery img {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 255, 242, 0.2), 0 0 80px rgba(0, 255, 242, 0.08);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5001;
}

.lightbox-close:hover {
    background: rgba(255, 0, 68, 0.6);
    border-color: var(--neon-red);
    box-shadow: 0 0 15px rgba(255, 0, 68, 0.4);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5001;
}

.lightbox-nav:hover {
    background: rgba(0, 255, 242, 0.25);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.3);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5001;
}

.lightbox-nav.hidden,
.lightbox-counter.hidden {
    display: none;
}

@media (max-width: 768px) {
    .lightbox-close {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}
