@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #050507;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --accent: #ec4899;
    --accent-glow: rgba(236, 72, 153, 0.4);
    
    --success: #10b981;
    --danger: #ef4444;
    
    --glass-bg: rgba(25, 25, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.5rem;
    
    --font-main: 'Outfit', sans-serif;
    --container-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.blobs-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; pointer-events: none;
    background: var(--bg-color);
}
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.4;
    will-change: transform;
}
.blob-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    animation: float 20s infinite alternate ease-in-out;
}
.blob-2 {
    bottom: -10%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    animation: float 25s infinite alternate-reverse ease-in-out;
}
.blob-3 {
    top: 40%; left: 30%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    opacity: 0.2; animation: float 22s infinite alternate ease-in-out;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

#preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(135deg, #6366f1, #a855f7); 
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}
.preloader-logo {
    font-size: 4rem; 
    font-weight: 800; 
    color: white; 
    letter-spacing: -2px;
    animation: breathe 2s infinite ease-in-out;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.9); opacity: 0.7; }
}
.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.container {
    width: 100%; max-width: var(--container-width);
    margin: 0 auto; padding: 0 1.5rem;
}
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-4 { gap: 2rem; }
.mt-2 { margin-top: 1rem; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; } .text-right { text-align: right; }

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative; overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}
.glass:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}
.glass-static { transition: none; transform: none; }
.glass-static:hover { transform: none; border-color: var(--glass-border); }

.p-4 { padding: 1.5rem; }
.p-6 { padding: 2.5rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-md);
    font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px var(--accent-glow);
    transform: translateY(-2px);
}
.btn-outline {
    background: rgba(255,255,255,0.05); color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-danger {
    background: rgba(239, 68, 68, 0.1); color: var(--danger);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; border-radius: 0.5rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }

.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; margin-left: 0.2rem; }
.input {
    width: 100%; padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: white; font-family: var(--font-main);
    transition: 0.3s;
    color-scheme: dark;
}
.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.table-wrapper {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -1.5rem; padding: 0 1.5rem;
}
table { width: 100%; min-width: 600px; border-collapse: collapse; }
th { 
    text-align: left; font-size: 0.75rem; text-transform: uppercase; 
    letter-spacing: 1px; color: var(--text-muted); padding: 1rem; 
    border-bottom: 1px solid var(--glass-border); 
}
td { 
    padding: 1.2rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.03); 
    font-size: 0.95rem; white-space: nowrap; 
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.table-wrapper::-webkit-scrollbar { height: 4px; }
.table-wrapper::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 4px; }
.table-wrapper::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

.title-xl { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 0.5rem; }
.title-lg { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 1rem; }
.text-gradient {
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text; color: transparent;
}
.badge {
    padding: 0.25rem 0.75rem; border-radius: 2rem;
    font-size: 0.7rem; font-weight: 600; uppercase; letter-spacing: 0.5px;
    background: rgba(16, 185, 129, 0.1); color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: inline-flex; align-items: center; gap: 6px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }

.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    z-index: 50; display: flex; align-items: center;
    background: rgba(3, 3, 5, 0.7); backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    width: 42px; height: 42px; border-radius: 12px; 
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: white; font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.nav-link:hover, .nav-link.active { color: white; }

.footer {
    margin-top: auto; padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2); backdrop-filter: blur(10px);
    text-align: center; font-size: 0.85rem; color: var(--text-muted);
}
.footer img { height: 24px; filter: invert(1); opacity: 0.5; margin-top: 0.5rem; transition: 0.3s; }
.footer img:hover { opacity: 1; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center; padding: 1.5rem;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    width: 100%; max-width: 450px;
    transform: translateY(20px); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content { transform: translateY(0); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-enter { animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .title-xl { font-size: 2.5rem; }
    .nav-links a { font-size: 0.8rem; padding: 0.5rem; }
    .p-6 { padding: 1.5rem; }
    .table-wrapper::-webkit-scrollbar { height: 3px; }
    .mobile-hint { display: block; }
}
@media (min-width: 769px) {
    .mobile-hint { display: none; }
}