/* ==========================================================================
   PAROX CLOUD — MINECRAFT GAME PANEL DESIGN SYSTEM
   Brand Tokens:
     Primary Background:   #000000
     Secondary Background: #0E1018
     Sidebar:              #0D0E15
     Card Surface:         #12131D
     Elevated Surface:     #171925
     Input Surface:        #10111A
     Borders:              #1a1a1a
     Primary Purple:       #fafafa
     Secondary Purple:     #a1a1aa
     Primary Text:         #fafafa
     Secondary Text:       #A1A1B3
     Success:              #10B981
     Warning:              #F59E0B
     Danger:               #EF4444
     Info:                 #38BDF8
   ========================================================================== */

:root {
    --pc-bg-primary: #000000;
    --pc-bg-secondary: #0E1018;
    --pc-sidebar-bg: #0D0E15;
    --pc-card-bg: #12131D;
    --pc-surface-elevated: #171925;
    --pc-input-bg: #10111A;
    --pc-border: #1a1a1a;
    --pc-border-subtle: #1C1E2B;
    --pc-border-hover: #333333;
    --pc-purple-primary: #fafafa;
    --pc-purple-secondary: #a1a1aa;
    --pc-purple-dim: rgba(255, 255, 255, 0.12);
    --pc-purple-border: rgba(255, 255, 255, 0.28);
    --pc-text-primary: #fafafa;
    --pc-text-secondary: #A1A1B3;
    --pc-text-muted: #6B6D82;
    --pc-success: #10B981;
    --pc-success-dim: rgba(16, 185, 129, 0.12);
    --pc-warning: #F59E0B;
    --pc-warning-dim: rgba(245, 158, 11, 0.12);
    --pc-danger: #EF4444;
    --pc-danger-dim: rgba(239, 68, 68, 0.12);
    --pc-info: #38BDF8;
    --pc-info-dim: rgba(56, 189, 248, 0.12);
    --pc-server-sidebar-width: 260px;
    --pc-radius-sm: 6px;
    --pc-radius-md: 10px;
    --pc-radius-lg: 14px;
    --pc-radius-xl: 18px;
    --pc-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pc-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Suppress unwanted seasonal effects inside Game Panel */
#pc-snow-canvas, .pc-snow-canvas, .pc-xmas-lights, .pc-xmas-hat, #pc-xmas-lights, .pc-snow-particle,
#pcDiwaliCanvas, .pc-diwali-canvas, .pc-diwali-lights-track, .pc-diwali-brand-diya, .pc-diwali-banner, .pc-diwali-layer {
    display: none !important;
    visibility: hidden !important;
}

/* --------------------------------------------------------------------------
   SHELL & CONTAINER ARCHITECTURE (UNIFIED DESIGN SYSTEM)
   -------------------------------------------------------------------------- */
.pc-game-panel-shell,
.pc-server-shell,
.pc-plugin-shell,
.pc-version-shell,
.pc-players-shell {
    display: flex;
    min-height: calc(100vh - 64px);
    background: var(--pc-bg-primary);
    position: relative;
    width: 100%;
    color: var(--pc-text-primary);
    font-family: var(--pc-font-sans);
}

.pc-game-panel-main,
.pc-server-main,
.pc-plugin-main,
.pc-version-main,
.pc-players-main-content {
    flex: 1;
    min-width: 0;
    padding: 24px 32px 56px;
    background: var(--pc-bg-primary);
    box-sizing: border-box;
}

.pc-page-container,
.pc-cmd-container,
.pc-plugin-inner,
.pc-version-inner,
.pc-players-container {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   UNIVERSAL PAGE HEADER COMPONENT
   -------------------------------------------------------------------------- */
.pc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pc-border);
    flex-wrap: wrap;
}

.pc-page-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pc-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pc-purple-secondary);
}

.pc-page-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pc-page-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--pc-text-primary);
    letter-spacing: -0.02em;
}

.pc-page-desc {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--pc-text-secondary);
    max-width: 720px;
}

.pc-page-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    align-self: flex-start;
}

/* Meta Context Strip */
.pc-page-meta-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.pc-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: var(--pc-radius-sm);
    background: var(--pc-card-bg);
    border: 1px solid var(--pc-border);
    font-size: 11px;
    font-weight: 600;
    color: var(--pc-text-secondary);
}

.pc-meta-chip strong {
    color: var(--pc-text-primary);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   LIVE STATUS BADGE
   -------------------------------------------------------------------------- */
.pc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pc-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   LIVE STATUS BADGES & SIDEBAR PILLS (10 DISTINCT PRODUCTION STATES)
   1. Online (Running)
   2. Offline (Stopped)
   3. Starting
   4. Stopping
   5. Restarting
   6. Installing (Provisioning)
   7. Suspended
   8. Connection Degraded
   9. Reconnecting
   10. Unknown
   -------------------------------------------------------------------------- */
.pc-status-badge,
.pc-sidebar-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-sidebar-status-pill {
    padding: 3px 9px;
    font-size: 11px;
    margin-top: 6px;
    width: max-content;
}

.pc-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 1. Online / Running */
.pc-status-badge.online,
.pc-status-badge.running,
.pc-sidebar-status-pill.online,
.pc-sidebar-status-pill.running {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34D399;
}
.pc-status-badge.online .pc-status-dot,
.pc-status-badge.running .pc-status-dot,
.pc-sidebar-status-pill.online .pc-status-dot,
.pc-sidebar-status-pill.running .pc-status-dot {
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

/* 2. Offline / Stopped */
.pc-status-badge.offline,
.pc-status-badge.stopped,
.pc-sidebar-status-pill.offline,
.pc-sidebar-status-pill.stopped {
    background: rgba(161, 161, 179, 0.10);
    border: 1px solid rgba(161, 161, 179, 0.22);
    color: #A1A1B3;
}
.pc-status-badge.offline .pc-status-dot,
.pc-status-badge.stopped .pc-status-dot,
.pc-sidebar-status-pill.offline .pc-status-dot,
.pc-sidebar-status-pill.stopped .pc-status-dot {
    background: #71717A;
}

/* 3. Starting */
.pc-status-badge.starting,
.pc-sidebar-status-pill.starting {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38BDF8;
}
.pc-status-badge.starting .pc-status-dot,
.pc-sidebar-status-pill.starting .pc-status-dot {
    background: #38BDF8;
    box-shadow: 0 0 8px #38BDF8;
    animation: pcPulseDot 1.2s infinite ease-in-out;
}

/* 4. Stopping */
.pc-status-badge.stopping,
.pc-sidebar-status-pill.stopping {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FBBF24;
}
.pc-status-badge.stopping .pc-status-dot,
.pc-sidebar-status-pill.stopping .pc-status-dot {
    background: #F59E0B;
    box-shadow: 0 0 8px #F59E0B;
    animation: pcPulseDot 1.2s infinite ease-in-out;
}

/* 5. Restarting */
.pc-status-badge.restarting,
.pc-sidebar-status-pill.restarting {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #C084FC;
}
.pc-status-badge.restarting .pc-status-dot,
.pc-sidebar-status-pill.restarting .pc-status-dot {
    background: #A855F7;
    box-shadow: 0 0 8px #A855F7;
    animation: pcPulseDot 1.1s infinite ease-in-out;
}

/* 6. Installing / Provisioning */
.pc-status-badge.installing,
.pc-status-badge.provisioning,
.pc-sidebar-status-pill.installing,
.pc-sidebar-status-pill.provisioning {
    background: rgba(20, 184, 166, 0.14);
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: #2DD4BF;
}
.pc-status-badge.installing .pc-status-dot,
.pc-status-badge.provisioning .pc-status-dot,
.pc-sidebar-status-pill.installing .pc-status-dot,
.pc-sidebar-status-pill.provisioning .pc-status-dot {
    background: #14B8A6;
    box-shadow: 0 0 8px #14B8A6;
    animation: pcPulseDot 1.4s infinite ease-in-out;
}

/* 7. Suspended / Crashed / Error */
.pc-status-badge.suspended,
.pc-status-badge.error,
.pc-status-badge.crashed,
.pc-sidebar-status-pill.suspended,
.pc-sidebar-status-pill.error,
.pc-sidebar-status-pill.crashed {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #F87171;
}
.pc-status-badge.suspended .pc-status-dot,
.pc-status-badge.error .pc-status-dot,
.pc-status-badge.crashed .pc-status-dot,
.pc-sidebar-status-pill.suspended .pc-status-dot,
.pc-sidebar-status-pill.error .pc-status-dot,
.pc-sidebar-status-pill.crashed .pc-status-dot {
    background: #EF4444;
    box-shadow: 0 0 8px #EF4444;
}

/* 8. Connection Degraded */
.pc-status-badge.degraded,
.pc-status-badge.connection-degraded,
.pc-sidebar-status-pill.degraded,
.pc-sidebar-status-pill.connection-degraded {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
    color: #FB923C;
}
.pc-status-badge.degraded .pc-status-dot,
.pc-status-badge.connection-degraded .pc-status-dot,
.pc-sidebar-status-pill.degraded .pc-status-dot,
.pc-sidebar-status-pill.connection-degraded .pc-status-dot {
    background: #F97316;
    box-shadow: 0 0 8px #F97316;
    animation: pcPulseDot 1.6s infinite ease-in-out;
}

/* 9. Reconnecting */
.pc-status-badge.reconnecting,
.pc-sidebar-status-pill.reconnecting {
    background: rgba(234, 179, 8, 0.14);
    border: 1px solid rgba(234, 179, 8, 0.38);
    color: #FACC15;
}
.pc-status-badge.reconnecting .pc-status-dot,
.pc-sidebar-status-pill.reconnecting .pc-status-dot {
    background: #EAB308;
    box-shadow: 0 0 8px #EAB308;
    animation: pcPulseDot 0.8s infinite ease-in-out;
}

/* 10. Unknown */
.pc-status-badge.unknown,
.pc-sidebar-status-pill.unknown {
    background: rgba(113, 113, 122, 0.12);
    border: 1px solid rgba(113, 113, 122, 0.25);
    color: #D4D4D8;
}
.pc-status-badge.unknown .pc-status-dot,
.pc-sidebar-status-pill.unknown .pc-status-dot {
    background: #A1A1AA;
}

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

/* --------------------------------------------------------------------------
   STAT / METRIC CARDS
   -------------------------------------------------------------------------- */
.pc-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    width: 100%;
}

.pc-stat-card {
    background: var(--pc-card-bg);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.pc-stat-card:hover {
    border-color: var(--pc-border-hover);
}

.pc-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pc-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pc-text-secondary);
}

.pc-stat-icon {
    width: 16px;
    height: 16px;
    color: var(--pc-purple-secondary);
    opacity: 0.85;
}

.pc-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--pc-text-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.pc-stat-sub {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--pc-text-muted);
}

.pc-stat-bar-track {
    width: 100%;
    height: 4px;
    background: var(--pc-input-bg);
    border-radius: 999px;
    overflow: hidden;
}

.pc-stat-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--pc-purple-primary);
    border-radius: 999px;
    transition: width 0.3s ease, background 0.2s ease;
}

/* --------------------------------------------------------------------------
   CARDS & PANELS
   -------------------------------------------------------------------------- */
.pc-card {
    background: var(--pc-card-bg);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.pc-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--pc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: rgba(14, 16, 24, 0.4);
}

.pc-card-header-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pc-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--pc-text-primary);
    letter-spacing: -0.01em;
}

.pc-card-desc {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--pc-text-secondary);
}

.pc-card-body {
    padding: 20px;
}

.pc-card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--pc-border);
    background: rgba(14, 16, 24, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   DATA TABLES
   -------------------------------------------------------------------------- */
.pc-table-wrap {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pc-border) transparent;
}

.pc-table-wrap::-webkit-scrollbar {
    height: 6px;
}
.pc-table-wrap::-webkit-scrollbar-thumb {
    background: var(--pc-border);
    border-radius: 999px;
}

.pc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.pc-table th {
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pc-text-secondary);
    background: var(--pc-bg-secondary);
    border-bottom: 1px solid var(--pc-border);
    white-space: nowrap;
}

.pc-table td {
    padding: 13px 18px;
    color: var(--pc-text-primary);
    border-bottom: 1px solid var(--pc-border-subtle);
    vertical-align: middle;
    transition: background 0.12s ease;
}

.pc-table tbody tr:hover td {
    background: rgba(23, 25, 37, 0.6);
}

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

/* --------------------------------------------------------------------------
   TOOLBARS & FILTERS
   -------------------------------------------------------------------------- */
.pc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--pc-card-bg);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-md);
    flex-wrap: wrap;
}

.pc-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 240px;
}

.pc-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pc-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 240px;
    max-width: 380px;
    flex: 1;
}

.pc-search-icon {
    position: absolute;
    left: 11px;
    width: 15px;
    height: 15px;
    color: var(--pc-text-muted);
    pointer-events: none;
}

.pc-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 34px;
    background: var(--pc-input-bg);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-sm);
    color: var(--pc-text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pc-search-input:focus {
    border-color: var(--pc-purple-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

/* Tabs & Filter Buttons */
.pc-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pc-tabs::-webkit-scrollbar {
    display: none;
}

.pc-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: var(--pc-radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--pc-text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pc-tab-btn:hover {
    color: var(--pc-text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.pc-tab-btn.active {
    background: var(--pc-purple-dim);
    border-color: var(--pc-purple-border);
    color: var(--pc-purple-secondary);
    font-weight: 700;
}

.pc-tab-badge {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    font-weight: 700;
}

.pc-tab-btn.active .pc-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--pc-radius-sm);
    border: 1px solid var(--pc-border);
    background: var(--pc-surface-elevated);
    color: var(--pc-text-primary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.pc-btn:hover {
    background: #1F2130;
    border-color: var(--pc-border-hover);
    color: #FFFFFF;
}

.pc-btn:active {
    transform: translateY(1px);
}

.pc-btn:disabled,
.pc-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.pc-btn-primary {
    background: var(--pc-purple-primary);
    border-color: var(--pc-purple-primary);
    color: #FFFFFF;
}

.pc-btn-primary:hover {
    background: #fafafa;
    border-color: #fafafa;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.pc-btn-secondary {
    background: var(--pc-surface-elevated);
    border-color: var(--pc-border);
    color: var(--pc-text-primary);
}

.pc-btn-danger {
    background: var(--pc-danger-dim);
    border-color: rgba(239, 68, 68, 0.3);
    color: #F87171;
}

.pc-btn-danger:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: var(--pc-danger);
    color: #FFFFFF;
}

.pc-btn-success {
    background: var(--pc-success-dim);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.pc-btn-success:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: var(--pc-success);
    color: #FFFFFF;
}

.pc-btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.pc-btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

/* --------------------------------------------------------------------------
   FORM CONTROLS
   -------------------------------------------------------------------------- */
.pc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.pc-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--pc-text-secondary);
    letter-spacing: 0.02em;
}

.pc-label-required::after {
    content: " *";
    color: var(--pc-danger);
}

.pc-input,
.pc-select,
.pc-textarea {
    width: 100%;
    padding: 9px 12px;
    background: var(--pc-input-bg);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-sm);
    color: var(--pc-text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pc-input:focus,
.pc-select:focus,
.pc-textarea:focus {
    border-color: var(--pc-purple-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.pc-select option {
    background: var(--pc-card-bg);
    color: var(--pc-text-primary);
}

.pc-textarea {
    min-height: 84px;
    resize: vertical;
}

.pc-hint {
    font-size: 11.5px;
    color: var(--pc-text-muted);
    line-height: 1.4;
}

/* Checkbox and Radios */
.pc-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pc-text-primary);
    cursor: pointer;
    user-select: none;
}

.pc-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--pc-purple-primary);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   EMPTY, ERROR & SKELETON STATES
   -------------------------------------------------------------------------- */
.pc-empty-state {
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--pc-text-secondary);
}

.pc-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--pc-radius-md);
    background: var(--pc-surface-elevated);
    border: 1px solid var(--pc-border);
    display: grid;
    place-items: center;
    color: var(--pc-purple-secondary);
    margin-bottom: 4px;
}

.pc-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pc-text-primary);
    margin: 0;
}

.pc-empty-desc {
    font-size: 13px;
    color: var(--pc-text-muted);
    max-width: 420px;
    margin: 0;
    line-height: 1.5;
}

/* Error Banner */
.pc-alert {
    padding: 14px 18px;
    border-radius: var(--pc-radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
}

.pc-alert-danger {
    background: var(--pc-danger-dim);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
}

.pc-alert-warning {
    background: var(--pc-warning-dim);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FCD34D;
}

.pc-alert-success {
    background: var(--pc-success-dim);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #86EFAC;
}

.pc-alert-info {
    background: var(--pc-info-dim);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #BAE6FD;
}

/* Skeleton Loading */
.pc-skeleton {
    background: linear-gradient(90deg, #171925 25%, #222538 50%, #171925 75%);
    background-size: 200% 100%;
    animation: pcShimmer 1.5s infinite;
    border-radius: var(--pc-radius-sm);
}

@keyframes pcShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   MODALS
   -------------------------------------------------------------------------- */
.pc-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(9, 9, 14, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pc-modal-backdrop.is-open {
    display: flex;
}

.pc-modal-card {
    background: var(--pc-card-bg);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    width: min(540px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: pcModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pcModalPop {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pc-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--pc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pc-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--pc-text-primary);
}

.pc-modal-close-btn {
    background: transparent;
    border: none;
    color: var(--pc-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--pc-radius-sm);
    display: grid;
    place-items: center;
    transition: color 0.15s ease;
}

.pc-modal-close-btn:hover {
    color: var(--pc-text-primary);
}

.pc-modal-body {
    padding: 22px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--pc-text-secondary);
}

.pc-modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--pc-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(14, 16, 24, 0.4);
}

/* --------------------------------------------------------------------------
   GLOBAL TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
#pc-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.pc-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: var(--pc-radius-md);
    background: var(--pc-surface-elevated);
    border: 1px solid var(--pc-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    color: var(--pc-text-primary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pcToastSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.pc-toast.success {
    border-color: rgba(16, 185, 129, 0.4);
}
.pc-toast.success::before {
    content: "✓";
    color: var(--pc-success);
    font-weight: 800;
}

.pc-toast.error {
    border-color: rgba(239, 68, 68, 0.4);
}
.pc-toast.error::before {
    content: "✕";
    color: var(--pc-danger);
    font-weight: 800;
}

.pc-toast.info {
    border-color: rgba(56, 189, 248, 0.4);
}
.pc-toast.info::before {
    content: "ℹ";
    color: var(--pc-info);
    font-weight: 800;
}

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

/* --------------------------------------------------------------------------
   RESPONSIVE OVERRIDES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .pc-game-panel-main {
        padding: 22px 20px 48px;
    }
    .pc-page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .pc-page-header-right {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .pc-game-panel-main {
        padding: 16px 14px 40px;
    }
    .pc-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .pc-toolbar-left,
    .pc-toolbar-right {
        width: 100%;
        min-width: 100%;
    }
    .pc-search-wrap {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .pc-stat-grid {
        grid-template-columns: 1fr;
    }
}
