:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --accent-color: #2ecc71;
    --secondary-text: #666666;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --radius: 12px;
}

[data-theme="dark"] {
    --bg-color: #1e1e1e;
    --text-color: #f0f0f0;
    --border-color: #333333;
    --accent-color: #2ecc71;
    --secondary-text: #aaaaaa;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    --glass-bg: rgba(30, 30, 30, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme="modern"] {
    --bg-color: rgba(255, 255, 255, 0.7);
    --text-color: #2c3e50;
    --border-color: rgba(255, 255, 255, 0.5);
    --accent-color: #3498db;
    --secondary-text: #5d6d7e;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --radius: 16px;
}

/* Modern Theme specific overrides for Dark Mode */
@media (prefers-color-scheme: dark) {
    [data-theme="modern"] {
         /* If system is dark, maybe adjust modern theme? 
            For now, let's keep 'modern' as a specific glassmorphism style that works best on colorful backgrounds 
            but provide a dark variant if needed. */
    }
}

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

body {
    font-family: var(--font-family);
    background-color: transparent;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px; /* Space for shadow */
}

.server-widget {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.server-card {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="modern"] .server-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.server-widget:hover .server-card,
.server-widget:hover .circle-widget,
.server-widget:hover .banner-widget,
.server-widget:hover .chart-widget,
.server-widget:hover .line-widget {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Header Layout */
.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px; /* Softer radius */
    object-fit: cover;
    background-color: rgba(0,0,0,0.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.server-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.server-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.server-ip {
    font-size: 12px;
    color: var(--secondary-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    background: rgba(0,0,0,0.03);
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

[data-theme="dark"] .server-ip {
    background: rgba(255,255,255,0.05);
}

.server-ip:hover {
    color: var(--accent-color);
    background: rgba(46, 204, 113, 0.1);
}

.copy-icon {
    opacity: 0.6;
}

/* Status Badge */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.status-online {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

[data-theme="dark"] .status-online {
    background-color: rgba(46, 204, 113, 0.25);
    color: #2ecc71;
}

.status-offline {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

[data-theme="dark"] .status-offline {
    background-color: rgba(231, 76, 60, 0.25);
    color: #e74c3c;
}

/* MOTD */
.motd {
    font-size: 13px;
    color: var(--secondary-text);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    background: rgba(0,0,0,0.02);
    padding: 8px;
    border-radius: 6px;
    font-family: 'Minecraft', monospace; /* Use Minecraft font if available */
}

[data-theme="dark"] .motd {
    background: rgba(255,255,255,0.03);
}

/* Player Info */
.player-info {
    margin-top: auto;
    position: relative;
}

.player-count-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--secondary-text);
    font-weight: 500;
}

.progress-track {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .progress-track {
    background-color: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #27ae60);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

/* Player List Tooltip Removed as per user request */

/* Refresh Button */
.refresh-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--secondary-text);
    opacity: 0.4;
    transition: all 0.2s;
    padding: 4px;
    border-radius: 50%;
}

.refresh-btn:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.05);
    color: var(--accent-color);
}

[data-theme="dark"] .refresh-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Styles Variations */
.style-small .server-icon {
    width: 36px;
    height: 36px;
}
.style-small .motd, .style-small .player-info {
    display: none;
}
.style-small .server-card {
    padding: 12px;
    justify-content: center;
}

.style-medium .motd {
    display: none;
}

.style-small .circle-widget,
.style-small .banner-widget,
.style-small .chart-widget,
.style-small .line-widget {
    padding: 12px;
}

.style-small .circle-icon,
.style-small .line-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.style-small .banner-icon,
.style-small .chart-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.style-small .circle-name,
.style-small .chart-name,
.style-small .line-name {
    font-size: 13px;
}

.layout-banner.style-small .banner-main {
    gap: 6px;
}

.layout-banner.style-small .banner-row.banner-meta {
    display: none;
}

.layout-banner.style-small .banner-status {
    padding: 4px 8px;
}

.layout-chart.style-small .chart-body {
    grid-template-columns: 1fr;
    align-items: start;
}

.layout-chart.style-small .chart-bars .chart-stat {
    display: none;
}

.layout-chart.style-small .chart-progress-track {
    height: 8px;
}

.layout-line.style-small .sparkline {
    display: none;
}

.layout-line.style-small .line-widget {
    justify-content: center;
}

.layout-circle.style-small .circle-widget {
    grid-template-rows: auto;
    align-content: center;
}

.layout-circle.style-small .circle-sub {
    display: none;
}

.style-small .refresh-btn {
    top: 8px;
    right: 8px;
}

/* Copy Tooltip */
.copy-tooltip {
    position: absolute;
    background: #222;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.copy-tooltip.show {
    opacity: 1;
    top: -35px;
}

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

.spinning svg {
    animation: spin 0.8s linear infinite;
}

.hover-details {
    position: absolute;
    inset: 8px;
    border-radius: calc(var(--radius) - 6px);
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.style-small .hover-details {
    inset: 6px;
    padding: 10px;
    gap: 8px;
}

/* Hover details removed */

/* Hover players removed */

.layout-circle .refresh-btn,
.layout-banner .refresh-btn,
.layout-chart .refresh-btn,
.layout-line .refresh-btn {
    top: 10px;
    right: 10px;
}

.circle-widget,
.banner-widget,
.chart-widget,
.line-widget,
.neon-widget,
.glitch-widget,
.terminal-widget,
.holo-widget,
.pulse-widget {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="modern"] .circle-widget,
[data-theme="modern"] .banner-widget,
[data-theme="modern"] .chart-widget,
[data-theme="modern"] .line-widget,
[data-theme="modern"] .neon-widget,
[data-theme="modern"] .glitch-widget,
[data-theme="modern"] .terminal-widget,
[data-theme="modern"] .holo-widget,
[data-theme="modern"] .pulse-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.circle-widget {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 10px;
    padding: 14px;
}

.circle-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.circle-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.circle-title {
    min-width: 0;
}

.circle-name {
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.circle-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    opacity: 0.85;
    margin-top: 1px;
}

.circle-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #e74c3c;
}

.is-online .circle-dot {
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.55);
}

.donut {
    --p: 0;
    --thickness: 10px;
    --ring: rgba(0, 0, 0, 0.08);
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background:
        conic-gradient(var(--accent-color) calc(var(--p) * 1%), var(--ring) 0);
    display: grid;
    place-items: center;
    margin: 0 auto;
    position: relative;
}

[data-theme="dark"] .donut { --ring: rgba(255, 255, 255, 0.12); }

.donut::before {
    content: '';
    position: absolute;
    inset: var(--thickness);
    border-radius: 999px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

[data-theme="modern"] .donut::before {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.donut.small {
    width: 78px;
    height: 78px;
    --thickness: 9px;
}

.donut-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 72%;
    max-width: 82%;
    text-align: center;
    line-height: 1.05;
}

.donut-value {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donut-label {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.style-small .donut { width: 84px; height: 84px; --thickness: 9px; }
.style-large .donut { width: 112px; height: 112px; --thickness: 12px; }
.style-small .donut-value { font-size: 18px; }
.style-large .donut-value { font-size: 24px; }
.style-large .donut-center { width: 68%; max-width: 80%; }

.banner-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
}

.banner-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.banner-ip {
    font-weight: 800;
    font-size: 13px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .banner-ip { background: rgba(255, 255, 255, 0.05); }

.banner-meta {
    gap: 10px;
}

.banner-players {
    font-size: 12px;
    color: var(--secondary-text);
    font-weight: 700;
    flex-shrink: 0;
}

.banner-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

[data-theme="dark"] .banner-bar { background: rgba(255, 255, 255, 0.12); }

.banner-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color), #27ae60);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.chart-widget {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.chart-title {
    flex: 1;
    min-width: 0;
}

.chart-name {
    font-weight: 900;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-sub {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 1px;
}

.chart-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    flex: 1;
    min-height: 0;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.chart-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .chart-stat {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

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

.chart-stat-value {
    font-size: 14px;
    font-weight: 900;
}

.chart-progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

[data-theme="dark"] .chart-progress-track { background: rgba(255, 255, 255, 0.12); }

.chart-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-color), #27ae60);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.line-widget {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.line-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.line-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.line-title {
    flex: 1;
    min-width: 0;
}

.line-name {
    font-weight: 900;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-sub {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sparkline {
    flex: 1;
    min-height: 42px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

[data-theme="dark"] .sparkline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sparkline svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sparkline-line {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.35));
}

.sparkline-area {
    fill: rgba(46, 204, 113, 0.15);
    stroke: none;
}

/* Effect Glow (Only Static) */
.effect-glow .server-card,
.effect-glow .circle-widget,
.effect-glow .banner-widget,
.effect-glow .chart-widget,
.effect-glow .line-widget {
    box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.35), 0 16px 36px rgba(46, 204, 113, 0.22);
}

.effect-glow.is-offline .server-card,
.effect-glow.is-offline .circle-widget,
.effect-glow.is-offline .banner-widget,
.effect-glow.is-offline .chart-widget,
.effect-glow.is-offline .line-widget {
    box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.35), 0 16px 36px rgba(231, 76, 60, 0.18);
}

/* Hover effect on details removed */

.effect-scanline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.06) 0px,
        rgba(255, 255, 255, 0.06) 1px,
        rgba(255, 255, 255, 0) 3px,
        rgba(255, 255, 255, 0) 6px
    );
    opacity: 0.32;
    transform: translateY(-30%);
    animation: scanmove 2.6s linear infinite;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
}

/* Scanline on hover removed */

@keyframes scanmove {
    from { transform: translateY(-30%); }
    to { transform: translateY(30%); }
}

.neon-widget {
    padding: 14px;
    background: #070a12;
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(245, 247, 255, 0.92);
}

.neon-frame {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: radial-gradient(1200px 220px at 10% 0%, rgba(88, 101, 242, 0.26), transparent 55%),
                radial-gradient(900px 240px at 100% 40%, rgba(46, 204, 113, 0.22), transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.neon-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 180deg, rgba(52, 152, 219, 0.9), rgba(155, 89, 182, 0.9), rgba(46, 204, 113, 0.9), rgba(241, 196, 15, 0.9), rgba(52, 152, 219, 0.9));
    filter: blur(18px);
    opacity: 0.5;
    animation: neonspin 6s linear infinite;
    z-index: 0;
}

.neon-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(7, 10, 18, 0.72);
    z-index: 0;
}

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

.neon-header,
.neon-kpis,
.neon-footer {
    position: relative;
    z-index: 1;
}

.neon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 10px;
}

.neon-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.neon-title {
    min-width: 0;
    flex: 1;
}

.neon-name {
    font-weight: 900;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.neon-sub {
    margin-top: 2px;
    font-size: 11px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neon-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 14px 12px;
}

.neon-kpi {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.neon-kpi .k {
    font-size: 20px;
    font-weight: 950;
}

.neon-kpi .v {
    margin-top: 2px;
    font-size: 10px;
    opacity: 0.75;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.neon-kpi.wide {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.neon-kpi.wide .bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.neon-kpi.wide .fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(46, 204, 113, 1), rgba(52, 152, 219, 1), rgba(155, 89, 182, 1));
    box-shadow: 0 0 14px rgba(52, 152, 219, 0.45);
}

.neon-kpi.wide .hint {
    font-weight: 900;
    font-size: 12px;
    opacity: 0.9;
}

.neon-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px 14px;
}

.neon-ip {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.neon-badge {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.neon-widget .refresh-btn {
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.75);
}

.neon-widget .refresh-btn:hover {
    background: rgba(255, 255, 255, 0.10);
}

.glitch-widget {
    padding: 14px;
    background: #0b0c10;
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.glitch-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(46, 204, 113, 0.16), rgba(155, 89, 182, 0.14), rgba(52, 152, 219, 0.14));
    opacity: 0.7;
    filter: blur(16px);
    z-index: 0;
}

.glitch-widget::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.06) 0px,
        rgba(255, 255, 255, 0.06) 1px,
        rgba(255, 255, 255, 0) 3px,
        rgba(255, 255, 255, 0) 7px
    );
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.glitch-top,
.glitch-mid,
.glitch-bottom {
    position: relative;
    z-index: 1;
}

.glitch-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glitch-mark {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.glitch-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.glitch-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(231, 76, 60, 1);
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.6);
    border: 2px solid rgba(11, 12, 16, 1);
}

.is-online .glitch-dot {
    background: rgba(46, 204, 113, 1);
    box-shadow: 0 0 14px rgba(46, 204, 113, 0.75);
}

.glitch-text {
    flex: 1;
    min-width: 0;
}

.glitch-name {
    font-weight: 950;
    font-size: 16px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.glitch-name::before,
.glitch-name::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

.glitch-name::before {
    transform: translate(1px, 0);
    color: rgba(52, 152, 219, 0.85);
    clip-path: inset(0 0 55% 0);
    animation: glitch1 2.6s infinite linear alternate-reverse;
}

.glitch-name::after {
    transform: translate(-1px, 0);
    color: rgba(155, 89, 182, 0.85);
    clip-path: inset(45% 0 0 0);
    animation: glitch2 2.1s infinite linear alternate-reverse;
}

@keyframes glitch1 {
    0% { clip-path: inset(0 0 55% 0); transform: translate(1px, 0); }
    30% { clip-path: inset(0 0 35% 0); transform: translate(2px, -1px); }
    60% { clip-path: inset(0 0 65% 0); transform: translate(1px, 1px); }
    100% { clip-path: inset(0 0 48% 0); transform: translate(3px, 0); }
}

@keyframes glitch2 {
    0% { clip-path: inset(45% 0 0 0); transform: translate(-1px, 0); }
    30% { clip-path: inset(60% 0 0 0); transform: translate(-2px, 1px); }
    60% { clip-path: inset(35% 0 0 0); transform: translate(-3px, -1px); }
    100% { clip-path: inset(52% 0 0 0); transform: translate(-1px, 0); }
}

.glitch-meta {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glitch-sep {
    opacity: 0.6;
}

.glitch-mid {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.glitch-bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.glitch-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(46, 204, 113, 1), rgba(52, 152, 219, 1), rgba(155, 89, 182, 1));
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.35);
}

.glitch-chip {
    font-weight: 950;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glitch-bottom {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
    min-height: 0;
}

.glitch-ip {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    position: relative;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.glitch-spark {
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    padding: 10px;
}

.glitch-spark svg { width: 100%; height: 100%; display: block; }

.terminal-widget {
    background: #0b1110;
    color: rgba(214, 255, 226, 0.92);
    border-color: rgba(46, 204, 113, 0.25);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.18);
    background: rgba(46, 204, 113, 0.06);
}

.terminal-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: 0.9;
}

.terminal-bar .dot.red { background: rgba(231, 76, 60, 1); }
.terminal-bar .dot.yellow { background: rgba(241, 196, 15, 1); }
.terminal-bar .dot.green { background: rgba(46, 204, 113, 1); }

.terminal-bar .title {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 800;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.terminal-widget .refresh-btn {
    position: static;
    opacity: 0.7;
    color: rgba(214, 255, 226, 0.9);
}

.terminal-widget .refresh-btn:hover {
    background: rgba(46, 204, 113, 0.12);
    color: rgba(46, 204, 113, 1);
}

.terminal-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-body .line {
    font-size: 12px;
    opacity: 0.92;
}

.terminal-body .line .p {
    color: rgba(46, 204, 113, 1);
    font-weight: 800;
}

.terminal-body .line.out {
    opacity: 0.88;
    padding-left: 12px;
    color: rgba(214, 255, 226, 0.84);
}

.terminal-body .line.out.link {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(46, 204, 113, 0.22);
    background: rgba(46, 204, 113, 0.06);
    width: fit-content;
    max-width: 100%;
}

.terminal-body .load {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
}

.terminal-body .load-bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.10);
    overflow: hidden;
    border: 1px solid rgba(46, 204, 113, 0.14);
}

.terminal-body .load-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(46, 204, 113, 1), rgba(52, 152, 219, 1));
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.4);
}

.terminal-body .load-val {
    font-weight: 900;
    font-size: 12px;
    color: rgba(46, 204, 113, 1);
}

.holo-widget {
    padding: 0;
    background: radial-gradient(900px 240px at 30% -40%, rgba(52, 152, 219, 0.26), transparent 55%),
                radial-gradient(900px 260px at 110% 30%, rgba(155, 89, 182, 0.24), transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.14);
    position: relative;
    overflow: hidden;
}

.holo-widget::before {
    content: '';
    position: absolute;
    inset: -80px;
    background: conic-gradient(from 90deg, rgba(52, 152, 219, 0.35), rgba(46, 204, 113, 0.35), rgba(155, 89, 182, 0.35), rgba(241, 196, 15, 0.28), rgba(52, 152, 219, 0.35));
    filter: blur(30px);
    opacity: 0.65;
    animation: holoflow 10s linear infinite;
    z-index: 0;
}

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

.holo-surface {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.holo-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.holo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.holo-name {
    flex: 1;
    min-width: 0;
    font-weight: 950;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.holo-pill {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.holo-pill.online { color: rgba(46, 204, 113, 1); }
.holo-pill.offline { color: rgba(231, 76, 60, 1); }

.holo-widget .refresh-btn {
    position: static;
    opacity: 0.7;
    flex-shrink: 0;
}

.holo-widget .refresh-btn:hover {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
}

.holo-body {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

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

.holo-grid .cell {
    border-radius: 12px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.holo-grid .cell.wide {
    grid-column: 1 / -1;
}

.holo-grid .cell .k {
    font-size: 10px;
    opacity: 0.75;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.holo-grid .cell .v {
    margin-top: 4px;
    font-weight: 950;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.holo-meter {
    margin-top: 8px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.holo-meter .m {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(46, 204, 113, 1), rgba(52, 152, 219, 1), rgba(155, 89, 182, 1));
}

.holo-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.holo-ip {
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.10);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.holo-version {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 42%;
}

.pulse-widget {
    padding: 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(900px 240px at 50% -40%, rgba(46, 204, 113, 0.18), transparent 55%),
                radial-gradient(900px 260px at 120% 20%, rgba(52, 152, 219, 0.16), transparent 60%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.pulse-ring {
    position: absolute;
    inset: -30px;
    border-radius: 999px;
    border: 2px solid rgba(46, 204, 113, 0.20);
    filter: blur(0);
    animation: pulsering 2.8s ease-in-out infinite;
    pointer-events: none;
}

.is-offline .pulse-ring {
    border-color: rgba(231, 76, 60, 0.18);
}

@keyframes pulsering {
    0% { transform: scale(0.86); opacity: 0.25; }
    50% { transform: scale(1.0); opacity: 0.55; }
    100% { transform: scale(0.90); opacity: 0.30; }
}

.pulse-core {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    min-height: 0;
}

[data-theme="dark"] .pulse-core {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
}

.pulse-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.pulse-name {
    font-weight: 950;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pulse-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pulse-badge {
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.04);
    }

[data-theme="dark"] .pulse-badge {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.pulse-badge.online { color: rgba(46, 204, 113, 1); }
.pulse-badge.offline { color: rgba(231, 76, 60, 1); }

.pulse-count {
    font-size: 11px;
    font-weight: 900;
    color: var(--secondary-text);
    font-variant-numeric: tabular-nums;
}

.pulse-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .pulse-track {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pulse-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(46, 204, 113, 1), rgba(52, 152, 219, 1));
    box-shadow: 0 0 18px rgba(46, 204, 113, 0.26);
}

.pulse-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.pulse-ip {
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.03);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

[data-theme="dark"] .pulse-ip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.pulse-widget .refresh-btn {
    position: static;
    opacity: 0.75;
}

.pulse-widget .refresh-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}
