@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --bg-panel: rgba(15, 23, 42, 0.6);
    --bg-input: #1e293b;

    --primary: #ef4444;
    /* Red 500 */
    --primary-hover: #dc2626;
    /* Red 600 */
    --primary-glow: rgba(239, 68, 68, 0.5);

    --secondary: #f97316;
    /* Orange 500 */
    --secondary-glow: rgba(249, 115, 22, 0.4);

    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border: rgba(239, 68, 68, 0.12);
    --glass-border: 1px solid rgba(255, 255, 255, 0.07);

    --header-bg: rgba(2, 6, 23, 0.88);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.1) 0%, transparent 40%);
    overflow-x: hidden;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 15px var(--primary-glow), 0 0 5px var(--secondary-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}



/* Global Utilities */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    gap: 20px;
}

.navbar .nav-pills { justify-self: center; }
.navbar .lang-toggle { justify-self: end; }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-brand-icon {
    color: var(--primary);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%,100% { filter: drop-shadow(0 0 6px var(--primary-glow)); }
    50%      { filter: drop-shadow(0 0 18px var(--primary-glow)) drop-shadow(0 0 35px rgba(239,68,68,0.3)); }
}

.lang-toggle {
    display: flex;
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 9999px;
    padding: 4px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: 'Outfit', sans-serif;
}

.lang-btn:hover { color: white; }

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 0 12px var(--primary-glow);
}

.nav-pills {
    display: flex;
    background: rgba(30, 41, 59, 0.5);
    padding: 0.4rem;
    border-radius: 9999px;
    border: var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.6rem 1.8rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* RESTORED: Container & Auth Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.auth-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.auth-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
    animation: glowPulse 3s infinite;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: white;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.input-group {
    text-align: center;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-field {
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
    background: rgba(30, 41, 59, 0.8);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    text-decoration: none;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-secondary {
    width: 100%;
    background: #5865F2;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-secondary:hover {
    background: #4752C4;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider::before {
    margin-right: 1rem;
}

.divider::after {
    margin-left: 1rem;
}

.footer-link {
    display: block;
    margin-top: 2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.footer-link:hover {
    color: white;
    text-shadow: 0 0 10px white;
}

/* User Dashboard Layout - LEFT SIDEBAR (Standard) */
.user-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(25px);
    border-right: var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    /* Align Left */
    top: 0;
    z-index: 200;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    /* Space for sidebar on left */
    padding: 3rem 4rem;
    width: 100%;
}

.sidebar-header {
    margin-bottom: 2.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.brand-icon {
    color: var(--primary);
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.user-profile-widget {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    transition: 0.3s;
}

.user-profile-widget:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 5px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(168, 85, 247, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.15), transparent);
    color: var(--primary);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-left: 4px solid var(--primary);
    /* Highlight on Left */
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.top-bar h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

.btn-customize {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: 0.3s;
    font-weight: 600;
}

.btn-customize:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary);
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    animation: float 6s ease-in-out infinite;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(to right, white, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

/* Accounts Grid */
.accounts-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: white;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.account-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(168, 85, 247, 0.3);
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-5px);
}

.skin-preview {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.account-details {
    flex: 1;
}

.account-name {
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: block;
    font-size: 1.1rem;
    color: white;
}

.account-status {
    font-size: 0.75rem;
    color: #4ade80;
    /* Green */
    background: rgba(74, 222, 128, 0.1);
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.account-meta {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.account-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 10px;
}

.btn-small {
    flex: 1;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
    font-weight: 500;
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.btn-orange {
    background: rgba(234, 88, 12, 0.1) !important;
    border-color: rgba(234, 88, 12, 0.5) !important;
    color: #fb923c !important;
}

.btn-orange:hover {
    background: rgba(234, 88, 12, 0.2) !important;
    box-shadow: 0 0 15px rgba(234, 88, 12, 0.2);
}

/* Account Details Layout */
.back-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-back {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
}

.btn-back:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.page-title h1 {
    font-size: 1.5rem;
    margin: 0;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.top-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: 0.2s;
    font-family: 'Outfit', sans-serif;
}

.btn-action.green {
    background: #10b981;
}

.btn-action.orange {
    background: #f97316;
}

.btn-action.red {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.details-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Left Panel */
.identity-card {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.identity-card h2 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.skin-viewer-container {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skin-body-img {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.value-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(249, 115, 22, 0.3);
    /* Orange tint */
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.value-card .label {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.value-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #f97316;
    font-family: 'JetBrains Mono', monospace;
}

/* Right Panel */
.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    border-radius: 6px;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.tab-content {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.tab-content.hidden {
    display: none;
}

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

.data-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.data-box {
    background: rgba(0, 0, 0, 0.3);
    border: var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.copy-btn:hover {
    color: white;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* RESTORED: Dashboard & Leaderboard Styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-header p {
    color: var(--text-muted);
}

.leaderboard-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 16px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lb-tabs {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    justify-content: center;
    border-bottom: var(--glass-border);
}

.lb-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.lb-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
}

.lb-table th {
    background: rgba(0, 0, 0, 0.4);
    text-align: left;
    padding: 1.2rem 2rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lb-table td {
    padding: 1.2rem 2rem;
    border-bottom: var(--glass-border);
    color: var(--text-main);
    font-weight: 500;
}

.lb-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.lb-table tr:last-child td {
    border-bottom: none;
}

.lb-rank {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.green-avatar {
    background: #10b981;
}

.blue-avatar {
    background: #3b82f6;
}

.red-avatar {
    background: #ef4444;
}

/* Features Page */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.feature-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.feature-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    align-items: flex-start;
}

.feature-list li i {
    color: #10b981;
    /* Success Green */
    margin-top: 3px;
}

/* Sidebar User Profile Overflow Fix */
.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.username {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: white;
    margin-bottom: 2px;
}

.license-expiry {
    font-size: 0.75rem;
    color: #a855f7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Email Page Styles */
.email-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.email-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.email-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 10px 30px -5px rgba(168, 85, 247, 0.2);
    border-color: var(--primary);
}

.email-card:hover .card-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 15px var(--primary-glow);
}

.email-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.card-info {
    flex-grow: 1;
    overflow: hidden;
}

.card-email {
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 3px;
}

.card-arrow {
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}

/* Inbox Interface */
.inbox-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.8);
    padding: 15px;
    border-radius: 16px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}

.inbox-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.inbox-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    height: calc(100vh - 250px);
    min-height: 500px;
}

.messages-list {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    overflow-y: auto;
    border: var(--glass-border);
}

.msg-item {
    padding: 15px;
    border-bottom: var(--glass-border);
    cursor: pointer;
    transition: 0.2s;
}

.msg-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.msg-item.active {
    background: rgba(168, 85, 247, 0.1);
    border-left: 3px solid var(--primary);
}

.msg-sender {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.msg-subject {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: right;
    opacity: 0.7;
}

.message-preview {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    overflow-y: auto;
    border: var(--glass-border);
    padding: 30px;
}

.preview-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.preview-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.preview-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.empty-inbox,
.empty-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 1.2rem;
    text-align: center;
    gap: 1rem;
}

.empty-inbox i,
.empty-preview i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: scale(1);
}

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

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input,
.input-group select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.input-group input {
    flex: 1;
}
/* Beaming Links Styles */
.grid-col-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    background: rgba(30, 41, 59, 0.8);
}

.service-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

.service-card.disabled:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.form-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    appearance: none;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

.form-select:focus {
    border-color: var(--primary);
}

.select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Enhanced Beaming Links Grid */
.service-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: 0.3s;
}

.service-card:hover {
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 10px 40px -10px rgba(168, 85, 247, 0.3);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px currentColor;
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Specific Glows */
.service-card:nth-child(1):hover { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 10px 40px -10px rgba(245, 158, 11, 0.3); }
.service-card:nth-child(2):hover { border-color: rgba(236, 72, 153, 0.5); box-shadow: 0 10px 40px -10px rgba(236, 72, 153, 0.3); }
.service-card:nth-child(3):hover { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.3); }

