/* ==========================================================================
   STATIC PANEL - MINECRAFT ORIGINAL GUI THEME (Taş, Ahşap & XP Barı)
   Authentic Minecraft Container, 3D Beveled Buttons & XP Progress System
   ========================================================================== */

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

:root {
    /* Minecraft GUI Stone Palette */
    --bg-main: #27282b;
    --bg-main-gradient: radial-gradient(circle at 50% 20%, #35373a 0%, #202123 100%);
    --bg-sidebar: #222325;
    --bg-sidebar-hover: #2e3033;
    --bg-card: #323437;
    --bg-card-header: #2c2e31;
    --bg-slot: #1c1d1f;
    --bg-slot-focus: #141517;

    /* 3D Minecraft Bevel Borders */
    --mc-border-light: #5e6166;
    --mc-border-lighter: #75797f;
    --mc-border-dark: #161718;
    --mc-border-darker: #0d0e0e;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Minecraft Iconic Colors */
    --color-primary: #55ff55;
    --color-primary-dark: #2e7d32;
    --color-xp: #80ff00;
    --color-xp-glow: rgba(128, 255, 0, 0.4);
    
    --color-success: #2e7d32;
    --color-success-light: #4caf50;
    --color-success-dark: #1b5e20;

    --color-danger: #c62828;
    --color-danger-light: #ef5350;
    --color-danger-dark: #8e0000;

    --color-warning: #d97706;
    --color-warning-light: #fbbf24;
    --color-warning-dark: #92400e;

    --color-info: #0284c7;
    --color-info-light: #38bdf8;
    --color-info-dark: #0369a1;

    --color-diamond: #29b6f6;
    --color-gold: #fbc02d;
    --color-redstone: #e53935;
    --color-lapis: #1e88e5;
    --color-emerald: #10b981;

    /* Typography */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-shadow: 1px 1px 0px #000;

    --font-main: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* 3D Shadows & Elevations */
    --block-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    --block-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #55575a #1c1d1f;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #1c1d1f;
    border-left: 1px solid var(--mc-border-dark);
}
::-webkit-scrollbar-thumb {
    background: #4a4c50;
    border-top: 2px solid var(--mc-border-light);
    border-left: 2px solid var(--mc-border-light);
    border-bottom: 2px solid var(--mc-border-dark);
    border-right: 2px solid var(--mc-border-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: #5a5c60;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    background-image: var(--bg-main-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Custom Text Selection (Minecraft Emerald/XP Tone instead of default browser blue) */
::selection {
    background-color: rgba(85, 255, 85, 0.35);
    color: #ffffff;
    text-shadow: none;
}
::-moz-selection {
    background-color: rgba(85, 255, 85, 0.35);
    color: #ffffff;
    text-shadow: none;
}

/* Explicitly allow text selection in readable and interactive content */
input,
textarea,
.form-control,
.console-logs,
.code-editor-area,
.ai-msg,
.ai-chat-full-history,
.file-table td,
.whitelist-table td,
.users-table td,
.tab-content,
.selectable-text {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Ensure UI buttons, menu items, headers and navigation cannot be accidentally highlighted */
button,
.btn,
.sidebar,
.sidebar-menu,
.menu-group,
.menu-group-header,
.menu-item,
.sidebar-brand,
.header,
.badge,
.stat-badge,
.metric-card,
.panel-card-header,
.nav-tabs,
.tab-btn,
.modal-header,
.modal-footer,
.custom-modal-actions,
.installer-step,
.mc-xp-level-badge,
.file-table th,
.whitelist-table th,
.users-table th,
.quick-action-card,
.status-pill {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* ==========================================================================
   LOGIN SCREEN (Minecraft Authentic Stone Vault)
   ========================================================================== */
.login-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 38%, #2d2f33 0%, #121315 100%);
    z-index: 99999;
    padding: 20px;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #323437;
    border-top: 4px solid var(--mc-border-light);
    border-left: 4px solid var(--mc-border-light);
    border-bottom: 4px solid var(--mc-border-darker);
    border-right: 4px solid var(--mc-border-darker);
    border-radius: 6px;
    padding: 36px 30px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: mcPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mcPopIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.login-header {
    text-align: center;
    margin-bottom: 26px;
}

.login-icon {
    width: 46px;
    height: 46px;
    color: var(--color-xp);
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 14px var(--color-xp-glow));
    display: block;
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-shadow: var(--text-shadow);
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13px;
    color: var(--text-muted);
    text-shadow: var(--text-shadow);
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-error-msg {
    background: rgba(198, 40, 40, 0.25);
    border: 2px solid var(--color-danger);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-shadow: var(--text-shadow);
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrap .form-control {
    padding-right: 42px;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.password-toggle-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.login-lockout-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(239, 68, 68, 0.12);
    border: 2px solid rgba(239, 68, 68, 0.45);
    border-radius: 6px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
    animation: mcShake 0.4s ease;
}

.login-lockout-box .lockout-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.login-lockout-box .lockout-text {
    flex: 1;
}

.login-lockout-box .lockout-text strong {
    display: block;
    color: #ef4444;
    font-size: 12px;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.login-lockout-box .lockout-text p {
    font-size: 12px;
    color: #cbd5e1;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.lockout-timer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.login-lockout-box .lockout-timer {
    display: inline-block;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid #ef4444;
    color: #fee2e2;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes mcShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* ==========================================================================
   APP CONTAINER & SIDEBAR
   ========================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Modern Cyber-Studio Sidebar Navigation */
.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #131722 0%, #0d1017 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 14px 12px 12px 12px;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    z-index: 100;
    box-sizing: border-box;
    gap: 10px;
}

/* Sidebar Brand Card */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 2px;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}
.sidebar-brand:hover {
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.brand-logo-wrapper {
    position: relative;
    flex-shrink: 0;
}
.brand-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
    object-fit: cover;
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    display: block;
}

.brand-text h2 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.6px;
    margin: 0;
    text-shadow: none;
    line-height: 1.2;
}

.panel-edition-tag,
.brand-text .panel-edition-tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-main, 'Inter', -apple-system, sans-serif) !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 2px 5.5px !important;
    border-radius: 4px !important;
    background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    letter-spacing: 1px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    text-transform: uppercase !important;
    vertical-align: middle !important;
    user-select: none !important;
}

.brand-version-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.brand-version-row:hover {
    transform: translateX(2px);
    opacity: 0.95;
}

.brand-version-badge {
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary, #38bdf8);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 1px 5px;
    border-radius: 4px;
}

.brand-version-status {
    font-size: 10px;
    font-weight: 600;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.brand-sparkle-icon {
    width: 11px;
    height: 11px;
    color: var(--color-primary, #38bdf8);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   ACTIVE SERVER CAPSULE (High-Tech Top Environment Pod)
   ========================================================================== */
.sidebar-server-selector-box {
    background: linear-gradient(145deg, rgba(22, 28, 42, 0.75) 0%, rgba(13, 17, 26, 0.9) 100%);
    border: 1px solid var(--border-color, rgba(56, 189, 248, 0.2));
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sidebar-server-selector-box:hover {
    border-color: var(--color-primary, rgba(56, 189, 248, 0.35));
}

.sidebar-server-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-server-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: var(--color-primary, #38bdf8);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.sidebar-server-label i {
    width: 12px;
    height: 12px;
}

.sidebar-server-quick-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-sidebar-icon {
    width: 22px;
    height: 22px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-sidebar-icon i {
    width: 11px;
    height: 11px;
}
.btn-sidebar-icon:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: translateY(-1px);
}
.btn-sidebar-icon.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

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

.sidebar-custom-select,
.sidebar-server-selector-box select {
    width: 100%;
    height: 32px;
    background: #0f131c !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    font-family: var(--font-main, 'Inter', sans-serif) !important;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.sidebar-custom-select:focus,
.sidebar-server-selector-box select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

.sidebar-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 10px;
    box-sizing: border-box;
    width: 100%;
}

.sidebar-status-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.6px;
    color: #e2e8f0;
}

.sidebar-status-tag {
    font-size: 9.5px;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: var(--font-mono, monospace);
}

.sidebar-power-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-pwr-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 7px 10px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    letter-spacing: 0.3px !important;
}
.sidebar-pwr-action i {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0;
}
.sidebar-pwr-action.start {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #34d399 !important;
}
.sidebar-pwr-action.start:hover:not(:disabled) {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.55) !important;
    transform: translateY(-1px) !important;
}
.sidebar-pwr-action.stop {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
}
.sidebar-pwr-action.stop:hover:not(:disabled) {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.55) !important;
    transform: translateY(-1px) !important;
}
.sidebar-pwr-action:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Changelog Modal Styles */
.changelog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.changelog-card.active {
    border-color: var(--color-primary, #38bdf8);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}
.changelog-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.changelog-ver-pill {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #fff);
}
.changelog-ver-pill.current {
    background: var(--color-primary, #38bdf8);
    color: #fff;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}
.changelog-date {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
}
.changelog-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-secondary, #cbd5e1);
}
.changelog-list li {
    margin-bottom: 4px;
}
.changelog-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   SIDEBAR NAVIGATION MENU & ERGONOMIC BUTTONS
   ========================================================================== */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin: 0;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Menu Group Header */
.menu-group {
    display: flex;
    flex-direction: column;
}

.menu-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    padding: 7px 10px 5px 10px;
    cursor: pointer;
    border-radius: 6px;
    user-select: none;
    transition: color 0.15s ease, background 0.15s ease;
}
.menu-group-header:hover {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
}
.menu-group-header i:first-child {
    width: 14px;
    height: 14px;
    color: #64748b;
    transition: color 0.15s;
}
.menu-group-header:hover i:first-child {
    color: #38bdf8;
}

.menu-group-header .group-chevron {
    margin-left: auto;
    width: 13px;
    height: 13px;
    color: #475569;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-group.collapsed .group-chevron {
    transform: rotate(-90deg);
}
.menu-group.collapsed .menu-group-items {
    display: none;
}

.menu-group-items {
    display: flex;
    flex-direction: column;
    gap: 2.5px;
    padding: 2px 0 4px 2px;
}

/* Modern Pill Menu Item */
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-main, 'Inter', sans-serif);
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-shadow: none;
}

.menu-item i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #64748b;
    transition: color 0.15s, transform 0.15s;
}

.menu-item-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}
.menu-item:hover i {
    color: var(--color-primary, #38bdf8);
    transform: scale(1.1);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(var(--primary-rgb, 56, 189, 248), 0.16) 0%, rgba(var(--primary-rgb, 56, 189, 248), 0.03) 100%);
    color: var(--color-primary, #38bdf8);
    font-weight: 700;
    border-color: rgba(var(--primary-rgb, 56, 189, 248), 0.25);
    box-shadow: 0 2px 12px rgba(var(--primary-rgb, 56, 189, 248), 0.08);
}
.menu-item.active i {
    color: var(--color-primary, #38bdf8);
}
.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--color-primary, #38bdf8);
    box-shadow: 0 0 8px var(--color-primary, #38bdf8);
}

/* Nav Micro-Badges */
.nav-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 12px;
    margin-left: auto;
    letter-spacing: 0.4px;
    line-height: 1.4;
    flex-shrink: 0;
}
.nav-badge.emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.nav-badge.sky {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.nav-badge.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.nav-badge.lime {
    background: rgba(132, 204, 22, 0.15);
    color: #a3e635;
    border: 1px solid rgba(132, 204, 22, 0.3);
}
.nav-badge.amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   SIDEBAR BOTTOM POD & USER SESSION
   ========================================================================== */
.sidebar-bottom-pod {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-user-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.sidebar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-user-avatar i {
    width: 14px;
    height: 14px;
}

.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.sidebar-user-title {
    font-size: 11px;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: 0.6px;
    line-height: 1.2;
}

.sidebar-user-status {
    font-size: 9.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.user-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.sidebar-logout-action {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.sidebar-logout-action i {
    width: 14px;
    height: 14px;
}
.sidebar-logout-action:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    transform: scale(1.06);
}

.status-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-shadow: var(--text-shadow);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: var(--color-xp);
    box-shadow: 0 0 8px var(--color-xp);
}

.status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.status-indicator.starting {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

/* ==========================================================================
   MINECRAFT 3D BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #47494c;
    border-top: 2px solid var(--mc-border-lighter);
    border-left: 2px solid var(--mc-border-lighter);
    border-bottom: 2px solid var(--mc-border-darker);
    border-right: 2px solid var(--mc-border-darker);
    border-radius: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-main);
    text-shadow: var(--text-shadow);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
    transition: background 0.1s, transform 0.05s;
    user-select: none;
}

.btn:hover {
    background: #56585c;
    border-top-color: #8c9096;
}

.btn:active {
    border-top: 2px solid var(--mc-border-darker);
    border-left: 2px solid var(--mc-border-darker);
    border-bottom: 2px solid var(--mc-border-lighter);
    border-right: 2px solid var(--mc-border-lighter);
    transform: translateY(1px);
    background: #3c3e40;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(80%);
}

/* Green Emerald (Başlat / Kur) */
.btn-success {
    background: #2e7d32 !important;
    border-top-color: #4caf50 !important;
    border-left-color: #4caf50 !important;
    border-bottom-color: #1b5e20 !important;
    border-right-color: #1b5e20 !important;
}
.btn-success:hover:not(:disabled) {
    background: #388e3c !important;
    border-top-color: #66bb6a !important;
}
.btn-success:active:not(:disabled) {
    background: #1b5e20 !important;
}

/* Redstone Danger (Durdur / Kill / Sil) */
.btn-danger {
    background: #b71c1c !important;
    border-top-color: #e53935 !important;
    border-left-color: #e53935 !important;
    border-bottom-color: #5f0909 !important;
    border-right-color: #5f0909 !important;
}
.btn-danger:hover:not(:disabled) {
    background: #c62828 !important;
    border-top-color: #ef5350 !important;
}
.btn-danger:active:not(:disabled) {
    background: #7f0000 !important;
}

/* Gold Warning (Restart / Dikkat) */
.btn-warning {
    background: #b45309 !important;
    border-top-color: #f59e0b !important;
    border-left-color: #f59e0b !important;
    border-bottom-color: #78350f !important;
    border-right-color: #78350f !important;
}
.btn-warning:hover:not(:disabled) {
    background: #d97706 !important;
}

/* Sky Info */
.btn-info {
    background: #0284c7 !important;
    border-top-color: #38bdf8 !important;
    border-left-color: #38bdf8 !important;
    border-bottom-color: #0369a1 !important;
    border-right-color: #0369a1 !important;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 14px;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header {
    height: 56px;
    background: #25272a;
    border-bottom: 2px solid var(--mc-border-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.header-title {
    flex-shrink: 0;
    min-width: 110px;
}

.header-title h1 {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: var(--text-shadow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.header-title p {
    display: none; /* Keep header ultra-compact and spacious */
}

.header-search-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1a1b1d;
    border-top: 2px solid var(--mc-border-dark);
    border-left: 2px solid var(--mc-border-dark);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
    padding: 5px 10px;
    border-radius: 4px;
    color: #94a3b8;
    font-size: 11.5px;
    cursor: pointer;
    width: 170px;
    min-width: 140px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
}

.header-search-trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search-trigger kbd {
    margin-left: auto;
    background: #282a2d;
    border: 1px solid #4a4c50;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: #cbd5e1;
    flex-shrink: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-controls .btn {
    padding: 6px 12px;
    font-size: 12px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Header Multi-Server Switcher (Minecraft GUI Style) */
.header-server-picker {
    display: flex;
    align-items: center;
    background: #2b2b2b;
    border-top: 2px solid var(--mc-border-dark);
    border-left: 2px solid var(--mc-border-dark);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
    padding: 3px 8px;
    border-radius: 4px;
    gap: 6px;
    flex-shrink: 0;
}

.server-picker-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    user-select: none;
}

.server-picker-badge .server-picker-icon {
    width: 15px;
    height: 15px;
    color: var(--color-xp);
}

.server-picker-select-wrap {
    display: flex;
    align-items: center;
}

.header-server-select {
    background: #1c1d1f !important;
    color: #ffffff !important;
    border: 1px solid #4a4d52 !important;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    max-width: 180px;
    min-width: 120px;
    outline: none;
    transition: border-color 0.15s ease;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.header-server-select:focus {
    border-color: var(--color-xp) !important;
    box-shadow: 0 0 0 1px var(--color-xp);
}

.btn-new-server-header {
    padding: 4px 8px;
    font-size: 12px;
    border-color: #555 !important;
    background: #333 !important;
    color: var(--color-xp) !important;
    line-height: 1;
}

.btn-new-server-header:hover {
    background: #444 !important;
    border-color: var(--color-xp) !important;
}

/* Installer Target Folder Section */
.installer-target-card {
    background: var(--bg-card);
    border: 2px solid var(--mc-border-light);
    border-right-color: var(--mc-border-dark);
    border-bottom-color: var(--mc-border-dark);
}

.folder-mode-radios label:hover {
    color: var(--color-xp) !important;
}

/* ==========================================================================
   CONTENT CONTAINERS & CARDS (Minecraft GUI Style)
   ========================================================================== */
.content-container {
    padding: 24px;
    flex-grow: 1;
    overflow-y: auto;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

/* Minecraft Container Window Card */
.panel-card {
    background-color: var(--bg-card);
    border-top: 3px solid var(--mc-border-light);
    border-left: 3px solid var(--mc-border-light);
    border-bottom: 3px solid var(--mc-border-dark);
    border-right: 3px solid var(--mc-border-dark);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), var(--block-shadow);
}

.panel-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: var(--text-shadow);
}

.section-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Server Banner */
.server-banner-card {
    background: #1c1d1f;
    border-top: 3px solid var(--mc-border-dark);
    border-left: 3px solid var(--mc-border-dark);
    border-bottom: 3px solid var(--mc-border-light);
    border-right: 3px solid var(--mc-border-light);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.server-banner-img {
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

/* Hero Card */
.hero-card {
    background: linear-gradient(135deg, #2e3034 0%, #202124 100%);
    border-top: 3px solid var(--mc-border-light);
    border-left: 3px solid var(--mc-border-light);
    border-bottom: 3px solid var(--mc-border-dark);
    border-right: 3px solid var(--mc-border-dark);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hero-card h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: var(--text-shadow);
}

.hero-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================================================
   METRICS GRID (Minecraft Slot Style)
   ========================================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: #2d2f32;
    border-top: 3px solid var(--mc-border-light);
    border-left: 3px solid var(--mc-border-light);
    border-bottom: 3px solid var(--mc-border-dark);
    border-right: 3px solid var(--mc-border-dark);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 4px 12px rgba(0,0,0,0.3);
}

.metric-card .card-icon {
    width: 44px;
    height: 44px;
    background: #1c1d1f;
    border-top: 2px solid var(--mc-border-dark);
    border-left: 2px solid var(--mc-border-dark);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-xp);
    flex-shrink: 0;
}

.metric-card h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-shadow: var(--text-shadow);
}

/* Circular SVG Indicators */
.circular-chart-container {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.circular-chart {
    display: block;
    width: 100%;
    height: 100%;
}
.circle-bg {
    fill: none !important;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3.5;
}
.circle-fill {
    fill: none !important;
    stroke-width: 3.5;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}
.circle-cpu {
    stroke: var(--color-primary, #38bdf8);
}
.circle-ram {
    stroke: var(--color-xp, #10b981);
}
.circular-chart-text {
    position: absolute;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono, monospace);
}

/* Launcher Card Subelements */
.launcher-icon-badge {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--color-primary, #38bdf8);
}
.launcher-controls-subbox {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 800;
    font-family: var(--font-mono);
    text-shadow: var(--text-shadow);
}

.status-badge.online {
    background: #1b5e20;
    color: #80ff00;
    border: 1px solid #4caf50;
    box-shadow: 0 0 8px rgba(128, 255, 0, 0.3);
}

.status-badge.offline {
    background: #5f0909;
    color: #ff8a80;
    border: 1px solid #e53935;
}

.status-badge.starting {
    background: #78350f;
    color: #fde047;
    border: 1px solid #f59e0b;
}

/* ==========================================================================
   MINECRAFT XP BAR & SÜRÜM KURUCUSU (INSTALLER)
   ========================================================================== */
.mc-progress-card {
    background: #2b2d30 !important;
    border: 3px solid #161718 !important;
    box-shadow: inset 0 0 0 2px #5a5c60, 0 10px 25px rgba(0,0,0,0.6) !important;
}

.mc-status-title {
    font-family: var(--font-heading);
    text-shadow: var(--text-shadow);
}

/* Minecraft Level Number Badge */
.mc-xp-level-badge {
    background: #141517;
    border-top: 2px solid var(--mc-border-dark);
    border-left: 2px solid var(--mc-border-dark);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
    padding: 4px 12px;
    border-radius: 4px;
}

.mc-xp-level {
    font-size: 16px;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--color-xp);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 0 8px var(--color-xp-glow);
}

/* Minecraft XP Bar */
.mc-xp-bar-container {
    background: #0d170d;
    border-top: 2px solid #060b06;
    border-left: 2px solid #060b06;
    border-bottom: 2px solid #284428;
    border-right: 2px solid var(--mc-border-light);
    height: 18px;
    padding: 2px;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.mc-xp-bar-fill {
    height: 100%;
    background: repeating-linear-gradient(90deg, #55ff55, #55ff55 12px, #80ff00 12px, #80ff00 24px);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-xp);
    transition: width 0.3s ease;
    animation: xpPulse 2s infinite ease-in-out;
}

@keyframes xpPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
}

/* Installer Steps */
.installer-steps-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.inst-step {
    background: #1f2022;
    border-top: 2px solid var(--mc-border-dark);
    border-left: 2px solid var(--mc-border-dark);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
    padding: 8px;
    border-radius: 4px;
    color: #6b7280;
    font-weight: 700;
    text-shadow: var(--text-shadow);
}

.inst-step.completed {
    color: #4ade80;
    border-color: #22c55e;
}

.inst-step.active {
    color: var(--color-xp);
    border-color: var(--color-xp);
    background: #1b2e1b;
    box-shadow: 0 0 8px rgba(128, 255, 0, 0.2);
}

/* Spinners */
.mc-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(128, 255, 0, 0.2);
    border-top-color: var(--color-xp);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.mc-spinner-sm {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* Form Controls (Minecraft Inset Slots) */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 6px;
    text-shadow: var(--text-shadow);
}

.form-control {
    width: 100%;
    background: var(--bg-slot);
    border-top: 2px solid var(--mc-border-dark);
    border-left: 2px solid var(--mc-border-dark);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
    padding: 10px 14px;
    border-radius: 4px;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease-out;
    contain: layout paint;
}

.form-control:focus {
    background: var(--bg-slot-focus);
    border-color: var(--color-xp);
    box-shadow: 0 0 8px rgba(128, 255, 0, 0.3);
}

select.form-control {
    cursor: pointer;
}

/* ==========================================================================
   CONSOLE (Command Block & Terminal)
   ========================================================================== */
.console-split-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1100px) {
    .console-split-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .console-sidebar {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 16px !important;
    }
}

.console-container {
    background: #151618;
    border-top: 3px solid var(--mc-border-dark);
    border-left: 3px solid var(--mc-border-dark);
    border-bottom: 3px solid var(--mc-border-light);
    border-right: 3px solid var(--mc-border-light);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.console-header {
    background: #222427;
    border-bottom: 2px solid var(--mc-border-dark);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.console-dot-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.console-dot-actions span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.console-dot-actions span:nth-child(1) { background: #ef4444; }
.console-dot-actions span:nth-child(2) { background: #f59e0b; }
.console-dot-actions span:nth-child(3) { background: #10b981; }

.console-title {
    color: #e2e8f0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.console-output,
.console-logs,
#console-output-box {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    padding: 14px 16px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-y: auto !important;
    background: #0d0e10;
    color: #e2e8f0;
    user-select: text;
}

.console-output div,
.console-logs div,
#console-output-box div {
    word-break: break-all;
    white-space: pre-wrap;
    font-family: 'Consolas', 'Courier New', monospace;
    margin-bottom: 2px;
}

.system-line {
    color: #38bdf8 !important;
    font-style: italic;
}

.console-input-wrapper {
    background: #222427;
    border-top: 2px solid var(--mc-border-dark);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.console-input-wrapper .prompt {
    color: #4ade80;
    font-family: monospace;
    font-weight: bold;
    font-size: 18px;
    user-select: none;
    line-height: 1;
}

.console-input {
    flex-grow: 1;
    background: #0d0e10;
    border-top: 2px solid var(--mc-border-dark);
    border-left: 2px solid var(--mc-border-dark);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
    color: #4ade80;
    font-family: 'Consolas', 'Courier New', monospace;
    padding: 9px 12px;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

.console-input:focus {
    border-color: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.25);
}

.quick-commands {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #18191b;
    border-top: 1px solid var(--mc-border-dark);
    overflow-x: auto;
    flex-shrink: 0;
}

.quick-cmd-btn {
    background: #282a2d;
    border: 1px solid var(--mc-border-light);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.quick-cmd-btn:hover {
    background: #3c3e42;
    color: var(--color-xp);
    border-color: var(--color-xp);
}

.console-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.console-sidebar-widget {
    background: #1e2022;
    border-top: 2px solid var(--mc-border-dark);
    border-left: 2px solid var(--mc-border-dark);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 0 !important;
}
.console-sidebar-widget h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 700;
}

/* ==========================================================================
   CHARTS & PERFORMANCE
   ========================================================================== */
.charts-section {
    margin-bottom: 20px;
}

.chart-card {
    background: var(--bg-card);
    border-top: 3px solid var(--mc-border-light);
    border-left: 3px solid var(--mc-border-light);
    border-bottom: 3px solid var(--mc-border-dark);
    border-right: 3px solid var(--mc-border-dark);
    border-radius: 6px;
    padding: 18px;
}

.chart-container {
    height: 260px;
    position: relative;
}

/* ==========================================================================
   MODALS & OVERLAYS (Minecraft Original GUI)
   ========================================================================== */
.modal,
.modal-overlay,
.custom-modal-overlay,
.command-palette-overlay,
.update-announcement-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.custom-modal-overlay {
    z-index: 99999 !important;
}

.modal.open,
.modal.active,
.modal-overlay.open,
.modal-overlay.active,
.custom-modal-overlay.active,
.command-palette-overlay.active,
.update-announcement-modal-overlay.open,
.update-announcement-modal-overlay.active {
    display: flex !important;
}

/* Fallback for explicit element.style.display set by JS */
.modal[style*="display: flex"],
.modal-overlay[style*="display: flex"],
.update-announcement-modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: #323437;
    border-top: 4px solid var(--mc-border-light);
    border-left: 4px solid var(--mc-border-light);
    border-bottom: 4px solid var(--mc-border-darker);
    border-right: 4px solid var(--mc-border-darker);
    border-radius: 6px;
    width: 92%;
    max-width: 580px;
    padding: 24px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: mcPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    contain: layout paint;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--mc-border-dark);
    padding-bottom: 12px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: var(--text-shadow);
}

.close-btn,
.modal-close {
    background: #27282b;
    border-top: 2px solid var(--mc-border-light);
    border-left: 2px solid var(--mc-border-light);
    border-bottom: 2px solid var(--mc-border-dark);
    border-right: 2px solid var(--mc-border-dark);
    border-radius: 4px;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.1s ease;
    line-height: 1;
}

.close-btn:hover,
.modal-close:hover {
    background: var(--color-danger);
    border-top-color: var(--color-danger-light);
    border-left-color: var(--color-danger-light);
    border-bottom-color: var(--color-danger-dark);
    border-right-color: var(--color-danger-dark);
    color: #ffffff;
}

.close-btn:active,
.modal-close:active {
    border-top: 2px solid var(--mc-border-dark);
    border-left: 2px solid var(--mc-border-dark);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 18px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 2px solid var(--mc-border-dark);
    padding-top: 16px;
    margin-top: auto;
    flex-shrink: 0;
}

/* Editor Modal specific */
#editor-modal .modal-content {
    max-width: 920px;
    width: 95%;
    height: 85vh;
}

#editor-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100% - 110px);
}

.code-editor-area {
    width: 100%;
    flex: 1;
    min-height: 380px;
    background: #151618;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    border-top: 2px solid var(--mc-border-darker);
    border-left: 2px solid var(--mc-border-darker);
    border-bottom: 2px solid var(--mc-border-light);
    border-right: 2px solid var(--mc-border-light);
    border-radius: 4px;
    padding: 14px;
    resize: none;
    outline: none;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.code-editor-area:focus {
    border-bottom-color: var(--color-xp);
    border-right-color: var(--color-xp);
}

.form-control-disabled {
    width: 100%;
    background: #242528;
    border: 1px solid var(--mc-border-dark);
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    outline: none;
    cursor: not-allowed;
}

/* Custom Confirm Modal Box */
.custom-modal-box {
    background: #323437;
    border-top: 4px solid var(--mc-border-light);
    border-left: 4px solid var(--mc-border-light);
    border-bottom: 4px solid var(--mc-border-darker);
    border-right: 4px solid var(--mc-border-darker);
    border-radius: 6px;
    width: 100%;
    max-width: 440px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: mcPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(198, 40, 40, 0.15);
    border: 2px solid var(--color-danger);
    color: var(--color-danger-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-icon i {
    width: 28px;
    height: 28px;
}

.custom-modal-icon.warning {
    background: rgba(217, 119, 6, 0.15);
    border-color: var(--color-warning);
    color: var(--color-warning-light);
}

.custom-modal-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: var(--text-shadow);
    margin-bottom: 8px;
}

.custom-modal-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 22px;
    text-shadow: var(--text-shadow);
}

.custom-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-modal-actions .btn {
    min-width: 110px;
}

/* Command Palette (Ctrl+K) */
.command-palette-overlay {
    align-items: flex-start;
    padding-top: 14vh;
}

.command-palette-box {
    width: 100%;
    max-width: 600px;
    background: #323437;
    border-top: 4px solid var(--mc-border-light);
    border-left: 4px solid var(--mc-border-light);
    border-bottom: 4px solid var(--mc-border-darker);
    border-right: 4px solid var(--mc-border-darker);
    border-radius: 6px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    animation: mcPopIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.command-palette-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 2px solid var(--mc-border-dark);
    background: #27282b;
}

.command-palette-search i {
    width: 20px;
    height: 20px;
    color: var(--color-xp);
}

.command-palette-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-main);
}

.esc-hint {
    background: #1c1d1f;
    border-top: 1px solid #101112;
    border-left: 1px solid #101112;
    border-bottom: 1px solid #4a4c50;
    border-right: 1px solid #4a4c50;
    padding: 2px 7px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: #94a3b8;
    border-radius: 3px;
    font-weight: 700;
}

.command-palette-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.command-palette-category {
    font-size: 10px;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    padding: 8px 12px 4px 12px;
    letter-spacing: 0.8px;
    text-shadow: var(--text-shadow);
}

.command-palette-item {
    padding: 10px 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.1s ease;
    border: 2px solid transparent;
}

.command-palette-item:hover,
.command-palette-item.active {
    background: #2e3033;
    color: #ffffff;
    border-top: 2px solid var(--mc-border-light);
    border-left: 2px solid var(--mc-border-light);
    border-bottom: 2px solid var(--mc-border-dark);
    border-right: 2px solid var(--mc-border-dark);
}

.command-palette-item.active {
    color: var(--color-xp);
}

.command-palette-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

/* ==========================================================================
   TOAST NOTIFICATIONS (Minecraft Stone Inset Container)
   ========================================================================== */
#toast-container,
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999999;
    max-width: 380px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: #323437;
    border-top: 2px solid var(--mc-border-light);
    border-left: 4px solid var(--color-xp);
    border-bottom: 2px solid var(--mc-border-darker);
    border-right: 2px solid var(--mc-border-darker);
    border-radius: 4px;
    padding: 12px 16px;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    animation: toastSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: var(--text-shadow);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.removing {
    opacity: 0;
    transform: translateX(100%);
}

.toast-success { border-left-color: var(--color-xp); }
.toast-error { border-left-color: var(--color-danger); }
.toast-warning { border-left-color: var(--color-warning); }
.toast-info { border-left-color: var(--color-info-light); }

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.toast-success .toast-icon { color: var(--color-xp); }
.toast-error .toast-icon { color: var(--color-danger-light); }
.toast-warning .toast-icon { color: var(--color-warning-light); }
.toast-info .toast-icon { color: var(--color-info-light); }

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
    color: #ffffff;
}

.toast-message {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.1s;
}

.toast-close:hover {
    color: #ffffff;
}

/* File Manager & Tables */
.file-table, .whitelist-table, .users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.file-table th, .whitelist-table th, .users-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid var(--mc-border-dark);
}

.file-table tr, .whitelist-table tr, .users-table tr {
    background: #292a2d;
    transition: background 0.1s;
}

.file-table tr:hover, .whitelist-table tr:hover, .users-table tr:hover {
    background: #36383c;
}

.file-table td, .whitelist-table td, .users-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-top: 1px solid var(--mc-border-light);
    border-bottom: 1px solid var(--mc-border-dark);
}

.file-table tr td:first-child, .whitelist-table tr td:first-child {
    border-left: 1px solid var(--mc-border-light);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.file-table tr td:last-child, .whitelist-table tr td:last-child {
    border-right: 1px solid var(--mc-border-dark);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    .header-search-trigger {
        width: 140px;
    }
    .header-search-trigger kbd {
        display: none;
    }
    .header-tool-cluster .btn-tool .btn-text {
        display: none;
    }
    .header-tool-cluster .btn-tool {
        padding: 6px 8px;
    }
    .header-power-capsule .btn-power .btn-text {
        display: none;
    }
    .header-power-capsule .btn-power {
        padding: 7px 11px;
    }
}

@media (max-width: 1150px) {
    .header-search-trigger {
        display: none;
    }
    .header-power-capsule .btn-power .btn-text {
        display: none;
    }
    .header-power-capsule .btn-power {
        padding: 6px 9px;
    }
}

@media (max-width: 768px) {
    .btn-mobile-toggle {
        display: inline-flex !important;
    }
    .btn-close-mobile-sidebar {
        display: inline-flex !important;
    }
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 290px !important;
        max-width: 85vw !important;
        z-index: 1250 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7) !important;
        display: flex !important;
    }
    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    .header {
        padding-top: max(env(safe-area-inset-top, 0px), 10px) !important;
        padding-left: max(env(safe-area-inset-left, 0px), 12px) !important;
        padding-right: max(env(safe-area-inset-right, 0px), 12px) !important;
        padding-bottom: 10px !important;
        height: auto !important;
        min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
        gap: 8px;
        box-sizing: border-box;
    }
    .header-search-trigger {
        display: none !important;
    }
    .header-server-picker {
        display: none !important;
    }
    .header-tool-cluster .btn-tool:not(.btn-tool-announcement) {
        display: none !important;
    }
    .header-power-capsule .btn-power .btn-text {
        display: none !important;
    }
    .header-power-capsule .btn-power {
        padding: 6px 10px !important;
    }
    .content-container {
        padding: 12px 12px calc(80px + env(safe-area-inset-bottom, 16px)) 12px !important;
    }
    .mobile-bottom-nav {
        display: flex !important;
    }
    .mission-control-deck .deck-grid-body {
        grid-template-columns: 1fr !important;
    }
    .deck-power-buttons-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Standalone iOS PWA (When launched from iPhone Home Screen) */
@media all and (display-mode: standalone) {
    @media (max-width: 768px) {
        .header {
            padding-top: max(calc(env(safe-area-inset-top, 0px) + 8px), 50px) !important;
            min-height: calc(56px + max(env(safe-area-inset-top, 0px), 44px)) !important;
        }
        .sidebar {
            padding-top: max(calc(env(safe-area-inset-top, 0px) + 14px), 50px) !important;
        }
    }
}

.ios-standalone-pwa .header {
    padding-top: max(calc(env(safe-area-inset-top, 0px) + 8px), 50px) !important;
    min-height: calc(56px + max(env(safe-area-inset-top, 0px), 44px)) !important;
}

.ios-standalone-pwa .sidebar {
    padding-top: max(calc(env(safe-area-inset-top, 0px) + 14px), 50px) !important;
}

@media (max-width: 480px) {
    .header-tool-cluster {
        display: none !important;
    }
    .header-power-capsule {
        padding: 3px !important;
        gap: 4px !important;
    }
    .header-power-capsule .btn-power {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
    }
    .header-power-capsule .btn-power i {
        width: 16px !important;
        height: 16px !important;
    }
    .header-title h1 {
        font-size: 14px !important;
    }
    .header-title p {
        font-size: 10px !important;
    }
}

/* --- MULTI-SERVER LAUNCHER & INSTALLER STYLES --- */
.dashboard-launcher-card {
    border: 2px solid var(--mc-border-light);
    background: linear-gradient(180deg, #2b2e32 0%, #202225 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
    padding: 20px 24px;
    border-radius: 4px;
}

/* Legacy sidebar server selector box moved to unified pod at top */

.installer-target-card {
    border: 2px solid var(--color-xp) !important;
    background: #25282c !important;
    box-shadow: 0 4px 20px rgba(85, 255, 85, 0.08);
}

/* --- PLUGIN STORE & MODPACK GRID STYLES --- */
.plugin-grid, #plugin-list-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 20px !important;
}

.plugin-card {
    background: #27292c;
    border-top: 2px solid var(--mc-border-light);
    border-left: 2px solid var(--mc-border-light);
    border-bottom: 2px solid var(--mc-border-darker);
    border-right: 2px solid var(--mc-border-darker);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s, border-color 0.15s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-height: 180px;
}

.plugin-card:hover {
    border-color: var(--color-xp);
    transform: translateY(-2px);
}

.plugin-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.plugin-icon-img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    object-fit: cover !important;
    border-radius: 6px;
    border: 1px solid var(--mc-border-dark);
    background: #1b1c1e;
    padding: 2px;
    flex-shrink: 0;
}

.plugin-card-info {
    flex: 1;
    min-width: 0;
}

.plugin-card-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plugin-card-info .downloads {
    font-size: 11px;
    color: var(--color-xp);
    display: flex;
    align-items: center;
    gap: 4px;
}

.plugin-card-body {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
}

.plugin-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--mc-border-dark);
    padding-top: 12px;
    margin-top: auto;
}

.plugin-rating {
    font-size: 12px;
    color: #f87171;
    font-weight: 600;
}

/* Modpack Cards */
.modpacks-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 20px !important;
}

.modpack-card {
    background: #27292c;
    border-top: 2px solid var(--mc-border-light);
    border-left: 2px solid var(--mc-border-light);
    border-bottom: 2px solid var(--mc-border-darker);
    border-right: 2px solid var(--mc-border-darker);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s, border-color 0.15s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-height: 180px;
}

.modpack-card:hover {
    border-color: var(--color-xp);
    transform: translateY(-2px);
}

.modpack-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.modpack-logo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    object-fit: cover !important;
    border-radius: 6px;
    border: 1px solid var(--mc-border-dark);
    background: #1b1c1e;
    flex-shrink: 0;
}

.modpack-title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modpack-card-body {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.modpack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #94a3b8;
}

.tag-badge.downloads {
    color: var(--color-xp);
    border-color: rgba(85, 255, 85, 0.3);
}

.modpack-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--mc-border-dark);
    padding-top: 10px;
    margin-top: auto;
}

/* Pack Cards (Hazır Paketler) */
.packs-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 20px !important;
}

.pack-card {
    background: #27292c;
    border-top: 2px solid var(--mc-border-light);
    border-left: 2px solid var(--mc-border-light);
    border-bottom: 2px solid var(--mc-border-darker);
    border-right: 2px solid var(--mc-border-darker);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pack-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pack-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    flex-shrink: 0;
}

.pack-card-details h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    color: #ffffff;
}

.pack-card-details span {
    font-size: 11px;
    color: var(--color-xp);
}

.pack-plugin-badge {
    display: inline-block;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 3px;
    margin: 2px;
    color: #cbd5e1;
    list-style: none;
}

/* ==========================================================================
   WORLD MANAGEMENT, BACKUPS & SCHEDULED TASKS (CARDS & GRIDS)
   ========================================================================== */

/* 1. Upload Dropzone (ZIP Formatında Dünya Yükle) */
.upload-dropzone {
    border: 2px dashed rgba(56, 189, 248, 0.35);
    background: rgba(15, 23, 42, 0.45);
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.15), inset 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.dropzone-icon {
    color: #38bdf8;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.3));
    transition: transform 0.2s ease;
}

.upload-dropzone:hover .dropzone-icon {
    transform: translateY(-2px) scale(1.06);
}

.dropzone-title {
    margin: 4px 0 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.dropzone-desc {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
}

.dropzone-desc strong {
    color: #38bdf8;
    font-weight: 600;
}

.selected-filename-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    font-family: monospace;
}

/* 2. World Management Grid & Cards */
.world-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 16px !important;
}

.world-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    min-height: 120px;
}

.world-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(56, 189, 248, 0.4);
}

.world-card.active {
    border: 1.5px solid #22c55e !important;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, #1e293b 100%) !important;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.15) !important;
}

.world-card.dimension {
    border-color: rgba(168, 85, 247, 0.3);
}

.world-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.world-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}

.world-card-icon i, .world-card-icon svg {
    width: 22px;
    height: 22px;
}

.world-card-details {
    flex: 1;
    min-width: 0;
}

.world-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.world-type {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 500;
}

.world-card-status {
    flex-shrink: 0;
}

.world-card-status .badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.world-card-status .active-badge {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.world-card-status .inactive-badge {
    background: rgba(148, 163, 184, 0.12) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.world-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

/* 3. Backup Management Grid & Cards */
.backup-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 16px !important;
}

.backup-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.backup-card:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.backup-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.backup-card-icon i, .backup-card-icon svg {
    width: 22px;
    height: 22px;
    color: #f59e0b;
}

.backup-card-details {
    flex: 1;
    min-width: 240px;
}

.backup-filename {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    word-break: break-all;
    letter-spacing: 0.2px;
}

.backup-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.backup-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.backup-meta span i, .backup-meta span svg {
    color: var(--color-primary, #38bdf8);
}

.backup-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 4. Scheduled Tasks Grid & Cards */
.schedule-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    gap: 16px !important;
    margin-top: 16px !important;
}

.schedule-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.schedule-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.schedule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}

.schedule-card-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.schedule-card-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-block;
}

.schedule-card-badge.restart {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.schedule-card-badge.backup {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.schedule-card-badge.command {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

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

.schedule-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #94a3b8;
}

.schedule-meta-item i, .schedule-meta-item svg {
    width: 15px;
    height: 15px;
    color: var(--color-primary, #38bdf8);
    flex-shrink: 0;
}

.schedule-meta-item strong {
    color: #f1f5f9;
}

.schedule-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
    flex-wrap: wrap;
}

/* ==========================================================================
   MULTI-SERVER MANAGER & FOLDER ACTIONS
   ========================================================================== */
.manage-servers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.manage-server-card {
    background: #25272a;
    border: 2px solid var(--mc-border-light);
    border-radius: 8px;
    padding: 14px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.manage-server-card:hover {
    border-color: #5a5d63;
    background: #2b2d31;
}

.manage-server-card.active-server {
    border-color: var(--color-xp);
    background: #1e281e;
    box-shadow: 0 0 14px rgba(128, 255, 0, 0.14);
}

.server-card-top-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
}

.manage-server-icon-wrap {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #3f4246;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    flex-shrink: 0;
    margin-top: 2px;
}

.manage-server-card.active-server .manage-server-icon-wrap {
    border-color: var(--color-xp);
    box-shadow: 0 0 10px rgba(128, 255, 0, 0.25);
}

.server-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.server-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.server-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.server-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
}

.server-connect-ip-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 5px;
    padding: 3px 9px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    flex-shrink: 0;
}

.server-connect-ip-pill:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

.server-connect-ip-pill:active {
    transform: translateY(0);
}

.server-connect-ip-pill .server-ip-text {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
}

.server-connect-ip-pill .server-ip-copy-hint {
    font-size: 10px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 4px;
    border-radius: 3px;
}

.server-card-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.server-card-badge.active {
    background: rgba(128, 255, 0, 0.2);
    color: var(--color-xp);
    border: 1px solid var(--color-xp);
}

.server-card-badge.online {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.server-card-badge.offline {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid #64748b;
}

.server-card-badge.locked {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.server-card-badge.unlocked {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake-error {
    animation: shakeError 0.4s ease;
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5) !important;
}

.server-card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
    margin-top: 1px;
}

.server-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.server-card-path {
    font-family: monospace;
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.server-card-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.server-card-action-group-left,
.server-card-action-group-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.server-card-action-bar .btn {
    font-size: 11px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.server-card-action-bar .btn-rename-server {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

.server-card-action-bar .btn-rename-server:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.server-card-action-bar .btn-server-password-action {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    color: #cbd5e1;
}

.server-card-action-bar .btn-server-password-action.has-lock {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.server-card-action-bar .btn-server-password-action:hover {
    filter: brightness(1.15);
}

.server-selected-badge {
    font-size: 11px;
    font-weight: bold;
    color: var(--color-xp);
    background: rgba(128, 255, 0, 0.12);
    border: 1px solid rgba(128, 255, 0, 0.35);
    border-radius: 4px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spass-tab-btn {
    border-radius: 5px;
    transition: all 0.18s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.spass-tab-btn.active {
    background: #334155 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.spass-tab-btn:not(.active) {
    background: transparent;
    color: #94a3b8;
}

.spass-tab-btn:not(.active):hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover:not(:disabled) {
    background: #ef4444;
    color: #ffffff;
}

.btn-outline-danger:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #555;
    color: #888;
}

.btn-outline-success {
    background: transparent;
    border: 1px solid var(--color-xp);
    color: var(--color-xp);
}

.btn-outline-success:hover:not(:disabled) {
    background: var(--color-xp);
    color: #000000;
}

.btn-outline-info {
    background: transparent;
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.btn-outline-info:hover:not(:disabled) {
    background: #38bdf8;
    color: #0c0d0e;
}

.server-connect-ip-pill:hover {
    background: rgba(56, 189, 248, 0.25) !important;
    border-color: #38bdf8 !important;
    transform: translateY(-1px);
}

@media (max-width: 680px) {
    .manage-server-card {
        flex-direction: column;
        align-items: stretch;
    }
    .server-card-actions {
        justify-content: flex-end;
        margin-top: 8px;
    }
}

/* ========================================================
   SOUNDBOARD STYLES
   ======================================================== */
.soundboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.sound-pad-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 10px;
    background: #202326;
    border: 2px solid var(--mc-border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.sound-pad-btn:hover {
    background: #2a2e33;
    border-color: var(--color-xp);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sound-pad-btn:active, .sound-pad-btn.playing {
    transform: scale(0.96);
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.sound-pad-icon {
    font-size: 26px;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.sound-pad-name {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.2;
    margin-bottom: 2px;
}

.sound-pad-id {
    font-size: 9px;
    color: #64748b;
    font-family: monospace;
}

/* ========================================================
   EVENT ENGINE STYLES
   ======================================================== */
.event-action-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--mc-border-light);
}

.event-action-card:hover {
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ========================================================
   WORLD MUSEUM STYLES
   ======================================================== */
.museum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.museum-card {
    background: #202326;
    border: 2px solid var(--mc-border-light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.museum-card:hover {
    border-color: #eab308;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.museum-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* =========================================
   🏆 SEZONLUK GÖREVLER & SAVAŞ BİLETİ
   ========================================= */
.quest-card:hover {
    border-color: var(--color-xp) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.advancement-canvas::-webkit-scrollbar {
    height: 6px;
}
.advancement-canvas::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
.advancement-canvas::-webkit-scrollbar-thumb:hover {
    background: var(--color-xp);
}

/* =========================================
   📖 KULLANIM KILAVUZU & YARDIM MERKEZİ
   ========================================= */
.guide-card {
    transition: all 0.22s ease-in-out;
}

.guide-card:hover {
    border-color: #38bdf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.guide-filter-btn {
    transition: all 0.15s ease-in-out;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
}

.guide-filter-btn.active {
    background: #38bdf8 !important;
    color: #0f172a !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

.btn-guide-jump {
    margin-top: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* =========================================
   🛡️ PANEL AUDIT LOG ("KİM NE YAPTI?")
   ========================================= */
.audit-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.audit-user-card {
    background: #191b1f;
    border: 1px solid var(--mc-border-light);
    border-radius: 8px;
    padding: 14px 16px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.audit-user-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.audit-user-card.selected {
    border-color: var(--color-xp) !important;
    background: rgba(85, 255, 85, 0.05);
    box-shadow: 0 0 16px rgba(85, 255, 85, 0.2);
}

.audit-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}

.audit-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.audit-status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.audit-status-dot.offline {
    background: #64748b;
}

.audit-filter-pill {
    transition: all 0.15s ease-in-out;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.audit-filter-pill.active {
    background: #38bdf8 !important;
    color: #0f172a !important;
    border-color: #38bdf8 !important;
    font-weight: 700;
}

.audit-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.audit-cat-SERVER_CONTROL {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

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

.audit-cat-FILE {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.audit-cat-USER_MGMT {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.audit-cat-PLUGIN {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.audit-cat-BACKUP {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.audit-cat-PLAYER_MGMT {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.audit-code-snippet {
    font-family: 'Consolas', 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   ULTRA SECURITY HUB (GÜVENLİK MERKEZİ)
   ========================================================================== */
.security-score-card {
    position: relative;
    overflow: hidden;
}
.security-score-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.security-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 12px 14px;
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.security-check-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}
.security-check-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.security-check-content {
    flex: 1;
}
.security-check-title {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.security-check-desc {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.35;
}

.sec-session-row.current-session {
    background: rgba(56, 189, 248, 0.05);
}
.sec-session-current-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}
.sec-device-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #cbd5e1;
}
.sec-device-badge svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
}

/* ==========================================================================
   PANEL AYARLARI - TEMALAR & KİŞİSELLEŞTİRME SİSTEMİ
   ========================================================================== */

/* 1. Obsidian Cyberpunk */
html[data-theme="cyber-dark"] {
    --bg-main: #0a0d14;
    --bg-main-gradient: radial-gradient(circle at 50% 20%, #111827 0%, #07090e 100%);
    --bg-sidebar: #0d111a;
    --bg-sidebar-hover: #161e2e;
    --bg-card: #111827;
    --bg-card-header: #0e1422;
    --bg-slot: #080b12;
    --bg-slot-focus: #05070c;
    --mc-border-light: #1f293d;
    --mc-border-lighter: #2d3b55;
    --mc-border-dark: #07090e;
    --mc-border-darker: #040508;
    --border-color: rgba(56, 189, 248, 0.15);
    --color-primary: #00f0ff;
    --color-primary-dark: #0098a6;
    --color-xp: #00f0ff;
    --color-xp-glow: rgba(0, 240, 255, 0.4);
}

/* 2. Nether Crimson / Lava */
html[data-theme="nether-crimson"] {
    --bg-main: #18090b;
    --bg-main-gradient: radial-gradient(circle at 50% 20%, #281014 0%, #120608 100%);
    --bg-sidebar: #1d0c0f;
    --bg-sidebar-hover: #2d1418;
    --bg-card: #230e12;
    --bg-card-header: #1b0a0d;
    --bg-slot: #130507;
    --bg-slot-focus: #0c0304;
    --mc-border-light: #481d23;
    --mc-border-lighter: #63262f;
    --mc-border-dark: #0e0305;
    --mc-border-darker: #070102;
    --border-color: rgba(244, 63, 94, 0.2);
    --color-primary: #ff3366;
    --color-primary-dark: #b8143f;
    --color-xp: #ff4757;
    --color-xp-glow: rgba(255, 71, 87, 0.4);
}

/* 3. The End / Void Purple */
html[data-theme="end-void"] {
    --bg-main: #0e0918;
    --bg-main-gradient: radial-gradient(circle at 50% 20%, #1b122c 0%, #090510 100%);
    --bg-sidebar: #130d22;
    --bg-sidebar-hover: #201736;
    --bg-card: #18102a;
    --bg-card-header: #120b21;
    --bg-slot: #0a0614;
    --bg-slot-focus: #06030c;
    --mc-border-light: #372659;
    --mc-border-lighter: #4c357c;
    --mc-border-dark: #080410;
    --mc-border-darker: #040208;
    --border-color: rgba(168, 85, 247, 0.2);
    --color-primary: #c084fc;
    --color-primary-dark: #7e22ce;
    --color-xp: #c084fc;
    --color-xp-glow: rgba(192, 132, 252, 0.4);
}

/* 4. Emerald Matrix */
html[data-theme="emerald-matrix"] {
    --bg-main: #07150e;
    --bg-main-gradient: radial-gradient(circle at 50% 20%, #0d281a 0%, #040c08 100%);
    --bg-sidebar: #0a1e14;
    --bg-sidebar-hover: #113121;
    --bg-card: #0c2317;
    --bg-card-header: #081a11;
    --bg-slot: #05100a;
    --bg-slot-focus: #030a06;
    --mc-border-light: #184c31;
    --mc-border-lighter: #236c46;
    --mc-border-dark: #040e09;
    --mc-border-darker: #020704;
    --border-color: rgba(16, 185, 129, 0.2);
    --color-primary: #10b981;
    --color-primary-dark: #047857;
    --color-xp: #10b981;
    --color-xp-glow: rgba(16, 185, 129, 0.4);
}

/* 5. Nordic Sapphire / Deep Ocean */
html[data-theme="nordic-frost"] {
    --bg-main: #0b1326;
    --bg-main-gradient: radial-gradient(circle at 50% 20%, #132244 0%, #070c18 100%);
    --bg-sidebar: #0e1933;
    --bg-sidebar-hover: #172852;
    --bg-card: #111e3d;
    --bg-card-header: #0c162e;
    --bg-slot: #080f1f;
    --bg-slot-focus: #050a14;
    --mc-border-light: #1f3770;
    --mc-border-lighter: #2c4da0;
    --mc-border-dark: #060b17;
    --mc-border-darker: #03060c;
    --border-color: rgba(56, 189, 248, 0.2);
    --color-primary: #38bdf8;
    --color-primary-dark: #0284c7;
    --color-xp: #38bdf8;
    --color-xp-glow: rgba(56, 189, 248, 0.4);
}

/* 6. Amethyst Twilight */
html[data-theme="amethyst-twilight"] {
    --bg-main: #140d22;
    --bg-main-gradient: radial-gradient(circle at 50% 20%, #24163d 0%, #0d0817 100%);
    --bg-sidebar: #19102c;
    --bg-sidebar-hover: #291a47;
    --bg-card: #1f1436;
    --bg-card-header: #170f29;
    --bg-slot: #0e0819;
    --bg-slot-focus: #08040f;
    --mc-border-light: #3f276f;
    --mc-border-lighter: #573699;
    --mc-border-dark: #0b0614;
    --mc-border-darker: #05030a;
    --border-color: rgba(192, 132, 252, 0.2);
    --color-primary: #e879f9;
    --color-primary-dark: #a21caf;
    --color-xp: #e879f9;
    --color-xp-glow: rgba(232, 121, 249, 0.4);
}

/* Font Family Selection */
html[data-font="inter"] {
    --font-main: 'Inter', -apple-system, sans-serif !important;
}
html[data-font="mono"] {
    --font-main: 'JetBrains Mono', monospace !important;
}
html[data-font="outfit"] {
    --font-main: 'Outfit', sans-serif !important;
}

/* Density: Compact Mode */
html[data-density="compact"] .panel-card {
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
}
html[data-density="compact"] .data-table td,
html[data-density="compact"] .data-table th {
    padding: 6px 8px !important;
    font-size: 11px !important;
}
html[data-density="compact"] .menu-item {
    padding: 6px 10px !important;
    font-size: 11px !important;
}

/* Reduce Motion */
html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

/* Settings UI Components */
.settings-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.settings-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.settings-section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.settings-section-header p {
    margin: 3px 0 0 0;
    font-size: 12px;
    color: var(--text-muted);
}

.theme-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.theme-card {
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.theme-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}
.theme-card.active {
    border-color: var(--color-xp, #80ff00);
    box-shadow: 0 0 16px var(--color-xp-glow, rgba(128, 255, 0, 0.3));
    background: rgba(0, 0, 0, 0.4);
}
.theme-preview-box {
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.theme-preview-chip {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}
.theme-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.theme-card-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.theme-card.active i[data-lucide="check-circle-2"] {
    color: var(--color-primary, #38bdf8) !important;
}

/* Temaya Göre Aktif Tema Kartı Kenarlık ve Vurguları */
html.theme-dark .theme-card.active {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
    background: rgba(15, 23, 42, 0.7) !important;
}
html.theme-nordic-light .theme-card.active {
    border-color: #2563eb !important;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.25) !important;
    background: #eff6ff !important;
}
html.theme-midnight .theme-card.active {
    border-color: #a855f7 !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.45) !important;
    background: rgba(21, 23, 54, 0.8) !important;
}
html.theme-glassmorphism .theme-card.active {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.4) !important;
    background: rgba(56, 189, 248, 0.12) !important;
}
html.theme-emerald .theme-card.active {
    border-color: #10b981 !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.4) !important;
    background: rgba(16, 185, 129, 0.12) !important;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.setting-row:last-child {
    border-bottom: none;
}
.setting-info {
    max-width: 70%;
}
.setting-label {
    font-size: 13px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 3px;
}
.setting-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Custom Switch Toggle */
.setting-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.setting-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.setting-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #3f4246;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}
.setting-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}
.setting-switch input:checked + .setting-slider {
    background-color: var(--color-xp, #80ff00);
}
.setting-switch input:checked + .setting-slider:before {
    transform: translateX(20px);
    background-color: #0d0e0e;
}

/* ==========================================================================
   MODERN PANEL MİMARİ TEMALARI (COHESIVE MODERN UI THEMES)
   MC taş ve piksel dokusu tamamen bir kenara bırakılmış, saf modern web tasarımı.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PRO DARK (Modern Slate & Obsidian SaaS Koyu Mod)
   -------------------------------------------------------------------------- */
html.theme-dark {
    --bg-main: #0b0f19;
    --bg-main-gradient: radial-gradient(circle at 50% 10%, #172033 0%, #0b0f19 100%);
    --bg-sidebar: #111827;
    --bg-sidebar-hover: #1f2937;
    --bg-card: #1e293b;
    --bg-card-header: #192231;
    --bg-slot: #0f172a;
    --border-color: #334155;
    --mc-border-light: #334155;
    --mc-border-lighter: #475569;
    --mc-border-dark: #1e293b;
    --color-primary: #38bdf8;
    --color-primary-dark: #0284c7;
    --color-xp: #38bdf8;
    --color-xp-glow: rgba(56, 189, 248, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
}

html.theme-dark body {
    color: #f8fafc;
    background-color: #0b0f19;
}

html.theme-dark .sidebar {
    background: #111827 !important;
    border-right: 1px solid #1f2937 !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4) !important;
}

html.theme-dark .header {
    background: #111827 !important;
    border-bottom: 1px solid #1f2937 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3) !important;
}

html.theme-dark .header-search-trigger {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    color: #94a3b8 !important;
}

html.theme-dark .header-search-trigger kbd {
    background: #0f172a !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}

html.theme-dark .header-server-picker {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
}

html.theme-dark .header-server-select {
    background: #111827 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    border-radius: 6px !important;
}

html.theme-dark .sidebar-server-selector-box,
html.theme-dark .sidebar-status-box {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
}

html.theme-dark .panel-card,
html.theme-dark .hero-card,
html.theme-dark .settings-section-card,
html.theme-dark .chart-panel,
html.theme-dark .controls-panel,
html.theme-dark .server-banner-card,
html.theme-dark .metric-card,
html.theme-dark .world-card,
html.theme-dark .backup-card,
html.theme-dark .schedule-card {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    color: #f8fafc !important;
}

html.theme-dark .hero-card {
    background: linear-gradient(135deg, #1e293b 0%, #111827 100%) !important;
}

html.theme-dark .hero-card h2,
html.theme-dark .panel-card h3,
html.theme-dark .panel-card h4,
html.theme-dark .settings-section-header h3 {
    text-shadow: none !important;
    color: #f8fafc !important;
}

html.theme-dark .btn {
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    text-shadow: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
}

html.theme-dark .btn-outline {
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #cbd5e1 !important;
}
html.theme-dark .btn-outline:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

html.theme-dark .metric-card .card-icon {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    color: #38bdf8 !important;
    border-radius: 8px !important;
}

html.theme-dark .form-control,
html.theme-dark input,
html.theme-dark select {
    background: #111827 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    border-radius: 8px !important;
}

html.theme-dark .launcher-controls-subbox {
    background: #111827 !important;
    border: 1px solid #334155 !important;
}


/* --------------------------------------------------------------------------
   2. PRO LIGHT (Studio White & Slate - Kusursuz Açık / Gündüz Modu)
   Sıfır MC kalıntısı, saf aydınlık, bembeyaz kartlar ve yüksek kontrast.
   -------------------------------------------------------------------------- */
html.theme-nordic-light {
    --bg-main: #f8fafc;
    --bg-main-gradient: none;
    --bg-sidebar: #ffffff;
    --bg-sidebar-hover: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-header: #f8fafc;
    --bg-slot: #f1f5f9;
    --bg-slot-focus: #e2e8f0;
    --border-color: #e2e8f0;
    --mc-border-light: #e2e8f0;
    --mc-border-lighter: #cbd5e1;
    --mc-border-dark: #e2e8f0;
    --mc-border-darker: #cbd5e1;
    --block-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    --block-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-xp: #2563eb;
    --color-xp-glow: rgba(37, 99, 235, 0.25);
    --text-primary: #0f172a !important;
    --text-secondary: #334155 !important;
    --text-muted: #64748b !important;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
}

html.theme-nordic-light body {
    color: #0f172a !important;
    background-color: #f8fafc !important;
    background-image: none !important;
}

/* Sidebar in Light */
html.theme-nordic-light .sidebar {
    background-color: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.03) !important;
}

html.theme-nordic-light .sidebar .brand-text h2 {
    color: #0f172a !important;
    text-shadow: none !important;
}
html.theme-nordic-light .menu-group-header {
    color: #64748b !important;
}
html.theme-nordic-light .menu-item {
    color: #334155 !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
}
html.theme-nordic-light .menu-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}
html.theme-nordic-light .menu-item.active {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    border-left: 3px solid #2563eb !important;
}
html.theme-nordic-light #logout-btn {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid #fee2e2 !important;
}
html.theme-nordic-light .sidebar-server-selector-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}
html.theme-nordic-light .sidebar-server-selector-box select,
html.theme-nordic-light #sidebar-server-select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
html.theme-nordic-light .sidebar-status-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}
html.theme-nordic-light .sidebar-status-box span {
    color: #334155 !important;
}

/* Header in Light */
html.theme-nordic-light .header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}
html.theme-nordic-light .header-title h1 {
    color: #0f172a !important;
    text-shadow: none !important;
}
html.theme-nordic-light .header-title p {
    color: #64748b !important;
}
html.theme-nordic-light .header-search-trigger {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    border-radius: 8px !important;
}
html.theme-nordic-light .header-search-trigger kbd {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
}
html.theme-nordic-light .header-server-picker {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}
html.theme-nordic-light .server-picker-badge {
    color: #2563eb !important;
}
html.theme-nordic-light .header-server-select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
}

/* Cards & Layout in Light */
html.theme-nordic-light .panel-card,
html.theme-nordic-light .hero-card,
html.theme-nordic-light .settings-section-card,
html.theme-nordic-light .chart-panel,
html.theme-nordic-light .controls-panel,
html.theme-nordic-light .guide-card,
html.theme-nordic-light .custom-modal-card,
html.theme-nordic-light .world-card,
html.theme-nordic-light .backup-card,
html.theme-nordic-light .schedule-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}

html.theme-nordic-light .world-name,
html.theme-nordic-light .backup-filename,
html.theme-nordic-light .schedule-card-title,
html.theme-nordic-light .dropzone-title,
html.theme-nordic-light .schedule-meta-item strong {
    color: #0f172a !important;
}

html.theme-nordic-light .upload-dropzone {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

html.theme-nordic-light .world-card-actions,
html.theme-nordic-light .schedule-card-header,
html.theme-nordic-light .schedule-card-footer {
    border-color: #f1f5f9 !important;
}
html.theme-nordic-light .hero-card {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
    border: 1px solid #dbeafe !important;
}
html.theme-nordic-light .hero-card h2,
html.theme-nordic-light .panel-card h2,
html.theme-nordic-light .panel-card h3,
html.theme-nordic-light .panel-card h4,
html.theme-nordic-light .settings-section-header h3 {
    color: #0f172a !important;
    text-shadow: none !important;
}
html.theme-nordic-light .hero-card p,
html.theme-nordic-light .panel-card p {
    color: #475569 !important;
}
html.theme-nordic-light .server-banner-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

/* Dashboard Launcher in Light */
html.theme-nordic-light #dashboard-launcher-card,
html.theme-nordic-light .launcher-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
html.theme-nordic-light .launcher-icon-badge {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
}
html.theme-nordic-light .launcher-controls-subbox {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html.theme-nordic-light #dash-server-select,
html.theme-nordic-light select.form-control {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

/* Metric Cards & SVG Circular Charts in Light */
html.theme-nordic-light .metric-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
html.theme-nordic-light .metric-card .card-icon {
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    color: #2563eb !important;
    border-radius: 8px !important;
}
html.theme-nordic-light .metric-card h3 {
    color: #64748b !important;
    text-shadow: none !important;
}
html.theme-nordic-light .metric-desc,
html.theme-nordic-light .uptime-label {
    color: #334155 !important;
}
html.theme-nordic-light .circle-bg {
    stroke: #e2e8f0 !important;
}
html.theme-nordic-light .circular-chart-text {
    color: #0f172a !important;
}

/* Status Badges in Light */
html.theme-nordic-light .status-badge.offline {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
    text-shadow: none !important;
}
html.theme-nordic-light .status-badge.online {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    text-shadow: none !important;
}

/* Modern Flat Buttons in Light */
html.theme-nordic-light .btn {
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}
html.theme-nordic-light .btn-outline {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
html.theme-nordic-light .btn-outline:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
html.theme-nordic-light .btn-success {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
}
html.theme-nordic-light .btn-warning {
    background: #f59e0b !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
}
html.theme-nordic-light .btn-info {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0369a1 !important;
}
html.theme-nordic-light .btn-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

html.theme-nordic-light .form-control,
html.theme-nordic-light input,
html.theme-nordic-light select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
}

html.theme-nordic-light .data-table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html.theme-nordic-light .data-table td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
}


/* --------------------------------------------------------------------------
   3. MIDNIGHT CYBER (Siber Gece Mavisi & Ametist)
   -------------------------------------------------------------------------- */
html.theme-midnight {
    --bg-main: #0a0b16;
    --bg-main-gradient: radial-gradient(ellipse at 50% 0%, #1e164d 0%, #0a0b16 100%);
    --bg-sidebar: #0f1026;
    --bg-sidebar-hover: #1b1d3d;
    --bg-card: #151736;
    --bg-card-header: #12132d;
    --bg-slot: #0c0e21;
    --border-color: rgba(168, 85, 247, 0.25);
    --color-primary: #a855f7;
    --color-primary-dark: #7e22ce;
    --color-xp: #a855f7;
    --color-xp-glow: rgba(168, 85, 247, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
}

html.theme-midnight .sidebar {
    background: #0f1026 !important;
    border-right: 1px solid rgba(168, 85, 247, 0.2) !important;
}
html.theme-midnight .header {
    background: #0f1026 !important;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2) !important;
}
html.theme-midnight .panel-card,
html.theme-midnight .hero-card,
html.theme-midnight .settings-section-card,
html.theme-midnight .metric-card,
html.theme-midnight .chart-panel,
html.theme-midnight .world-card,
html.theme-midnight .backup-card,
html.theme-midnight .schedule-card {
    background: #151736 !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}
html.theme-midnight .btn {
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    text-shadow: none !important;
}
html.theme-midnight .header-search-trigger,
html.theme-midnight .header-server-picker,
html.theme-midnight .sidebar-server-selector-box,
html.theme-midnight .sidebar-status-box {
    background: #151736 !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    border-radius: 8px !important;
}


/* --------------------------------------------------------------------------
   4. FROSTED GLASS (Cam Efekti & Modern Siber SaaS)
   -------------------------------------------------------------------------- */
html.theme-glassmorphism {
    --bg-main: #07090e;
    --bg-main-gradient: radial-gradient(circle at 10% 20%, #1e1b4b 0%, #090d16 50%, #030712 100%);
    --bg-sidebar: rgba(15, 23, 42, 0.7);
    --bg-card: rgba(17, 24, 39, 0.65);
    --border-color: rgba(255, 255, 255, 0.12);
    --color-primary: #38bdf8;
    --color-xp: #38bdf8;
    --color-xp-glow: rgba(56, 189, 248, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --text-shadow: none !important;
}

html.theme-glassmorphism body {
    background-attachment: fixed;
}
html.theme-glassmorphism .sidebar {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    margin: 14px 0 14px 14px !important;
    height: calc(100vh - 28px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}
html.theme-glassmorphism .header {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    margin: 14px 14px 0 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}
html.theme-glassmorphism .panel-card,
html.theme-glassmorphism .hero-card,
html.theme-glassmorphism .settings-section-card,
html.theme-glassmorphism .metric-card,
html.theme-glassmorphism .chart-panel,
html.theme-glassmorphism .world-card,
html.theme-glassmorphism .backup-card,
html.theme-glassmorphism .schedule-card {
    background: rgba(17, 24, 39, 0.6) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}
html.theme-glassmorphism .btn {
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    text-shadow: none !important;
}
html.theme-glassmorphism .header-search-trigger,
html.theme-glassmorphism .header-server-picker,
html.theme-glassmorphism .sidebar-server-selector-box,
html.theme-glassmorphism .sidebar-status-box {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
}


/* --------------------------------------------------------------------------
   5. EMERALD MODERN (Modern Zümrüt Yeşili & Nane)
   -------------------------------------------------------------------------- */
html.theme-emerald {
    --bg-main: #04100c;
    --bg-main-gradient: radial-gradient(circle at 50% 10%, #0d281e 0%, #04100c 100%);
    --bg-sidebar: #091f17;
    --bg-sidebar-hover: #103326;
    --bg-card: #0f2b20;
    --bg-card-header: #0b221a;
    --bg-slot: #061712;
    --border-color: rgba(16, 185, 129, 0.25);
    --color-primary: #10b981;
    --color-xp: #10b981;
    --color-xp-glow: rgba(16, 185, 129, 0.4);
    --text-primary: #f0fdf4;
    --text-secondary: #bbf7d0;
    --text-muted: #86efac;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
}
html.theme-emerald .sidebar {
    background: #091f17 !important;
    border-right: 1px solid rgba(16, 185, 129, 0.2) !important;
}
html.theme-emerald .header {
    background: #091f17 !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2) !important;
}
html.theme-emerald .panel-card,
html.theme-emerald .hero-card,
html.theme-emerald .settings-section-card,
html.theme-emerald .metric-card,
html.theme-emerald .chart-panel,
html.theme-emerald .world-card,
html.theme-emerald .backup-card,
html.theme-emerald .schedule-card {
    background: #0f2b20 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}
html.theme-emerald .btn {
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    text-shadow: none !important;
}
html.theme-emerald .header-search-trigger,
html.theme-emerald .header-server-picker,
html.theme-emerald .sidebar-server-selector-box,
html.theme-emerald .sidebar-status-box {
    background: #0f2b20 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 8px !important;
}

/* --------------------------------------------------------------------------
   6. MINECRAFT CLASSIC 3D (Orijinal GUI Taş & Ahşap - Geriye Uyumluluk)
   -------------------------------------------------------------------------- */
html.theme-minecraft {
    --bg-main: #27282b;
    --bg-main-gradient: radial-gradient(circle at 50% 20%, #35373a 0%, #202123 100%);
    --bg-sidebar: #222325;
    --bg-card: #323437;
    --border-color: rgba(255, 255, 255, 0.08);
}

/* Theme Reload Full-Screen Overlay */
.theme-reload-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(8, 10, 15, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
    color: #ffffff;
    text-align: center;
}
.theme-reload-spinner {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--color-xp, #80ff00);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-bottom: 22px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   v9.0.0 ULTIMATE SUITE STYLES (Quick Actions, Presets, Crash Doctor, DC Preview)
   ========================================================================== */

/* 1. Quick Actions & Macros */
.quick-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.quick-macro-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    position: relative;
}

.quick-macro-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.quick-macro-btn:active {
    transform: translateY(0);
}

.quick-macro-btn .macro-delete-btn {
    opacity: 0;
    margin-left: 4px;
    color: #ef4444;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.quick-macro-btn:hover .macro-delete-btn {
    opacity: 1;
}

/* 2. Scheduler Preset Cards */
.preset-schedule-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.preset-schedule-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.preset-schedule-card.active-preset {
    border-color: rgba(34, 197, 94, 0.6) !important;
    background: rgba(34, 197, 94, 0.07) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.18), inset 0 0 10px rgba(34, 197, 94, 0.05) !important;
}

.preset-schedule-card.active-preset::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #4ade80, #86efac);
}

.preset-status-tag {
    transition: all 0.2s ease;
    user-select: none;
}

.preset-schedule-card .btn-apply-sched-preset.is-active {
    background: rgba(34, 197, 94, 0.25) !important;
    border: 1px solid rgba(34, 197, 94, 0.5) !important;
    color: #4ade80 !important;
    font-weight: 700;
}

.preset-schedule-card .btn-apply-sched-preset.is-active:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #fca5a5 !important;
}

/* 3. Discord Live Mock Box */
.discord-mock-box {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 4. Sistem Detayları Modern Grid (Dashboard) */
.system-details-panel {
    display: flex;
    flex-direction: column;
}

.system-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.system-detail-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--mc-border-light);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.system-detail-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.sys-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sys-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.sys-icon-wrap.icon-eula {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.sys-icon-wrap.icon-ram {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.sys-icon-wrap.icon-server {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.sys-icon-wrap.icon-network {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.sys-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    flex: 1;
}

.sys-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.sys-status-badge.active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #4ade80;
}

.sys-status-badge.active svg {
    width: 13px;
    height: 13px;
}

.sys-val-highlight {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.sys-pill {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sys-link-pill {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #38bdf8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    transition: all 0.15s ease;
}

.sys-link-pill:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #bae6fd;
}

/* 5. Whitelist Modern Control Deck */
.whitelist-deck {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .whitelist-deck {
        grid-template-columns: 1fr;
    }
}

.whitelist-deck-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--mc-border-light);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.whitelist-status-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.whitelist-status-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.whitelist-icon-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.whitelist-icon-avatar svg {
    width: 22px;
    height: 22px;
}

.whitelist-icon-avatar.active {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
}

.whitelist-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
}

.whitelist-box-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.whitelist-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
}

.whitelist-toggle-btn svg {
    width: 15px;
    height: 15px;
}

.whitelist-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.whitelist-input-wrapper {
    position: relative;
    flex: 1;
}

.whitelist-input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.whitelist-input-wrapper input {
    padding-left: 36px !important;
    width: 100%;
}

/* 6. Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. Güncelleme Bildirimi (What's New Modal) */
.update-modal-content {
    max-width: 740px !important;
    max-height: 88vh !important;
    padding: 0 !important;
    overflow: hidden;
    background: #1e2024 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15) !important;
}

.update-modal-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}

.update-modal-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #a855f7, #4ade80);
}

.update-confetti-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.update-confetti-badge svg {
    width: 13px;
    height: 13px;
}

.update-modal-banner h2 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    font-family: var(--font-heading);
}

.update-modal-banner p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.update-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.update-pill-version {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.update-pill-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.update-pill-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.update-modal-close {
    position: static !important;
}

.update-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 52vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.update-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-section-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.update-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.update-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.15s ease;
}

.update-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateX(2px);
}

.update-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.update-item-icon svg {
    width: 16px;
    height: 16px;
}

.update-item-content {
    flex: 1;
}

.update-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.update-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.update-item-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

.update-modal-footer {
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.update-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}

.update-checkbox-label input {
    accent-color: #22c55e;
    cursor: pointer;
}

.update-modal-footer-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================================================
   🎉 COMPACT EVENT CATALOG & MODAL STYLES (v9.4.0)
   ========================================================= */
.events-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.event-compact-card {
    background: #181a1e;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.event-compact-card:hover {
    background: #1f2227;
    border-color: var(--event-accent, var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.event-compact-card:active {
    transform: translateY(0);
}

.event-compact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    background: var(--event-accent-bg, rgba(255, 255, 255, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid var(--event-accent, rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 12px var(--event-accent-bg, transparent);
    transition: transform 0.2s ease;
}

.event-compact-card:hover .event-compact-icon {
    transform: scale(1.08);
}

.event-compact-body {
    flex: 1;
    min-width: 0;
}

.event-compact-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-compact-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--event-accent, #94a3b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-compact-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 11px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.18s ease;
}

.event-compact-card:hover .event-compact-btn {
    background: var(--event-accent, var(--color-primary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 12px var(--event-accent-bg, transparent);
}

/* Event Modal Option Fields */
.event-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-field-group label {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-field-group label span.event-field-hint {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}

.event-field-group .form-control {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color, #334155);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: #fff;
    transition: all 0.15s ease;
}

.event-field-group .form-control:focus {
    border-color: var(--color-primary, #38bdf8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    outline: none;
}

.event-preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.event-preset-chip {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.event-preset-chip:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.event-preset-chip.active {
    background: var(--color-primary, #38bdf8);
    border-color: var(--color-primary, #38bdf8);
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================================
   BUTTON ARCHITECTURE OVERHAUL: MASTER POWER CAPSULE & TOOL CLUSTER
   ========================================================================== */
.header-left-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.btn-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-close-mobile-sidebar {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
}
.btn-close-mobile-sidebar:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.header-center-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    max-width: 480px;
    min-width: 0;
}

.header-tool-cluster {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.55);
    padding: 3px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.btn-tool {
    background: transparent;
    border: 1px solid transparent;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 8px;
    height: 32px;
    min-width: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
    line-height: 1;
    box-sizing: border-box;
}
.btn-tool .btn-text {
    display: none;
}
.btn-tool:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-tool-announcement {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.1);
    font-weight: 700;
}
.btn-tool-announcement:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fde047;
}
.btn-tool-icon {
    padding: 6px 8px;
}

.header-power-capsule {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.7);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.btn-power {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    height: 32px;
    min-width: 34px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.18s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    box-sizing: border-box;
}
.btn-power .btn-text {
    display: none;
}
.btn-power i {
    width: 15px;
    height: 15px;
}

@media (min-width: 1850px) {
    .header-tool-cluster .btn-tool .btn-text {
        display: inline;
    }
    .header-tool-cluster .btn-tool {
        padding: 6px 10px;
    }
    .header-power-capsule .btn-power .btn-text {
        display: inline;
    }
    .header-power-capsule .btn-power {
        padding: 7px 12px;
    }
}

.btn-power-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.btn-power-start:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.55);
    filter: brightness(1.1);
}

.btn-power-stop {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.btn-power-stop:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
    filter: brightness(1.1);
}

.btn-power-restart {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}
.btn-power-restart:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45);
    filter: brightness(1.1);
}

.btn-power-kill {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.btn-power-kill:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
    filter: brightness(1.1);
}

.btn-power:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    filter: grayscale(50%);
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   MISSION CONTROL DECK (REVAMPED DASHBOARD LAUNCHER)
   ========================================================================== */
.mission-control-deck {
    background: linear-gradient(145deg, rgba(26, 32, 44, 0.88) 0%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    padding: 18px 22px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.deck-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.deck-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.deck-avatar-pulse {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #38bdf8);
    flex-shrink: 0;
}
.deck-icon-spin {
    width: 24px;
    height: 24px;
}
.deck-live-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0f172a;
    box-shadow: 0 0 8px #10b981;
}

.deck-title-group {
    display: flex;
    flex-direction: column;
}
.deck-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.deck-main-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
}
.deck-status-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.deck-sub-text {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}
.btn-deck-new-folder {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
}
.btn-deck-new-folder:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #ffffff;
}

.deck-grid-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.deck-card-panel {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pod-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.pod-label {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pod-label i {
    width: 14px;
    height: 14px;
    color: var(--color-primary, #38bdf8);
}
.pod-tag-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-weight: 700;
}
.pod-tag-badge-emerald {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-weight: 700;
}

.deck-server-select {
    width: 100%;
    height: 42px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    background: #10141d;
    color: #ffffff;
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    padding: 0 12px;
    cursor: pointer;
}
.deck-server-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.pod-meta-specs {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.meta-spec-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.25);
    padding: 5px 8px;
    border-radius: 6px;
    overflow: hidden;
}
.meta-spec-chip code {
    color: #cbd5e1;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.meta-spec-stats-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.spec-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
    color: #94a3b8;
}
.spec-stat-pill strong {
    color: #ffffff;
}
.spec-ip-pill {
    cursor: pointer;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    transition: all 0.2s;
}
.spec-ip-pill:hover {
    background: rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}
.ip-copy-ico {
    width: 11px;
    height: 11px;
}

.deck-power-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-deck-power {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-deck-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.btn-deck-icon-wrap i {
    width: 18px;
    height: 18px;
}
.btn-deck-text-wrap {
    display: flex;
    flex-direction: column;
}
.btn-deck-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.btn-deck-desc {
    font-size: 10px;
    opacity: 0.8;
}

.btn-deck-start {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.btn-deck-start .btn-deck-icon-wrap {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}
.btn-deck-start:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-deck-stop {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}
.btn-deck-stop .btn-deck-icon-wrap {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}
.btn-deck-stop:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
    border-color: #f59e0b;
    transform: translateY(-2px);
}

.btn-deck-restart {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(2, 132, 199, 0.25) 100%);
    border-color: rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}
.btn-deck-restart .btn-deck-icon-wrap {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}
.btn-deck-restart:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(2, 132, 199, 0.35) 100%);
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

.btn-deck-kill {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.25) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}
.btn-deck-kill .btn-deck-icon-wrap {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}
.btn-deck-kill:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.35) 100%);
    border-color: #ef4444;
    transform: translateY(-2px);
}

.btn-deck-power:disabled {
    opacity: 0.4;
    filter: grayscale(60%);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.deck-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}
.deck-footer-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.deck-tools-label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
}
.btn-deck-tool {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    line-height: 1;
}
.deck-link-discord {
    font-size: 12px;
    color: #818cf8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}
.deck-link-discord:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* ==========================================================================
   IPHONE & MOBILE PWA NAVIGATION DOCK & ACTIONS SHEET
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 12px));
    padding-bottom: env(safe-area-inset-bottom, 12px);
    background: rgba(18, 20, 24, 0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1200;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.mob-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease;
}
.mob-nav-btn i {
    width: 20px;
    height: 20px;
}
.mob-nav-btn.active {
    color: var(--color-primary, #38bdf8);
}

.mob-action-orb-btn {
    position: relative;
    overflow: visible;
}
.mob-orb-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-14px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
    border: 3px solid #141518;
    animation: orbGlow 2.5s infinite;
}
.mob-orb-circle i {
    width: 22px;
    height: 22px;
}

@keyframes orbGlow {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
    }
    50% {
        box-shadow: 0 10px 28px rgba(56, 189, 248, 0.85);
        transform: translateY(-15px) scale(1.04);
    }
}

.mobile-actions-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1300;
    background: #16181d;
    border-top: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px 20px 0 0;
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom, 16px));
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1);
}
.mobile-actions-sheet.open {
    transform: translateY(0);
    display: block !important;
}

.sheet-pull-handle-bar {
    display: flex;
    justify-content: center;
    padding: 6px 0 12px;
    cursor: pointer;
}
.sheet-pull-pill {
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.sheet-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sheet-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
}
.sheet-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
}
.sheet-subtitle {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #94a3b8;
}
.sheet-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.sheet-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.sheet-section-title {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.sheet-power-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.btn-sheet-power {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.btn-sheet-power i {
    width: 20px;
    height: 20px;
}
.btn-sheet-start {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.btn-sheet-stop {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}
.btn-sheet-restart {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}
.btn-sheet-kill {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.sheet-macros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.btn-sheet-macro {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}
.btn-sheet-macro:hover, .btn-sheet-macro:active {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}
.btn-sheet-macro i {
    width: 18px;
    height: 18px;
    color: var(--color-primary, #38bdf8);
    flex-shrink: 0;
}
.macro-text {
    display: flex;
    flex-direction: column;
}
.macro-text strong {
    font-size: 12px;
}
.macro-text small {
    font-size: 10px;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.mobile-ui-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1190;
    transition: opacity 0.25s ease;
}

/* ==========================================================================
   DESKTOP TOP NAVIGATION BAR & DUAL LAYOUT ENGINE
   ========================================================================== */

/* Top Navigation Bar (High-Tech Horizontal Command Deck) */
.desktop-top-navbar {
    display: none;
    position: sticky;
    top: 56px;
    z-index: 95;
    background: linear-gradient(180deg, rgba(17, 22, 33, 0.96) 0%, rgba(13, 16, 25, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    padding: 0 10px;
    height: 46px;
    box-sizing: border-box;
    align-items: center;
    gap: 6px;
}

.btn-top-nav-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    padding: 0;
}
.btn-top-nav-scroll:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: scale(1.05);
}
.btn-top-nav-scroll i {
    width: 14px;
    height: 14px;
}

.top-nav-scroll-container {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
    width: 100%;
    height: 100%;
    padding: 4px 0;
}
.top-nav-scroll-container::-webkit-scrollbar {
    display: none;
}

.top-nav-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 6px 12px !important;
    height: 32px !important;
    width: auto !important;
    border-radius: 7px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
    flex-shrink: 0 !important;
    user-select: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
}
.top-nav-item i {
    width: 14px;
    height: 14px;
    color: #64748b;
    transition: color 0.15s;
    flex-shrink: 0;
}
.top-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}
.top-nav-item:hover i {
    color: #38bdf8;
}
.top-nav-item.active {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0.06) 100%) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
}
.top-nav-item.active i {
    color: #38bdf8 !important;
}
.top-nav-item.active::before {
    display: none !important;
}

/* Header Desktop Brand (When in Top Nav Mode) */
.header-desktop-brand {
    display: none;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.header-brand-img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    object-fit: cover;
}
.header-brand-text {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-brand-name {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Dual Layout Modes for Desktop (Min-Width 769px) */
@media (min-width: 769px) {
    /* Default: Top Navigation Mode */
    body:not(.layout-sidebar-mode) .sidebar {
        display: none !important;
    }
    body:not(.layout-sidebar-mode) .desktop-top-navbar {
        display: flex !important;
    }
    body:not(.layout-sidebar-mode) .header-desktop-brand {
        display: flex !important;
        border-right: none !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
    body:not(.layout-sidebar-mode) .header-title {
        display: none !important;
    }
    body:not(.layout-sidebar-mode) .main-content {
        width: 100% !important;
        flex: 1 !important;
    }

    /* Optional Sidebar Mode (When user explicitly toggles to Sidebar) */
    body.layout-sidebar-mode .sidebar {
        display: flex !important;
    }
    body.layout-sidebar-mode .desktop-top-navbar {
        display: none !important;
    }
    body.layout-sidebar-mode .header-desktop-brand {
        display: none !important;
    }
    body.layout-sidebar-mode .header-title {
        display: flex !important;
    }
}

/* --------------------------------------------------------------------------
   6. CYBERPUNK NEON THEME (Siberpunk 2077)
   -------------------------------------------------------------------------- */
html.theme-cyberpunk {
    --bg-main: #060814;
    --bg-main-gradient: radial-gradient(ellipse at 50% 0%, #15092b 0%, #060814 100%);
    --bg-sidebar: #0a0d1e;
    --bg-sidebar-hover: #131733;
    --bg-card: #0f1329;
    --bg-card-header: #0a0d1f;
    --bg-slot: #070917;
    --border-color: rgba(0, 243, 255, 0.3);
    --color-primary: #00f3ff;
    --primary-rgb: 0, 243, 255;
    --color-primary-dark: #00b4d8;
    --color-xp: #00f3ff;
    --color-xp-glow: rgba(0, 243, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #cde4ff;
    --text-muted: #7e9bbd;
    --text-shadow: 0 0 6px rgba(0, 243, 255, 0.35) !important;
    --font-heading: 'Outfit', sans-serif;
}
html.theme-cyberpunk .sidebar {
    background: #0a0d1e !important;
    border-right: 1px solid rgba(0, 243, 255, 0.25) !important;
}
html.theme-cyberpunk .header {
    background: #0a0d1e !important;
    border-bottom: 1px solid rgba(0, 243, 255, 0.25) !important;
}
html.theme-cyberpunk .panel-card,
html.theme-cyberpunk .hero-card,
html.theme-cyberpunk .settings-section-card,
html.theme-cyberpunk .metric-card,
html.theme-cyberpunk .chart-panel,
html.theme-cyberpunk .world-card,
html.theme-cyberpunk .backup-card,
html.theme-cyberpunk .schedule-card,
html.theme-cyberpunk .modal-content {
    background: #0f1329 !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 243, 255, 0.08) !important;
}
html.theme-cyberpunk .theme-card.active {
    border-color: #00f3ff !important;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.35) !important;
}
html.theme-cyberpunk .btn-primary,
html.theme-cyberpunk .btn-success {
    background: #00f3ff !important;
    color: #040814 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 0 14px rgba(0, 243, 255, 0.45) !important;
}
html.theme-cyberpunk .sidebar-server-selector-box {
    background: #0f1329 !important;
    border-color: rgba(0, 243, 255, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 243, 255, 0.1) !important;
}
html.theme-cyberpunk .sidebar-server-label {
    color: #00f3ff !important;
}
html.theme-cyberpunk .sidebar-status-tag {
    background: rgba(0, 243, 255, 0.2) !important;
    color: #00f3ff !important;
    border-color: rgba(0, 243, 255, 0.4) !important;
}
html.theme-cyberpunk .menu-item.active {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.22) 0%, rgba(0, 243, 255, 0.03) 100%) !important;
    color: #00f3ff !important;
    border-color: rgba(0, 243, 255, 0.35) !important;
    box-shadow: 0 2px 12px rgba(0, 243, 255, 0.15) !important;
}
html.theme-cyberpunk .menu-item.active i {
    color: #ffee00 !important;
}
html.theme-cyberpunk .menu-item.active::before {
    background: #ffee00 !important;
    box-shadow: 0 0 8px #ffee00 !important;
}
html.theme-cyberpunk .menu-item:hover i,
html.theme-cyberpunk .menu-group-header:hover i:first-child {
    color: #00f3ff !important;
}
html.theme-cyberpunk .sidebar-user-avatar {
    background: rgba(0, 243, 255, 0.2) !important;
    border-color: rgba(0, 243, 255, 0.4) !important;
    color: #00f3ff !important;
}
html.theme-cyberpunk .brand-version-badge {
    background: rgba(0, 243, 255, 0.2) !important;
    color: #00f3ff !important;
    border-color: rgba(0, 243, 255, 0.4) !important;
}
html.theme-cyberpunk .header-server-picker {
    border-color: rgba(0, 243, 255, 0.35) !important;
}

/* --------------------------------------------------------------------------
   7. CRIMSON REDSTONE THEME (Kızıltaş Yakut)
   -------------------------------------------------------------------------- */
html.theme-crimson {
    --bg-main: #0c0d12;
    --bg-main-gradient: radial-gradient(ellipse at 50% 0%, #260912 0%, #0c0d12 100%);
    --bg-sidebar: #101117;
    --bg-sidebar-hover: #1c1d29;
    --bg-card: #151621;
    --bg-card-header: #0f1018;
    --bg-slot: #090a0e;
    --border-color: rgba(255, 42, 85, 0.3);
    --color-primary: #ff2a55;
    --primary-rgb: 255, 42, 85;
    --color-primary-dark: #dc143c;
    --color-xp: #ff2a55;
    --color-xp-glow: rgba(255, 42, 85, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #fecdd3;
    --text-muted: #9e8288;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
}
html.theme-crimson .sidebar {
    background: #101117 !important;
    border-right: 1px solid rgba(255, 42, 85, 0.25) !important;
}
html.theme-crimson .header {
    background: #101117 !important;
    border-bottom: 1px solid rgba(255, 42, 85, 0.25) !important;
}
html.theme-crimson .panel-card,
html.theme-crimson .hero-card,
html.theme-crimson .settings-section-card,
html.theme-crimson .metric-card,
html.theme-crimson .chart-panel,
html.theme-crimson .world-card,
html.theme-crimson .backup-card,
html.theme-crimson .schedule-card,
html.theme-crimson .modal-content {
    background: #151621 !important;
    border: 1px solid rgba(255, 42, 85, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 42, 85, 0.08) !important;
}
html.theme-crimson .theme-card.active {
    border-color: #ff2a55 !important;
    box-shadow: 0 0 20px rgba(255, 42, 85, 0.35) !important;
}
html.theme-crimson .btn-primary,
html.theme-crimson .btn-danger {
    background: #ff2a55 !important;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(255, 42, 85, 0.45) !important;
}
html.theme-crimson .sidebar-server-selector-box {
    background: #14141d !important;
    border-color: rgba(255, 42, 85, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 42, 85, 0.08) !important;
}
html.theme-crimson .sidebar-server-label {
    color: #ff2a55 !important;
}
html.theme-crimson .sidebar-status-tag {
    background: rgba(255, 42, 85, 0.2) !important;
    color: #ff4d6d !important;
    border-color: rgba(255, 42, 85, 0.4) !important;
}
html.theme-crimson .menu-item.active {
    background: linear-gradient(90deg, rgba(255, 42, 85, 0.22) 0%, rgba(255, 42, 85, 0.03) 100%) !important;
    color: #ff4d6d !important;
    border-color: rgba(255, 42, 85, 0.35) !important;
    box-shadow: 0 2px 12px rgba(255, 42, 85, 0.15) !important;
}
html.theme-crimson .menu-item.active i {
    color: #ff2a55 !important;
}
html.theme-crimson .menu-item.active::before {
    background: #ff2a55 !important;
    box-shadow: 0 0 8px #ff2a55 !important;
}
html.theme-crimson .menu-item:hover i,
html.theme-crimson .menu-group-header:hover i:first-child {
    color: #ff4d6d !important;
}
html.theme-crimson .sidebar-user-avatar {
    background: rgba(255, 42, 85, 0.2) !important;
    border-color: rgba(255, 42, 85, 0.4) !important;
    color: #ff4d6d !important;
}
html.theme-crimson .brand-version-badge {
    background: rgba(255, 42, 85, 0.2) !important;
    color: #ff4d6d !important;
    border-color: rgba(255, 42, 85, 0.4) !important;
}
html.theme-crimson .header-server-picker {
    border-color: rgba(255, 42, 85, 0.35) !important;
}

/* --------------------------------------------------------------------------
   8. DEEP SPACE NEBULA THEME (Mor Galaksi)
   -------------------------------------------------------------------------- */
html.theme-nebula {
    --bg-main: #080614;
    --bg-main-gradient: radial-gradient(ellipse at 50% 0%, #250d45 0%, #080614 100%);
    --bg-sidebar: #0e0a24;
    --bg-sidebar-hover: #18123d;
    --bg-card: #130f30;
    --bg-card-header: #0b0821;
    --bg-slot: #080617;
    --border-color: rgba(157, 78, 221, 0.35);
    --color-primary: #9d4edd;
    --primary-rgb: 157, 78, 221;
    --color-primary-dark: #7b2cbf;
    --color-xp: #9d4edd;
    --color-xp-glow: rgba(157, 78, 221, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #e9d5ff;
    --text-muted: #a894c7;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
}
html.theme-nebula .sidebar {
    background: #0e0a24 !important;
    border-right: 1px solid rgba(157, 78, 221, 0.3) !important;
}
html.theme-nebula .header {
    background: #0e0a24 !important;
    border-bottom: 1px solid rgba(157, 78, 221, 0.3) !important;
}
html.theme-nebula .panel-card,
html.theme-nebula .hero-card,
html.theme-nebula .settings-section-card,
html.theme-nebula .metric-card,
html.theme-nebula .chart-panel,
html.theme-nebula .world-card,
html.theme-nebula .backup-card,
html.theme-nebula .schedule-card,
html.theme-nebula .modal-content {
    background: #130f30 !important;
    border: 1px solid rgba(157, 78, 221, 0.35) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(157, 78, 221, 0.12) !important;
}
html.theme-nebula .theme-card.active {
    border-color: #9d4edd !important;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4) !important;
}
html.theme-nebula .sidebar-server-selector-box {
    background: #130f30 !important;
    border-color: rgba(157, 78, 221, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(157, 78, 221, 0.12) !important;
}
html.theme-nebula .sidebar-server-label {
    color: #9d4edd !important;
}
html.theme-nebula .sidebar-status-tag {
    background: rgba(157, 78, 221, 0.2) !important;
    color: #c77dff !important;
    border-color: rgba(157, 78, 221, 0.4) !important;
}
html.theme-nebula .menu-item.active {
    background: linear-gradient(90deg, rgba(157, 78, 221, 0.22) 0%, rgba(157, 78, 221, 0.03) 100%) !important;
    color: #e0aaff !important;
    border-color: rgba(157, 78, 221, 0.35) !important;
    box-shadow: 0 2px 12px rgba(157, 78, 221, 0.15) !important;
}
html.theme-nebula .menu-item.active i {
    color: #c77dff !important;
}
html.theme-nebula .menu-item.active::before {
    background: #9d4edd !important;
    box-shadow: 0 0 8px #9d4edd !important;
}
html.theme-nebula .menu-item:hover i,
html.theme-nebula .menu-group-header:hover i:first-child {
    color: #c77dff !important;
}
html.theme-nebula .sidebar-user-avatar {
    background: rgba(157, 78, 221, 0.2) !important;
    border-color: rgba(157, 78, 221, 0.4) !important;
    color: #c77dff !important;
}
html.theme-nebula .brand-version-badge {
    background: rgba(157, 78, 221, 0.2) !important;
    color: #c77dff !important;
    border-color: rgba(157, 78, 221, 0.4) !important;
}
html.theme-nebula .header-server-picker {
    border-color: rgba(157, 78, 221, 0.35) !important;
}

/* --------------------------------------------------------------------------
   9. SYNTHWAVE 80S THEME (Retro Wave)
   -------------------------------------------------------------------------- */
html.theme-synthwave {
    --bg-main: #0f0a1c;
    --bg-main-gradient: radial-gradient(ellipse at 50% 0%, #350f42 0%, #0f0a1c 100%);
    --bg-sidebar: #140d26;
    --bg-sidebar-hover: #221640;
    --bg-card: #1c1336;
    --bg-card-header: #120b22;
    --bg-slot: #090614;
    --border-color: rgba(255, 83, 118, 0.35);
    --color-primary: #ff5376;
    --primary-rgb: 255, 83, 118;
    --color-primary-dark: #e03158;
    --color-xp: #ff5376;
    --color-xp-glow: rgba(255, 83, 118, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #fed7e2;
    --text-muted: #b399b5;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
}
html.theme-synthwave .sidebar {
    background: #140d26 !important;
    border-right: 1px solid rgba(255, 83, 118, 0.3) !important;
}
html.theme-synthwave .header {
    background: #140d26 !important;
    border-bottom: 1px solid rgba(255, 83, 118, 0.3) !important;
}
html.theme-synthwave .panel-card,
html.theme-synthwave .hero-card,
html.theme-synthwave .settings-section-card,
html.theme-synthwave .metric-card,
html.theme-synthwave .chart-panel,
html.theme-synthwave .world-card,
html.theme-synthwave .backup-card,
html.theme-synthwave .schedule-card,
html.theme-synthwave .modal-content {
    background: #1c1336 !important;
    border: 1px solid rgba(255, 83, 118, 0.35) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 83, 118, 0.12) !important;
}
html.theme-synthwave .theme-card.active {
    border-color: #ff5376 !important;
    box-shadow: 0 0 20px rgba(255, 83, 118, 0.4) !important;
}
html.theme-synthwave .sidebar-server-selector-box {
    background: #1b1233 !important;
    border-color: rgba(255, 83, 118, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 83, 118, 0.12) !important;
}
html.theme-synthwave .sidebar-server-label {
    color: #ff5376 !important;
}
html.theme-synthwave .sidebar-status-tag {
    background: rgba(255, 83, 118, 0.2) !important;
    color: #ff7597 !important;
    border-color: rgba(255, 83, 118, 0.4) !important;
}
html.theme-synthwave .menu-item.active {
    background: linear-gradient(90deg, rgba(255, 83, 118, 0.22) 0%, rgba(255, 83, 118, 0.03) 100%) !important;
    color: #ff7597 !important;
    border-color: rgba(255, 83, 118, 0.35) !important;
    box-shadow: 0 2px 12px rgba(255, 83, 118, 0.15) !important;
}
html.theme-synthwave .menu-item.active i {
    color: #ff5376 !important;
}
html.theme-synthwave .menu-item.active::before {
    background: #ff5376 !important;
    box-shadow: 0 0 8px #ff5376 !important;
}
html.theme-synthwave .menu-item:hover i,
html.theme-synthwave .menu-group-header:hover i:first-child {
    color: #ff7597 !important;
}
html.theme-synthwave .sidebar-user-avatar {
    background: rgba(255, 83, 118, 0.2) !important;
    border-color: rgba(255, 83, 118, 0.4) !important;
    color: #ff7597 !important;
}
html.theme-synthwave .brand-version-badge {
    background: rgba(255, 83, 118, 0.2) !important;
    color: #ff7597 !important;
    border-color: rgba(255, 83, 118, 0.4) !important;
}
html.theme-synthwave .header-server-picker {
    border-color: rgba(255, 83, 118, 0.35) !important;
}

/* --------------------------------------------------------------------------
   10. TOKYO NIGHT THEME (Shibuya Storm)
   -------------------------------------------------------------------------- */
html.theme-tokyo-night {
    --bg-main: #1a1b26;
    --bg-main-gradient: radial-gradient(ellipse at 50% 0%, #1f2335 0%, #16161e 100%);
    --bg-sidebar: #16161e;
    --bg-sidebar-hover: #1f2335;
    --bg-card: #1f2335;
    --bg-card-header: #1a1b26;
    --bg-slot: #13141c;
    --border-color: rgba(122, 162, 247, 0.3);
    --color-primary: #7aa2f7;
    --primary-rgb: 122, 162, 247;
    --color-primary-dark: #3d59a1;
    --color-xp: #bb9af7;
    --color-xp-glow: rgba(187, 154, 247, 0.4);
    --text-primary: #c0caf5;
    --text-secondary: #a9b1d6;
    --text-muted: #565f89;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
}
html.theme-tokyo-night .sidebar {
    background: #16161e !important;
    border-right: 1px solid rgba(122, 162, 247, 0.25) !important;
}
html.theme-tokyo-night .header {
    background: #16161e !important;
    border-bottom: 1px solid rgba(122, 162, 247, 0.25) !important;
}
html.theme-tokyo-night .panel-card,
html.theme-tokyo-night .hero-card,
html.theme-tokyo-night .settings-section-card,
html.theme-tokyo-night .metric-card,
html.theme-tokyo-night .chart-panel,
html.theme-tokyo-night .world-card,
html.theme-tokyo-night .backup-card,
html.theme-tokyo-night .schedule-card,
html.theme-tokyo-night .modal-content {
    background: #1f2335 !important;
    border: 1px solid rgba(122, 162, 247, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(122, 162, 247, 0.08) !important;
}
html.theme-tokyo-night .theme-card.active {
    border-color: #7aa2f7 !important;
    box-shadow: 0 0 20px rgba(122, 162, 247, 0.4) !important;
}
html.theme-tokyo-night .btn-primary {
    background: #7aa2f7 !important;
    color: #16161e !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(122, 162, 247, 0.45) !important;
}
html.theme-tokyo-night .sidebar-server-selector-box {
    background: #1f2335 !important;
    border-color: rgba(122, 162, 247, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
html.theme-tokyo-night .sidebar-server-label {
    color: #7aa2f7 !important;
}
html.theme-tokyo-night .sidebar-status-tag {
    background: rgba(122, 162, 247, 0.2) !important;
    color: #7aa2f7 !important;
    border-color: rgba(122, 162, 247, 0.4) !important;
}
html.theme-tokyo-night .menu-item.active {
    background: linear-gradient(90deg, rgba(122, 162, 247, 0.22) 0%, rgba(122, 162, 247, 0.03) 100%) !important;
    color: #7aa2f7 !important;
    border-color: rgba(122, 162, 247, 0.35) !important;
    box-shadow: 0 2px 12px rgba(122, 162, 247, 0.15) !important;
}
html.theme-tokyo-night .menu-item.active i {
    color: #bb9af7 !important;
}
html.theme-tokyo-night .menu-item.active::before {
    background: #bb9af7 !important;
    box-shadow: 0 0 8px #bb9af7 !important;
}
html.theme-tokyo-night .menu-item:hover i,
html.theme-tokyo-night .menu-group-header:hover i:first-child {
    color: #7aa2f7 !important;
}
html.theme-tokyo-night .sidebar-user-avatar {
    background: rgba(122, 162, 247, 0.2) !important;
    border-color: rgba(122, 162, 247, 0.4) !important;
    color: #7aa2f7 !important;
}
html.theme-tokyo-night .brand-version-badge {
    background: rgba(122, 162, 247, 0.2) !important;
    color: #7aa2f7 !important;
    border-color: rgba(122, 162, 247, 0.4) !important;
}
html.theme-tokyo-night .header-server-picker {
    border-color: rgba(122, 162, 247, 0.35) !important;
}

/* --------------------------------------------------------------------------
   11. OBSIDIAN GOLD THEME (Kraliyet Karbon & Altın)
   -------------------------------------------------------------------------- */
html.theme-obsidian-gold {
    --bg-main: #0c0d10;
    --bg-main-gradient: radial-gradient(ellipse at 50% 0%, #1c180e 0%, #0c0d10 100%);
    --bg-sidebar: #111216;
    --bg-sidebar-hover: #191b22;
    --bg-card: #16181f;
    --bg-card-header: #0f1015;
    --bg-slot: #090a0d;
    --border-color: rgba(245, 158, 11, 0.35);
    --color-primary: #f59e0b;
    --primary-rgb: 245, 158, 11;
    --color-primary-dark: #b45309;
    --color-xp: #ffd700;
    --color-xp-glow: rgba(255, 215, 0, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #fef3c7;
    --text-muted: #928b7e;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
}
html.theme-obsidian-gold .sidebar {
    background: #111216 !important;
    border-right: 1px solid rgba(245, 158, 11, 0.25) !important;
}
html.theme-obsidian-gold .header {
    background: #111216 !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25) !important;
}
html.theme-obsidian-gold .panel-card,
html.theme-obsidian-gold .hero-card,
html.theme-obsidian-gold .settings-section-card,
html.theme-obsidian-gold .metric-card,
html.theme-obsidian-gold .chart-panel,
html.theme-obsidian-gold .world-card,
html.theme-obsidian-gold .backup-card,
html.theme-obsidian-gold .schedule-card,
html.theme-obsidian-gold .modal-content {
    background: #16181f !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.08) !important;
}
html.theme-obsidian-gold .theme-card.active {
    border-color: #f59e0b !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4) !important;
}
html.theme-obsidian-gold .btn-primary {
    background: #f59e0b !important;
    color: #111216 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.45) !important;
}
html.theme-obsidian-gold .sidebar-server-selector-box {
    background: #16181f !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
html.theme-obsidian-gold .sidebar-server-label {
    color: #fbbf24 !important;
}
html.theme-obsidian-gold .sidebar-status-tag {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}
html.theme-obsidian-gold .menu-item.active {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.03) 100%) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.15) !important;
}
html.theme-obsidian-gold .menu-item.active i {
    color: #ffd700 !important;
}
html.theme-obsidian-gold .menu-item.active::before {
    background: #ffd700 !important;
    box-shadow: 0 0 8px #ffd700 !important;
}
html.theme-obsidian-gold .menu-item:hover i,
html.theme-obsidian-gold .menu-group-header:hover i:first-child {
    color: #fbbf24 !important;
}
html.theme-obsidian-gold .sidebar-user-avatar {
    background: rgba(245, 158, 11, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fbbf24 !important;
}
html.theme-obsidian-gold .brand-version-badge {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}
html.theme-obsidian-gold .header-server-picker {
    border-color: rgba(245, 158, 11, 0.35) !important;
}

/* --------------------------------------------------------------------------
   12. POLAR AURORA THEME (Kutup Işıkları Mint)
   -------------------------------------------------------------------------- */
html.theme-aurora {
    --bg-main: #070e14;
    --bg-main-gradient: radial-gradient(ellipse at 50% 0%, #0d2627 0%, #070e14 100%);
    --bg-sidebar: #0a141d;
    --bg-sidebar-hover: #10212e;
    --bg-card: #0f1c29;
    --bg-card-header: #081119;
    --bg-slot: #060b10;
    --border-color: rgba(45, 212, 191, 0.35);
    --color-primary: #2dd4bf;
    --primary-rgb: 45, 212, 191;
    --color-primary-dark: #0f766e;
    --color-xp: #34d399;
    --color-xp-glow: rgba(52, 211, 153, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #ccfbf1;
    --text-muted: #739f99;
    --text-shadow: none !important;
    --font-heading: 'Outfit', sans-serif;
}
html.theme-aurora .sidebar {
    background: #0a141d !important;
    border-right: 1px solid rgba(45, 212, 191, 0.25) !important;
}
html.theme-aurora .header {
    background: #0a141d !important;
    border-bottom: 1px solid rgba(45, 212, 191, 0.25) !important;
}
html.theme-aurora .panel-card,
html.theme-aurora .hero-card,
html.theme-aurora .settings-section-card,
html.theme-aurora .metric-card,
html.theme-aurora .chart-panel,
html.theme-aurora .world-card,
html.theme-aurora .backup-card,
html.theme-aurora .schedule-card,
html.theme-aurora .modal-content {
    background: #0f1c29 !important;
    border: 1px solid rgba(45, 212, 191, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(45, 212, 191, 0.08) !important;
}
html.theme-aurora .theme-card.active {
    border-color: #2dd4bf !important;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4) !important;
}
html.theme-aurora .btn-primary {
    background: #2dd4bf !important;
    color: #070e14 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.45) !important;
}
html.theme-aurora .sidebar-server-selector-box {
    background: #0f1c29 !important;
    border-color: rgba(45, 212, 191, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
html.theme-aurora .sidebar-server-label {
    color: #2dd4bf !important;
}
html.theme-aurora .sidebar-status-tag {
    background: rgba(45, 212, 191, 0.2) !important;
    color: #2dd4bf !important;
    border-color: rgba(45, 212, 191, 0.4) !important;
}
html.theme-aurora .menu-item.active {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.22) 0%, rgba(45, 212, 191, 0.03) 100%) !important;
    color: #2dd4bf !important;
    border-color: rgba(45, 212, 191, 0.35) !important;
    box-shadow: 0 2px 12px rgba(45, 212, 191, 0.15) !important;
}
html.theme-aurora .menu-item.active i {
    color: #34d399 !important;
}
html.theme-aurora .menu-item.active::before {
    background: #34d399 !important;
    box-shadow: 0 0 8px #34d399 !important;
}
html.theme-aurora .menu-item:hover i,
html.theme-aurora .menu-group-header:hover i:first-child {
    color: #2dd4bf !important;
}
html.theme-aurora .sidebar-user-avatar {
    background: rgba(45, 212, 191, 0.2) !important;
    border-color: rgba(45, 212, 191, 0.4) !important;
    color: #2dd4bf !important;
}
html.theme-aurora .brand-version-badge {
    background: rgba(45, 212, 191, 0.2) !important;
    color: #2dd4bf !important;
    border-color: rgba(45, 212, 191, 0.4) !important;
}
html.theme-aurora .header-server-picker {
    border-color: rgba(45, 212, 191, 0.35) !important;
}

/* --------------------------------------------------------------------------
   DISCORD-STYLE PERMISSION MANAGER & ONBOARDING MODAL STYLES
   -------------------------------------------------------------------------- */
.role-preset-btn.active {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: var(--color-primary, #38bdf8) !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3) !important;
}

.scope-server-chip {
    transition: all 0.2s ease;
}
.scope-server-chip:hover {
    border-color: var(--color-primary, #38bdf8) !important;
    transform: translateY(-1px);
}
.scope-server-chip.active {
    border-color: var(--color-primary, #38bdf8) !important;
    background: rgba(56, 189, 248, 0.1) !important;
}

.perm-category-box {
    transition: border-color 0.2s ease;
}
.perm-category-box:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.perm-item {
    transition: background-color 0.15s ease;
    border-radius: 6px;
    padding: 6px 8px !important;
}
.perm-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.badge-role.custom {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}
.badge-role.operator {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Onboarding Modal Styling */
#onboarding-modal.open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#onboarding-scroll-body::-webkit-scrollbar {
    width: 6px;
}
#onboarding-scroll-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
#onboarding-scroll-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}
#onboarding-scroll-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary, #38bdf8);
}

@keyframes pulseReady {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

#btn-onboarding-accept.pulse-ready {
    animation: pulseReady 2s infinite !important;
}






