:root {
    --primary: #2563eb;
    --accent: #0ea5e9;
    --bg-overlay: rgba(15, 23, 42, 0.05);
    --modal-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

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

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(2, 132, 199, 0.05) 0px, transparent 50%);
    overflow: hidden;
    padding: 20px;
}

.modal-launcher {
    background: var(--modal-bg);
    width: 100%;
    max-width: 1100px;
    height: auto;
    max-height: 95vh;
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(15, 23, 42, 0.15), 0 30px 60px -30px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    animation: modalScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.9) translateY(40px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.close-btn:hover {
    background: #0f172a;
    color: white;
    transform: rotate(90deg);
}

/* HEADER */
.launcher-header {
    text-align: center;
    margin-bottom: 50px;
}

.logo-box {
    height: 100px;
    margin-bottom: 25px;
    object-fit: contain;
}

.welcome-section h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 5px;
}

.welcome-section h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-dark);
}

/* GRID */
.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 900px;
}

.nav-card {
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    border-radius: 30px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.nav-card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: var(--primary);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s;
}

.nav-card:hover .card-icon {
    background: var(--text-dark);
    color: white;
}

.nav-card h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-card:hover .stat-badge {
    transform: scale(1);
}

.stat-badge.visible {
    transform: scale(1);
}

footer {
    margin-top: 50px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s;
}

footer:hover {
    opacity: 1;
}

/* USER PANEL FLOATING */
#global_user_panel {
    position: fixed !important;
    top: 25px !important;
    right: 100px !important;
    background: white !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
    z-index: 2000 !important;
    border: 1px solid var(--modal-bg) !important;
}

#global_user_panel span {
    color: var(--text-dark) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

#global_user_panel i.fa-user-circle {
    color: var(--primary) !important;
}
