/* ==========================================================================
    RedNode Network - Ultra Cyberpunk & Neon BlocksMC Masterpiece 2026
   ========================================================================== */

:root {
    --bg-main: #030508;
    --bg-card: rgba(10, 14, 22, 0.82);
    --bg-card-hover: rgba(16, 22, 36, 0.92);
    --border-color: rgba(59, 130, 246, 0.15);
    --border-glow: rgba(59, 130, 246, 0.6);
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #06b6d4;
    --neon-pink: #ec4899;
    --neon-purple: #8b5cf6;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Rank Colors with Glow */
    --rank-founder: #ef4444;
    --rank-admin: #f97316;
    --rank-sr-mod: #eab308;
    --rank-mod: #10b981;
    --rank-member: #6b7280;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    /* მცურავი დინამიური ფონური გრადიენტები */
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
    background-attachment: fixed;
    animation: bgPulse 15s infinite alternate ease-in-out;
}

@keyframes bgPulse {
    0% { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(15deg) brightness(1.1); }
}

/* Custom Scrollbar with Neon Glow */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-pink);
}

/* ==================== Navigation Bar ==================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background: rgba(3, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
    position: relative;
}

.nav-brand .status-dot {
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 15px #10b981, 0 0 30px #10b981;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-brand span {
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::before, .nav-links a.active::before {
    width: 80%;
    left: 10%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.08);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* ==================== Control Panel Dropdown & Staff Button ==================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.dropbtn:hover {
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

.red-arrow {
    color: #ef4444;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
}

.dropdown.open .red-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(8, 12, 20, 0.95);
    backdrop-filter: blur(25px);
    min-width: 190px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    z-index: 1000;
    top: 110%;
    left: 0;
    overflow: hidden;
}

.dropdown.open .dropdown-content {
    display: block !important;
    animation: dropdownPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.dropdown-content a {
    color: var(--text-muted);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background-color: rgba(59, 130, 246, 0.12);
    color: var(--text-main);
    border-left-color: var(--primary);
    padding-left: 24px;
    transform: none !important;
}

/* Staff Panel Glowing Animated Button */
.nav-btn-staff {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.4)) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    animation: staffGlow 3s infinite alternate;
}

@keyframes staffGlow {
    0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
    100% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.7), inset 0 0 10px rgba(239, 68, 68, 0.4); }
}

.nav-btn-staff:hover {
    background: #ef4444 !important;
    color: white !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.8);
}

/* ==================== Rank Badges (Glow Effects) ==================== */
.rank-badge {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    animation: badgeFloat 4s ease-in-out infinite alternate;
}

@keyframes badgeFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

.rank-founder { background: rgba(239, 68, 68, 0.2); color: var(--rank-founder); border: 1px solid rgba(239, 68, 68, 0.5); box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
.rank-admin { background: rgba(249, 115, 22, 0.2); color: var(--rank-admin); border: 1px solid rgba(249, 115, 22, 0.5); box-shadow: 0 0 15px rgba(249, 115, 22, 0.3); }
.rank-senior_mod, .rank-sr_mod { background: rgba(234, 179, 8, 0.2); color: var(--rank-sr-mod); border: 1px solid rgba(234, 179, 8, 0.5); box-shadow: 0 0 15px rgba(234, 179, 8, 0.3); }
.rank-moderator, .rank-mod { background: rgba(16, 185, 129, 0.2); color: var(--rank-mod); border: 1px solid rgba(16, 185, 129, 0.5); box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
.rank-member { background: rgba(107, 114, 128, 0.2); color: var(--text-muted); border: 1px solid rgba(107, 114, 128, 0.4); }

/* ==================== Main Container & Glass Cards ==================== */
.main-container {
    max-width: 1200px;
    width: 92%;
    margin: 50px auto;
    flex: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff, #94a3b8, #3b82f6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    animation: gradientShift 8s ease infinite;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Ultra Glass Card with Moving Border Light */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--neon-pink), transparent);
    animation: cardLightScan 6s linear infinite;
}

@keyframes cardLightScan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.25);
}

/* ==================== Tables (Glowing Rows) ==================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: -10px;
}

.custom-table th {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.custom-table tbody tr {
    background: rgba(12, 18, 30, 0.7);
    transition: var(--transition);
}

.custom-table tbody tr:hover {
    background: rgba(25, 35, 55, 0.9);
    transform: scale(1.004) translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.custom-table td {
    padding: 18px 20px;
    font-size: 0.95rem;
    color: var(--text-main);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.custom-table td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-left: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 700;
    color: var(--accent);
}

.custom-table td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-right: 1px solid rgba(59, 130, 246, 0.2);
}

/* Status Pills with Neon Glow */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}

.status-expired {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

/* ==================== Forms, Inputs & Futuristic Buttons ==================== */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(4, 7, 14, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4), inset 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(6, 10, 20, 0.9);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* Buttons with Shimmer & Glow Animation */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.8);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.8);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-danger:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.8);
}

/* Flash Alerts */
.alert {
    padding: 16px 22px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: alertPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

/* ==================== Dashboard Stats Cards ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.2);
}

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 2.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer */
footer {
    text-align: center;
    padding: 35px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    margin-top: auto;
    background: rgba(2, 4, 8, 0.8);
    backdrop-filter: blur(10px);
}