
.rzgs-card {
    --rzgs-accent: #4fea9f;
    --rzgs-accent-rgb: 79, 234, 159;
    --rzgs-text: #eef0f6;
    --rzgs-muted: #c0c6d6;
    --rzgs-dim: #98a0b5;
    --rzgs-line: rgba(255,255,255,.065);
    --rzgs-soft: rgba(255,255,255,.035);
    --rzgs-soft-2: rgba(255,255,255,.055);
    overflow: hidden;
}

.rzgs-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #f5f6fa;
    font-size: 14px;
    font-weight: 800;
}

.rzgs-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(var(--rzgs-accent-rgb), .10);
    border: 1px solid rgba(var(--rzgs-accent-rgb), .18);
    color: var(--rzgs-accent);
    font-size: 17px;
}

.rzgs-host { min-height: 110px; }
.rzgs { display: flex; flex-direction: column; gap: 12px; }

.rzgs-loader {
    display: grid;
    grid-template-columns: 86px minmax(0,1fr);
    align-items: center;
    gap: 16px;
    padding: 10px 4px 4px;
}

.rzgs-loader__ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 8px solid rgba(255,255,255,.05);
    border-top-color: rgba(var(--rzgs-accent-rgb), .72);
    animation: rzgs-rotate .9s linear infinite;
}

.rzgs-loader__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.rzgs-loader__tiles i {
    display: block;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.07), rgba(255,255,255,.025));
    background-size: 200% 100%;
    animation: rzgs-shimmer 1.45s linear infinite;
}

.rzgs-loader > span {
    grid-column: 1 / -1;
    color: var(--rzgs-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
}

@keyframes rzgs-rotate { to { transform: rotate(360deg); } }
@keyframes rzgs-shimmer { to { background-position: -200% 0; } }
@keyframes rzgs-fade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes rzgs-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.rzgs-tabs-shell {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.rzgs-tabs {
    display: flex;
    gap: 6px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    cursor: default;
    touch-action: pan-x;
}
.rzgs-tabs::-webkit-scrollbar { display: none; }

.rzgs-tabs-arrow {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
    color: #c7ccda;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    outline: 0 !important;
    box-shadow: none !important;
    transition: color .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
}
.rzgs-tabs-arrow:hover:not(:disabled) {
    color: #fff;
    border-color: rgba(var(--rzgs-accent-rgb), .32);
    background: rgba(var(--rzgs-accent-rgb), .08);
}
.rzgs-tabs-arrow:disabled {
    opacity: .28;
    cursor: default;
}
.rzgs-tabs-arrow .bx { pointer-events: none; }

.rzgs-tab {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
    max-width: 280px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--rzgs-line);
    border-radius: 10px;
    background: var(--rzgs-soft);
    color: var(--rzgs-muted);
    font-size: 10.5px;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
    outline: 0 !important;
    box-shadow: none !important;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.rzgs-tab .bx { flex: 0 0 auto; font-size: 15px; }
.rzgs-tab span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rzgs-tab:hover { color: #fff; border-color: rgba(255,255,255,.14); }
.rzgs-tab.is-active {
    color: var(--rzgs-accent);
    border-color: rgba(var(--rzgs-accent-rgb), .38);
    background: rgba(var(--rzgs-accent-rgb), .085);
}

.rzgs-pane { display: none; flex-direction: column; gap: 12px; }
.rzgs-pane.is-active { display: flex; animation: rzgs-fade .28s ease both; }

.rzgs-server-line {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #f0f2f7;
    font-size: 12px;
    font-weight: 800;
}
.rzgs-server-line > .bx { color: var(--rzgs-accent); font-size: 16px; }
.rzgs-server-line strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rzgs-server-line span {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--rzgs-soft-2);
    color: var(--rzgs-muted);
    font-size: 10px;
    font-weight: 700;
}

.rzgs-hero {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 18px;
    padding: 15px;
    border: 1px solid var(--rzgs-line);
    border-radius: 13px;
    background:
        radial-gradient(60% 120% at 0% 50%, rgba(var(--rzgs-accent-rgb), .10), transparent 62%),
        rgba(255,255,255,.025);
}

.rzgs-ring {
    position: relative;
    width: 122px;
    height: 122px;
    flex: 0 0 122px;
}
.rzgs-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.rzgs-ring__bg { fill: none; stroke: rgba(255,92,92,.27); stroke-width: 11; }
.rzgs-ring__fg {
    fill: none;
    stroke: var(--rzgs-accent);
    stroke-width: 11;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px rgba(var(--rzgs-accent-rgb), .45));
}
.rzgs-ring__value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.rzgs-ring__value b { color: #fff; font-size: 25px; font-weight: 800; line-height: 1; }
.rzgs-ring__value span { margin-top: 4px; color: var(--rzgs-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }

.rzgs-hero__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rzgs-nick {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.rzgs-nick .bx { color: var(--rzgs-accent); font-size: 18px; }

.rzgs-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.rzgs-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 27px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
    color: #e2e4eb;
    font-size: 11px;
    font-weight: 800;
}
.rzgs-badge .bx { color: var(--rzgs-accent); font-size: 14px; }
.rzgs-badge b { padding: 1px 5px; border-radius: 4px; background: rgba(var(--rzgs-accent-rgb), .14); color: var(--rzgs-accent); font-size: 10px; }
.rzgs-badge em { color: #c6cbda; font-style: normal; font-weight: 700; }
.rzgs-badge--place {
    color: #ffe18a;
    border-color: rgba(245,197,24,.30);
    background: linear-gradient(135deg, rgba(245,197,24,.16), rgba(245,197,24,.045));
}
.rzgs-badge--place .bx { color: #f5c518; }

.rzgs-bars { display: flex; flex-direction: column; gap: 8px; }
.rzgs-bar { --rzgs-bar-rgb: var(--rzgs-accent-rgb); }
.rzgs-bar--blue { --rzgs-bar-rgb: 79,160,255; }
.rzgs-bar__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    color: #bcc2d2;
    font-size: 11.5px;
    font-weight: 800;
}
.rzgs-bar__top b { color: rgb(var(--rzgs-bar-rgb)); font-weight: 800; }
.rzgs-bar__track { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.06); }
.rzgs-bar__track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--rzgs-bar-rgb), .55), rgb(var(--rzgs-bar-rgb)));
    box-shadow: 0 0 8px rgba(var(--rzgs-bar-rgb), .38);
    transform-origin: left;
    animation: rzgs-grow .8s cubic-bezier(.2,.7,.2,1) both;
}

.rzgs-seen { display: flex; align-items: center; gap: 5px; color: #a6adc1; font-size: 11px; font-weight: 700; }
.rzgs-seen .bx { font-size: 13px; }

.rzgs-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}
.rzgs-tile {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 8px 7px;
    border: 1px solid var(--rzgs-line);
    border-radius: 10px;
    background: var(--rzgs-soft);
    transition: transform .18s ease, border-color .18s ease;
}
.rzgs-tile:hover { transform: translateY(-1px); border-color: rgba(var(--rzgs-accent-rgb), .25); }
.rzgs-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 0;
    border-radius: 9px;
    background: rgba(var(--rzgs-accent-rgb), .10);
    color: var(--rzgs-accent);
    font-size: 14px;
}
.rzgs-tile--danger .rzgs-tile__icon { background: rgba(255,92,92,.12); color: #ff7b7b; }
.rzgs-tile__text { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; min-width: 0; }
.rzgs-tile__text b { color: #fff; font-size: 14px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.rzgs-tile__text span {
    margin-top: 2px;
    overflow: visible;
    color: #eef1f7;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.rzgs-tile--long .rzgs-tile__text span {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0;
}

/* Compact tile geometry for the narrow center column of the profile */
@media (min-width: 651px) {
    .rzgs-tile__text { flex: 1 1 auto; min-width: 0; }
}

.rzgs-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 92px;
    padding: 18px;
    border: 1px dashed rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.018);
    color: var(--rzgs-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
}
.rzgs-empty .bx { color: var(--rzgs-accent); font-size: 20px; }

@media (max-width: 1100px) {
    .rzgs-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 650px) {

    .rzgs-tabs-shell {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        gap: 5px;
    }
    .rzgs-tabs-arrow { width: 28px; height: 28px; border-radius: 8px; font-size: 17px; }
    .rzgs-tab { min-width: 145px; max-width: 235px; }
    .rzgs-card { padding: 13px; }
    .rzgs-hero { grid-template-columns: minmax(0,1fr); justify-items: center; text-align: center; gap: 13px; padding: 13px 11px; }
    .rzgs-hero__main { width: 100%; }
    .rzgs-nick, .rzgs-badges, .rzgs-seen { justify-content: center; }
    .rzgs-ring { width: 112px; height: 112px; flex-basis: 112px; }
    .rzgs-server-line { flex-wrap: wrap; }
    .rzgs-server-line span { margin-left: 0; }
    .rzgs-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
    .rzgs-tile { padding: 8px 7px; gap: 6px; }
    .rzgs-tile__icon { width: 24px; height: 24px; flex-basis: 24px; font-size: 13px; }
    .rzgs-tile__text b { font-size: 12px; }
    .rzgs-tile__text span { font-size: 10px; }
    .rzgs-tile--long .rzgs-tile__text span { font-size: 10px; }
    .rzgs-loader { grid-template-columns: minmax(0,1fr); justify-items: center; }
    .rzgs-loader__tiles { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .rzgs-loader__ring, .rzgs-loader__tiles i, .rzgs-pane.is-active, .rzgs-bar__track i { animation: none !important; }
}


/* v7: reliable server controls */
.rzgs-tab,
.rzgs-tabs-arrow {
    pointer-events: auto;
}

.rzgs-tab {
    cursor: pointer !important;
}

.rzgs-tabs-arrow:not(:disabled) {
    cursor: pointer !important;
}
