        :root {
            --mrs-cyan: #00D9FF;
            --mrs-cyan2: #22E4FF;
            --mrs-purple: #5B4BFF;
            --mrs-green: #3CFF7A;
            --mrs-red: #FF4D4D;
            --mrs-yellow: #FFD84D;
        }

        .server-list-wrapper {
            padding: 0 8% 100px;
        }

        /* ===== Stats ===== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 18px;
            margin-bottom: 40px;
        }

        .stat-card {
            position: relative;
            display: flex;
            align-items: center;
            gap: 14px;
            background: rgba(255,255,255,.04);
            border: 1px solid rgba(255,255,255,.08);
            backdrop-filter: blur(15px);
            border-radius: 16px;
            padding: 20px;
            transition: .3s;
            overflow: hidden;
        }

        .stat-card:hover {
            border-color: var(--mrs-cyan);
            transform: translateY(-4px);
            box-shadow: 0 15px 40px rgba(0,217,255,.15);
        }

        .stat-icon {
            flex-shrink: 0;
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,217,255,.1);
            color: var(--mrs-cyan);
        }

        .stat-icon svg { width: 20px; height: 20px; }

        .stat-body { display: flex; flex-direction: column; min-width: 0; }

        .stat-number {
            font-size: 30px;
            font-weight: 900;
            color: var(--mrs-cyan);
            font-family: 'Lalezar', sans-serif;
            line-height: 1.2;
        }

        .stat-label {
            font-size: 12.5px;
            opacity: .7;
            margin-top: 2px;
        }

        /* ===== Search and filter ===== */
        .filter-bar {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.2rem;
            flex-wrap: wrap;
        }

        .search-box { flex: 1; min-width: 200px; position: relative; }

        .search-box input {
            width: 100%;
            background: rgba(255,255,255,.05);
            border: 1px solid rgba(255,255,255,.08);
            color: white;
            padding: 12px 16px;
            border-radius: 50px;
            font-family: inherit;
            font-size: 14px;
            transition: all .3s;
            padding-right: 40px;
        }

        .search-box input:focus {
            border-color: var(--mrs-cyan);
            box-shadow: 0 0 25px rgba(0,217,255,.15);
            outline: none;
        }

        .search-box svg {
            position: absolute;
            right: 14px;
            top: 50%;
            transform: translateY(-50%);
            opacity: .5;
            width: 16px;
            height: 16px;
        }

        .filter-buttons {
            display: flex;
            gap: 6px;
            background: rgba(255,255,255,.05);
            padding: 4px;
            border-radius: 50px;
            border: 1px solid rgba(255,255,255,.08);
        }

        .filter-btn {
            background: transparent;
            border: none;
            color: rgba(255,255,255,.6);
            padding: 8px 18px;
            border-radius: 40px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all .3s;
            font-family: inherit;
        }

        .filter-btn:hover { color: white; }

        .filter-btn.active {
            background: var(--mrs-cyan);
            color: #081018;
            box-shadow: 0 0 25px rgba(0,217,255,.3);
        }

        .filter-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 4px;
        }

        .filter-dot.online { background: var(--mrs-green); }
        .filter-dot.offline { background: var(--mrs-red); }

        /* ===== Action buttons and timer ===== */
        .section-actions {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 26px;
            flex-wrap: wrap;
        }

        /* ===== Add server button ===== */
        .btn-add-server-header {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 24px;
            background: rgba(0,217,255,.1);
            border: 1px solid rgba(0,217,255,.2);
            color: var(--mrs-cyan);
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all .3s;
            font-family: inherit;
        }

        .btn-add-server-header:hover {
            background: var(--mrs-cyan);
            color: #081018;
            box-shadow: 0 0 25px rgba(0,217,255,.3);
        }

        /* ===== Auto refresh timer ===== */
        .auto-refresh-timer {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 18px;
            background: rgba(255,255,255,.05);
            border: 1px solid rgba(255,255,255,.08);
            border-radius: 50px;
            font-size: 14px;
            color: rgba(255,255,255,.7);
            font-family: inherit;
            backdrop-filter: blur(8px);
            transition: all .3s;
        }

        .auto-refresh-timer svg {
            width: 16px;
            height: 16px;
            stroke: var(--mrs-cyan);
            flex-shrink: 0;
        }

        .auto-refresh-timer .countdown {
            color: var(--mrs-cyan);
            font-weight: 700;
            font-family: 'Lalezar', sans-serif;
            margin: 0 2px;
        }

        /* Error mode: warning colors */
        .auto-refresh-timer.error-mode {
            border-color: rgba(255,77,77,0.4);
            background: rgba(255,77,77,0.1);
            color: #FF4D4D;
        }

        .auto-refresh-timer.error-mode svg {
            stroke: #FF4D4D;
        }

        .auto-refresh-timer.error-mode .countdown {
            color: #FF4D4D;
        }

        /* ===== Server node grid ===== */
        .node-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .server-node {
            position: relative;
            background: rgba(255,255,255,.03);
            border: 1px solid rgba(255,255,255,.08);
            border-radius: 20px;
            padding: 20px;
            backdrop-filter: blur(10px);
            transition: all .35s ease;
            animation: nodeIn .4s ease both;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        @keyframes nodeIn {
            from { opacity: 0; transform: translateY(14px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .server-node:hover {
            border-color: rgba(0,217,255,.35);
            box-shadow: 0 15px 45px rgba(0,217,255,.12);
            transform: translateY(-4px);
        }

        .server-node.is-offline { opacity: .55; }

        .node-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
        }

        .node-title-wrap { min-width: 0; flex: 1; }

        .node-index {
            font-family: 'Lalezar', sans-serif;
            font-size: 12px;
            color: rgba(255,255,255,.3);
            display: block;
            margin-bottom: 2px;
        }

        .node-name {
            font-weight: 700;
            color: white;
            font-size: 15px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            direction: ltr;
            unicode-bidi: bidi-override;
            text-align: left;
        }

        .node-map {
            font-size: 12px;
            color: rgba(255,255,255,.5);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 2px;
            direction: ltr;
            unicode-bidi: bidi-override;
            text-align: left;
        }

        /* Class for text that may contain Persian and should display correctly */
        .persian-text {
            direction: ltr;
            unicode-bidi: bidi-override;
            text-align: left;
        }

        .modal-title-text {
            direction: ltr;
            unicode-bidi: bidi-override;
        }

        .value-name {
            direction: ltr;
            unicode-bidi: bidi-override;
            text-align: left;
        }

        .status-chip {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }

        .status-chip.online { background: rgba(60,255,122,.15); color: var(--mrs-green); }
        .status-chip.offline { background: rgba(255,77,77,.15); color: var(--mrs-red); }

        .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; position: relative; }

        .status-chip.online .status-dot::after {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            border: 1px solid currentColor;
            animation: pingRing 1.8s ease-out infinite;
        }

        @keyframes pingRing {
            0% { transform: scale(.6); opacity: .8; }
            100% { transform: scale(2.2); opacity: 0; }
        }

        .node-body {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .gauge-wrap {
            position: relative;
            width: 78px;
            height: 78px;
            flex-shrink: 0;
        }

        .gauge-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }

        .gauge-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 8; }

        .gauge-fill {
            fill: none;
            stroke-width: 8;
            stroke-linecap: round;
            transition: stroke-dasharray .6s ease;
        }

        .gauge-center {
            position: absolute;
            inset: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .gauge-value {
            font-family: 'Lalezar', sans-serif;
            font-size: 18px;
            color: white;
            line-height: 1;
        }

        .gauge-max {
            font-size: 10px;
            color: rgba(255,255,255,.4);
            margin-top: 1px;
        }

        .node-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

        .node-meta-row {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 11.5px;
            color: rgba(255,255,255,.45);
            direction: ltr;
        }

        .node-meta-row svg { width: 13px; height: 13px; flex-shrink: 0; }

        .os-icon {
            width: 15px;
            height: 15px;
            object-fit: contain;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .os-icon-empty {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 15px;
            height: 15px;
            border-radius: 4px;
            background: rgba(255,255,255,.08);
            flex-shrink: 0;
        }

        .ip-wrapper {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .ip-address {
            flex: 1;
            direction: ltr;
            text-align: left;
            font-family: 'Courier New', monospace;
            font-size: 12.5px;
            background: rgba(0,0,0,.3);
            padding: 6px 10px;
            border-radius: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: rgba(255,255,255,.8);
        }

        .btn-ip {
            flex-shrink: 0;
            background: rgba(0,217,255,.15);
            border: 1px solid rgba(0,217,255,.3);
            color: var(--mrs-cyan);
            padding: 6px 9px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            transition: all .3s;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-family: inherit;
        }

        .btn-ip:hover { background: var(--mrs-cyan); color: #081018; transform: scale(1.05); }

        .btn-ip.copied { background: var(--mrs-green); border-color: var(--mrs-green); color: #081018; }

        .btn-connect {
            flex-shrink: 0;
            background: transparent;
            border: 1px solid var(--mrs-green);
            color: var(--mrs-green);
            padding: 6px 9px;
            border-radius: 8px;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            transition: all .3s;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-family: inherit;
        }

        .btn-connect:hover { background: var(--mrs-green); color: #081018; }

        .btn-connect:disabled,
        .btn-ip:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }

        .node-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            border-top: 1px dashed rgba(255,255,255,.1);
            padding-top: 12px;
        }

        .node-update { font-size: 11px; color: rgba(255,255,255,.35); }

        .btn-details {
            background: transparent;
            border: 1px solid rgba(255,255,255,.12);
            color: rgba(255,255,255,.7);
            padding: 6px 14px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all .3s;
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .btn-details:hover {
            border-color: var(--mrs-cyan);
            color: var(--mrs-cyan);
            background: rgba(0,217,255,.1);
        }

        .empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 60px 20px;
            color: rgba(255,255,255,.35);
            font-size: 15px;
        }

        /* ===== Add server modal ===== */
        .modal-add-server .modal { max-width: 600px; }

        .modal-add-server .add-field { margin-bottom: 16px; }

        .modal-add-server .add-field label {
            display: block;
            margin-bottom: 6px;
            font-size: 13px;
            opacity: .75;
        }

        .modal-add-server .add-field input {
            width: 100%;
            background: rgba(255,255,255,.06);
            border: 1px solid rgba(255,255,255,.12);
            color: white;
            padding: 12px 16px;
            border-radius: 12px;
            font-family: inherit;
            font-size: 14px;
            transition: all .3s;
        }

        .modal-add-server .add-field input:focus {
            outline: none;
            border-color: var(--mrs-cyan);
            box-shadow: 0 0 20px rgba(0,217,255,.15);
        }

        .modal-add-server .add-field input[dir="ltr"] { direction: ltr; }

        .modal-add-server .btn-add-server {
            padding: 12px 32px;
            background: var(--mrs-cyan);
            color: #081018;
            border: none;
            border-radius: 12px;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: .3s;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: inherit;
            width: 100%;
            justify-content: center;
        }

        .modal-add-server .btn-add-server:hover { box-shadow: 0 0 25px rgba(0,217,255,.35); transform: translateY(-2px); }
        .modal-add-server .btn-add-server:disabled { opacity: .6; cursor: not-allowed; transform: none; }

        .modal-add-server .add-server-hint {
            margin-top: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: rgba(245,158,11,.08);
            border: 1px solid rgba(245,158,11,.2);
            border-radius: 12px;
            font-size: 13px;
            color: #f59e0b;
        }

        .modal-add-server .add-result {
            margin-top: 16px;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 500;
            display: none;
        }

        /* ===== Details modal ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.7);
            backdrop-filter: blur(6px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay.active { display: flex; }

        .modal {
            background: rgba(10,16,30,.95);
            border: 1px solid rgba(255,255,255,.1);
            border-radius: 24px;
            max-width: 800px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            padding: 30px;
            backdrop-filter: blur(20px);
            box-shadow: 0 0 60px rgba(0,217,255,.15);
            animation: modalIn .3s ease;
        }

        @keyframes modalIn {
            from { opacity: 0; transform: scale(.95) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,.08);
            padding-bottom: 15px;
            margin-bottom: 20px;
        }

        .modal-header h3 {
            font-size: 22px;
            font-weight: 700;
            color: white;
            unicode-bidi: plaintext;
        }

        .modal-close {
            background: transparent;
            border: none;
            color: rgba(255,255,255,.5);
            cursor: pointer;
            transition: .3s;
        }

        .modal-close:hover { color: var(--mrs-red); transform: rotate(90deg); }

        .modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

        .modal-info-card {
            background: rgba(255,255,255,.03);
            border: 1px solid rgba(255,255,255,.06);
            border-radius: 16px;
            padding: 16px;
        }

        .modal-info-card.full-width { grid-column: 1 / -1; }

        .modal-info-card h4 {
            font-size: 14px;
            color: var(--mrs-cyan);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid rgba(255,255,255,.06);
            padding-bottom: 8px;
        }

        .modal-info-row {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 14px;
            border-bottom: 1px solid rgba(255,255,255,.04);
        }

        .modal-info-row:last-child { border-bottom: none; }
        .modal-info-row .label { color: rgba(255,255,255,.5); }
        .modal-info-row .value { font-weight: 500; direction: ltr; text-align: left; }

        .modal-players-table { width: 100%; border-collapse: collapse; font-size: 13px; }

        .modal-players-table th {
            text-align: right;
            color: rgba(255,255,255,.4);
            font-weight: 500;
            padding: 8px 4px;
            border-bottom: 1px solid rgba(255,255,255,.06);
        }

        .modal-players-table td { padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.04); }
        .modal-players-table .player-name { direction: rtl; text-align: right; unicode-bidi: plaintext; }
        .modal-players-table .score { color: var(--mrs-cyan); font-weight: 600; text-align: center; }
        .modal-players-table .time { color: rgba(255,255,255,.4); font-family: monospace; direction: ltr; text-align: left; }

        .modal-empty { padding: 20px; text-align: center; color: rgba(255,255,255,.3); }

        .modal-chart-section {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .chart-card {
            background: rgba(255,255,255,.03);
            border: 1px solid rgba(255,255,255,.06);
            border-radius: 16px;
            padding: 16px;
        }

        .chart-card h4 { font-size: 13px; color: var(--mrs-cyan); margin-bottom: 12px; }

        .chart-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

        .chart-bar-label {
            font-size: 12px;
            color: rgba(255,255,255,.6);
            min-width: 60px;
            max-width: 80px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            direction: rtl;
            text-align: right;
            unicode-bidi: plaintext;
        }

        .chart-bar-track { flex: 1; height: 16px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
        .chart-bar-fill { height: 100%; border-radius: 4px; transition: width .6s; }
        .chart-bar-value { font-size: 11px; color: rgba(255,255,255,.5); min-width: 40px; text-align: right; }
        .chart-empty { text-align: center; padding: 20px; color: rgba(255,255,255,.3); font-size: 13px; }

        /* ===== Light mode ===== */
        html[data-theme="light"] .stat-card,
        html[data-theme="light"] .server-node,
        html[data-theme="light"] .modal {
            background: rgba(255,255,255,.7);
            border-color: rgba(11,21,36,.1);
        }
        html[data-theme="light"] .stat-icon { background: rgba(0,122,158,.1); color: #007A9E; }
        html[data-theme="light"] .stat-number { color: #007A9E; }
        html[data-theme="light"] .node-name,
        html[data-theme="light"] .modal-header h3 { color: #0B1524; }
        html[data-theme="light"] .node-map,
        html[data-theme="light"] .node-meta-row,
        html[data-theme="light"] .node-update,
        html[data-theme="light"] .modal-info-row .label,
        html[data-theme="light"] .modal-players-table th { color: rgba(11,21,36,.55); }
        html[data-theme="light"] .ip-address { background: rgba(11,21,36,.05); color: #0B1524; }
        html[data-theme="light"] .search-box input {
            background: rgba(255,255,255,.6);
            border-color: rgba(11,21,36,.1);
            color: #0B1524;
        }
        html[data-theme="light"] .filter-buttons { background: rgba(11,21,36,.05); border-color: rgba(11,21,36,.1); }
        html[data-theme="light"] .filter-btn { color: rgba(11,21,36,.6); }
        html[data-theme="light"] .filter-btn:hover { color: #0B1524; }
        html[data-theme="light"] .filter-btn.active { background: #007A9E; color: white; }
        html[data-theme="light"] .btn-details { color: rgba(11,21,36,.7); border-color: rgba(11,21,36,.1); }
        html[data-theme="light"] .btn-details:hover { border-color: #007A9E; color: #007A9E; }
        html[data-theme="light"] .modal-add-server .add-field input {
            background: rgba(255,255,255,.6);
            border-color: rgba(11,21,36,.15);
            color: #0B1524;
        }

        /* Light mode add server button fix */
        html[data-theme="light"] .btn-add-server-header {
            background: rgba(0,122,158,0.1);
            border-color: rgba(0,122,158,0.2);
            color: #0B1524;
        }
        html[data-theme="light"] .btn-add-server-header:hover {
            background: #007A9E;
            color: #0B1524;
            box-shadow: 0 0 25px rgba(0,122,158,0.3);
        }

        html[data-theme="light"] .modal-info-card { background: rgba(255,255,255,.6); border-color: rgba(11,21,36,.1); }
        html[data-theme="light"] .modal-info-row { border-color: rgba(11,21,36,.06); }
        html[data-theme="light"] .modal-players-table td { border-color: rgba(11,21,36,.06); }
        html[data-theme="light"] .chart-card { background: rgba(255,255,255,.6); border-color: rgba(11,21,36,.1); }
        html[data-theme="light"] .gauge-track { stroke: rgba(11,21,36,.08); }

        /* Light mode server index fix */
        html[data-theme="light"] .node-index {
            color: #0B1524 !important;
        }

        /* Light mode gauge numbers fix */
        html[data-theme="light"] .gauge-value {
            color: #0B1524 !important;
        }
        html[data-theme="light"] .gauge-max {
            color: rgba(11,21,36,0.6) !important;
        }

        /* ===== Custom copy toast ===== */
        .toast-copy {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: rgba(0,0,0,.85);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(60,255,122,.4);
            color: white;
            padding: 14px 28px;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 40px rgba(60,255,122,.2);
            z-index: 99999;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
            opacity: 0;
            pointer-events: none;
            max-width: 90vw;
        }

        .toast-copy.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

        .toast-copy svg {
            width: 24px;
            height: 24px;
            stroke: #3CFF7A;
            flex-shrink: 0;
        }

        html[data-theme="light"] .toast-copy {
            background: rgba(255,255,255,.9);
            border-color: rgba(0,122,158,.4);
            color: #0B1524;
            box-shadow: 0 10px 40px rgba(0,122,158,.15);
        }
        html[data-theme="light"] .toast-copy svg { stroke: #007A9E; }

        /* ===== Responsive ===== */
        @media (max-width: 900px) {
            .modal-body { grid-template-columns: 1fr; }
            .modal-chart-section { grid-template-columns: 1fr; }
        }

        @media (max-width: 600px) {
            .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
            .stat-card { padding: 14px; }
            .stat-number { font-size: 24px; }
            .filter-bar { flex-direction: column; align-items: stretch; }
            .search-box { min-width: unset; }
            .filter-buttons { justify-content: center; }
            .btn-add-server-header { width: 100%; justify-content: center; }
            .auto-refresh-timer { width: 100%; justify-content: center; }
            .node-grid { grid-template-columns: 1fr; }
            .modal { padding: 16px; max-height: 90vh; }
            .toast-copy {
                font-size: 14px;
                padding: 12px 20px;
                bottom: 20px;
                text-align: center;
            }
            .modal-add-server .modal { max-width: 100%; }
        }

        /* ===== Mobile responsive fixes ===== */
        @media (max-width: 600px) {
            .server-list-wrapper {
                padding: 0 4% 60px;
            }
            .node-grid {
                grid-template-columns: 1fr !important;
                gap: 14px;
            }
            .server-node {
                padding: 14px;
                width: 100%;
                box-sizing: border-box;
                overflow: hidden;
            }
            .node-name {
                direction: ltr;
                unicode-bidi: bidi-override;
                text-align: left;
            }
            .node-map {
                direction: ltr;
                unicode-bidi: bidi-override;
                text-align: left;
            }
            .ip-address {
                font-size: 11px;
                padding: 4px 8px;
                max-width: 120px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                flex: 0 1 auto;
            }
            .ip-wrapper {
                flex-wrap: wrap;
                gap: 4px;
            }
            .btn-ip, .btn-connect {
                padding: 4px 6px;
                font-size: 10px;
                flex-shrink: 0;
            }
            .gauge-wrap {
                width: 56px;
                height: 56px;
                flex-shrink: 0;
            }
            .gauge-value {
                font-size: 15px;
            }
            .gauge-max {
                font-size: 9px;
            }
            .node-body {
                gap: 10px;
                flex-wrap: wrap;
            }
            .node-details {
                flex: 1;
                min-width: 0;
            }
            .node-footer {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }
            .btn-details {
                width: 100%;
                justify-content: center;
            }
            .node-update {
                text-align: center;
            }
            .status-chip {
                font-size: 10px;
                padding: 2px 10px;
            }
            .node-index {
                font-size: 10px;
            }
        }

        /* ===== Light mode modal readability fixes ===== */
        html[data-theme="light"] .modal-info-row .value {
            color: #0B1524 !important;
        }
        html[data-theme="light"] .modal-players-table .score {
            color: #007A9E !important;
        }
        html[data-theme="light"] .modal-players-table .time {
            color: #0B1524 !important;
        }
        html[data-theme="light"] .modal-players-table .player-name {
            color: #0B1524 !important;
        }
        html[data-theme="light"] .chart-bar-value {
            color: #0B1524 !important;
        }
        html[data-theme="light"] .chart-bar-label {
            color: #0B1524 !important;
        }
        html[data-theme="light"] .modal-info-card h4 {
            color: #007A9E !important;
        }
        html[data-theme="light"] .modal-info-card {
            background: rgba(255,255,255,0.85) !important;
            border-color: rgba(11,21,36,0.1) !important;
        }
        html[data-theme="light"] .modal-info-row {
            border-bottom-color: rgba(11,21,36,0.08) !important;
        }
        html[data-theme="light"] .modal-players-table td {
            border-bottom-color: rgba(11,21,36,0.06) !important;
        }
        html[data-theme="light"] .modal-players-table th {
            color: rgba(11,21,36,0.6) !important;
        }
        html[data-theme="light"] .chart-card {
            background: rgba(255,255,255,0.85) !important;
            border-color: rgba(11,21,36,0.1) !important;
        }
        html[data-theme="light"] .chart-card h4 {
            color: #007A9E !important;
        }
        html[data-theme="light"] .chart-bar-track {
            background: rgba(11,21,36,0.08) !important;
        }
        html[data-theme="light"] .modal-empty {
            color: rgba(11,21,36,0.5) !important;
        }