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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --border-color: #2e2e2e;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-gray: #71717a;
    --accent-free: #9ca3af;
    --accent-premium: #eab308;
    --accent-support: #4ade80;
    --accent-admin: #fb7185;
    --accent-manager: #ef4444;
    --accent-developer: #60a5fa;
    --accent-developer: #60a5fa;
    --brand-primary: #ffffff;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: containerEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    z-index: 10;
}

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

.auth-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    width: 320px;
}

.auth-main-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#authTitle {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 24px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#authTitle.fading {
    opacity: 0;
    transform: translateY(-5px);
}

#loginForm, #registerForm {
    width: 100%;
}

.form-slide-out {
    animation: slideOut 0.2s ease forwards;
}

.form-slide-in {
    animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-16px); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-5px); }
    75%       { transform: translateX(5px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

.auth-input {
    display: block;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 14px;
    border-radius: 0;
    font-size: 14px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.15s;
    margin-bottom: 12px;
}

.auth-input:focus {
    border-color: #555555;
    background-color: #1f1f1f;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.auth-input::placeholder {
    color: #888888;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #27272a;
    color: var(--text-main);
    border: 1px solid #3f3f46;
    border-radius: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    width: 100%;
    margin-top: 4px;
}

.auth-btn:hover:not(:disabled) {
    background-color: #3f3f46;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.auth-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: var(--text-main);
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}

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

.auth-btn.success {
    background-color: #166534;
    border-color: #15803d;
    animation: successPop 0.35s ease forwards;
}

@keyframes successPop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

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

.password-wrapper .auth-input {
    width: 100%;
    padding-right: 36px;
}

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 14px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.eye-toggle:hover {
    opacity: 0.8;
}

.links {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.links a:hover { 
    color: var(--text-main); 
}

.links svg { 
    opacity: 0.9; 
}

.links .arrow { 
    margin-left: -2px; 
    opacity: 0.7; 
}

.server-info { 
    color: var(--accent-gray); 
    font-size: 12px; 
}

.server-info span { 
    color: var(--text-main); 
    font-weight: 500; 
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#loadingOverlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

.loader-container {
    width: 320px;
    text-align: center;
    animation: loaderEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.loader-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.loader-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--text-main);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    border-radius: 0;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-status {
    margin-top: 16px;
    font-size: 11px;
    color: var(--accent-gray);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    height: 14px;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    animation: floating 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.infinity-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--accent-free) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 600;
    color: var(--bg-primary);
}

.infinity-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.logo-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.interactive-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    transform: perspective(500px) rotateX(60deg) translateY(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    from { transform: perspective(500px) rotateX(60deg) translateY(-200px); }
    to { transform: perspective(500px) rotateX(60deg) translateY(0px); }
}

.loader-action-btn {
    margin-top: 30px;
    padding: 12px 24px;
    background: var(--text-main);
    color: var(--bg-primary);
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.loader-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.4);
    filter: brightness(1.1);
}

.loader-action-btn:active { 
    transform: translateY(0); 
}

.diag-logs {
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 12px;
    text-align: left;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    height: 100px;
    overflow-y: hidden;
    mask-image: linear-gradient(to bottom, black 80%, transparent);
}

.diag-log-line {
    margin-bottom: 4px;
    opacity: 0;
    animation: logFade 0.3s forwards;
}

@keyframes logFade { 
    from { opacity: 0; transform: translateX(-5px); } 
    to { opacity: 1; transform: translateX(0); } 
}

.region-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.region-node {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.region-node:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    transform: scale(1.1);
}

.region-node.active {
    background: var(--text-main);
    color: var(--bg-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Dashboard Layout */
.layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo span {
    font-size: 18px;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

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

.nav-item.active {
    color: var(--text-main);
    border-left-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.user-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
}

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

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
}

.topbar {
    padding: 32px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.primary-btn {
    background: #27272a;
    color: var(--text-main);
    border: 1px solid #3f3f46;
    border-radius: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover {
    background: #3f3f46;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    color: var(--text-main);
    border-color: #3f3f46;
}

.content-section {
    padding: 40px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    transition: border-color 0.2s;
}

.stat-card:hover {
    border-color: #3f3f46;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stat-change {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.badge.free {
    color: var(--accent-free);
    background: rgba(156, 163, 175, 0.1);
    border-color: var(--accent-free);
}

.badge.premium {
    color: var(--accent-premium);
    background: rgba(234, 179, 8, 0.1);
    border-color: var(--accent-premium);
}

.badge.support {
    color: var(--accent-support);
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent-support);
}

.badge.administrator {
    color: var(--accent-admin);
    background: rgba(251, 113, 133, 0.1);
    border-color: var(--accent-admin);
}

.badge.manager {
    color: var(--accent-manager);
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-manager);
}

.badge.developer {
    color: var(--accent-developer);
    background: rgba(96, 165, 250, 0.1);
    border-color: var(--accent-developer);
}


.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.landing-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.landing-btn-primary {
    background: var(--text-main);
    color: var(--bg-primary);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.landing-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 40px 80px;
    background: var(--bg-primary);
}

.interactive-grid {
    position: absolute;
    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: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

.landing-hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 10;
    position: relative;
}

.landing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.landing-hero-title {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.landing-hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.landing-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.landing-btn-hero {
    background: var(--text-main);
    color: var(--bg-primary);
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.landing-btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.3);
}

.landing-btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    display: inline-block;
}

.landing-btn-secondary:hover {
    border-color: #3f3f46;
    background: rgba(255,255,255,0.03);
}

.landing-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.landing-stat {
    text-align: center;
}

.landing-stat-value {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.landing-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.landing-section {
    padding: 120px 40px;
    background: var(--bg-secondary);
    position: relative;
}

.landing-section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.landing-section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.landing-section-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.landing-section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.landing-feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
    transition: border-color 0.2s;
}

.landing-feature-card:hover {
    border-color: #3f3f46;
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.landing-feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.landing-feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-cta {
    padding: 120px 40px;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
}

.landing-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.landing-cta-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.landing-cta-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.landing-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.landing-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 32px;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.landing-footer-links {
    display: flex;
    gap: 32px;
}

.landing-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.landing-footer-links a:hover {
    color: var(--text-main);
}

.landing-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.settings-cog {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1000;
}

.settings-cog:hover {
    background: #3f3f46;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .landing-hero-title {
        font-size: 40px;
    }
    
    .landing-hero-subtitle {
        font-size: 16px;
    }
    
    .landing-stats {
        flex-direction: column;
        gap: 32px;
    }
    
    .landing-section-title {
        font-size: 32px;
    }
    
    .landing-features-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-footer-content {
        flex-direction: column;
        gap: 32px;
    }
}


.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2e2e2e;
    z-index: 100;
}

.home-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.home-logo img {
    width: 32px;
    height: 32px;
}

.home-nav-btn {
    background: #fff;
    color: #0a0a0a;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s;
}

.home-nav-btn:hover {
    transform: translateY(-1px);
}

.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
}

.home-hero-inner {
    max-width: 800px;
}

.home-hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.home-hero-text {
    font-size: 18px;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 40px;
}

.home-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.home-btn-primary {
    background: #fff;
    color: #0a0a0a;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s;
}

.home-btn-primary:hover {
    transform: translateY(-2px);
}

.home-btn-secondary {
    background: transparent;
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #2e2e2e;
    transition: all 0.2s;
}

.home-btn-secondary:hover {
    border-color: #3f3f46;
    background: rgba(255,255,255,0.03);
}

.home-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.home-stat {
    text-align: center;
}

.home-stat-num {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.home-stat-label {
    font-size: 13px;
    color: #71717a;
    text-transform: uppercase;
}

.home-features {
    padding: 100px 24px;
    background: #111;
}

.home-features-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.home-section-title {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.home-card {
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 32px;
    transition: border-color 0.2s;
}

.home-card:hover {
    border-color: #3f3f46;
}

.home-card-icon {
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.home-card-text {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.6;
}

.home-cta {
    padding: 100px 24px;
    text-align: center;
}

.home-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.home-cta-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
}

.home-cta-text {
    font-size: 18px;
    color: #a1a1aa;
    margin-bottom: 32px;
}

.home-footer {
    background: #111;
    border-top: 1px solid #2e2e2e;
    padding: 40px 24px 24px;
}

.home-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.home-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.home-footer-brand img {
    width: 28px;
    height: 28px;
}

.home-footer-links {
    display: flex;
    gap: 32px;
}

.home-footer-links a {
    color: #71717a;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.home-footer-links a:hover {
    color: #fff;
}

.home-footer-copy {
    text-align: center;
    font-size: 13px;
    color: #71717a;
    padding-top: 24px;
    border-top: 1px solid #2e2e2e;
}

@media (max-width: 768px) {
    .home-hero-title {
        font-size: 36px;
    }
    .home-hero-text {
        font-size: 16px;
    }
    .home-stats {
        flex-direction: column;
        gap: 24px;
    }
    .home-footer-inner {
        flex-direction: column;
        gap: 24px;
    }
}


.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #2e2e2e;
    padding-bottom: 0;
}

.admin-tab {
    background: transparent;
    border: none;
    color: #71717a;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    bottom: -1px;
}

.admin-tab:hover {
    color: #a1a1aa;
}

.admin-tab.active {
    color: #fff;
    border-bottom-color: #fff;
}

.admin-tab svg {
    opacity: 0.7;
}

.admin-tab.active svg {
    opacity: 1;
}

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

.admin-tab-content.active {
    display: block;
}

.admin-panel-card {
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    overflow: hidden;
}

.admin-card-header {
    padding: 24px;
    border-bottom: 1px solid #2e2e2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.admin-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    padding: 8px 12px;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.admin-search-box:focus-within {
    border-color: #3f3f46;
}

.admin-search-box svg {
    color: #71717a;
}

.admin-search-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    outline: none;
    width: 250px;
}

.admin-search-box input::placeholder {
    color: #71717a;
}

.admin-table-wrapper {
    overflow-x: auto;
}

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

.admin-table th {
    text-align: left;
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #71717a;
    background: #0a0a0a;
    border-bottom: 1px solid #2e2e2e;
}

.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #2e2e2e;
    font-size: 14px;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.loading-cell {
    text-align: center;
    color: #71717a;
    padding: 48px 24px !important;
}

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

.user-cell-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #2e2e2e;
    flex-shrink: 0;
}

.user-cell-name {
    font-weight: 500;
    color: #fff;
}

.user-cell-email {
    font-size: 12px;
    color: #71717a;
    margin-top: 2px;
}

.rank-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-badge.free {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

.rank-badge.premium {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.rank-badge.support {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.rank-badge.administrator {
    background: rgba(251, 113, 133, 0.1);
    color: #fb7185;
}

.rank-badge.manager {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.rank-badge.developer {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.rank-badge-small {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 8px;
}

.rank-badge-small.free {
    background: #9ca3af;
}

.rank-badge-small.premium {
    background: #eab308;
}

.rank-badge-small.support {
    background: #4ade80;
}

.rank-badge-small.administrator {
    background: #fb7185;
}

.rank-badge-small.manager {
    background: #ef4444;
}

.rank-badge-small.developer {
    background: #60a5fa;
}

.date-text {
    color: #71717a;
    font-size: 13px;
}

.action-icon-btn {
    background: transparent;
    border: 1px solid #2e2e2e;
    color: #a1a1aa;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-icon-btn:hover {
    border-color: #3f3f46;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.action-icon-btn.danger:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.context-menu {
    position: absolute;
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    min-width: 200px;
    padding: 4px;
}

.context-menu-item {
    padding: 10px 12px;
    font-size: 13px;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.context-menu-item.danger {
    color: #ef4444;
}

.context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.context-menu-divider {
    height: 1px;
    background: #2e2e2e;
    margin: 4px 0;
}

.license-gen-form {
    padding: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

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

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #3f3f46;
}

.license-gen-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.license-output {
    border-top: 1px solid #2e2e2e;
    max-height: 400px;
    overflow-y: auto;
}

.license-placeholder {
    padding: 32px;
    text-align: center;
    color: #71717a;
    font-size: 14px;
}

.license-item {
    padding: 16px 24px;
    border-bottom: 1px solid #2e2e2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.license-item:last-child {
    border-bottom: none;
}

.license-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.license-key {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #fff;
    letter-spacing: 1px;
}

.license-key-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #0a0a0a;
    padding: 4px 8px;
    border-radius: 4px;
    color: #a1a1aa;
    border: 1px solid #2e2e2e;
}

.copy-btn {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    color: #a1a1aa;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    border-color: #3f3f46;
    color: #fff;
    background: #27272a;
}

.license-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-status-badge.available {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.license-status-badge.redeemed {
    background: rgba(113, 113, 122, 0.1);
    color: #71717a;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.show {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: visible;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #2e2e2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
    overflow: visible;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #2e2e2e;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select-trigger:hover {
    border-color: #3f3f46;
}

.custom-select-trigger span {
    font-size: 14px;
    color: #fff;
}

.custom-select-trigger svg {
    color: #71717a;
    transition: transform 0.2s;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
}

.custom-select-options.show {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
    padding: 4px;
}

.custom-select-options::-webkit-scrollbar {
    display: none;
}

.custom-select-options {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #a1a1aa;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.settings-cog {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1000;
    color: #a1a1aa;
}

.settings-cog:hover {
    background: #1a1a1a;
    border-color: #3f3f46;
    color: #fff;
    transform: rotate(90deg);
}


.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #a1a1aa;
}

.stat-description {
    font-size: 12px;
    color: #71717a;
    margin-top: 8px;
    margin-bottom: 0;
}

.dashboard-card {
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid #2e2e2e;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.card-header p {
    font-size: 14px;
    color: #71717a;
    margin: 0;
}

.card-body {
    padding: 24px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.quick-action-btn {
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.quick-action-btn:hover {
    border-color: #3f3f46;
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.quick-action-desc {
    font-size: 12px;
    color: #71717a;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setup-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    transition: all 0.2s;
}

.setup-step:hover {
    border-color: #3f3f46;
    background: rgba(255, 255, 255, 0.02);
}

.setup-step-number {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.setup-step-content {
    flex: 1;
}

.setup-step-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.setup-step-desc {
    font-size: 13px;
    color: #71717a;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
}


/* Server Management Styles */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.status-indicator.online {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-indicator.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-controls {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #27272a;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    border-top: 1px solid #27272a;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-size: 12px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.console-output {
    background: #000;
    color: #22c55e;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    margin: 20px;
}

.console-line {
    margin: 4px 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.console-input-wrapper {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #27272a;
}

.console-input-wrapper input {
    flex: 1;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.file-list {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.file-item:hover {
    background: #18181b;
}

.file-icon {
    width: 20px;
    height: 20px;
    color: #60a5fa;
    flex-shrink: 0;
}

.danger-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: #b91c1c;
}

.danger-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== CUSTOM SCROLLBARS ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-left: 1px solid #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 0;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

::-webkit-scrollbar-corner {
    background: #0a0a0a;
}

/* Console Terminal Scrollbar */
.console-terminal::-webkit-scrollbar-thumb {
    background: #1a4d2e;
    border: 2px solid #000;
}

.console-terminal::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* ==================== SERVER SUB-TABS ==================== */
.server-sub-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    border-bottom: 1px solid #2e2e2e;
    padding: 0 24px;
    background: transparent;
    align-items: center;
}

.server-sub-tab {
    background: transparent;
    border: none;
    color: #71717a;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    bottom: -1px;
}

.server-sub-tab svg {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.server-sub-tab:hover {
    color: #a1a1aa;
}

.server-sub-tab:hover svg {
    opacity: 1;
}

.server-sub-tab.active {
    color: #fff;
    border-bottom-color: #fff;
    background: transparent;
}

.server-sub-tab.active svg {
    opacity: 1;
}

.server-sub-tab-content {
    display: none;
}

.server-sub-tab-content.active {
    display: block;
}

.server-status-badge {
    display: flex;
    align-items: center;
}

.status-indicator-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.status-indicator-mini.online {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-indicator-mini.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.status-dot-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

/* ==================== CONSOLE CONTAINER ==================== */
.server-console-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 280px);
    background: #000;
}

.server-control-bar {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    align-items: center;
}

.server-control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-control-btn.start {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.server-control-btn.start:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.server-control-btn.restart {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.3);
    color: #eab308;
}

.server-control-btn.restart:hover:not(:disabled) {
    background: rgba(234, 179, 8, 0.2);
    border-color: #eab308;
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
}

.server-control-btn.stop {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.server-control-btn.stop:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.server-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.server-stats-inline {
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.stat-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-inline-label {
    font-size: 11px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-inline-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
}

/* ==================== CONSOLE TERMINAL ==================== */
.console-terminal {
    flex: 1;
    background: #000;
    color: #fff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    padding: 20px;
    overflow-y: auto;
    line-height: 1.6;
}

.console-terminal .console-line {
    margin: 2px 0;
    white-space: pre-wrap;
    word-break: break-all;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
}

.console-terminal .console-welcome {
    color: #71717a;
    margin-bottom: 8px;
}

.console-terminal .console-error {
    color: #ff4444;
    font-weight: 600;
}

.console-terminal .console-warn {
    color: #ffaa00;
}

.console-terminal .console-info {
    color: #60a5fa;
}

.console-terminal .console-success {
    color: #22c55e;
}

/* ==================== CONSOLE INPUT ==================== */
.console-input-bar {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    align-items: center;
}

.console-prompt {
    color: #60a5fa;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 16px;
    font-weight: bold;
    user-select: none;
}

.console-input {
    flex: 1;
    background: #000;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
    outline: none;
    transition: all 0.2s;
}

.console-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.1);
}

.console-input::placeholder {
    color: #3f3f46;
}

.console-send-btn {
    background: #60a5fa;
    border: none;
    color: #000;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.console-send-btn:hover {
    background: #3b82f6;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
}

.console-send-btn:active {
    transform: scale(0.95);
}

/* ==================== FILE BROWSER ==================== */
.file-browser-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 280px);
    background: #0a0a0a;
}

.file-browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #111;
    border-bottom: 1px solid #1a1a1a;
}

.file-path-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a1a1aa;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.file-path-bar svg {
    color: #60a5fa;
}

.file-current-path {
    color: #fff;
    font-weight: 600;
}

.file-refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #27272a;
    color: #a1a1aa;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-refresh-btn:hover {
    background: #27272a;
    border-color: #3f3f46;
    color: #fff;
}

.file-browser-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.file-browser-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #3f3f46;
    gap: 16px;
}

.file-browser-empty p {
    font-size: 14px;
    color: #71717a;
}

.file-browser-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.file-browser-item:hover {
    background: #111;
    border-color: #1a1a1a;
}

.file-browser-item.directory {
    font-weight: 600;
}

.file-browser-item.directory .file-icon-svg {
    color: #60a5fa;
}

.file-browser-item.file .file-icon-svg {
    color: #a1a1aa;
}

.file-icon-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-size: 13px;
    color: #fff;
    font-family: 'Consolas', 'Monaco', monospace;
}

.file-size {
    font-size: 11px;
    color: #71717a;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* ==================== METRICS ==================== */
.metrics-container {
    padding: 24px;
    background: #0a0a0a;
    min-height: calc(100vh - 280px);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.metric-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s;
}

.metric-card:hover {
    border-color: #27272a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-header svg {
    color: #60a5fa;
}

.metric-value {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    letter-spacing: -2px;
}

.metric-label {
    font-size: 12px;
    color: #71717a;
}


/* ==================== CUSTOM CONFIRMATION MODAL ==================== */
.confirm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 11000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    padding: 24px;
}

.confirm-modal-overlay.show {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.confirm-modal-card {
    position: relative;
    background: linear-gradient(180deg, #141414 0%, #0e0e0e 100%);
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    padding: 32px 28px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.confirm-modal-overlay.show .confirm-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Variant accent stripe along top */
.confirm-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: currentColor;
    opacity: 0.5;
    border-radius: 0 0 2px 2px;
}

.confirm-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid transparent;
    color: #71717a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
    padding: 0;
}

.confirm-modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #2e2e2e;
    color: #fff;
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    position: relative;
}

.confirm-modal-icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: currentColor;
    opacity: 0.08;
    z-index: -1;
    filter: blur(12px);
}

.confirm-modal-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.confirm-modal-title {
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.confirm-modal-message {
    font-size: 14px;
    color: #a1a1aa;
    line-height: 1.55;
    margin: 0 0 24px;
    padding: 0 8px;
}

.confirm-modal-message strong {
    color: #fff;
    font-weight: 600;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: stretch;
}

.confirm-modal-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #2e2e2e;
    color: #a1a1aa;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.2px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
}

.confirm-modal-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border-color: #3f3f46;
}

.confirm-modal-btn:active {
    transform: scale(0.98);
}

.confirm-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.confirm-modal-btn.primary {
    background: currentColor;
    border-color: currentColor;
    color: var(--confirm-accent, #ffffff);
    position: relative;
}

/* The primary button uses currentColor from the parent variant. We invert the
   text so the label reads clearly on the coloured background. */
.confirm-modal-btn.primary > span {
    color: #0a0a0a;
    font-weight: 700;
}

.confirm-modal-btn.primary:hover {
    filter: brightness(1.08);
}

/* ---- Variants ---- */
.confirm-modal-card.variant-default { color: #a1a1aa; }
.confirm-modal-card.variant-default .confirm-modal-icon { color: #d4d4d8; }
.confirm-modal-card.variant-default .confirm-modal-btn.primary > span { color: #0a0a0a; }

.confirm-modal-card.variant-danger { color: #ef4444; border-color: rgba(239, 68, 68, 0.25); }
.confirm-modal-card.variant-danger .confirm-modal-icon { color: #ef4444; }
.confirm-modal-card.variant-danger .confirm-modal-btn.primary > span { color: #fff; }
.confirm-modal-card.variant-danger .confirm-modal-btn.primary { color: #dc2626; }

.confirm-modal-card.variant-warning { color: #eab308; border-color: rgba(234, 179, 8, 0.25); }
.confirm-modal-card.variant-warning .confirm-modal-icon { color: #eab308; }
.confirm-modal-card.variant-warning .confirm-modal-btn.primary { color: #eab308; }
.confirm-modal-card.variant-warning .confirm-modal-btn.primary > span { color: #0a0a0a; }

.confirm-modal-card.variant-success { color: #22c55e; border-color: rgba(34, 197, 94, 0.25); }
.confirm-modal-card.variant-success .confirm-modal-icon { color: #22c55e; }
.confirm-modal-card.variant-success .confirm-modal-btn.primary { color: #22c55e; }
.confirm-modal-card.variant-success .confirm-modal-btn.primary > span { color: #0a0a0a; }

.confirm-modal-card.variant-info { color: #60a5fa; border-color: rgba(96, 165, 250, 0.25); }
.confirm-modal-card.variant-info .confirm-modal-icon { color: #60a5fa; }
.confirm-modal-card.variant-info .confirm-modal-btn.primary { color: #60a5fa; }
.confirm-modal-card.variant-info .confirm-modal-btn.primary > span { color: #0a0a0a; }

/* File preview variant - larger, scrollable content area */
.confirm-modal-card.variant-file {
    max-width: 720px;
    text-align: left;
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.2);
}

.confirm-modal-card.variant-file .confirm-modal-icon {
    margin: 0 0 18px;
    color: #60a5fa;
}

.confirm-modal-card.variant-file .confirm-modal-title {
    text-align: left;
}

.confirm-modal-card.variant-file .confirm-modal-message {
    padding: 0;
    text-align: left;
    color: #a1a1aa;
    margin-bottom: 16px;
}

.confirm-modal-card.variant-file .confirm-modal-btn.primary { color: #60a5fa; }
.confirm-modal-card.variant-file .confirm-modal-btn.primary > span { color: #0a0a0a; }

.confirm-modal-file-content {
    background: #000;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 16px;
    max-height: 420px;
    overflow: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.55;
    color: #d4d4d8;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
    margin-bottom: 20px;
}

.confirm-modal-file-truncated {
    color: #71717a;
    font-style: italic;
    padding-top: 8px;
    border-top: 1px dashed #27272a;
    margin-top: 12px;
}

@media (max-width: 520px) {
    .confirm-modal-actions {
        flex-direction: column-reverse;
    }
    .confirm-modal-btn { width: 100%; }
}
