:root {
    --bg-main: #080c16;
    --bg-card: rgba(16, 23, 42, 0.75);
    --bg-card-hover: rgba(22, 33, 62, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.25);
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-cyan: #06b6d4;

    --term-bg: #060911;
    --term-text: #e2e8f0;
    --term-border: rgba(255, 255, 255, 0.06);

    --font-ui: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
}

/* Glass Card Component */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* App Layout */
.app-layout {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

/* Top Nav */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-brand .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-cube {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.tag-version {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.brand-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.nav-status-pills {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-online {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}
.status-online .dot {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite;
}

.status-offline {
    color: #f87171;
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.1);
}
.status-offline .dot {
    background: #f43f5e;
}

.status-loading .dot {
    background: #f59e0b;
    animation: pulseGlow 1s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.metric-pill {
    color: var(--text-secondary);
}
.metric-icon {
    font-size: 0.9rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Metrics Ribbon */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.metric-card {
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, border-color 0.2s;
}

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

.metric-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.metric-badge-ok {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-family: var(--font-mono);
}

.metric-badge-info {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
}

.metric-badge-neutral {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-secondary);
}

.metric-badge-success {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-weight: 600;
}

.metric-value-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.metric-big {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.metric-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.progress-bar-bg {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progress-cpu {
    background: linear-gradient(90deg, #10b981, #06b6d4);
}

/* Workspace Grid */
.console-workspace {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.25rem;
    flex: 1;
    min-height: 580px;
}

@media (max-width: 1024px) {
    .console-workspace {
        grid-template-columns: 1fr;
    }
}

/* Terminal Container */
.terminal-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--term-bg);
    border-color: var(--term-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.terminal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.75);
    border-bottom: 1px solid var(--term-border);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.t-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.t-red { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green { background: #10b981; }

.terminal-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.stream-badge {
    font-size: 0.7rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.stream-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-select, .terminal-search {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-family: var(--font-ui);
    outline: none;
    transition: border-color 0.2s;
}

.terminal-search {
    width: 140px;
    font-family: var(--font-mono);
}

.terminal-select:focus, .terminal-search:focus {
    border-color: var(--accent-indigo);
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.55;
    background: var(--term-bg);
    color: var(--term-text);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 380px;
    max-height: 580px;
    user-select: text;
}

/* Custom Scrollbar for Terminal */
.terminal-body::-webkit-scrollbar {
    width: 8px;
}
.terminal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.log-entry {
    white-space: pre-wrap;
    word-break: break-all;
    padding: 1px 4px;
    border-radius: 3px;
    transition: background 0.1s;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.03);
}

.log-time {
    color: #475569;
    margin-right: 0.4rem;
}

.log-prefix-info { color: #38bdf8; font-weight: 500; }
.log-prefix-warn { color: #fbbf24; font-weight: 600; background: rgba(245, 158, 11, 0.1); border-radius: 3px; padding: 0 4px; }
.log-prefix-error { color: #f87171; font-weight: 600; background: rgba(239, 68, 68, 0.15); border-radius: 3px; padding: 0 4px; }
.log-chat {
    color: #f1f5f9;
    background: rgba(99, 102, 241, 0.08);
    border-left: 3px solid #6366f1;
    padding-left: 6px;
    margin: 2px 0;
}
.log-chat .player-nick {
    color: #a78bfa;
    font-weight: 600;
}
.log-player-join {
    color: #34d399;
    font-weight: 500;
}
.log-player-leave {
    color: #fb7185;
}
.log-death {
    color: #f43f5e;
    font-style: italic;
}
.log-system {
    color: #94a3b8;
    font-style: italic;
}

/* Command Bar */
.command-bar {
    display: flex;
    align-items: center;
    background: #090e1a;
    border-top: 1px solid var(--term-border);
    padding: 0.65rem 0.85rem;
    gap: 0.65rem;
}

.command-prompt {
    font-family: var(--font-mono);
    color: var(--accent-indigo);
    font-size: 1.1rem;
    font-weight: 700;
    user-select: none;
}

.command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    outline: none;
}

.command-input::placeholder {
    color: #475569;
}

.btn-send {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.send-icon {
    font-size: 0.95rem;
    line-height: 1;
}

/* Suggested Chips */
.suggested-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: rgba(10, 15, 28, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    overflow-x: auto;
}

.chips-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.chip:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.3);
}

/* Side Controls */
.side-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.side-card {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.65rem;
}

.side-card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-refresh {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    transition: color 0.2s, transform 0.2s;
}

.btn-refresh:hover {
    color: var(--text-primary);
    transform: rotate(180deg);
}

.badge-hint {
    font-size: 0.7rem;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-weight: 600;
}

/* Players List */
.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
}

.empty-players {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.empty-players span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.4rem;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: border-color 0.2s, background 0.2s;
}

.player-item:hover {
    background: rgba(22, 33, 62, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

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

.player-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #f1f5f9;
}

/* Action Categories */
.action-category {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.btn-action {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.15s ease;
}

.btn-action:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.act-icon {
    font-size: 1rem;
}

.broadcast-row {
    display: flex;
    gap: 0.4rem;
}

.broadcast-row input {
    flex: 1;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    outline: none;
}

.broadcast-row input:focus {
    border-color: var(--accent-indigo);
}

.danger-zone {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(244, 63, 94, 0.25);
}

.danger-title {
    color: #f87171;
}

/* Buttons System */
.btn {
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #fff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}
.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

.btn-danger-outline {
    background: rgba(244, 63, 94, 0.1);
    color: #f87171;
    border: 1px solid rgba(244, 63, 94, 0.25);
}
.btn-danger-outline:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
}
.btn-icon:hover, .btn-icon.btn-active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.35);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

#player-modal {
    z-index: 1000;
}

#tp-modal {
    z-index: 1100 !important;
}

#confirm-modal {
    z-index: 1200 !important;
}

.btn-clicked {
    animation: btn-action-pulse 0.35s ease-out;
}

@keyframes btn-action-pulse {
    0% { transform: scale(0.96); }
    50% { transform: scale(1.05); filter: brightness(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-header {
    text-align: center;
}

.login-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.5));
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

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

.input-group input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.error-badge {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #f87171;
    font-size: 0.82rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    text-align: center;
}

.login-footer {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.back-link {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.15s;
}
.back-link:hover {
    color: var(--text-primary);
}

/* Modal Card */
.modal-card {
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.modal-avatar {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    image-rendering: pixelated;
    background: #1e293b;
}

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

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

.btn-close {
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

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

.modal-section-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.75rem 0 0.4rem;
}

.gamemode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.punish-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Confirm Card */
.confirm-card {
    max-width: 400px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2000;
    transition: opacity 0.3s, transform 0.3s;
}

.toast.toast-success {
    border-left: 4px solid var(--accent-emerald);
    color: #34d399;
}
.toast.toast-error {
    border-left: 4px solid var(--accent-rose);
    color: #f87171;
}
.toast.toast-info {
    border-left: 4px solid var(--accent-indigo);
    color: #a5b4fc;
}

.hidden {
    display: none !important;
}

/* Autocomplete Popover (Minecraft Style) */
.command-input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.autocomplete-box {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.7);
    z-index: 100;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpFade 0.15s ease-out;
}

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

.autocomplete-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.85rem;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
}

.auto-title {
    font-weight: 700;
    color: #a5b4fc;
}

.auto-hint {
    color: var(--text-muted);
}
.auto-hint b {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.autocomplete-list {
    overflow-y: auto;
    max-height: 270px;
    display: flex;
    flex-direction: column;
}

.autocomplete-list::-webkit-scrollbar {
    width: 6px;
}
.autocomplete-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.auto-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.12s, border-color 0.12s;
    user-select: none;
}

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

.auto-item:hover, .auto-item.active {
    background: rgba(99, 102, 241, 0.22);
}

.auto-item.active {
    border-left: 3px solid #818cf8;
}

.auto-icon {
    font-size: 1.15rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    flex-shrink: 0;
}

.auto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.auto-syntax-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auto-syntax {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auto-syntax .arg-highlight {
    color: #67e8f9;
}

.auto-cat-badge {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    font-weight: 500;
    margin-left: auto;
}

.auto-desc {
    font-size: 0.74rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Enhanced Player Modal Styling */
.modal-player-advanced {
    max-width: 540px;
    max-height: 88vh;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.modal-body.custom-scroll {
    overflow-y: auto;
    padding-right: 0.5rem;
    max-height: calc(88vh - 90px);
}

.modal-body.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.modal-body.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.powers-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.btn-super-heal {
    background: linear-gradient(135deg, #e11d48, #ec4899);
    color: #fff;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    text-align: left;
}
.btn-super-heal:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
    transform: translateY(-1px);
}

.btn-icon-emoji {
    font-size: 1.4rem;
}

.btn-text-main {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
}

.btn-text-sub {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: 400;
}

.powers-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
    .powers-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
    .powers-grid {
        grid-template-columns: 1fr;
    }
}

.btn-action-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    transition: all 0.15s ease;
    text-align: left;
}

.btn-action-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}

.card-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.card-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-op {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
}

.badge-user {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

/* Troll & Prank Section Styles */
.troll-title {
    color: #e879f9 !important;
    text-shadow: 0 0 10px rgba(232, 121, 249, 0.35);
}

.btn-troll-card {
    background: rgba(28, 18, 48, 0.7);
    border: 1px solid rgba(192, 132, 252, 0.22);
    color: #f5d0fe;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    transition: all 0.15s ease;
    text-align: left;
    cursor: pointer;
}

.btn-troll-card:hover {
    background: rgba(88, 28, 135, 0.65);
    border-color: rgba(232, 121, 249, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

