body, html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    color: #e0e6ed;
    overflow-x: hidden;
}

.gradient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    background: linear-gradient(135deg, #1b0c3f, #3b0d5c, #0a193b, #072a4f, #2a0845);
    background-size: 500% 500%;
    animation: gradientShift 12s ease infinite;
}

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

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

/* Dashboard layout */
.dashboard-hero {
    margin-top: 20px;
}

.dashboard-hero h1 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
}

.dashboard-hero p {
    color: #94a3b8;
    font-size: 0.9em;
    margin: 0 0 25px 0;
}

.app-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Sleek Horizontal App Rows */
.app-card {
    display: flex;
    align-items: center;
    background: rgba(12, 14, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.app-card:hover {
    transform: translateX(4px);
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(18, 21, 30, 0.9);
}

.app-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    margin-right: 16px;
    flex-shrink: 0;
}

.app-icon-wrap.media { background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(124, 58, 237, 0.4); }
.app-icon-wrap.santa { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.4); }

.app-info {
    flex-grow: 1;
}

.app-info h3 {
    margin: 0 0 3px 0;
    font-size: 1.05em;
    color: #fff;
}

.app-info p {
    margin: 0;
    font-size: 0.83em;
    color: #94a3b8;
}

.app-arrow {
    font-size: 1.1em;
    color: #64748b;
    margin-left: 15px;
    transition: color 0.2s, transform 0.2s;
}

.app-card:hover .app-arrow {
    color: #06b6d4;
    transform: translateX(3px);
}

/* Login Card */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
}

.login-card {
    background: rgba(15, 17, 26, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 30px;
    border-radius: 14px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.login-card h2 {
    margin: 0 0 8px 0;
    font-size: 1.6em;
    font-weight: 700;
    background: linear-gradient(45deg, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card p {
    color: #94a3b8;
    font-size: 0.88em;
    line-height: 1.4;
    margin-bottom: 25px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

/* =========================================
   UNIVERSAL ALIGNMENT & NAV BAR SYNC
   ========================================= */

.container, .master-container {
    max-width: 1050px !important;
    margin: 0 auto !important;
    padding: 25px 15px !important; 
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box !important;
}

nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: rgba(15, 17, 26, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 18px !important; 
    border-radius: 8px !important; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin: 0 0 25px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif !important;
}

nav .logo, nav .logo a {
    font-size: 18px !important; 
    font-weight: 700 !important;
    background: linear-gradient(45deg, #a855f7, #06b6d4) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-decoration: none !important;
    margin: 0 !important;
}

nav .nav-right {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important; 
}

nav .nav-links {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
}

nav .user-controls {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important; 
    font-weight: 500 !important;
    color: #e0e6ed !important;
}

nav .user-avatar {
    width: 28px !important; 
    height: 28px !important;
    border-radius: 50% !important;
    border: 2px solid #a855f7 !important;
    object-fit: cover !important;
}

nav .nav-links a, nav .logout-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 12px !important; 
    border-radius: 4px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 12px !important; 
    font-weight: 600 !important;
    transition: 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

nav .nav-links a:hover { 
    background: rgba(255, 255, 255, 0.1) !important; 
}

nav .nav-links a.active { 
    background: #7c3aed !important; 
    color: #fff !important; 
}

nav .nav-links a.admin-btn {
    color: #fbbf24 !important;
}

nav .logout-btn { 
    background: rgba(239, 68, 68, 0.15) !important; 
    color: #ef4444 !important; 
}

nav .logout-btn:hover { 
    background: rgba(239, 68, 68, 0.3) !important; 
}