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

:root {
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --bg-input: #334155;
    /* Slate 700 */
    --primary: #3b82f6;
    /* Blue 500 */
    --primary-hover: #2563eb;
    /* Blue 600 */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border: #334155;
    /* Slate 700 */
    --header-bg: rgba(15, 23, 42, 0.8);
}

* {
    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 top right, #1e293b 0%, transparent 40%),
        radial-gradient(circle at bottom left, #1e1b4b 0%, transparent 40%);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-pills {
    display: flex;
    background: var(--bg-card);
    padding: 0.3rem;
    border-radius: 9999px;
    /* Pill shape */
    border: 1px solid var(--border);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

/* Login Card */
.auth-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-icon {
    background: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.auth-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

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

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

.input-field {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: block;
    text-decoration: none;
    text-align: center;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: #4752C4;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

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

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

.footer-link {
    display: block;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Dashboard 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: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    width: 100%;
    overflow: hidden;
}

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

.lb-btn {
    background: var(--bg-input);
    color: var(--text-muted);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.lb-btn.active {
    background: var(--primary);
    color: white;
}

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

.lb-table th {
    background: rgba(0, 0, 0, 0.2);
    text-align: left;
    padding: 1rem 2rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.lb-table td {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

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

.lb-rank {
    font-weight: 700;
    color: var(--primary);
}

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

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.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;
}/* CSS Update for Avatars */
.user-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

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

/* Fallback Avatar Container */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

/* ... (keep existing color classes) */
.green-avatar {
    background: #10b981;
}

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

.red-avatar {
    background: #ef4444;
}

/* Append to existing file instead of overwrite if possible, but write_to_file overwrites. 
   So I need to APPEND or rewrite the full file.
   Let's rewrite the full file. Reading previous file above...
*//* User Dashboard Layout */
.user-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-right: var(--glass-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 200;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

.brand-icon {
    color: var(--secondary);
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--secondary-glow);
}

.user-profile-widget {
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.username {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.license-expiry {
    font-size: 0.7rem;
    color: #10b981;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 0.9rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.sidebar-link.active {
    background: rgba(217, 70, 239, 0.1);
    /* Primary low opacity */
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    /* Sidebar width */
    padding: 2rem 3rem;
    width: 100%;
}

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

.top-bar h1 {
    font-size: 2rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
}

.btn-customize {
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: 0.2s;
}

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

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

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

.stat-card {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-info h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    opacity: 0.5;
}

/* Accounts Grid */
.accounts-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.account-card {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    transition: 0.3s;
}

.account-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.skin-preview {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    /* In real app, put skin image here */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.account-details {
    flex: 1;
}

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

.account-status {
    font-size: 0.8rem;
    color: #10b981;
    /* Green */
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

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

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

.btn-small {
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s;
}

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

.btn-orange {
    background: #ea580c;
    /* Orange */
    border: none;
}

.btn-orange:hover {
    background: #c2410c;
}/* Account Details Layout */
.back-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-back {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    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: rgba(255, 255, 255, 0.1);
    color: white;
}

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

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.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;
}