:root {
    --bg-primary: #070913;
    --bg-secondary: #0d121f;
    --bg-card: rgba(18, 24, 40, 0.7);
    --bg-card-hover: rgba(28, 38, 65, 0.8);
    --bg-glass: rgba(15, 23, 42, 0.65);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(56, 189, 248, 0.3);
    
    --accent-blue: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background Atmosphere */
.background-glow {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.app-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    position: relative;
    z-index: 1;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 28px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.brand-text h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-text h1 span {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version-tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.pulse-indicator.online {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.pulse-indicator.online::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid var(--accent-green);
    animation: pulse 2s infinite ease-out;
}

.pulse-indicator.offline {
    background: var(--accent-red);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.status-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
}

.avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

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

.username {
    font-size: 0.85rem;
    font-weight: 600;
}

.role-badge {
    font-size: 0.65rem;
    color: var(--accent-purple);
    font-weight: 700;
}

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

/* STATS HERO */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    background: var(--bg-card-hover);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bots { background: rgba(56, 189, 248, 0.12); color: var(--accent-blue); }
.icon-players { background: rgba(16, 185, 129, 0.12); color: var(--accent-green); }
.icon-points { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }
.icon-server { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); }

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-total {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 500;
}

.stat-server-text {
    font-size: 1.1rem;
    font-family: var(--font-mono);
    color: var(--accent-purple);
}

/* TABS NAVIGATION */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.06);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.tab-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.tab-badge.live-pulse {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.65rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SECTION HEADER */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    width: 220px;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.count-pill {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

/* BOTS GRID */
.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bot-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.bot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.bot-avatar-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #1e293b;
    border: 2px solid var(--border-color);
    object-fit: cover;
    image-rendering: pixelated;
}

.bot-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.bot-subtext {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.status-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.status-tag.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-tag.offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-tag.restricted {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-tag.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.bot-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.bot-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.bot-info-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
    font-family: var(--font-mono);
}

.modules-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.module-chip {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.module-chip.captcha {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
}

.module-chip.ai {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.25);
}

.module-chip.chat {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
}

.bot-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}

.bot-card-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* DATA TABLE */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background: rgba(0, 0, 0, 0.25);
    padding: 14px 18px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 18px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

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

.player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.player-head {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
    background: #1e293b;
}

/* CHAT FEED */
.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 580px;
    overflow: hidden;
}

.chat-header {
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auto-scroll-toggle {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
}

.chat-msg-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.4;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

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

.chat-time {
    color: var(--text-dim);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.chat-sender-bot {
    color: var(--accent-indigo);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 4px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 3px;
    flex-shrink: 0;
}

.chat-user {
    font-weight: 700;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.chat-user.role-admin {
    color: #f43f5e;
}

.chat-user.role-mod {
    color: #38bdf8;
}

.chat-user.role-system {
    color: #94a3b8;
    font-weight: 600;
}

.chat-global-mark {
    color: #fbbf24;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.server-rank-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    display: inline-block;
}

.server-rank-badge.rank-meteor { background: rgba(170, 170, 170, 0.18); color: #AAAAAA; border: 1px solid rgba(170, 170, 170, 0.45); } /* &7 Gray */
.server-rank-badge.rank-moon { background: rgba(85, 255, 255, 0.18); color: #55FFFF; border: 1px solid rgba(85, 255, 255, 0.45); } /* &b Aqua */
.server-rank-badge.rank-star { background: rgba(255, 255, 85, 0.2); color: #FFFF55; border: 1px solid rgba(255, 255, 85, 0.5); text-shadow: 0 0 6px rgba(255, 255, 85, 0.4); } /* &e Yellow */
.server-rank-badge.rank-galaxy { background: rgba(170, 0, 170, 0.22); color: #FF55FF; border: 1px solid rgba(170, 0, 170, 0.55); } /* &5/&d Purple */
.server-rank-badge.rank-nova { background: rgba(255, 85, 85, 0.2); color: #FF5555; border: 1px solid rgba(255, 85, 85, 0.5); } /* &c Red */
.server-rank-badge.rank-support { background: rgba(85, 255, 85, 0.2); color: #55FF55; border: 1px solid rgba(85, 255, 85, 0.5); } /* &a Green */
.server-rank-badge.rank-mod { background: rgba(85, 85, 255, 0.2); color: #5555FF; border: 1px solid rgba(85, 85, 255, 0.5); } /* &9 Blue */
.server-rank-badge.rank-srmod { background: rgba(0, 0, 170, 0.35); color: #5577FF; border: 1px solid rgba(0, 0, 170, 0.7); } /* &1 Dark Blue */
.server-rank-badge.rank-dev { background: rgba(170, 0, 170, 0.22); color: #FF55FF; border: 1px solid rgba(170, 0, 170, 0.55); } /* &5 Dark Purple */
.server-rank-badge.rank-admin { background: rgba(255, 170, 0, 0.2); color: #FFAA00; border: 1px solid rgba(255, 170, 0, 0.5); } /* &6 Gold/Orange */
.server-rank-badge.rank-planet { background: rgba(0, 170, 0, 0.2); color: #00AA00; border: 1px solid rgba(0, 170, 0, 0.5); } /* &2 Dark Green */

.chat-suffix {
    font-size: 0.78rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    font-style: italic;
}

.chat-text {
    color: #e2e8f0;
    word-break: break-word;
}

.chat-msg-row.is-pm {
    background: rgba(168, 85, 247, 0.08);
    border-left: 3px solid var(--accent-purple);
}

.chat-input-bar {
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.select-bot-dropdown {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.85rem;
    outline: none;
}

.chat-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    color: #fff;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.btn-icon {
    padding: 8px;
    border-radius: var(--radius-sm);
}

/* MODALS */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.form-group input.input-disabled,
.form-group input:disabled,
.form-group input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.input-subtext {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    display: block;
}

/* MODULES CONFIG CARDS */
.modules-config-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.module-config-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.module-config-item:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.module-config-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.module-config-header input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.module-config-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.module-config-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.module-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.module-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
}

.module-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.badge-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
}

.badge-mandatory {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-public {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-admin {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.modal-card-lg {
    max-width: 640px;
    width: 95%;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
}

.form-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* TOASTS */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
}

.toast {
    background: #1e293b;
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    font-size: 0.88rem;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--accent-red); }
.toast.info { border-left: 4px solid var(--accent-blue); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* UTILITIES */
.hidden { display: none !important; }
.text-center { text-align: center; }

.empty-state {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ALL PLAYERS TABLE & CONTROLS */
.select-role-filter {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-role-filter:focus {
    border-color: var(--accent-blue);
}

.role-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.role-pill.player {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.role-pill.mod {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-pill.admin {
    background: rgba(59, 130, 246, 0.18);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.role-pill.owner {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.bot-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.4);
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.input-disabled {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-dim) !important;
    cursor: not-allowed;
}

.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Security Disclaimer Box */
.security-disclaimer-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid var(--accent-amber);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.disclaimer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-amber);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.disclaimer-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.disclaimer-list strong {
    color: var(--text-main);
}

.disclaimer-list a {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 600;
}

.disclaimer-list a:hover {
    color: #60a5fa;
}

/* ==========================================================================
   DOWNLOAD CLIENT BUTTONS & PROMO
   ========================================================================== */
.btn-download-client {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
    transition: var(--transition);
}

.btn-download-client:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

/* Overview Promo Hero Banner */
.client-download-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(56, 189, 248, 0.08) 50%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow-card), 0 0 30px rgba(56, 189, 248, 0.08);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.banner-glow-effect {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 680px;
    z-index: 1;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    width: fit-content;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseGlow 1.5s infinite;
}

.client-download-banner h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.client-download-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.banner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 260px;
    z-index: 1;
}

.btn-download-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
}

.btn-download-hero:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%);
    box-shadow: 0 6px 28px rgba(37, 99, 235, 0.6);
    transform: translateY(-2px);
}

/* Download Modal */
.download-modal-card {
    max-width: 620px;
}

.download-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: var(--transition);
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 189, 248, 0.3);
}

.download-card.primary-platform {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.06);
}

.platform-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.platform-icon.win-icon {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
}

.platform-icon.linux-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.platform-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.platform-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-title h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.platform-tag {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.platform-tag.recommended {
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-weight: 700;
}

.platform-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.35;
}

.platform-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.btn-download {
    text-decoration: none;
    white-space: nowrap;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 0.85rem;
}

.quick-instruction-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-top: 14px;
}

.quick-instruction-box h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-bottom: 8px;
}

.quick-instruction-box ol {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.quick-instruction-box code {
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

@media (max-width: 860px) {
    .client-download-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .banner-actions {
        width: 100%;
    }
    .download-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-download {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

