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

:root {
    --bg-dark: #0d0d15;
    --bg-card: rgba(30, 30, 45, 0.65);
    --text-white: #fff;
    --text-muted: rgba(255, 255, 255, .62);
    --text-dim: rgba(255, 255, 255, .42);
    --orange-primary: #f47b20;
    --orange-hover: #ff9a44;
    --orange-glow: rgba(244, 123, 32, .42);
    --yellow-shop: #f5b731;
    --red-live: #e53935;
    --blue-score: #2979ff;
    --glass-bg: rgba(255,255,255,.06);
    --glass-border: rgba(255,255,255,.1);
    --border-subtle: rgba(255,255,255,.08);
    --shadow-heavy: 0 20px 60px rgba(0,0,0,.5);
    --transition-fast: .2s ease;
    --transition-med: .35s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

body.home-page {
    overflow: hidden;
    height: 100vh;
}

body.inner-page {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(244,123,32,.16), transparent 340px),
        linear-gradient(180deg, #0d0d15, #12121d 55%, #090910);
}

a {
    text-decoration: none;
    color: inherit;
}

button, input {
    font-family: inherit;
}

button {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: linear-gradient(180deg, rgba(13,13,21,.95) 0%, rgba(13,13,21,.7) 60%, transparent 100%);
    backdrop-filter: blur(6px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.08);
}

.logo svg {
    filter: drop-shadow(0 0 8px rgba(255,255,255,.2));
}

.search-bar {
    position: relative;
    width: 220px;
    display: block;
    margin: 0;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1;
    cursor: pointer;
}

.search-icon:hover {
    color: var(--orange-hover);
}

.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px;
    color: var(--text-white);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    outline: none;
}

.search-bar input:focus {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.25);
    box-shadow: 0 0 12px rgba(244,123,32,.15);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-white);
    border-radius: 1px;
}

.nav-link.livestream {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--red-live);
    border-radius: 50%;
    font-size: 9px;
    color: white;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,.5); }
    50% { box-shadow: 0 0 0 6px rgba(229,57,53,0); }
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 900;
    letter-spacing: .5px;
    transition: all var(--transition-fast);
}

.social-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.social-icon:hover {
    color: var(--text-white);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.1);
}

.social-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-youtube:hover {
    background: #ff0033;
    border-color: #ff0033;
}

.social-longhorn {
    font-family: Oswald, sans-serif;
    color: #f47b20;
}

.social-longhorn:hover {
    background: rgba(244,123,32,.22);
    border-color: rgba(244,123,32,.55);
}

#hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13,13,21,.85) 0%, rgba(13,13,21,.3) 25%, rgba(13,13,21,.1) 45%, rgba(13,13,21,.3) 65%, rgba(13,13,21,.85) 100%),
        linear-gradient(90deg, rgba(180,80,20,.25) 0%, transparent 40%, transparent 60%, rgba(13,13,21,.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 0 100px 60px;
    max-width: 580px;
    flex-shrink: 0;
    animation: fadeInUp .8s ease .2s both;
}

.title-block {
    margin-bottom: 24px;
}

.main-title {
    font-family: Oswald, "Bebas Neue", sans-serif;
    font-size: 68px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text-white);
    text-shadow: 0 4px 30px rgba(0,0,0,.6);
}

.subtitle {
    font-family: Oswald, sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 4px;
}

.about-block {
    margin-bottom: 28px;
}

.about-heading {
    font-family: Oswald, sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-text {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 430px;
}

.trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(67, 183, 216, .28);
    background: rgba(8, 18, 28, .55);
}
.trust-icon {
    flex: none;
    font-size: 20px;
    line-height: 1;
    margin-top: 1px;
}
.trust-badge strong {
    display: block;
    color: #8dffc0;
    font-size: 13px;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.trust-badge span {
    display: block;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.55;
}
.trust-badge code {
    color: #aef0ff;
    background: rgba(67, 183, 216, .12);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: "Share Tech Mono", monospace;
}

.steam-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--orange-primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--transition-med);
    box-shadow: 0 6px 25px var(--orange-glow);
}

.steam-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(244,123,32,.5);
}

.btn-icon {
    font-size: 12px;
}

.sidebar {
    position: relative;
    z-index: 10;
    margin-left: auto;
    padding: 0 50px 100px 0;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
    animation: fadeInRight .8s ease .4s both;
}

.shop-card {
    background: var(--orange-primary);
    border-radius: 14px;
    overflow: hidden;
    transition: all var(--transition-med);
    box-shadow: 0 8px 30px rgba(244,123,32,.35);
}

.shop-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(244,123,32,.48);
}

.package-slider {
    position: relative;
    min-height: 124px;
    width: 100%;
}

.package-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 12%, rgba(255,255,255,.55) 45%, rgba(255,255,255,.12) 56%, transparent 72%);
    transform: translateX(-130%) skewX(-12deg);
    opacity: 0;
}

.package-slider.is-changing::after {
    animation: packetLightSweep .62s ease-out;
}

.packet-slides {
    position: relative;
    min-height: 124px;
    width: 100%;
}

.packet-slide {
    display: none;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: stretch;
    min-height: 124px;
    width: 100%;
    min-width: 0;
}

.packet-slide.active {
    display: grid;
    animation: packetSlideIn .42s cubic-bezier(.2,.78,.24,1);
}

.shop-card-image {
    width: 108px;
    height: 124px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.shop-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card-info {
    padding: 12px 34px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.packet-slide.active .shop-card-info > * {
    animation: packetTextRise .42s ease both;
}

.packet-slide.active .shop-sub {
    animation-delay: .04s;
}

.packet-slide.active .packet-buy-form,
.packet-slide.active .packet-buy-btn {
    animation-delay: .08s;
}

.shop-label {
    font-family: Oswald, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-sub {
    font-size: 10px;
    font-weight: 800;
    color: rgba(26,26,26,.72);
    letter-spacing: .8px;
    text-transform: uppercase;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.shop-price {
    display: block;
    font-family: Oswald, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}
.shop-price s {
    font-size: 11px;
    font-weight: 600;
    color: rgba(26,26,26,.45);
    margin-right: 5px;
}
.shop-price.is-free {
    display: inline-flex;
    align-items: center;
    background: #0a0a0a;
    color: #4dffa3;
    padding: 3px 11px;
    border-radius: 999px;
    letter-spacing: .6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.45), 0 0 0 2px rgba(77,255,163,.3);
}
.shop-discount-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(229,57,53,.5);
}

.packet-buy-form {
    margin-top: 5px;
}

.packet-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    max-width: 100%;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.78);
    color: white;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.packet-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,.72);
    font-size: 24px;
    font-weight: 900;
}

.packet-prev {
    left: 3px;
}

.packet-next {
    right: 4px;
}

.packet-dots {
    position: absolute;
    right: 18px;
    bottom: 9px;
    display: flex;
    gap: 5px;
}

.packet-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0,0,0,.32);
}

.packet-dot.active {
    background: #1a1a1a;
}

@keyframes packetSlideIn {
    from {
        opacity: .35;
        transform: translateX(14px) scale(.985);
        filter: brightness(1.15);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
}

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

@keyframes packetLightSweep {
    0% {
        opacity: 0;
        transform: translateX(-130%) skewX(-12deg);
    }
    18% {
        opacity: .9;
    }
    100% {
        opacity: 0;
        transform: translateX(130%) skewX(-12deg);
    }
}

.players-card {
    text-align: center;
    padding: 20px 16px;
}

.players-number {
    font-family: Oswald, sans-serif;
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-white);
    text-shadow: 0 2px 20px rgba(255,255,255,.1);
}

.players-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.matches-card, .players-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: var(--shadow-heavy);
}

.matches-card {
    padding: 18px;
    overflow: hidden;
}

.matches-title {
    font-family: Oswald, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.match-featured {
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.06);
}

.match-row-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.team-logo, .team-logo-sm {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.team-logo {
    width: 26px;
    height: 26px;
}

.team-logo-sm {
    width: 20px;
    height: 20px;
}

.text-logo, .text-logo-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244,123,32,.9);
    color: #111;
    font-weight: 900;
    font-size: 11px;
}

.team-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-score {
    font-family: Oswald, sans-serif;
    font-size: 12px;
    font-weight: 700;
    min-width: 42px;
    max-width: 72px;
    height: 24px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--blue-score);
    color: white;
    white-space: nowrap;
    flex: 0 0 auto;
}

.match-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}

.match-map {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
    background: var(--red-live);
    padding: 2px 8px;
    border-radius: 3px;
}

.match-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.match-action-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

a.match-action-btn:hover {
    color: var(--text-white);
    background: rgba(244,123,32,.24);
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 12px 20px minmax(76px, auto) 12px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,.02);
    min-width: 0;
}

.match-row:hover {
    background: rgba(255,255,255,.06);
}

.live-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.live-card-head .matches-title {
    margin-bottom: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.15;
}

.live-all-link {
    color: var(--orange-hover);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.live-match-row {
    color: inherit;
}

.live-match-row .match-chevron {
    margin-left: auto;
    color: var(--text-dim);
    justify-self: end;
}

.team-name-sm {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-white);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-match-row .team-name-sm:nth-last-of-type(2) {
    text-align: right;
}

.live-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 18px;
}

.live-panel {
    margin-bottom: 72px;
}

.live-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    align-items: start;
}

/* ---------- Live page: filter + sort chips ---------- */
.live-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.live-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.live-chip-label {
    margin-right: 2px;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.live-chip {
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.live-chip:hover { border-color: rgba(244,123,32,.45); color: var(--text-white); }
.live-chip.is-active {
    border-color: rgba(244,123,32,.6);
    background: rgba(244,123,32,.16);
    color: #ffc79a;
}

.live-list-section {
    display: grid;
    gap: 12px;
}

.live-list-section + .live-list-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.live-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-list-head h2 {
    font-family: Oswald, sans-serif;
    color: var(--text-white);
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.live-list-head span {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.live-section-empty {
    border: 1px dashed rgba(255,255,255,.14);
    border-radius: 12px;
    padding: 14px;
    color: var(--text-muted);
    background: rgba(255,255,255,.025);
}

.live-server-card {
    position: relative;
    display: grid;
    gap: 12px;
    align-content: start;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    padding: 15px 15px 13px 20px;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
    min-width: 0;
}

.live-server-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: rgba(255,255,255,.16);
}

.live-server-card.is-live {
    border-color: rgba(115,255,174,.28);
    background: linear-gradient(180deg, rgba(115,255,174,.075), rgba(255,255,255,.025));
}

.live-server-card.is-live::before {
    background: linear-gradient(180deg, #73ffae, #3ddc97);
    box-shadow: 0 0 18px rgba(115,255,174,.55);
}

.live-server-card.is-stopped::before {
    background: rgba(255,210,138,.32);
}

/* Cached A2S snapshot older than the freshness window — dim the fill readout so
   an old number never reads as a live one. */
.live-server-card.is-stale .lsc-fill-top > strong { color: #cfe0d8; }
.live-server-card.is-stale .lfb-fill {
    background: linear-gradient(90deg, rgba(150,170,160,.55), rgba(190,205,196,.6));
    box-shadow: none;
}

.live-server-card:hover,
.live-server-card:focus {
    transform: translateY(-2px);
    border-color: rgba(244,123,32,.42);
    background: linear-gradient(180deg, rgba(244,123,32,.095), rgba(255,255,255,.025));
    outline: none;
}

/* ---------- Live page: card head ---------- */
.lsc-head {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.lsc-name {
    flex: 1;
    min-width: 0;
    color: var(--text-white);
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lsc-head .status { flex: none; }

/* ---------- Live page: identity line ---------- */
.lsc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.lsc-map {
    padding: 3px 8px;
    border: 1px solid rgba(244,123,32,.28);
    border-radius: 5px;
    background: rgba(244,123,32,.1);
    color: #ffb877;
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    white-space: nowrap;
}
.lsc-endpoint {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lsc-icon-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 7px;
    background: rgba(255,255,255,.05);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.lsc-icon-btn:hover { border-color: rgba(244,123,32,.5); background: rgba(244,123,32,.14); color: #ffc79a; }
.lsc-icon-btn.is-copied { border-color: rgba(115,255,174,.55); background: rgba(115,255,174,.16); color: #86f5bb; }
.lsc-icon-btn.is-copied::after { content: '✓'; }
.lsc-icon-btn.is-copied { font-size: 0; }
.lsc-icon-btn.is-copied::after { font-size: 13px; }

/* ---------- Live page: dominant fill readout ---------- */
.lsc-fill {
    display: grid;
    gap: 7px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(0,0,0,.22);
}
.lsc-fill-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.lsc-fill-top > strong {
    flex: none;
    color: #86f5bb;
    font-family: Oswald, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}
.lsc-fill-top > strong span { color: var(--text-dim); font-size: 16px; }
.lsc-fill-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lsc-fill-pct {
    flex: none;
    color: var(--text-muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    font-style: normal;
}
.lsc-fill.is-unknown .lsc-fill-top > strong { color: var(--text-dim); }
.lsc-fill.is-unknown .lfb-track { opacity: .4; }

/* ---------- Live page: boost line ---------- */
.lsc-boost {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 12px;
}
.lsc-boost-key {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}
.lsc-boost-val { color: var(--text-muted); }
.lsc-boost-val b {
    font-family: Oswald, sans-serif;
    font-size: 15px;
    color: var(--text-white);
}
.lsc-boost.is-on .lsc-boost-val b { color: #86f5bb; }
.lsc-joining b { color: #ffd08a; }
.lsc-joining.is-zero { display: none; }
.lsc-boost-target { margin-left: auto; color: var(--text-dim); font-size: 11px; }
.lsc-boost-target b { color: var(--text-muted); font-family: Oswald, sans-serif; font-size: 13px; }
.lsc-boost-val.is-muted { color: var(--text-dim); font-style: italic; }

/* ---------- Live page: card footer ---------- */
.lsc-foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: var(--text-dim);
    font-size: 11px;
}
.lsc-fresh {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(115,255,174,.12);
    color: #86f5bb;
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
}
.lsc-fresh.is-stale { background: rgba(255,210,138,.13); color: #ffd08a; }
.lsc-uptime { color: var(--text-muted); font-size: 11px; }
.lsc-dupe {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    font-size: 10px;
}
.lsc-activity-btn {
    margin-left: auto;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.lsc-activity-btn:hover { border-color: rgba(244,123,32,.5); background: rgba(244,123,32,.14); }

.live-server-card p,
.live-empty p {
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    overflow-wrap: anywhere;
}

.live-empty {
    display: grid;
    gap: 12px;
    place-items: start;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(0,0,0,.16);
    padding: 22px;
}

/* ---------- Live page: search ---------- */
.live-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-search-form input[type="search"] {
    width: 220px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(0,0,0,.3);
    color: var(--text-white);
    font-size: 13px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.live-search-form input[type="search"]:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(244,123,32,.16);
}

/* ---------- Live page: live pulse ---------- */
.live-pulse {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #73ffae;
    box-shadow: 0 0 10px rgba(115,255,174,.9);
    animation: livePulseDot 1.4s ease-in-out infinite;
}
.live-pulse.is-off {
    background: rgba(255,255,255,.22);
    box-shadow: none;
    animation: none;
}
@keyframes livePulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.68); opacity: .5; }
}

/* ---------- Live page: fill bar track ---------- */
.lfb-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.lfb-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3ddc97, #73ffae);
    box-shadow: 0 0 12px rgba(115,255,174,.45);
    transition: width .4s ease;
}

/* ---------- Live page: How Boosting Works band ---------- */
.boost-info-band {
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid rgba(244,123,32,.24);
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(244,123,32,.14), transparent 24rem),
        linear-gradient(180deg, rgba(20,14,10,.9), rgba(8,6,5,.94));
}
.boost-info-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.boost-info-head > div:first-child { max-width: 640px; }
.bib-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--orange-hover);
}
.boost-info-head h2 {
    margin: 0 0 8px;
    font-family: Oswald, sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--text-white);
}
.boost-info-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}
.boost-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.boost-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.boost-step {
    position: relative;
    padding: 16px 16px 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.boost-step:hover {
    transform: translateY(-2px);
    border-color: rgba(244,123,32,.4);
    background: rgba(244,123,32,.07);
}
.bs-num {
    display: inline-block;
    margin-bottom: 8px;
    font-family: Oswald, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(244,123,32,.75);
}
.boost-step h3 {
    margin: 0 0 6px;
    font-family: Oswald, sans-serif;
    font-size: 15px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--text-white);
}
.boost-step p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-muted);
}
.boost-feature-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.boost-feature-strip span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(0,0,0,.25);
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    color: var(--text-dim);
}

.live-server-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}

.live-server-modal[hidden] {
    display: none;
}

.live-server-window {
    width: min(860px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    border: 1px solid rgba(244,123,32,.28);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(20, 21, 31, .98), rgba(8, 8, 16, .98));
    box-shadow: 0 24px 80px rgba(0,0,0,.48);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.live-server-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.live-server-modal-head > div {
    min-width: 0;
}

.live-modal-kicker {
    display: block;
    color: var(--orange-hover);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.live-server-modal-head h2 {
    font-family: Oswald, sans-serif;
    color: var(--text-white);
    margin: 0 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-server-modal-head p {
    color: var(--text-muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.live-modal-close {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: var(--text-white);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    transition: border-color .15s ease, background-color .15s ease;
}
.live-modal-close:hover { border-color: rgba(255,85,112,.5); background: rgba(255,85,112,.16); }

/* endpoint + copy/connect, mirroring the card's identity line */
.live-modal-endpoint-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.live-modal-endpoint-row code {
    min-width: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
    gap: 10px;
    padding: 16px 20px 10px;
}

.live-modal-note {
    margin: 0;
    padding: 0 20px 14px;
    color: var(--text-dim);
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
}
.live-modal-note:empty { display: none; }

.live-modal-stats div {
    position: relative;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(0,0,0,.18);
    padding: 11px 12px;
    overflow: hidden;
    min-width: 0;
}
.live-modal-stats div::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: rgba(255,255,255,.16);
}
.live-modal-stats .lms-map::before { background: var(--orange-primary); }
.live-modal-stats .lms-fill::before { background: #3ddc97; }
.live-modal-stats .lms-boost::before { background: #59c7d9; }

.live-modal-stats span {
    display: block;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Values are short phrases now ("live boost", "de_dust2", "5/5 online"), not
   single digits — the old 30px uppercase nowrap style ellipsed most of them. */
.live-modal-stats strong {
    display: block;
    margin-top: 6px;
    color: var(--text-white);
    font-family: Oswald, sans-serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.live-modal-stats .lms-map strong { color: #ffb877; font-family: "Share Tech Mono", monospace; font-size: 16px; }
.live-modal-stats .lms-fill strong { color: #86f5bb; }
.live-modal-stats .lms-boost strong { color: #79ddeb; }
.live-modal-stats .lms-status strong[data-state="live"] { color: #86f5bb; }
.live-modal-stats .lms-status strong[data-state="off"] { color: #ffd08a; }
.lms-status strong[data-state="live"]::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #73ffae;
    box-shadow: 0 0 8px rgba(115,255,174,.9);
    animation: livePulseDot 1.4s ease-in-out infinite;
}

/* Header/stats keep their height; only the log scrolls inside the window. */
.live-modal-logwrap {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 20px 20px;
}
.live-modal-logtitle {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.live-modal-log {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 0;
    overflow-y: auto;
}

.live-modal-event {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    padding: 10px 12px;
}

/* The first row is the live "right now" state, not a historic entry. */
.live-modal-event.is-current {
    border-color: rgba(244,123,32,.34);
    background: rgba(244,123,32,.075);
}
.live-modal-event.is-current > span { color: var(--orange-hover); }
.live-modal-event.is-loading,
.live-modal-event.is-empty { border-style: dashed; opacity: .8; }
.live-modal-event.is-loading > span { animation: bhPulse 1.2s ease-in-out infinite; }

.live-modal-event.type-on {
    border-color: rgba(115,255,174,.22);
    background: rgba(115,255,174,.055);
}

.live-modal-event.type-off {
    border-color: rgba(255,210,138,.2);
    background: rgba(255,210,138,.045);
}

.live-modal-event.type-warn {
    border-color: rgba(255,85,112,.24);
    background: rgba(255,85,112,.055);
}

.live-modal-event span {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.live-modal-event strong {
    display: block;
    color: var(--text-white);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.live-modal-event em {
    display: block;
    margin-top: 3px;
    color: var(--orange-hover);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.live-modal-desc {
    margin-top: 5px;
    color: var(--text-muted) !important;
    font-weight: 500;
}

.vs-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin: 0 2px;
}

.match-chevron {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-dim);
}

.valve-footer {
    position: absolute;
    bottom: 50px;
    left: 60px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fadeIn 1s ease .8s both;
}

.powered-text {
    font-size: 11px;
    color: var(--text-dim);
}

.valve-logo {
    display: flex;
    gap: 4px;
    width: max-content;
}

.valve-logo span {
    font-family: Oswald, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #d32f2f;
    background: rgba(211,47,47,.15);
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 2px;
    line-height: 1;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.valve-logo:hover span {
    color: #fff;
    background: rgba(211,47,47,.35);
    transform: translateY(-1px);
}

#bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 40px;
    background: rgba(8,8,16,.9);
    border-top: 1px solid var(--border-subtle);
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 32px;
}

.credit-link {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.credit-link:hover {
    color: var(--text-white);
}

/* ---------- Inner-page footer ---------- */
.portal-footer {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.4fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 34px;
    padding: 22px clamp(22px, 4vw, 58px);
    border-top: 1px solid rgba(255,255,255,.1);
    background: #080d13;
}
.portal-footer-brand { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; gap: 4px 7px; }
.portal-footer-brand > span { color: #788b99; font-size: 9px; text-transform: uppercase; }
.portal-footer-brand > a {
    color: #e45050;
    font: 700 14px Oswald, sans-serif;
    letter-spacing: 2px;
}
.portal-footer-brand > a:hover { color: #ff7474; }
.portal-footer-brand > small { grid-column: 1 / -1; color: #61727f; font-size: 9px; }
.portal-footer-links { display: flex; justify-content: center; gap: 8px 20px; flex-wrap: wrap; }
.portal-footer-links a { color: #8799a6; font: 700 9px "Share Tech Mono", monospace; text-transform: uppercase; }
.portal-footer-links a:hover { color: #dceaf2; }
.portal-footer-copy { color: #5f707c; font: 9px "Share Tech Mono", monospace; white-space: nowrap; }

/* ---------- Service policy ---------- */
.policy-hero {
    padding: 26px 0 22px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.policy-kicker { color: var(--orange-hover); font: 700 10px "Share Tech Mono", monospace; text-transform: uppercase; }
.policy-hero h1 { margin: 7px 0 8px; color: #f1f6f8; font: 700 32px Oswald, sans-serif; letter-spacing: 0; text-transform: uppercase; }
.policy-hero > p { max-width: 760px; margin: 0; color: #9badb9; line-height: 1.55; }
.policy-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 14px; color: #6f8492; font: 9px "Share Tech Mono", monospace; text-transform: uppercase; }
.policy-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; align-items: start; padding-top: 26px; }
.policy-nav {
    position: sticky;
    top: 82px;
    display: grid;
    border-left: 2px solid rgba(244,123,32,.42);
}
.policy-nav strong { padding: 0 12px 9px; color: #dbe7ed; font-size: 10px; text-transform: uppercase; }
.policy-nav a { padding: 6px 12px; color: #7f929f; font: 10px "Share Tech Mono", monospace; }
.policy-nav a:hover { color: #fff; background: rgba(255,255,255,.035); }
.policy-content { min-width: 0; }
.policy-content > section {
    position: relative;
    padding: 0 0 28px 42px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    scroll-margin-top: 90px;
}
.policy-number { position: absolute; top: 1px; left: 0; color: var(--orange-hover); font: 700 17px Oswald, sans-serif; }
.policy-content h2 { margin: 0 0 11px; color: #edf4f7; font: 700 19px Oswald, sans-serif; letter-spacing: 0; text-transform: uppercase; }
.policy-content p { margin: 0 0 11px; color: #9badb8; font-size: 12.5px; line-height: 1.7; }
.policy-content ul { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 18px; color: #9badb8; font-size: 12px; line-height: 1.55; }
.policy-content li::marker { color: var(--orange-hover); }
.policy-content a { color: #72d5ff; }
.policy-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 15px 0; border-top: 1px solid rgba(255,255,255,.09); border-left: 1px solid rgba(255,255,255,.09); }
.policy-facts > div { padding: 11px; border-right: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); }
.policy-facts strong { display: block; margin-bottom: 3px; color: #dfeaf0; font-size: 11px; }
.policy-facts span { color: #8799a5; font-size: 10.5px; line-height: 1.45; }
.policy-disclaimer { padding: 12px 0 28px 42px; color: #667985 !important; font-size: 10px !important; }
@media (max-width: 820px) {
    .portal-footer { grid-template-columns: 1fr; gap: 15px; }
    .portal-footer-links { justify-content: flex-start; }
    .policy-layout { grid-template-columns: 1fr; gap: 24px; }
    .policy-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 14px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
    .policy-nav strong { grid-column: 1 / -1; padding-left: 0; }
    .policy-nav a { padding-left: 0; }
}
@media (max-width: 520px) {
    .policy-hero h1 { font-size: 27px; }
    .policy-content > section { padding-left: 34px; }
    .policy-facts { grid-template-columns: 1fr; }
    .policy-disclaimer { padding-left: 34px; }
}

.public-flash {
    position: fixed;
    top: 82px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: min(720px, calc(100vw - 32px));
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(12,12,22,.92);
    color: var(--text-white);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.public-flash.error {
    border-color: rgba(229,57,53,.55);
}

.public-flash.success {
    border-color: rgba(244,123,32,.6);
}

.portal-page {
    flex: 1 0 auto;
    width: min(1120px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 126px 0 48px;
}

.portal-panel, .auth-card, .client-card, .notice, .table-section {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: var(--shadow-heavy);
}

.portal-panel {
    padding: 28px;
}

.portal-title {
    margin-bottom: 24px;
}

.portal-title h1, .auth-card h1, .page-head h1, .client-card h2, .table-section h2, .notice h2 {
    font-family: Oswald, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.portal-title p, .page-head p, .client-card p, .notice p {
    color: var(--text-muted);
    line-height: 1.65;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.package-card {
    position: relative;
    background: linear-gradient(180deg, rgba(244,123,32,.98), rgba(191,84,18,.98));
    border-radius: 14px;
    padding: 22px;
    color: #17120d;
    box-shadow: 0 12px 40px rgba(244,123,32,.28);
}
.package-card-warn {
    box-shadow: 0 12px 40px rgba(229,57,53,.4), 0 0 0 2px rgba(229,57,53,.55) inset;
}
.pkg-warn-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(20,10,5,.85);
    color: #ffd7a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.25);
}
.pkg-warn-text {
    background: rgba(20,10,5,.16) !important;
    border: 1px solid rgba(20,10,5,.32);
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: rgba(0,0,0,.78) !important;
    margin: -4px 0 14px !important;
}
.shop-warn {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1.15;
    text-transform: uppercase;
    color: #b3251f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pkg-top {
    font-family: Oswald, sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.pkg-count {
    font-family: Oswald, sans-serif;
    font-size: 76px;
    font-weight: 700;
    line-height: 1;
}

.pkg-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pkg-icon {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, .35);
}

.pkg-price {
    margin-top: 10px;
    font-family: Oswald, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #17120d;
}
.pkg-price small {
    font-family: Inter, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(0,0,0,.55);
    margin-left: 4px;
}
.pkg-price-was {
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(0,0,0,.45);
    margin-right: 8px;
    text-decoration-color: rgba(20,10,5,.6);
    text-decoration-thickness: 2px;
}
.pkg-price.is-free {
    color: #0a0a0a;
}
.pkg-price.is-free .pkg-price-now {
    display: inline-flex;
    align-items: center;
    background: #0a0a0a;
    color: #4dffa3;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 18px;
    letter-spacing: 1px;
    box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 0 2px rgba(77,255,163,.35);
}
.pkg-discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 6px 16px rgba(229,57,53,.5), 0 0 0 2px rgba(255,255,255,.25);
}

.package-card p {
    color: rgba(0,0,0,.68);
    margin: 14px 0;
    line-height: 1.55;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text-white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background: #111;
    border-color: #111;
    color: white;
}

.btn.small {
    min-height: 34px;
    font-size: 12px;
}

.auth-wrap {
    min-height: calc(100vh - 174px);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(440px, 100%);
    padding: 28px;
}

label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.schedule-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.time-window-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(244,123,32,.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(244,123,32,.12), rgba(0,0,0,.16));
}

.time-window-card strong {
    display: block;
    color: var(--orange-hover);
    font-family: Oswald, sans-serif;
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.time-window-card span {
    color: var(--text-muted);
    font-size: 12px;
}

/* ---------- Boost Schedule (panel-time based) ---------- */
.schedule-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-clock-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #0a0a0a;
    border: 1px solid rgba(77, 255, 163, .35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    white-space: nowrap;
}
.panel-clock-chip .pc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4dffa3;
    box-shadow: 0 0 8px rgba(77, 255, 163, .8);
    animation: pcPulse 1.6s ease-in-out infinite;
}
@keyframes pcPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}
.panel-clock-chip .pc-body { display: grid; line-height: 1.25; }
.panel-clock-chip .pc-time {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 15px;
    font-weight: 700;
    color: #4dffa3;
    letter-spacing: 1px;
}
.panel-clock-chip .pc-date {
    font-size: 10px;
    color: rgba(255, 255, 255, .65);
    letter-spacing: .3px;
}
.panel-clock-chip .pc-caption {
    font-family: Oswald, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(77, 255, 163, .75);
}
.panel-clock-chip.compact { padding: 5px 10px; }
.panel-clock-chip.compact .pc-time { font-size: 13px; }
.panel-clock-chip.compact .pc-date { font-size: 9px; }

.clock-stack {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.schedule-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.schedule-modes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sched-mode { position: relative; cursor: pointer; }
.sched-mode input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sched-mode span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(244, 123, 32, .35);
    background: rgba(0, 0, 0, .18);
    color: var(--text-muted);
    font-family: Oswald, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.sched-mode input:checked + span {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 123, 32, .45);
}
.sched-mode input:focus-visible + span { outline: 2px solid var(--orange-hover); outline-offset: 2px; }

/* Per-server schedule editor */
.inline-schedule.schedule-editor {
    display: grid;
    gap: 0;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 8px;
    background: #0b121a;
    overflow: hidden;
}
.inline-schedule.schedule-editor.state-armed { border-color: rgba(242,193,78,.28); }
.inline-schedule.schedule-editor.state-paused { border-color: rgba(230,184,102,.24); }
.schedule-editor-summary {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    padding: 9px 12px 9px 0;
    border: 0;
    background: #0d161f;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease;
}
.schedule-editor-summary:hover { background: #111d28; }
.schedule-editor-summary:focus-visible { outline: 2px solid #f2c14e; outline-offset: -2px; }
.schedule-state-line { width: 4px; height: 100%; min-height: 42px; background: #718393; box-shadow: 0 0 8px rgba(113,131,147,.28); }
.state-armed .schedule-state-line { background: #f2c14e; box-shadow: 0 0 9px rgba(242,193,78,.42); }
.state-paused .schedule-state-line { background: #e6b866; box-shadow: 0 0 8px rgba(230,184,102,.32); }
.schedule-summary-copy { display: grid; gap: 5px; min-width: 0; }
.schedule-summary-copy .se-title-row strong {
    color: #eef5f8;
    font: 700 14px Oswald, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
}
.schedule-summary-copy > span:last-child {
    overflow: hidden;
    color: #94a7b5;
    font: 11px "Share Tech Mono", monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.schedule-summary-action { display: flex; align-items: center; gap: 7px; color: #8fa2b0; }
.schedule-summary-action small { font: 700 9px "Share Tech Mono", monospace; text-transform: uppercase; }
.schedule-summary-chevron { font-size: 19px; line-height: 1; transition: transform .16s ease, color .16s ease; }
.schedule-editor.is-expanded .schedule-summary-chevron { color: #f2c14e; transform: rotate(180deg); }
.schedule-editor-body { display: grid; gap: 10px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.schedule-editor-body[hidden] { display: none !important; }
.schedule-editor-clock { display: flex; justify-content: flex-end; }
.schedule-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.schedule-editor-head .se-title strong {
    display: block;
    color: var(--orange-hover);
    font-family: Oswald, sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.schedule-editor-head .se-title > span {
    color: var(--text-muted);
    font-size: 12px;
}
.schedule-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr)) minmax(150px, .7fr) minmax(130px, auto);
    gap: 8px;
    align-items: end;
}
.schedule-editor-grid .se-field {
    display: grid;
    gap: 7px;
    margin: 0;
    color: var(--text-muted);
}
.se-field-label { display: block; }
.se-field-label b {
    color: #e8f0f6;
    font-size: 11px;
    letter-spacing: .7px;
    line-height: 1.2;
    text-transform: uppercase;
}
.schedule-editor-grid .se-field input,
.schedule-editor-grid .se-field select {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
}
.se-time-picker {
    display: grid;
    grid-template-columns: minmax(48px, 1fr) auto minmax(54px, 1fr) minmax(66px, 1.15fr) 24px;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 3px 6px 3px 8px;
    border: 1px solid rgba(244, 123, 32, .34);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(23, 32, 44, .96), rgba(10, 15, 22, .96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.se-time-picker:focus-within {
    border-color: var(--orange-hover);
    box-shadow: 0 0 0 3px rgba(244, 123, 32, .14);
}
.schedule-editor-grid .se-time-picker select {
    min-height: 32px;
    padding: 5px 3px;
    border: 0;
    border-radius: 4px;
    background-color: #14202c !important;
    color: #f7fbff !important;
    font: 700 15px "Share Tech Mono", monospace;
    text-align: center;
    outline: 0;
    color-scheme: dark;
}
.schedule-editor-grid .se-time-picker select:focus { background: rgba(244,123,32,.14); }
.schedule-editor-grid .se-time-picker select:disabled { color: var(--text-muted); opacity: .72; }
.schedule-editor-grid .se-time-picker select option {
    background-color: #101923 !important;
    color: #f7fbff !important;
}
.schedule-editor-grid .se-time-picker select option:checked {
    background-color: #9a4d17 !important;
    color: #ffffff !important;
}
.se-time-divider { color: var(--orange-hover); font: 700 20px "Share Tech Mono", monospace; line-height: 1; }
.se-time-icon {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid var(--orange-hover);
    border-radius: 50%;
    opacity: .95;
}
.se-time-icon::before,
.se-time-icon::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 2px;
    height: 6px;
    border-radius: 2px;
    background: var(--orange-hover);
    transform-origin: 50% 100%;
}
.se-time-icon::after { height: 5px; transform: rotate(118deg); }
.se-time-picker:has(select:disabled) { border-color: rgba(255,255,255,.14); filter: saturate(.65); }
.schedule-editor-grid .se-save { width: 100%; min-height: 40px; }
.se-player-control {
    position: relative;
    display: block;
    min-height: 40px;
}
.schedule-editor-grid .se-player-control input {
    min-height: 40px;
    padding-right: 64px;
    border-color: rgba(255,255,255,.16);
    background: #101923;
    color: #f7fbff;
    font: 700 16px "Share Tech Mono", monospace;
}
.se-player-control em {
    position: absolute;
    top: 50%;
    right: 10px;
    color: var(--text-dim);
    font-size: 9px;
    font-style: normal;
    letter-spacing: .7px;
    text-transform: uppercase;
    transform: translateY(-50%);
    pointer-events: none;
}
.se-form-actions { display: grid; gap: 6px; }
.se-package-link { width: 100%; justify-content: center; }

/* Schedule state badge in the editor header */
.se-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.se-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 4px;
    font: 700 10px "Share Tech Mono", monospace;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.se-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.se-badge-armed { color: #f2c14e; border: 1px solid rgba(242,193,78,.42); background: rgba(242,193,78,.09); }
.se-badge-armed i { box-shadow: 0 0 8px rgba(242,193,78,.9); animation: pulseGlow 1.6s infinite; }
.se-badge-paused { color: #ffd28a; border: 1px solid rgba(255,210,138,.4); background: rgba(255,210,138,.1); }
.se-badge-none { color: var(--text-muted); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }

/* Schedule status/control bar (replaces per-player list; list is now in Active Players) */
.schedule-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(8,13,19,.55);
}
.schedule-status-bar.is-armed { border-color: rgba(115,255,174,.28); background: rgba(115,255,174,.05); }
.schedule-status-bar.is-paused { border-color: rgba(255,210,138,.28); background: rgba(255,210,138,.05); }
.ssb-left { display: flex; align-items: center; gap: 8px; }
.ssb-count {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,.06);
    color: var(--text-white);
    font: 700 11px "Share Tech Mono", monospace;
}
.ssb-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ssb-actions .btn { min-height: 28px; }

/* Active Players — waiting list (schedule reservations) */
.roster-waiting {
    margin-bottom: 10px;
    padding: 9px;
    border-radius: 7px;
    border: 1px solid rgba(255,210,138,.24);
    border-left: 3px solid #f2c14e;
    background: linear-gradient(180deg, rgba(255,210,138,.06), rgba(8,13,19,.4));
}
.roster-waiting[hidden] { display: none; }
.roster-waiting.is-armed { border-color: rgba(242,193,78,.3); border-left-color: #f2c14e; background: linear-gradient(180deg, rgba(242,193,78,.06), rgba(8,13,19,.4)); }
.rw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rw-headline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.rw-state { font: 700 11px Oswald, sans-serif; letter-spacing: 1.4px; text-transform: uppercase; }
.roster-waiting.is-armed .rw-state { color: #f2c14e; }
.roster-waiting.is-paused .rw-state { color: #ffd28a; }
.rw-window { color: var(--text-muted); font: 12px "Share Tech Mono", monospace; }
.rw-actions { margin: 0; }
.rw-actions .btn { min-height: 28px; }
.rw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 7px; }
.rw-chip {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px dashed rgba(255,210,138,.32);
    border-left: 3px solid #f2c14e;
    border-radius: 7px;
    background: rgba(8,13,19,.55);
}
.roster-waiting.is-armed .rw-chip { border-color: rgba(242,193,78,.3); border-left-color: #f2c14e; border-style: solid; }
.rw-index { font: 700 11px "Share Tech Mono", monospace; color: var(--text-dim); }
.rw-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #ffd28a;
    box-shadow: 0 0 7px rgba(255,210,138,.7);
}
.roster-waiting.is-armed .rw-dot { background: #f2c14e; box-shadow: 0 0 8px rgba(242,193,78,.85); animation: pulseGlow 1.8s infinite; }
.rw-body { display: grid; gap: 1px; min-width: 0; }
.rw-name { overflow: hidden; color: #f7fbff; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rw-sub { color: #a9bbc9; font-size: 10.5px; font-family: "Share Tech Mono", monospace; }
.rw-remove-form { margin: 0; }
.rw-remove {
    width: 26px; height: 26px; padding: 0;
    border: 1px solid rgba(240,113,127,.42);
    border-radius: 5px;
    background: rgba(240,113,127,.1);
    color: #ffabb3;
    font-size: 18px; line-height: 1; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.rw-remove:hover, .rw-remove:focus-visible { border-color: #ffabb3; background: #f0717f; color: #fff; outline: none; }
.rs-pill.rs-waiting { color: #ffd28a; }
.rs-pill.rs-waiting i { background: #ffd28a; box-shadow: 0 0 6px rgba(255,210,138,.7); }
.rs-pill.is-zero { display: none; }

input {
    width: 100%;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text-white);
    border-radius: 5px;
    padding: 12px;
    outline: none;
}

input:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 12px rgba(244,123,32,.2);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.4;
}

.check input {
    width: auto;
    margin-top: 3px;
}

.check a {
    color: var(--orange-hover);
}

.page-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.client-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 16px;
    align-items: start;
}

.modern-client-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-bottom: 22px;
}

.modern-client-grid .client-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .modern-client-grid {
        grid-template-columns: 1fr;
    }
}

.quota-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.quota-card {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow-heavy);
}

.quota-card span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.quota-card strong {
    display: block;
    font-family: Oswald, sans-serif;
    font-size: 44px;
    color: var(--orange-primary);
    line-height: 1;
    margin: 9px 0 6px;
}

.quota-card small {
    color: var(--text-dim);
    line-height: 1.4;
}

.client-card, .notice, .table-section {
    padding: 22px;
    margin-bottom: 18px;
}

.big {
    font-family: Oswald, sans-serif;
    font-size: 62px;
    color: var(--orange-primary);
    line-height: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th, td {
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.09);
    padding: 12px;
    font-size: 14px;
}

th {
    color: var(--orange-hover);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(244,123,32,.16);
    color: var(--orange-hover);
    border: 1px solid rgba(244,123,32,.35);
}

.status-running {
    color: #73ffae;
    border-color: rgba(115,255,174,.35);
    background: rgba(115,255,174,.1);
}

.status-pending, .status-scheduled {
    color: #ffd28a;
    border-color: rgba(255,210,138,.36);
    background: rgba(255,210,138,.08);
}

.status-stopped, .status-rejected, .status-error {
    color: #ff9aa9;
    border-color: rgba(255,85,112,.38);
    background: rgba(255,85,112,.08);
}

.server-control-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.server-control-card {
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.22);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.server-main {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.server-main h3 {
    font-family: Oswald, sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
}

.server-main p,
.server-meta {
    color: var(--text-muted);
    font-size: 13px;
}

.server-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 12px 0;
}

.server-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.server-insights > div {
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.server-insights span {
    display: block;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.server-insights strong {
    display: block;
    margin: 5px 0 3px;
    font-family: Oswald, sans-serif;
    font-size: 18px;
    color: var(--text-white);
}

.server-insights small {
    color: var(--text-muted);
}

.server-tools-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 10px;
    margin: 12px 0;
}

.player-roster,
.server-log-preview {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: #0b1219;
    padding: 11px;
}

.player-roster h4,
.server-log-preview h4 {
    margin: 0 0 10px;
    color: var(--orange-hover);
    font-family: Oswald, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 15px;
}

.roster-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.roster-pill {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 92px;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--text-white);
    font-size: 12px;
    font-weight: 800;
}

.roster-pill small {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 10px;
}

.log-mini {
    display: grid;
    gap: 4px;
    max-height: 260px;
    overflow: auto;
    font: 11px ui-monospace, SFMono-Regular, Consolas, monospace;
    color: var(--text-muted);
}

.log-mini span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

/* ---------- Active Players: action bar ----------
   These used to be a row of orange boxes wrapping other boxes (.inline-action
   added its own border + padding around every button). Now each control is one
   flat pill with a semantic colour, and destructive actions are visually last. */
.server-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}
/* Strip the nested-box look from action forms inside the dock. */
.server-actions .inline-action {
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}
.server-actions .btn.small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
    color: var(--text-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .14s ease, border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}
.server-actions .btn.small:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.26);
}
.server-actions .btn.small:active:not(:disabled) { transform: translateY(0); }
.server-actions .btn.small:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Primary action — start the boost. */
.server-actions .btn.small.go {
    border-color: rgba(115,255,174,.42);
    background: linear-gradient(180deg, rgba(115,255,174,.20), rgba(115,255,174,.07));
    color: #c6ffe1;
}
.server-actions .btn.small.go:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(115,255,174,.30), rgba(115,255,174,.12));
    box-shadow: 0 6px 18px rgba(61,220,151,.22);
}
/* Stop — amber, not red: stopping is normal, deleting is not. */
.server-actions .btn.small.stop {
    border-color: rgba(255,210,138,.42);
    background: linear-gradient(180deg, rgba(255,210,138,.18), rgba(255,210,138,.06));
    color: #ffe0ab;
}
.server-actions .btn.small.stop:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(255,210,138,.28), rgba(255,210,138,.10));
    box-shadow: 0 6px 18px rgba(242,193,78,.2);
}
/* Delete — kept quiet until hovered, sitting beside Console. */
.server-actions .btn.small.danger {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.03);
    color: #97a7b5;
}
.server-actions .btn.small.danger:hover:not(:disabled) {
    border-color: rgba(255,85,112,.55);
    background: rgba(255,85,112,.16);
    color: #ff9aa8;
    box-shadow: 0 6px 18px rgba(255,85,112,.22);
}
/* Reconnect — a stateful pill with its own status dot. */
.server-actions .reconnect-control { padding-left: 12px; }
.server-actions .reconnect-control .reconnect-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
    transition: background-color .14s ease, box-shadow .14s ease;
}
.server-actions .reconnect-control.is-on {
    border-color: rgba(115,255,174,.34);
    background: linear-gradient(180deg, rgba(115,255,174,.14), rgba(115,255,174,.04));
    color: #b6ffd7;
}
.server-actions .reconnect-control.is-on .reconnect-dot {
    background: #73ffae;
    box-shadow: 0 0 8px rgba(115,255,174,.85);
    animation: pulseGlow 1.8s infinite;
}
.server-actions .reconnect-control.is-off .reconnect-dot { background: rgba(255,255,255,.28); }
/* Console — neutral utility, tinted blue so it reads as a tool not an action. */
.server-actions .console-btn {
    border-color: rgba(120,180,255,.34);
    background: linear-gradient(180deg, rgba(120,180,255,.14), rgba(120,180,255,.04));
    color: #bcd9f7;
}
.server-actions .console-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(120,180,255,.24), rgba(120,180,255,.08));
    box-shadow: 0 6px 18px rgba(120,180,255,.22);
}
.server-actions .schedule-live-control {
    border-color: rgba(143,125,255,.36);
    background: linear-gradient(180deg, rgba(143,125,255,.14), rgba(143,125,255,.04));
    color: #c9bfff;
}
@media (max-width: 560px) {
    .server-actions .btn.small { flex: 1 1 calc(50% - 8px); }
    .server-actions form:has(.btn.small.danger) { margin-left: 0; }
}

.inline-action,
.inline-schedule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(244,123,32,.08);
    border: 1px solid rgba(244,123,32,.2);
}

.inline-schedule input {
    width: 118px;
    min-height: 34px;
    padding: 7px 10px;
}

.inline-schedule label {
    margin: 0;
    gap: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.danger {
    background: rgba(229,57,53,.16);
    border-color: rgba(229,57,53,.4);
    color: #ffbdc6;
}

.muted {
    color: var(--text-muted);
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================================================================
 *  UPGRADE v3 — CYBERTECH / HALF-LIFE CLIENT PANEL
 * ===================================================================== */

.head-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.head-actions form { margin: 0; }

.dim { color: var(--text-dim); font-size: 11px; }

.btn.go {
    background: linear-gradient(180deg, rgba(115,255,174,.22), rgba(115,255,174,.08));
    border-color: rgba(115,255,174,.45);
    color: #b6ffd7;
}
.btn.go:hover { background: rgba(115,255,174,.3); }
.btn.stop {
    background: linear-gradient(180deg, rgba(255,210,138,.2), rgba(255,210,138,.06));
    border-color: rgba(255,210,138,.42);
    color: #ffdca6;
}
.btn.tiny {
    min-height: 27px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: .6px;
}

.field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    margin-left: 5px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red-live);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    vertical-align: top;
}

.auth-alt { margin-top: 10px; font-size: 12px; color: var(--text-muted); text-align: center; }
.auth-alt a { color: var(--orange-hover); }

.notice.expired-notice {
    border: 1px solid rgba(255,85,112,.4);
    background: linear-gradient(180deg, rgba(255,85,112,.14), rgba(0,0,0,.2));
}

/* ---- Player Balance ring ---- */
.client-side-stack { display: grid; gap: 16px; align-content: start; }
.client-side-stack > .client-card { margin-bottom: 0; }
.balance-card { text-align: center; }
.balance-ring {
    --pct: 100;
    width: 168px;
    height: 168px;
    margin: 8px auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(closest-side, var(--bg-dark) 78%, transparent 79% 100%),
        conic-gradient(var(--orange-primary) calc(var(--pct)*1%), rgba(255,255,255,.08) 0);
    box-shadow: 0 0 26px rgba(244,123,32,.25), inset 0 0 20px rgba(0,0,0,.5);
}
.balance-ring .big { font-size: 52px; display: grid; }
.balance-ring .big small {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    -webkit-text-fill-color: initial;
}
.dashboard-boost-guide { text-align: left; }
.guide-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--orange-hover);
    font: 700 9px "Share Tech Mono", monospace;
    text-transform: uppercase;
}
.dashboard-boost-guide h2 { margin-bottom: 13px; font-size: 19px; }
.dashboard-guide-steps { display: grid; gap: 2px; }
.dashboard-guide-steps > div {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 9px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}
.dashboard-guide-steps > div > b {
    color: var(--orange-hover);
    font: 700 16px Oswald, sans-serif;
}
.dashboard-guide-steps span { display: grid; gap: 2px; }
.dashboard-guide-steps strong { color: #eef4f7; font-size: 12px; }
.dashboard-guide-steps small { color: #90a2af; font-size: 10.5px; line-height: 1.4; }
.guide-packages-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #72d5ff;
    font: 700 10px "Share Tech Mono", monospace;
    text-transform: uppercase;
}
.guide-packages-link:hover { color: #aef0ff; }

/* ---- GoldSrc Engine status ---- */
.dashboard-engine-panel {
    position: relative;
    padding: 0;
    overflow: hidden;
    text-align: left;
    border-color: rgba(244, 123, 32, .35);
    background: linear-gradient(180deg, rgba(244, 123, 32, .1), rgba(0, 0, 0, .18));
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.dashboard-engine-panel::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: #73ffae;
    box-shadow: 0 0 7px rgba(115,255,174,.42);
    opacity: .9;
    animation: engineSignal 2.4s ease-in-out infinite;
}
.dashboard-engine-panel.is-limited { border-color: rgba(255, 190, 92, .38); }
.dashboard-engine-panel.is-limited::before { background: #ffd28a; box-shadow: 0 0 7px rgba(255,210,138,.4); }
.engine-panel-toggle {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 68px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease;
}
.engine-panel-toggle:hover { background: rgba(244, 123, 32, .055); }
.engine-panel-toggle:focus-visible { outline: 2px solid rgba(244, 123, 32, .42); outline-offset: -2px; }
.engine-panel-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(244, 123, 32, .4);
    border-radius: 8px;
    background: rgba(244, 123, 32, .16);
    color: var(--orange-hover);
    font-size: 18px;
}
.is-limited .engine-panel-icon { border-color: rgba(255,190,92,.42); background: rgba(255,190,92,.13); color: #ffd28a; }
.engine-panel-title { display: grid; gap: 2px; min-width: 0; }
.engine-kicker { color: #d89a62; font: 700 8px "Share Tech Mono", monospace; letter-spacing: 0; text-transform: uppercase; }
.engine-panel-title > strong { overflow: hidden; color: #f3f7fa; font-size: 16px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.engine-panel-title > small { overflow: hidden; color: #8e9fac; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.engine-panel-title > small b { color: #c9d5da; }
.engine-toggle-end { display: flex; align-items: center; gap: 8px; }
.engine-overall-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(115,255,174,.32);
    border-radius: 4px;
    background: rgba(115,255,174,.08);
    color: #83efb5;
    font: 700 8px "Share Tech Mono", monospace;
    letter-spacing: 0;
    text-transform: uppercase;
}
.engine-overall-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.is-limited .engine-overall-state { border-color: rgba(255,210,138,.36); background: rgba(255,210,138,.09); color: #ffd28a; }
.engine-toggle-chevron {
    color: #a7b4ba;
    font-size: 19px;
    font-style: normal;
    transition: transform .16s ease;
}
.dashboard-engine-panel.is-expanded .engine-toggle-chevron { transform: rotate(180deg); }
.engine-panel-body { border-top: 1px solid rgba(255,255,255,.055); }
.engine-panel-body[hidden] { display: none !important; }
.engine-summary {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,.045);
    background: rgba(255,255,255,.012);
}
.is-limited .engine-summary { background: rgba(196,158,78,.025); }
.engine-summary strong { display: block; color: #aec1cb; font-size: 10px; font-weight: 600; line-height: 1.5; }
.engine-list { display: grid; background: rgba(0,0,0,.08); }
.engine-row {
    display: grid;
    grid-template-columns: 29px 7px minmax(0, 1fr) minmax(76px, 92px) 50px;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(255,255,255,.045);
    color: #73ffae;
    background: transparent;
}
.engine-row:last-child { border-bottom: 0; }
.engine-row.is-offline { color: #ff6679; background: rgba(255,102,121,.04); }
.engine-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.engine-index {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(89,199,217,.28);
    border-radius: 5px;
    background: rgba(89,199,217,.08);
    color: #74cddd;
    font: 700 10px "Share Tech Mono", monospace;
    letter-spacing: 0;
}
.engine-row.is-offline .engine-index { border-color: rgba(255,102,121,.3); background: rgba(255,102,121,.08); color: #ff8b9b; }
.engine-identity { display: block; min-width: 0; }
.engine-identity strong { display: block; overflow: hidden; color: #edf5f8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.engine-capacity-meter { display: grid; gap: 5px; min-width: 0; }
.engine-capacity-meter > span { display: flex; align-items: baseline; justify-content: flex-end; gap: 3px; white-space: nowrap; }
.engine-capacity-meter b { color: #e4f0f4; font: 700 11px "Share Tech Mono", monospace; }
.engine-capacity-meter small { color: #7b919d; font: 8px "Share Tech Mono", monospace; }
.engine-capacity-meter > i {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,.055);
    overflow: hidden;
}
.engine-capacity-meter > i > em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #73ffae;
    box-shadow: 0 0 6px rgba(115,255,174,.34);
    transition: width .35s ease;
}
.engine-row.is-offline .engine-capacity-meter > i > em { background: #ff6679; box-shadow: none; }
.engine-state {
    min-width: 52px;
    padding: 4px 5px;
    border: 1px solid rgba(115,255,174,.34);
    border-radius: 4px;
    background: rgba(115,255,174,.07);
    color: inherit;
    font: 700 8px "Share Tech Mono", monospace;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}
.engine-row.is-offline .engine-state { border-color: rgba(255,102,121,.34); background: rgba(255,102,121,.075); }
.engine-panel-foot {
    display: flex;
    align-items: center;
    gap: 6px 12px;
    flex-wrap: wrap;
    padding: 9px 14px;
    border-top: 1px solid rgba(255,255,255,.05);
    background: rgba(255,255,255,.012);
    color: #8195a0;
    font: 9px "Share Tech Mono", monospace;
}
.engine-panel-foot b { color: #d1e1e8; }

@keyframes engineSignal {
    0%, 100% { opacity: .45; }
    50% { opacity: .85; }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-engine-panel::before { animation: none; }
}

@media (max-width: 540px) {
    .engine-panel-toggle { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; padding: 10px 11px; }
    .engine-panel-icon { width: 36px; height: 36px; }
    .engine-overall-state { display: none; }
    .engine-row { grid-template-columns: 29px 7px minmax(0, 1fr) 48px; }
    .engine-capacity-meter { display: none; }
}

/* ---- Package Orders grid ---- */
.active-package-orders { display: grid; gap: 12px; }
.package-order-empty {
    margin: 0;
    padding: 14px;
    color: #6f7e86;
    font-size: 11px;
    text-align: center;
}
.order-engine-notice {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(202, 158, 80, .26);
    border-radius: 7px;
    background: rgba(202, 158, 80, .045);
}
.oen-signal {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b99253;
    animation: engineSignal 2.4s ease-in-out infinite;
}
.order-engine-notice > div { display: grid; gap: 3px; }
.order-engine-notice strong { color: #cdb98e; font-size: 12px; }
.order-engine-notice p { margin: 0; color: #7f8d94; font-size: 10.5px; line-height: 1.5; }
.oen-protected {
    padding: 5px 7px;
    border: 1px solid rgba(110, 155, 130, .22);
    border-radius: 4px;
    color: #789d88;
    font: 700 8px/1 "Share Tech Mono", monospace;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 0;
}
.orders-grid.is-compact {
    grid-template-columns: repeat(auto-fill, minmax(205px, 245px));
    gap: 12px;
}
.order-card {
    position: relative;
    padding: 16px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25));
    overflow: hidden;
}
.order-card.is-compact { padding: 14px; }
.order-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--orange-primary);
}
.order-card.order-active::before { background: #73ffae; }
.order-card.order-engine-paused::before,
.order-card.order-engine-limited::before { background: #b99253; }
.order-card.order-warn::before { background: #ffd28a; }
.order-card.order-expired::before,
.order-card.order-pending::before { background: #ff5570; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-name { font-family: Oswald, sans-serif; font-size: 16px; letter-spacing: .5px; text-transform: uppercase; }
.order-cap { font-family: Oswald, sans-serif; font-size: 40px; color: var(--orange-primary); line-height: 1; margin: 10px 0 6px; }
.order-cap small { font-size: 12px; color: var(--text-muted); margin-left: 6px; }
.order-card.is-compact .order-name { font-size: 15px; letter-spacing: 0; }
.order-card.is-compact .status { font-size: 8px; }
.order-card.is-compact .order-cap { margin: 9px 0 7px; font-size: 34px; }
.order-card.is-compact .order-cap small { font-size: 10px; margin-left: 4px; }
.order-card.is-compact .order-timebar { height: 5px; }
.order-card.is-compact .order-days { margin-top: 8px; }
.order-card.is-compact .order-days strong { font-size: 16px; letter-spacing: 0; }
.order-card.is-compact .order-days small,
.order-card.is-compact .order-foot { font-size: 9px; }
.order-card.is-compact .order-actions { gap: 6px; margin-top: 9px; padding-top: 9px; }
.order-card.is-compact .order-actions .btn { padding: 6px 8px; font-size: 9px; letter-spacing: 0; }
.order-engine-capacity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    padding: 7px 8px;
    border: 1px solid rgba(202, 158, 80, .18);
    border-radius: 5px;
    background: rgba(202, 158, 80, .035);
}
.order-engine-capacity span { color: #a7b2b7; font: 10px "Share Tech Mono", monospace; }
.order-engine-capacity span b { color: #c9b27e; }
.order-engine-capacity small { color: #718189; font-size: 8.5px; text-align: right; }
.order-timebar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.09); overflow: hidden; }
.order-timebar-fill { height: 100%; background: linear-gradient(90deg, var(--orange-primary), var(--orange-hover)); }
.order-card.order-warn .order-timebar-fill { background: linear-gradient(90deg, #ffb347, #ffd28a); }
.order-card.order-engine-paused .order-timebar-fill,
.order-card.order-engine-limited .order-timebar-fill { background: #a9854f; }
.order-card.order-expired .order-timebar-fill,
.order-card.order-pending .order-timebar-fill { background: rgba(255,85,112,.5); }
.order-days { margin-top: 10px; }
.order-days strong { display: block; font-family: Oswald, sans-serif; font-size: 20px; letter-spacing: .5px; }
.order-days small, .order-foot { color: var(--text-muted); font-size: 11px; }
.order-foot { margin-top: 8px; font-family: "Share Tech Mono", monospace; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.order-renew-count { color: #73ffae; }
.order-engine-credit { color: #789d88; }

@media (prefers-reduced-motion: reduce) {
    .oen-signal { animation: none; }
}

@media (max-width: 620px) {
    .orders-grid.is-compact { grid-template-columns: 1fr; }
    .order-engine-notice { grid-template-columns: 8px minmax(0, 1fr); }
    .oen-protected { grid-column: 2; justify-self: start; }
    .order-engine-capacity { align-items: flex-start; flex-direction: column; gap: 3px; }
    .order-engine-capacity small { text-align: left; }
}

/* ---- Order renewal ---- */
.order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.order-actions form { margin: 0; }

/* ---- Boost history graph ---- */
.boost-history {
    position: relative;
    margin: 10px 0 14px;
    padding: 15px 16px 13px;
    border: 1px solid rgba(126,167,190,.18);
    border-radius: 12px;
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(89,199,217,.09), transparent 62%),
        linear-gradient(180deg, #0d1922, #0a121a 70%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 26px rgba(0,0,0,.3);
    overflow: hidden;
}
.boost-history::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(89,199,217,.5), transparent);
}
.bh-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}
.bh-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bh-title-mark {
    flex: none;
    width: 3px;
    height: 16px;
    border-radius: 3px;
    background: linear-gradient(180deg, #6ee7f2, #3d8fbf);
    box-shadow: 0 0 14px rgba(89,199,217,.45);
}
.bh-title strong {
    color: #eef7fb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.bh-period {
    color: #6f8998;
    font: 700 10px "Share Tech Mono", monospace;
    letter-spacing: 0;
}
.bh-chart {
    position: relative;
    padding: 8px 8px 5px 30px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 8px;
    background: linear-gradient(180deg, #09141d, #071019);
}
.bh-scale {
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 21px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    width: 20px;
    color: #52697a;
    font: 9px "Share Tech Mono", monospace;
    letter-spacing: 0;
    pointer-events: none;
}
.bh-plot { position: relative; outline: none; touch-action: pan-y; }
.bh-plot:focus-visible { box-shadow: inset 0 0 0 1px rgba(110,231,242,.48); }
.bh-plot [hidden] { display: none; }
.bh-empty {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 74px;
    padding: 14px;
    border: 1px dashed rgba(89,199,217,.2);
    border-radius: 8px;
    background: rgba(9,20,29,.7);
}
.bh-empty > div { display: grid; gap: 3px; }
.bh-empty strong { color: #cfe1e9; font-size: 12px; }
.bh-empty small { color: #718797; font-size: 10px; }
.bh-empty-pulse {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #59c7d9;
    box-shadow: 0 0 0 5px rgba(89,199,217,.09);
    animation: bhPulse 1.7s ease-in-out infinite;
}
.bh-svg {
    display: block;
    width: 100%;
    height: 104px;
}
.bh-area { stroke: none; }
.bh-line {
    fill: none;
    stroke: #59c7d9;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 2px 6px rgba(89,199,217,.35));
}
.bh-grid-line {
    stroke: rgba(144,177,194,.085);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.bh-grid-line.is-base { stroke: rgba(144,177,194,.18); }
.bh-target {
    stroke: rgba(242,193,78,.55);
    stroke-width: 1;
    stroke-dasharray: 5 5;
    vector-effect: non-scaling-stroke;
}
.bh-current-dot {
    fill: #eafcff;
    stroke: #59c7d9;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}
.bh-current-halo {
    fill: rgba(89,199,217,.22);
    stroke: none;
    animation: bhHalo 2.2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}
/* ---- chart hover readout ---- */
.bh-cursor {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    margin-left: -.5px;
    pointer-events: none;
}
.bh-cursor i {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(89,199,217,0), rgba(89,199,217,.55) 22%, rgba(89,199,217,.55) 78%, rgba(89,199,217,0));
}
.bh-marker {
    position: absolute;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    border: 2px solid #6ee7f2;
    background: #041018;
    box-shadow: 0 0 10px rgba(110,231,242,.7);
    pointer-events: none;
}
.bh-tip {
    position: absolute;
    top: 4px;
    display: grid;
    gap: 1px;
    padding: 5px 9px;
    border: 1px solid rgba(89,199,217,.3);
    border-radius: 6px;
    background: rgba(6,17,25,.96);
    box-shadow: 0 8px 20px rgba(0,0,0,.5);
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
}
.bh-tip strong { color: #9ff0fb; font: 700 12px Oswald, sans-serif; letter-spacing: .4px; }
.bh-tip small { color: #7790a0; font: 9px "Share Tech Mono", monospace; }
.bh-tip span {
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #91a7b4;
    font: 9px "Share Tech Mono", monospace;
    letter-spacing: 0;
}
.bh-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    color: #5c7383;
    font: 9px "Share Tech Mono", monospace;
    letter-spacing: 0;
}
@keyframes bhPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
@keyframes bhHalo { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: .25; transform: scale(1.5); } }

/* ---- Client name pool ---- */
.name-pool-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.name-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(244,123,32,.28);
    background: rgba(244,123,32,.08);
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    color: #ffe0c4;
}
.name-chip-del { margin: 0; display: inline-flex; }
.name-chip-del button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(255,85,112,.16);
    color: #ff9aa9;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.name-chip-del button:hover { background: #ff5570; color: #fff; }

/* ---- Server control list & card upgrades ---- */
.server-control-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 18px;
}

.server-control-card {
    position: relative;
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.75), rgba(12, 16, 23, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.server-control-card:hover {
    border-color: rgba(244, 123, 32, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(244, 123, 32, 0.08);
}

.server-control-card::after {
    display: none;
}

.server-card-summary {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(150px, 1fr) auto 24px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 12px 18px;
    border: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s ease;
}
.server-card-summary::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #ff6679;
    box-shadow: 0 0 8px rgba(255,102,121,.35);
}
.server-card-summary.state-running::after { background: #63e6a1; box-shadow: 0 0 8px rgba(99,230,161,.4); }
.server-card-summary.has-armed-schedule::after { background: #f2c14e; box-shadow: 0 0 8px rgba(242,193,78,.4); }
.server-card-summary.state-running.has-armed-schedule::after {
    background: linear-gradient(90deg, #63e6a1 0 58%, #f2c14e 58% 100%);
}
.server-card-summary:hover { background: #111c27; }
.server-card-summary:focus-visible { outline: 2px solid #f2c14e; outline-offset: -2px; }
.server-control-card.is-expanded .server-card-summary { border-bottom: 1px solid rgba(255,255,255,.09); }
.server-summary-id { display: grid; gap: 3px; min-width: 0; }
.server-summary-id strong {
    overflow: hidden;
    color: #f3f7fa;
    font: 700 17px "Share Tech Mono", monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.server-summary-flags { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.server-mini-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px;
    background: rgba(255,255,255,.035);
    color: #aebdca;
    font: 700 9px "Share Tech Mono", monospace;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.server-mini-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: serverIndicatorPulse 1.7s ease-in-out infinite;
}
.server-mini-state.is-running { color: #73ffae; border-color: rgba(115,255,174,.28); }
.server-mini-state.is-stopped { color: #ff8f9d; border-color: rgba(255,85,112,.24); }
.server-mini-state.is-scheduled { color: #f2c14e; border-color: rgba(242,193,78,.34); background: rgba(242,193,78,.06); }
@keyframes serverIndicatorPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 7px currentColor; }
    50% { opacity: .35; box-shadow: none; }
}
.server-card-chevron {
    color: #8da1b2;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    transition: transform .16s ease, color .16s ease;
}
.server-control-card.is-expanded .server-card-chevron { color: #f2c14e; transform: rotate(180deg); }
.server-card-details { padding: 12px 14px 14px; }
.server-card-details[hidden] { display: none !important; }
.server-detail-head {
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.server-detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b9cddc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.server-detail-kicker::before {
    content: '';
    width: 3px;
    height: 15px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--orange-primary), #b9520f);
    box-shadow: 0 0 12px var(--orange-glow);
}
.server-detail-head .server-status-stack { margin-left: auto; }
.server-id { display: flex; align-items: center; gap: 12px; }
.server-glow {
    width: 12px; height: 12px; border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    flex: none;
}
.server-glow.on { color: #73ffae; background: #73ffae; animation: pulseGlow 1.8s infinite; }
.server-glow.off { color: #ff5570; background: #ff5570; }
@keyframes pulseGlow { 0%,100%{opacity:1;} 50%{opacity:.35;} }

.chrono-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 8px;
    margin: 12px 0;
    padding: 10px;
    border: 1px solid rgba(120,180,255,.14);
    border-radius: 12px;
    background:
        radial-gradient(130% 160% at 0% 0%, rgba(120,180,255,.07), transparent 60%),
        linear-gradient(180deg, rgba(13,22,34,.85), rgba(8,13,21,.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    font-family: "Share Tech Mono", monospace;
}
.chrono-cell {
    --acc: #6fb0d8;
    position: relative;
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    padding: 9px 10px 8px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.008));
    overflow: hidden;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.chrono-cell::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--acc);
    opacity: .5;
}
.chrono-cell:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.13); }
.chrono-cell:hover::before { opacity: 1; }
.chrono-cell.cc-uptime  { --acc: #73ffae; }
.chrono-cell.cc-online  { --acc: #6fb0d8; }
.chrono-cell.cc-recon   { --acc: #f2c14e; }
.chrono-cell.cc-schedule{ --acc: #8f7dff; }
.chrono-cell.cc-map     { --acc: #f47b20; }
.chrono-cell.cc-a2s     { --acc: #59c7d9; }

.chrono-head { display: flex; align-items: center; gap: 5px; min-width: 0; }
.chrono-ico {
    flex: none;
    color: var(--acc);
    font-size: 10px;
    line-height: 1;
    opacity: .85;
}
.chrono-label {
    overflow: hidden;
    color: #7f96ab;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chrono-live-dot {
    flex: none;
    width: 6px;
    height: 6px;
    margin-left: auto;
    border-radius: 50%;
    background: #73ffae;
    box-shadow: 0 0 8px rgba(115,255,174,.75);
    animation: chronoPulse 1.7s ease-in-out infinite;
}
.chrono-cell strong {
    display: block;
    overflow: hidden;
    color: #dceaf7;
    font-family: Oswald, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chrono-uptime { color: #d3ffe8; }
.chrono-online { color: #d7ecff; }
.chrono-cell strong.chrono-schedule { font-size: 16px; }
.chrono-cell strong.chrono-map { color: #ffd8b8; font-size: 16px; }
.chrono-foot {
    overflow: hidden;
    color: #5f7688;
    font-size: 9px;
    letter-spacing: .3px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chrono-meter {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.chrono-meter i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4aa8d8, #79ddeb);
    box-shadow: 0 0 8px rgba(89,199,217,.5);
    transition: width .5s ease;
}
.chrono-cell.cc-schedule.is-armed .chrono-foot { color: #b3a6ff; }
.chrono-cell strong.chrono-a2s.a2s-off { color: #7d8fa5; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.chrono-refresh {
    flex: none;
    width: 18px;
    height: 18px;
    margin-left: auto;
    border-radius: 999px;
    border: 1px solid rgba(89,199,217,.28);
    background: rgba(89,199,217,.1);
    color: #9fcbf2;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.chrono-refresh:hover { background: rgba(89,199,217,.28); color: #eafcff; }
.chrono-refresh.spinning { animation: a2sSpin .8s linear infinite; }
@keyframes a2sSpin { to { transform: rotate(360deg); } }
@keyframes chronoPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 1180px) {
    .chrono-strip { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .chrono-live-dot, .bh-current-halo, .bh-empty-pulse { animation: none; }
    .chrono-cell:hover { transform: none; }
}

.a2s-result {
    margin: 4px 0 10px;
    padding: 12px;
    border: 1px solid rgba(120,180,255,.2);
    border-radius: 10px;
    background: rgba(10,16,26,.7);
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    color: #cfe6ff;
}
.a2s-result .a2s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 8px; }
.a2s-result b { color: #6fb0d8; }
.a2s-result.err { color: #ff9aa9; border-color: rgba(255,85,112,.35); }

.server-manage {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 12px;
}
.pm-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(120,180,255,.07);
    border: 1px solid rgba(120,180,255,.2);
}
.pm-form label { margin: 0; flex-direction: row; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.pm-form input { width: 62px; min-height: 32px; padding: 6px 8px; text-align: center; }

/* ---- Active Players roster (v4 redesign) ---- */
.roster-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.roster-head h4 { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.roster-head h4::before {
    content: "";
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--orange-primary), var(--orange-hover));
}
.roster-summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rs-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--text-muted);
    font-family: "Share Tech Mono", monospace;
}
.rs-pill i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.rs-online i { background: #73ffae; box-shadow: 0 0 6px #73ffae; }
.rs-online { color: #b6ffd7; border-color: rgba(115,255,174,.35); }
.rs-joining i { background: #ffd28a; box-shadow: 0 0 6px #ffd28a; }
.rs-joining { color: #ffe1b3; border-color: rgba(255,210,138,.32); }
.rs-offline i { background: #ff8f9d; }
.rs-offline { color: #ffb2bd; border-color: rgba(255,85,112,.3); }
.rs-target { font-family: "Share Tech Mono", monospace; font-size: 10px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }

.roster-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.player-chip {
    position: relative;
    display: grid;
    grid-template-columns: auto auto auto 1fr auto auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.09);
    border-left: 3px solid rgba(255,255,255,.18);
    background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
    overflow: hidden;
}
.player-chip:hover { background: rgba(255,255,255,.08); transform: translateX(2px); }
.player-chip .pchip-check { width: auto; margin: 0; accent-color: var(--orange-primary); }
.player-chip:not(:has(.pchip-check)) { grid-template-columns: auto auto 1fr auto auto; }

.pchip-index {
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: .5px;
}
.pchip-dot { font-size: 12px; line-height: 1; }
.pchip-body { display: grid; gap: 2px; min-width: 0; }
.pchip-name {
    font-weight: 800;
    font-size: 13px;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pchip-meta { display: flex; align-items: center; gap: 8px; }
.pchip-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.pchip-timer {
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    color: var(--text-dim);
}
.pchip-timer::before { content: "▲ "; opacity: .7; }
.pchip-join {
    display: grid;
    justify-items: end;
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}
.pchip-join small {
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
}
.pchip-retry {
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    color: #ffd28a;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,210,138,.3);
    background: rgba(255,210,138,.08);
}

/* status groups */
.player-chip.group-online { border-left-color: #73ffae; }
.player-chip.group-online .pchip-dot { color: #73ffae; text-shadow: 0 0 8px rgba(115,255,174,.7); animation: pulseGlow 1.8s infinite; }
.player-chip.group-online .pchip-status { color: #8dffc0; }
.player-chip.group-joining { border-left-color: #ffd28a; }
.player-chip.group-joining .pchip-dot { color: #ffd28a; animation: pulseGlow 1s infinite; }
.player-chip.group-joining .pchip-status { color: #ffe1b3; }
.player-chip.group-joining .pchip-timer::before { content: "… "; }
.player-chip.group-offline { border-left-color: #ff8f9d; opacity: .78; }
.player-chip.group-offline .pchip-dot { color: #ff8f9d; }
.player-chip.group-offline .pchip-status { color: #ffb2bd; }
.player-chip.group-offline .pchip-timer::before { content: ""; }
.player-chip.is-scheduled-player {
    border-left-color: #f2c14e !important;
    box-shadow: inset 3px 0 0 rgba(242,193,78,.24);
}

.roster-stop-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -3px 0 10px;
    padding: 9px 11px;
    border: 1px solid rgba(242,193,78,.28);
    border-radius: 5px;
    background: rgba(242,193,78,.07);
    animation: rosterStatusIn .18s ease-out;
}
.roster-stop-status > div { display: grid; gap: 2px; }
.roster-stop-status strong { color: #ffe2a1; font-size: 11px; letter-spacing: 0; }
.roster-stop-status small { color: #9e9276; font-size: 9px; letter-spacing: 0; }
.rss-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(242,193,78,.2);
    border-top-color: #f2c14e;
    border-radius: 50%;
    animation: rosterSpin .7s linear infinite;
}
.roster-stop-status.is-complete { border-color: rgba(255,102,121,.3); background: rgba(255,102,121,.07); }
.roster-stop-status.is-complete .rss-spinner { border: 0; background: #ff6679; animation: none; box-shadow: 0 0 9px rgba(255,102,121,.45); }
.roster-stop-status.is-error { border-color: rgba(255,85,112,.4); }
.player-chip.is-dropping {
    pointer-events: none;
    border-left-color: #f2c14e;
    background: rgba(242,193,78,.08);
    animation: playerDropping .65s ease-in-out infinite alternate;
}
.player-chip.is-dropped {
    pointer-events: none;
    opacity: .72;
    border-left-color: #ff6679;
    background: rgba(255,102,121,.075);
    transform: none;
}
.player-chip.is-clearing { animation: playerClear .42s ease-in forwards; }
.server-control-card.is-stopping .js-stop-session .btn { cursor: wait; }
@keyframes rosterSpin { to { transform: rotate(360deg); } }
@keyframes rosterStatusIn { from { opacity: 0; transform: translateY(-4px); } }
@keyframes playerDropping { from { opacity: 1; } to { opacity: .52; } }
@keyframes playerClear { to { opacity: 0; transform: translateX(28px); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; } }

@media (max-width: 560px) {
    .bh-svg { height: 84px; }
    .bh-scale { display: none; }
    .bh-chart { padding-left: 8px; }
    .bh-axis span:nth-child(2), .bh-axis span:nth-child(3) { display: none; }
}

.roster-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.roster-hint { font-size: 10px; color: var(--text-dim); letter-spacing: .5px; text-transform: uppercase; }
.roster-retry { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.roster-retry form { margin: 0; }

/* ---- log level colours ---- */
.log-mini .lv-err { color: #ff8f9d; }
.log-mini .lv-warn { color: #ffcf87; }
.log-mini .lv-ok { color: #86ffbe; }
.log-mini .lv-info { color: var(--text-muted); }

/* ---- RCON Console modal ---- */
.console-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 13, 9, .78);
    backdrop-filter: blur(2px);
}
.console-modal[hidden] { display: none; }
.console-window {
    width: min(650px, 100%);
    min-height: 475px;
    border: 1px solid #68785f;
    border-radius: 0;
    background: #3d4b35;
    box-shadow:
        0 30px 70px rgba(0,0,0,.58),
        inset 1px 1px 0 #63715a,
        inset -1px -1px 0 #253020;
    overflow: hidden;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    color: #e5ead8;
    animation: consolePop .18s ease-out;
    position: relative;
}
@keyframes consolePop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.console-window::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 15px;
    height: 15px;
    background:
        linear-gradient(135deg, transparent 0 45%, #91a084 46% 51%, transparent 52%),
        linear-gradient(135deg, transparent 0 62%, #91a084 63% 68%, transparent 69%),
        linear-gradient(135deg, transparent 0 79%, #91a084 80% 85%, transparent 86%);
    opacity: .8;
}
.console-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    padding: 0 7px 0 8px;
    background: #43523b;
    color: #f1f5e7;
    font-size: 14px;
    text-shadow: 1px 1px 0 rgba(0,0,0,.42);
}
.console-title-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.console-steam-dot {
    width: 17px;
    height: 17px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #e8eee0;
    color: #43523b;
    font-size: 8px;
    line-height: 1;
    box-shadow: inset -1px -1px 0 rgba(0,0,0,.45);
}
.console-title {
    display: block;
    color: #f1f5e7;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.console-window-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #afbaa3;
}
.console-window-controls > span:not(.console-badge),
.console-close {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #5e6d56;
    background: #46553e;
    color: #c8d0be;
    box-shadow: inset 1px 1px 0 #65735d, inset -1px -1px 0 #26301f;
    font-size: 14px;
    font-family: Tahoma, Verdana, Arial, sans-serif;
}
.console-badge {
    width: auto;
    height: 20px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #5e6d56;
    background: #3b4934;
    color: #c8d0be;
    box-shadow: inset 1px 1px 0 #65735d, inset -1px -1px 0 #26301f;
    font-size: 10px;
    letter-spacing: .5px;
}
.console-sub {
    display: block;
    color: #d9cd84;
    font-size: 11px;
    line-height: 1.1;
    margin-top: 1px;
    text-shadow: none;
}
.console-close {
    border-radius: 0;
    padding: 0;
    cursor: pointer;
}
.console-close:hover { background: #536348; color: #fff; }
.console-body {
    padding: 17px 18px 18px;
}
.console-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    height: 29px;
    padding-left: 2px;
}
.console-tabs span {
    min-width: 74px;
    height: 29px;
    padding: 7px 8px 0;
    border: 1px solid #6c7c62;
    border-bottom-color: #2f3b29;
    background: #3a4732;
    color: #f0f3e5;
    font-size: 14px;
    line-height: 1;
    box-shadow: inset 1px 1px 0 #5e6e55;
}
.console-tabs span:first-child {
    color: #d9cd84;
}
.console-tabs span.active {
    position: relative;
    z-index: 2;
    background: #46543d;
    border-bottom-color: #46543d;
}
.console-panel {
    border: 1px solid #68785f;
    background: #3a4732;
    min-height: 379px;
    padding: 13px 20px 12px;
    box-shadow: inset 1px 1px 0 #586751, inset -1px -1px 0 #26301f;
}
.console-top-grid {
    display: grid;
    grid-template-columns: 1fr 156px;
    gap: 8px 120px;
    margin: 0 23px 9px 33px;
}
.console-top-grid label {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: #f0f3e5;
    font-size: 14px;
    white-space: nowrap;
}
.console-top-grid label:nth-child(2),
.console-top-grid label:nth-child(4) {
    grid-template-columns: 48px minmax(0, 1fr);
}
.console-top-grid input,
.console-passrow input,
.console-cmdrow input {
    width: 100%;
    min-height: 28px;
    padding: 4px 6px;
    border: 1px solid #65745d;
    border-radius: 0;
    background: #46543e;
    color: #dfe6d5;
    box-shadow: inset 1px 1px 1px rgba(0,0,0,.45), inset -1px -1px 0 rgba(255,255,255,.08);
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 14px;
    outline: none;
}
.console-table {
    border: 1px solid #66755d;
    background: #303b2a;
    min-height: 255px;
    margin: 0 2px 10px;
    position: relative;
    box-shadow: inset 1px 1px 0 #20291c;
}
.console-table-head {
    display: grid;
    grid-template-columns: 54% 1fr 18px;
    height: 22px;
    border-bottom: 1px solid #6c7a63;
    background: #46543e;
    color: #f0f3e5;
    font-size: 12px;
}
.console-table-head span {
    padding: 3px 7px;
    border-right: 1px solid #77846f;
}
.console-table-head i {
    border-left: 1px solid #77846f;
    background: #526149;
}
.console-static-row {
    display: grid;
    grid-template-columns: 54% 1fr 18px;
    min-height: 20px;
    color: #f0f3e5;
    font-size: 14px;
}
.console-static-row span,
.console-static-row strong {
    padding: 2px 7px;
    font-weight: 400;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.console-output {
    height: 255px;
    overflow: auto;
    padding: 9px 24px 9px 9px;
    font-size: 13px;
    line-height: 1.35;
    color: #f0f3e5;
    white-space: pre-wrap;
    word-break: break-word;
    border-top: 1px solid rgba(104,120,95,.45);
    scrollbar-color: #617154 #303b2a;
}
.console-output > span { display: block; padding: 1px 0; }
.console-output .lv-err { color: #ffb2a8; }
.console-output .lv-ok { color: #dcebc1; }
.console-output .lv-cmd { color: #d9cd84; }
.console-output .lv-info { color: #f0f3e5; }
.console-output::-webkit-scrollbar { width: 18px; }
.console-output::-webkit-scrollbar-thumb { background: #617154; border: 1px solid #839176; }
.console-output::-webkit-scrollbar-track { background: #303b2a; }

.console-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 0 8px;
    background: transparent;
}
.console-qbtn {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    min-width: 58px;
    min-height: 25px;
    font-size: 12px;
    color: #e6eddb;
    padding: 3px 8px;
    border-radius: 0;
    border: 1px solid #65745d;
    background: #46543e;
    box-shadow: inset 1px 1px 0 #66745e, inset -1px -1px 0 #26301f;
    transition: filter .12s ease;
}
.console-qbtn:hover { filter: brightness(1.12); }
.console-qbtn.console-clear { color: #edd6cf; }

.console-passrow, .console-cmdrow {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 0 8px;
}
.console-passrow input:focus, .console-cmdrow input:focus {
    border-color: #8a9a7e;
}
.console-key,
.console-prompt {
    color: #f0f3e5;
    font-size: 14px;
    white-space: nowrap;
}
.console-remember {
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #d9e0ce;
}
.console-remember input { width: auto; min-height: auto; accent-color: #6e7f63; }
.console-send {
    min-width: 80px;
    min-height: 28px;
    padding: 0 13px;
    border-radius: 0;
    font-weight: 400;
    font-size: 13px;
    color: #e6eddb;
    background: #46543e;
    border: 1px solid #65745d;
    box-shadow: inset 1px 1px 0 #66745e, inset -1px -1px 0 #26301f;
}
.console-send:hover { filter: brightness(1.12); }

@media (max-width: 720px) {
    .console-modal { padding: 10px; }
    .console-window { width: 100%; min-height: 0; }
    .console-body { padding: 12px; }
    .console-tabs { overflow-x: auto; }
    .console-tabs span { min-width: 72px; }
    .console-panel { padding: 12px; }
    .console-top-grid {
        grid-template-columns: 1fr;
        gap: 7px;
        margin: 0 0 10px;
    }
    .console-passrow, .console-cmdrow {
        grid-template-columns: 1fr;
    }
    .console-remember {
        justify-self: start;
    }
}

/* RCON ownership gate */
.rcon-verify-panel,
.rcon-error-note {
    border-radius: 12px;
    border: 1px solid rgba(67, 183, 216, .22);
    background: rgba(8, 18, 28, .72);
}
.server-status-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.ownership-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ownership-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 20px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ownership-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.ownership-badge.ok {
    color: #8dffc0;
    border: 1px solid rgba(141, 255, 192, .35);
    background: rgba(141, 255, 192, .1);
}
.ownership-badge.locked {
    color: #ffd28a;
    border: 1px solid rgba(255, 210, 138, .35);
    background: rgba(255, 210, 138, .1);
}
.rconv-open {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: Oswald, sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.rconv-open.is-locked {
    border: 1px solid rgba(255, 210, 138, .55);
    background: rgba(255, 210, 138, .16);
    color: #ffd28a;
    box-shadow: 0 0 12px rgba(255, 210, 138, .18);
}
.rconv-open.is-locked:hover { background: #ffd28a; color: #221703; }
.rconv-open.is-ok {
    border: 1px solid rgba(141, 255, 192, .45);
    background: rgba(141, 255, 192, .1);
    color: #8dffc0;
}
.rconv-open.is-ok:hover { background: rgba(141, 255, 192, .28); }

/* ---------- RCON verification modal ---------- */
.rconv-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}
.rconv-modal[hidden] { display: none; }
.rconv-window {
    width: min(520px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(141, 255, 192, .28);
    background: linear-gradient(180deg, rgba(12, 27, 38, .98), rgba(6, 12, 18, .98));
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
    overflow: hidden;
    animation: rconvPop .18s ease;
}
@keyframes rconvPop {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.rconv-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.rconv-kicker {
    display: block;
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8dffc0;
}
.rconv-head h2 {
    margin: 4px 0 2px;
    font-family: Oswald, sans-serif;
    font-size: 22px;
    letter-spacing: .5px;
    color: #eaf6ff;
}
.rconv-target {
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    color: #6fb0d8;
}
.rconv-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: #cfe6ff;
    font-size: 14px;
    cursor: pointer;
}
.rconv-close:hover { background: rgba(255, 85, 112, .25); color: #ffb3c0; }
.rconv-body { padding: 20px; display: grid; gap: 14px; }
.rconv-body p { margin: 0; color: #a9c3d8; font-size: 13px; line-height: 1.55; }
.rconv-body code {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(141, 255, 192, .12);
    color: #8dffc0;
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
}
.rconv-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 4px 12px;
    border: 1px solid rgba(120,180,255,.3);
    border-radius: 10px;
    background: rgba(10,16,26,.8);
}
.rconv-input-row:focus-within { border-color: #8dffc0; box-shadow: 0 0 0 3px rgba(141,255,192,.12); }
.rconv-input-row input {
    flex: 1;
    min-height: 40px;
    border: none;
    background: transparent;
    color: #eaf6ff;
    font-family: "Share Tech Mono", monospace;
    font-size: 14px;
    outline: none;
}
.rconv-actions { display: flex; justify-content: flex-end; gap: 10px; }
.rconv-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(141,255,192,.25);
    background: rgba(141,255,192,.07);
    color: #a9d8bd;
    font-size: 12px;
}
.rconv-foot .rconv-ok-dot { color: #8dffc0; }

.ownership-help {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(174, 240, 255, .32);
    background: rgba(174, 240, 255, .08);
    color: #aef0ff;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}
.server-detail-head .status {
    min-height: 20px;
    padding: 2px 6px;
    border-radius: 4px;
    font: 700 8px "Share Tech Mono", monospace;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.ownership-help:hover {
    border-color: rgba(141, 255, 192, .55);
    color: #8dffc0;
}
.rcon-verify-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, .8fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    margin: 12px 0;
}
.rcon-verify-panel strong {
    display: block;
    color: #e8fbff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.rcon-verify-panel span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}
.rcon-verify-panel input {
    min-height: 38px;
}
.rcon-error-note {
    margin-top: -4px;
    margin-bottom: 12px;
    padding: 9px 12px;
    color: #ffb2bd;
    border-color: rgba(255, 85, 112, .32);
    background: rgba(255, 85, 112, .08);
    font-size: 12px;
}

.ownership-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}
.ownership-modal[hidden] {
    display: none;
}
.ownership-window {
    width: min(640px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(141, 255, 192, .24);
    background: linear-gradient(180deg, rgba(12, 27, 38, .98), rgba(6, 12, 18, .98));
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    overflow: hidden;
}
.ownership-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.ownership-kicker {
    display: block;
    color: #8dffc0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.ownership-head h2 {
    color: #fff;
    margin: 0;
    font-size: 24px;
}
.ownership-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}
.ownership-body {
    padding: 20px;
    display: grid;
    gap: 16px;
}
.ownership-body p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.ownership-flow {
    display: grid;
    gap: 8px;
    counter-reset: verify-step;
}
.ownership-flow span {
    position: relative;
    padding: 10px 12px 10px 42px;
    border: 1px solid rgba(67, 183, 216, .2);
    border-radius: 10px;
    background: rgba(8, 18, 28, .6);
    color: #e8fbff;
    font-size: 13px;
}
.ownership-flow span::before {
    counter-increment: verify-step;
    content: counter(verify-step);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(141, 255, 192, .16);
    color: #8dffc0;
    font-size: 11px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .server-status-stack { align-items: flex-start; }
    .rcon-verify-panel { grid-template-columns: 1fr; }
    .live-server-grid { grid-template-columns: 1fr; }
    .live-search-form { width: 100%; }
    .live-controls { gap: 10px 14px; }
    .live-chip { padding: 5px 10px; font-size: 11px; }
    .lsc-fill-top > strong { font-size: 24px; }
    .lsc-activity-btn { margin-left: 0; }
    .live-search-form input[type="search"] { width: 100%; flex: 1; }
    .boost-info-band { padding: 18px; }
    .boost-cta-row { width: 100%; }
    .boost-cta-row .btn { flex: 1; }
    .live-modal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .live-modal-stats strong { font-size: 17px; }
    .live-modal-event { grid-template-columns: 1fr; }
    .live-server-window {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    .live-server-modal {
        padding: 10px;
    }
    .live-server-modal-head,
    .live-modal-stats,
    .live-modal-note,
    .live-modal-logwrap {
        padding-left: 14px;
        padding-right: 14px;
    }
    .live-server-modal-head h2 {
        white-space: normal;
    }
    .live-modal-event span {
        white-space: normal;
    }
}

/* ---- Support tickets ---- */
.ticket-list { display: grid; gap: 8px; }
.ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(0,0,0,.2);
}
.ticket-row:hover { border-color: rgba(244,123,32,.4); }
.ticket-subject { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ticket-dot { font-style: normal; font-size: 9px; background: var(--red-live); color: #fff; padding: 2px 6px; border-radius: 999px; letter-spacing: 1px; }
.ticket-meta { color: var(--text-muted); font-size: 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }

.ticket-thread { display: grid; gap: 12px; margin-bottom: 16px; }
.ticket-msg {
    max-width: 80%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
}
.ticket-msg.from-client { justify-self: end; background: rgba(244,123,32,.12); border-color: rgba(244,123,32,.3); }
.ticket-msg.from-admin { justify-self: start; background: rgba(67,183,216,.1); border-color: rgba(67,183,216,.3); }
.ticket-msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.ticket-msg-body { font-size: 14px; line-height: 1.5; }
.ticket-reply textarea, .client-card textarea {
    width: 100%;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text-white);
    border-radius: 5px;
    padding: 12px;
    outline: none;
    font-family: inherit;
    resize: vertical;
}
.ticket-reply-actions { display: flex; gap: 8px; margin-top: 10px; }

select {
    width: 100%;
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--text-white);
    border-radius: 5px;
    padding: 12px;
    outline: none;
}

@media (max-width: 768px) {
    .chrono-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .chrono-cell strong { font-size: 18px; }
    .orders-grid { grid-template-columns: 1fr; }
    .ticket-msg { max-width: 100%; }
    .field-pair { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
    .main-title { font-size: 52px; }
    .subtitle { font-size: 20px; letter-spacing: 8px; }
    .sidebar { width: 300px; padding-right: 30px; }
    .hero-content { padding-left: 40px; }
    .players-number { font-size: 38px; }
    .packet-slide { grid-template-columns: 98px minmax(0, 1fr); }
    .shop-card-image { width: 98px; }
    .shop-card-info { padding-right: 30px; }
    .shop-label { font-size: 25px; }
}

@media (max-width: 992px) {
    .main-nav { gap: 16px; }
    .nav-link { font-size: 11px; }
    .hero-content { padding-left: 30px; max-width: 440px; }
    .main-title { font-size: 44px; }
    .sidebar { width: 280px; padding-right: 20px; }
    .packet-slide { grid-template-columns: 88px minmax(0, 1fr); }
    .shop-card-image { width: 88px; }
    .shop-card-info { padding: 10px 28px 10px 12px; }
    .shop-label { font-size: 23px; }
    .shop-sub { font-size: 9px; letter-spacing: .5px; }
    .packet-buy-btn { font-size: 9px; padding-inline: 10px; }
}

@media (max-width: 768px) {
    body.home-page {
        overflow-y: auto;
        height: auto;
    }

    #main-header {
        padding: 12px 20px;
    }

    .search-bar {
        width: 140px;
    }

    .main-nav {
        display: none;
    }

    .social-icons {
        gap: 12px;
    }

    #hero-section {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 80px;
    }

    .hero-content {
        padding: 20px 20px 30px;
        max-width: 100%;
    }

    .main-title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 16px;
        letter-spacing: 5px;
    }

    .sidebar {
        width: 100%;
        padding: 0 20px 80px;
    }

    .valve-footer {
        position: relative;
        bottom: auto;
        left: auto;
        padding: 20px;
    }

    .package-grid, .client-grid {
        grid-template-columns: 1fr;
    }

    .quota-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-main {
        flex-direction: column;
    }

    .server-insights,
    .server-tools-grid {
        grid-template-columns: 1fr;
    }

    .inline-schedule {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .inline-schedule input {
        width: 100%;
    }

    .schedule-pair,
    .schedule-triple {
        grid-template-columns: 1fr;
    }

    .clock-stack { justify-items: start; }

    .page-head {
        flex-direction: column;
    }
}

/* =====================================================================
 *  UPGRADE v6 — merged player stepper, reconnect toggle, logs page
 * ===================================================================== */

/* ---- Merged player-count stepper ---- */
.player-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(120,180,255,.08), rgba(120,180,255,.02));
    border: 1px solid rgba(120,180,255,.2);
}
.ps-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.ps-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 9px;
    overflow: hidden;
    background: rgba(0,0,0,.35);
}
.ps-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-white);
    background: rgba(255,255,255,.05);
    transition: background .15s ease;
}
.ps-btn:hover { background: var(--orange-primary); color: #111; }
.ps-input {
    width: 62px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(255,255,255,.12);
    border-right: 1px solid rgba(255,255,255,.12);
    border-radius: 0;
    background: transparent;
    font-family: Oswald, sans-serif;
    font-size: 20px;
    color: var(--orange-primary);
    -moz-appearance: textfield;
}
.ps-input::-webkit-outer-spin-button, .ps-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ps-hint { font-family: "Share Tech Mono", monospace; font-size: 11px; color: var(--text-dim); letter-spacing: .5px; text-transform: uppercase; }

/* ---- Reconnect toggle (switch) ---- */
.recon-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    user-select: none;
}
.recon-toggle input { display: none; }
.recon-track {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    transition: background .18s ease;
    flex: none;
}
.recon-track::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #cbd4de;
    transition: transform .18s ease, background .18s ease;
}
.recon-toggle input:checked + .recon-track { background: rgba(255,85,112,.5); border-color: rgba(255,85,112,.6); }
.recon-toggle input:checked + .recon-track::after { transform: translateX(18px); background: #ff8f9d; }
.recon-text { font-weight: 700; letter-spacing: .3px; }

/* ---- Recent Logs column header ---- */
.logbox-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.logbox-head h4 { margin: 0; }
.logbox-actions { display: flex; gap: 6px; }

/* ---- Full Logs viewer page ---- */
.mono-ip { font-family: "Share Tech Mono", monospace; color: var(--orange-hover); }
.logstat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.logstat {
    position: relative;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.25));
    overflow: hidden;
}
.logstat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--text-muted); }
.logstat.ls-ok::before { background: #73ffae; }
.logstat.ls-warn::before { background: #ffd28a; }
.logstat.ls-err::before { background: #ff5570; }
.logstat.ls-total::before { background: var(--orange-primary); }
.logstat span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); }
.logstat strong { display: block; font-family: Oswald, sans-serif; font-size: 40px; line-height: 1; margin: 8px 0 4px; color: var(--text-white); }
.logstat.ls-ok strong { color: #8dffc0; }
.logstat.ls-warn strong { color: #ffd28a; }
.logstat.ls-err strong { color: #ff9aa9; }
.logstat.ls-total strong { color: var(--orange-primary); }
.logstat small { color: var(--text-dim); font-size: 11px; }

.log-span {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid rgba(120,180,255,.16);
    background: rgba(10,16,26,.5);
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    color: var(--text-muted);
}
.log-span strong { color: #d7ecff; }
.log-span-sep { color: var(--orange-hover); }

.log-viewer {
    border: 1px solid rgba(120,180,255,.18);
    border-radius: 12px;
    overflow: hidden;
    background: #04070c;
}
.log-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(120,180,255,.14);
    background: linear-gradient(180deg, rgba(67,183,216,.08), rgba(67,183,216,.02));
}
.log-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.log-chip {
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    letter-spacing: .5px;
    padding: 6px 13px;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    transition: all .15s ease;
}
.log-chip:hover { color: #fff; }
.log-chip.active { background: var(--orange-primary); border-color: var(--orange-primary); color: #111; font-weight: 800; }
.log-chip.lf-ok.active { background: #73ffae; border-color: #73ffae; }
.log-chip.lf-warn.active { background: #ffd28a; border-color: #ffd28a; }
.log-chip.lf-err.active { background: #ff5570; border-color: #ff5570; color: #fff; }
.log-search {
    width: 240px;
    max-width: 100%;
    min-height: 36px;
    background: #0a121b;
    border: 1px solid rgba(120,180,255,.24);
    color: #cdeefb;
    font-family: "Share Tech Mono", monospace;
    border-radius: 8px;
    padding: 8px 12px;
}

.log-stream {
    max-height: 560px;
    overflow: auto;
    padding: 6px 0;
    font-family: "Share Tech Mono", monospace;
    background:
        repeating-linear-gradient(180deg, rgba(120,220,255,.015) 0 1px, transparent 1px 3px),
        #04070c;
}
.log-row {
    display: grid;
    grid-template-columns: 78px 60px auto 1fr;
    align-items: baseline;
    gap: 12px;
    padding: 6px 16px;
    font-size: 12.5px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255,255,255,.035);
}
.log-row:hover { background: rgba(120,180,255,.05); }
.log-time { color: #5f7d92; font-size: 11px; white-space: nowrap; }
.log-badge {
    justify-self: start;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 7px;
    border-radius: 5px;
    text-align: center;
}
.lb-ok { background: rgba(115,255,174,.14); color: #8dffc0; border: 1px solid rgba(115,255,174,.3); }
.lb-warn { background: rgba(255,210,138,.14); color: #ffd28a; border: 1px solid rgba(255,210,138,.3); }
.lb-err { background: rgba(255,85,112,.16); color: #ff9aa9; border: 1px solid rgba(255,85,112,.35); }
.lb-info { background: rgba(120,180,255,.12); color: #9fd0ee; border: 1px solid rgba(120,180,255,.28); }
.log-scope {
    color: #ffb877;
    font-size: 11px;
    white-space: nowrap;
    opacity: .9;
}
.log-text { color: #c3d6e2; word-break: break-word; }
.log-row.lv-err .log-text { color: #ffc2cb; }
.log-row.lv-warn .log-text { color: #ffe1b3; }
.log-row.lv-ok .log-text { color: #b6ffd7; }
.log-empty { padding: 40px 16px; text-align: center; color: var(--text-muted); font-family: "Share Tech Mono", monospace; }
.log-row.log-hidden { display: none; }

@media (max-width: 768px) {
    .logstat-grid { grid-template-columns: repeat(2, 1fr); }
    .log-row { grid-template-columns: 64px auto 1fr; }
    .log-row .log-scope { display: none; }
    .player-stepper { justify-content: space-between; }
}

/* ---- ReAuthCheck whitelist notice ---- */
.whitelist-notice {
    border: 1px solid rgba(244, 123, 32, .35);
    background: linear-gradient(180deg, rgba(244, 123, 32, .1), rgba(0, 0, 0, .18));
}
.whitelist-notice.is-collapsible { padding: 0; overflow: hidden; }
.whitelist-toggle {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 68px;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.whitelist-toggle:hover { background: rgba(244,123,32,.055); }
.whitelist-toggle:focus-visible { outline: 2px solid var(--orange-hover); outline-offset: -2px; }
.whitelist-toggle > div { display: grid; gap: 3px; min-width: 0; }
.whitelist-toggle h2 { margin: 0; overflow: hidden; color: #f3f7fa; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.whitelist-toggle p { margin: 0; color: #8e9fac; font-size: 10px; }
.whitelist-toggle-state { display: flex; align-items: center; gap: 7px; color: #d89a62; }
.whitelist-toggle-state small { font: 700 9px "Share Tech Mono", monospace; letter-spacing: 0; text-transform: uppercase; }
.whitelist-toggle-state i { font-size: 19px; font-style: normal; transition: transform .16s ease; }
.whitelist-notice.is-expanded .whitelist-toggle-state i { transform: rotate(180deg); }
.whitelist-collapsible-body { padding: 13px 14px 15px; border-top: 1px solid rgba(244,123,32,.18); }
.whitelist-collapsible-body[hidden] { display: none !important; }
.whitelist-copy-text { margin: 0 0 13px; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.whitelist-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.whitelist-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(244, 123, 32, .16);
    border: 1px solid rgba(244, 123, 32, .4);
    color: var(--orange-hover);
    font-size: 20px;
}
.whitelist-head h2 { margin-bottom: 6px; }
.whitelist-head p { color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.whitelist-head strong { color: var(--orange-hover); }

.whitelist-ip-list { display: grid; gap: 8px; margin-bottom: 16px; }
.whitelist-ip-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, .1);
}
.whitelist-ip-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
}
.whitelist-ip-value {
    font-family: "Share Tech Mono", monospace;
    font-size: 16px;
    color: #8dffc0;
    letter-spacing: .5px;
}
.whitelist-ip-row.whitelist-ip-unknown { opacity: .8; }
.copy-ip-btn { margin-left: auto; }
.copy-ip-btn.copied { background: rgba(115, 255, 174, .18); border-color: rgba(115, 255, 174, .4); color: #8dffc0; }

.whitelist-ip-row.whitelist-ip-locked { border-style: dashed; opacity: .92; }
.whitelist-ip-value.whitelist-ip-crypted {
    color: var(--text-dim);
    letter-spacing: 2px;
    filter: blur(.4px);
    user-select: none;
}
.whitelist-lock-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--orange-hover);
    white-space: nowrap;
}

.whitelist-steps {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 22px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.whitelist-steps li::marker { color: var(--orange-hover); font-weight: 800; }
.whitelist-steps code {
    color: #aef0ff;
    background: rgba(67, 183, 216, .1);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: "Share Tech Mono", monospace;
}
.whitelist-file-link {
    display: inline;
    padding: 2px 6px;
    border: 1px solid rgba(67,183,216,.28);
    border-radius: 4px;
    background: rgba(67,183,216,.1);
    color: #aef0ff;
    font: 700 12px "Share Tech Mono", monospace;
    cursor: pointer;
}
.whitelist-file-link:hover { border-color: rgba(174,240,255,.58); background: rgba(67,183,216,.18); color: #fff; }
.whitelist-file-window { width: min(700px, 100%); }
.whitelist-file-body { gap: 13px; }
.whitelist-path { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.whitelist-path span {
    padding: 5px 8px;
    border: 1px solid rgba(114,213,255,.2);
    border-radius: 4px;
    background: rgba(114,213,255,.06);
    color: #ccefff;
    font: 700 11px "Share Tech Mono", monospace;
}
.whitelist-path i { color: #5d7485; font-style: normal; }
.whitelist-full-path {
    display: block;
    padding: 10px 12px;
    overflow-wrap: anywhere;
    border-left: 3px solid #72d5ff;
    background: #071018;
    color: #aef0ff;
    font: 12px "Share Tech Mono", monospace;
}
.whitelist-modal-steps { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: #a9bac6; font-size: 12px; line-height: 1.5; }
.whitelist-modal-steps li::marker { color: var(--orange-hover); font-weight: 800; }
.whitelist-modal-steps strong { color: #edf5f8; }
.whitelist-modal-steps code { color: #f2c14e; font-family: "Share Tech Mono", monospace; }

@media (max-width: 768px) {
    .whitelist-head { flex-direction: column; }
    .copy-ip-btn { margin-left: 0; }
    .whitelist-toggle { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 10px; }
    .whitelist-toggle .whitelist-icon { width: 34px; height: 34px; border-radius: 7px; font-size: 16px; }
    .whitelist-toggle-state small { display: none; }
    .engine-row {
        grid-template-columns: 27px 7px minmax(0, 1fr) 52px;
        grid-template-rows: auto auto;
        min-height: 73px;
        padding: 10px;
    }
    .engine-index { grid-column: 1; grid-row: 1; width: 27px; height: 27px; }
    .engine-status-dot { grid-column: 2; grid-row: 1; }
    .engine-identity { grid-column: 3; grid-row: 1; }
    .engine-state { grid-column: 4; grid-row: 1; }
    .engine-capacity-meter { grid-column: 3 / 5; grid-row: 2; }
    .engine-capacity-meter > span { justify-content: flex-start; }
}

/* ---- System overload: client-facing notices ---- */
.overload-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(229,57,53,.92), rgba(244,123,32,.92));
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .3px;
    text-align: center;
}
.overload-banner-icon { font-size: 16px; }

.packages-paused-notice {
    border: 1px solid rgba(255,210,138,.4);
    background: linear-gradient(180deg, rgba(255,210,138,.14), rgba(0,0,0,.2));
}

/* ---- Server-time schedule, player controls, and details dialog ---- */
.server-time-unavailable {
    display: grid;
    gap: 2px;
    max-width: 250px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 210, 138, .32);
    border-radius: 6px;
    background: rgba(255, 210, 138, .07);
}
.server-time-unavailable strong { color: #ffd28a; font-size: 11px; text-transform: uppercase; }
.server-time-unavailable span { color: var(--text-muted); font-size: 10px; }

.roster-control-dock {
    display: grid;
    gap: 9px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.09);
}
.roster-control-dock .player-stepper {
    border-radius: 6px;
}
.roster-control-dock .player-capacity-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(115,184,225,.24);
    border-radius: 8px;
    background: #0d161f;
}
.pcap-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.pcap-title { display: grid; gap: 2px; min-width: 0; }
.pcap-title > span {
    color: #d9e6ef;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.pcap-title strong { color: #f7fbff; font: 700 13px "Share Tech Mono", monospace; line-height: 1.2; }
.pcap-title b { color: #72d5ff; font: 700 22px Oswald, sans-serif; }
.pcap-title small { color: #a7bac8; font: 600 12px "Share Tech Mono", monospace; }
.pcap-available {
    flex: 0 0 auto;
    padding: 4px 6px;
    border: 1px solid rgba(115,255,174,.2);
    border-radius: 5px;
    background: rgba(115,255,174,.06);
    color: #a9bbc9;
    font: 10px "Share Tech Mono", monospace;
    text-transform: uppercase;
}
.pcap-available b { color: #73ffae; }
.pcap-allocation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.pcap-stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 5px;
    background: #09121a;
}
.pcap-stat small {
    overflow: hidden;
    color: #91a5b4;
    font: 700 9px "Share Tech Mono", monospace;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.pcap-stat b { color: #e9f3f8; font: 700 20px Oswald, sans-serif; }
.pcap-stat.schedule { border-left: 3px solid #f2c14e; }
.pcap-stat.schedule b { color: #f2c14e; }
.pcap-stat.manual { border-left: 3px solid #72d5ff; }
.pcap-stat.manual b { color: #72d5ff; }
.pcap-stat.packet { border-left: 3px solid #73ffae; }
.pcap-stat.packet b { color: #73ffae; }
.pcap-actions {
    display: grid;
    grid-template-columns: 36px minmax(170px, 1fr) 36px;
    gap: 6px;
    align-items: stretch;
}
.pcap-actions .ps-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;
    background: #14202b;
}
.pcap-input-wrap { position: relative; display: block; height: 36px; margin: 0; }
.pcap-input-wrap > span {
    position: absolute;
    z-index: 1;
    top: 4px;
    left: 0;
    width: 100%;
    color: var(--text-dim);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .6px;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}
.pcap-input-wrap .ps-input {
    width: 100%;
    height: 36px;
    padding: 10px 8px 0;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 5px;
    background: #091018;
    color: #72d5ff;
}
.pcap-autosave {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.player-capacity-control.is-saving .ps-input { border-color: rgba(114, 213, 255, .75); }
.player-capacity-control.is-save-error .ps-input {
    border-color: #ff6679;
    box-shadow: 0 0 0 2px rgba(255, 102, 121, .1);
}
.pcap-warning {
    margin: 0;
    padding: 6px 8px;
    border-left: 3px solid #ff6679;
    background: rgba(255,102,121,.07);
    color: #ffacb7;
    font-size: 10px;
}
.roster-control-dock .server-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.roster-control-dock .server-actions form,
.roster-control-dock .server-actions .btn { width: 100%; }
.roster-control-dock .server-actions .inline-action { padding: 0; border: 0; background: transparent; }
.roster-control-dock .server-actions .btn { min-height: 30px; line-height: 1.1; white-space: normal; }
.reconnect-control {
    border-color: rgba(255,255,255,.15);
    background: #111b24;
    color: #aebdca;
}
.reconnect-control .reconnect-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: currentColor;
}
.reconnect-control.is-on { border-color: rgba(115,255,174,.28); color: #73ffae; }
.reconnect-control.is-off { border-color: rgba(255,102,121,.25); color: #ff8f9d; }
.schedule-live-control:disabled {
    border-color: rgba(242,193,78,.3);
    background: rgba(242,193,78,.07);
    color: #f2c14e;
    opacity: 1;
}

.server-control-card .btn {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 10px;
    letter-spacing: .5px;
}
.server-control-card .btn.small { min-height: 30px; font-size: 10px; }
.server-control-card .btn.tiny { min-height: 26px; padding: 0 8px; font-size: 9px; }

.player-roster-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
    min-width: 0;
}

/* ---------- Active Players: capacity stepper ---------- */
.roster-control-dock .pcap-actions .ps-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    transition: transform .14s ease, background-color .14s ease, color .14s ease;
}
.roster-control-dock .pcap-actions .ps-btn:hover { transform: translateY(-1px); }
.roster-control-dock .pcap-actions .ps-btn:active { transform: translateY(0); }

.player-chip {
    width: 100%;
    grid-template-columns: auto auto minmax(0,1fr) auto auto auto;
    color: inherit;
    text-align: left;
    font: inherit;
}
.player-chip:focus-visible { outline: 2px solid var(--orange-primary); outline-offset: 2px; }
.pchip-open { color: var(--text-dim); font-size: 20px; transition: transform .15s ease, color .15s ease; }
.player-chip:hover .pchip-open { color: var(--orange-hover); transform: translateX(2px); }
.player-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(3, 7, 12, .82);
    backdrop-filter: blur(7px);
}
.player-modal[hidden] { display: none; }
.player-modal-window {
    width: min(700px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border: 1px solid rgba(120,180,255,.24);
    border-radius: 8px;
    background: #0b111a;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.player-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    background: #101824;
}
.player-modal-kicker { display: block; color: var(--orange-hover); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.player-modal-head h2 { margin: 5px 0 4px; color: #fff; font-size: 25px; letter-spacing: 0; }
.player-modal-state { color: #8dffc0; font: 11px "Share Tech Mono", monospace; text-transform: uppercase; }
.player-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;
    background: rgba(255,255,255,.05);
    color: #fff;
    cursor: pointer;
}
.player-modal-body { display: grid; gap: 16px; padding: 20px 22px 22px; }
.player-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.player-detail-grid > div,
.player-error-detail {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
    background: rgba(255,255,255,.025);
}
.player-detail-grid span,
.player-error-detail span { display: block; color: var(--text-dim); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.player-detail-grid strong,
.player-error-detail strong { display: block; margin-top: 5px; color: #d7ecff; font: 12px "Share Tech Mono", monospace; overflow-wrap: anywhere; }
.player-error-detail { border-color: rgba(255,85,112,.25); }
.player-error-detail strong { color: #ffb2bd; }
.player-rename-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 9px;
    align-items: end;
    padding: 13px;
    border: 1px solid rgba(244,123,32,.2);
    border-radius: 6px;
    background: rgba(244,123,32,.05);
}
.player-rename-form label { margin: 0; }
.player-rename-form input { min-height: 38px; }
.player-modal-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.player-modal-actions form { display: flex; align-items: center; gap: 10px; }
.player-modal-actions form[hidden] { display: none; }
.player-modal-actions .recon-toggle { margin: 0; }

@media (max-width: 720px) {
    .server-card-summary { grid-template-columns: 10px minmax(0,1fr) 20px; gap: 9px; }
    .server-summary-flags { grid-column: 2; justify-content: flex-start; }
    .server-card-chevron { grid-column: 3; grid-row: 1 / span 2; }
    .server-detail-head { align-items: flex-start; }
    .server-detail-head .server-status-stack { margin-left: 0; }
    .pcap-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .pcap-actions { grid-template-columns: 36px minmax(0,1fr) 36px; }
    .roster-control-dock .server-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .player-detail-grid { grid-template-columns: 1fr; }
    .player-rename-form { grid-template-columns: 1fr; }
    .player-modal-actions,
    .player-modal-actions form { align-items: stretch; flex-direction: column; }
    .player-chip { grid-template-columns: auto auto minmax(0,1fr) auto; }
    .player-chip .pchip-join,
    .player-chip .pchip-retry { display: none; }
    .player-roster-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .schedule-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .se-player-field,
    .se-form-actions { grid-column: auto; }
}

@media (max-width: 620px) {
    .inline-schedule.schedule-editor { padding: 0; }
    .schedule-editor-summary { grid-template-columns: 4px minmax(0,1fr) auto; gap: 9px; }
    .schedule-summary-action small { display: none; }
    .schedule-summary-copy > span:last-child { white-space: normal; }
    .schedule-editor-clock { justify-content: stretch; }
    .schedule-editor-clock .panel-clock-chip,
    .schedule-editor-clock .server-time-unavailable { width: 100%; }
    .schedule-editor-head { align-items: stretch; }
    .schedule-editor-head .panel-clock-chip,
    .schedule-editor-head .server-time-unavailable { width: 100%; }
    .schedule-editor-grid { grid-template-columns: minmax(0, 1fr); }
    .schedule-status-bar { align-items: stretch; flex-direction: column; }
    .ssb-actions { justify-content: flex-start; }
    .pcap-allocation { grid-template-columns: 1fr; }
}

.status.system-paused-tag {
    background: rgba(255,85,112,.14);
    color: #ff9aa9;
    border: 1px solid rgba(255,85,112,.35);
    font-size: 10px;
    margin-top: 4px;
}

/* =====================================================================
   Profile page — identity card + quick links
   ===================================================================== */
/* ================= Client Profile ================= */
.profile-identity {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 26px 24px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    background:
        radial-gradient(120% 150% at 100% 0%, rgba(244,123,32,.16), transparent 58%),
        radial-gradient(90% 120% at 0% 100%, rgba(120,180,255,.08), transparent 60%),
        linear-gradient(180deg, #16131c, #0c0a11 70%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 44px rgba(0,0,0,.42);
    overflow: hidden;
}
.profile-identity::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244,123,32,.65), transparent);
}
/* Avatar sits inside a conic ring so it reads as an identity, not a coloured box. */
.pi-avatar {
    position: relative;
    flex: none;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-primary), #b34a0e);
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(244,123,32,.42), 0 0 0 4px rgba(255,255,255,.06);
}
.pi-avatar::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid rgba(244,123,32,.34);
}
.pi-info { min-width: 0; flex: 1; }
.pi-info h2 {
    margin: 0;
    font-family: Oswald, sans-serif;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: .6px;
    color: var(--text-white);
    overflow-wrap: anywhere;
}
.pi-email {
    display: inline-flex;
    align-items: center;
    margin: 6px 0 10px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    color: var(--text-muted);
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.pi-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-dim);
}
.pi-meta > span {
    padding: 5px 11px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    background: rgba(255,255,255,.03);
}
.pi-meta b { color: var(--text-white); font-weight: 600; }
.pi-badges { flex: none; }
.pi-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    white-space: nowrap;
}
.pi-badge.ok {
    border: 1px solid rgba(115,255,174,.4);
    background: rgba(115,255,174,.1);
    color: #73ffae;
}
.pi-badge.idle {
    border: 1px solid rgba(255,210,138,.4);
    background: rgba(255,210,138,.08);
    color: #ffd28a;
}

/* ---------- Profile: stat tiles (Single line 5-column layout & compact button styling) ---------- */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.profile-stats-grid .quota-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.profile-stats-grid .quota-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--orange-primary), rgba(244,123,32,.25));
    border-radius: 3px 0 0 3px;
}

.profile-stats-grid .quota-card:hover {
    transform: translateY(-2px);
    border-color: rgba(244,123,32,.35);
    background: linear-gradient(145deg, rgba(244,123,32,.08), rgba(255,255,255,.02));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(244, 123, 32, 0.1);
}

.profile-stats-grid .quota-card span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #8fa4b2;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-stats-grid .quota-card strong {
    font-family: "Share Tech Mono", Inter, sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--orange-primary);
    line-height: 1.1;
    margin: 4px 0 2px;
}

.profile-stats-grid .quota-card small {
    font-size: 10px;
    color: #708494;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1024px) {
    .profile-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Profile: Personal API Access Key Card ---------- */
.profile-api-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.75), rgba(12, 16, 23, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    padding: 24px;
}

.api-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.api-card-head-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-icon {
    font-size: 22px;
    line-height: 1;
}

.api-card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.api-key-status-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(115, 255, 174, 0.08);
    border: 1px solid rgba(115, 255, 174, 0.25);
    color: #73ffae;
    font: 10px "Share Tech Mono", monospace;
    letter-spacing: 0.5px;
}

.api-key-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.api-input-wrap {
    flex: 1;
    min-width: 260px;
}

.api-key-btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.danger-text {
    color: #ff6b7a !important;
}

.api-doc-box {
    margin-top: 4px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(6, 12, 19, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.api-doc-box h4 {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: #b0c2d1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-endpoints-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.api-endpoint-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
}

.api-endpoint-row code {
    flex: none;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(244, 123, 32, 0.1);
    border: 1px solid rgba(244, 123, 32, 0.25);
    color: #ff9d42;
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
}

.api-endpoint-row span {
    color: #8fa4b2;
}

@media (max-width: 768px) {
    .api-endpoint-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ---------- Profile: Account ID Badge & Name Row ---------- */
.pi-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(244, 123, 32, 0.1);
    border: 1px solid rgba(244, 123, 32, 0.25);
    color: #ff9d42;
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.account-id-badge:hover {
    background: rgba(244, 123, 32, 0.2);
    border-color: rgba(244, 123, 32, 0.45);
}

.account-id-badge.copied::after {
    content: " (Copied!)";
    color: #73ffae;
}

/* ---------- Profile: Cybersecurity Status Deck ---------- */
.profile-sec-deck {
    position: relative;
    padding: 18px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 22, 31, 0.9), rgba(9, 13, 19, 0.95));
    border: 1px solid rgba(115, 255, 174, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sec-deck-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 10px;
}

.sec-deck-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sec-shield-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(115, 255, 174, 0.1);
    border: 1px solid rgba(115, 255, 174, 0.3);
    color: #73ffae;
    font-size: 16px;
    box-shadow: 0 0 12px rgba(115, 255, 174, 0.2);
}

.sec-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(115, 255, 174, 0.1);
    border: 1px solid rgba(115, 255, 174, 0.3);
    color: #73ffae;
    font: 10px "Share Tech Mono", monospace;
    letter-spacing: 0.8px;
}

.sec-deck-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sec-pill-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sec-pill-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(115, 255, 174, 0.25);
}

.sec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #73ffae;
    box-shadow: 0 0 8px #73ffae;
    flex-shrink: 0;
}

.sec-pill-meta strong {
    display: block;
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    color: #e2ebf3;
    letter-spacing: 0.3px;
}

.sec-pill-meta small {
    display: block;
    font-size: 10px;
    color: #738a9c;
    margin-top: 1px;
}

@media (max-width: 900px) {
    .sec-deck-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .sec-deck-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Profile: Collapsible Personal API Access Key Card ---------- */
.collapsible-api-card {
    margin-bottom: 22px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.75), rgba(12, 16, 23, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 0;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.collapsible-api-card[open] {
    border-color: rgba(244, 123, 32, 0.25);
}

.api-card-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.api-card-summary::-webkit-details-marker {
    display: none;
}

.api-card-summary-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-card-summary-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-expand-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(244, 123, 32, 0.12);
    border: 1px solid rgba(244, 123, 32, 0.3);
    color: #ff9d42;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.api-card-summary:hover .api-expand-badge {
    background: rgba(244, 123, 32, 0.22);
    border-color: rgba(244, 123, 32, 0.5);
}

.api-card-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
}

.pnc-toggle-row div small {
    display: block;
    font-size: 11px;
    color: #8fa4b2;
    margin-top: 2px;
}

.profile-visibility-card { align-content: start; }
.profile-visibility-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.profile-visibility-head h2 { margin: 0; }
.profile-visibility-head p { margin: 4px 0 0; font-size: 12px; }
.profile-visibility-state {
    flex: none;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;
    color: #a5b1b8;
    font: 700 9px/1 "Share Tech Mono", monospace;
    text-transform: uppercase;
}
.profile-visibility-state.is-public {
    border-color: rgba(115,255,174,.3);
    background: rgba(115,255,174,.08);
    color: #73ffae;
}
.profile-visibility-toggle {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    cursor: pointer;
}
.profile-visibility-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pvt-track {
    width: 38px;
    height: 20px;
    padding: 2px;
    border-radius: 999px;
    background: #344049;
    transition: background .18s ease;
}
.pvt-track i {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d7e0e5;
    transition: transform .18s ease;
}
label input:checked + .pvt-track { background: #31875b; }
label input:checked + .pvt-track i { transform: translateX(18px); }
label input:focus-visible + .pvt-track { outline: 2px solid var(--orange-primary); outline-offset: 3px; }
.profile-visibility-toggle > span:last-child { display: grid; gap: 2px; min-width: 0; }
.profile-visibility-toggle strong { color: var(--text-white); font-size: 12px; }
.profile-visibility-toggle small { color: var(--text-muted); font-size: 10px; }

/* ---------- Profile: forms ---------- */
.modern-client-grid .client-card {
    border-radius: 16px;
    background:
        radial-gradient(110% 130% at 100% 0%, rgba(244,123,32,.07), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.modern-client-grid .client-card:focus-within {
    border-color: rgba(244,123,32,.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 3px rgba(244,123,32,.1);
}
.modern-client-grid .client-card h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    letter-spacing: .5px;
}
.modern-client-grid .client-card h2::before {
    content: '';
    width: 3px;
    height: 15px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--orange-primary), #b9520f);
    box-shadow: 0 0 10px var(--orange-glow);
}
.modern-client-grid .client-card .btn.primary {
    justify-self: start;
    min-height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: .3px;
}
/* ========== Add Server Card (Modern Professional Redesign) ========== */
.add-server-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 16px !important;
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.75), rgba(12, 16, 23, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 24px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.add-server-card:focus-within,
.add-server-card:hover {
    border-color: rgba(244, 123, 32, 0.25);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(244, 123, 32, 0.08);
}

/* Header Section */
.add-server-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.add-server-form-head-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.form-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange-primary), #b9520f);
    color: #fff;
    box-shadow: 0 4px 15px var(--orange-glow);
    flex-shrink: 0;
}

.add-server-title-group h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}

.add-server-subtitle {
    display: block;
    font-size: 11px;
    color: #8fa4b2;
    margin-top: 2px;
    font-weight: 400;
}

/* Free Slots Pill */
.add-server-slots-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(115, 255, 174, 0.08);
    border: 1px solid rgba(115, 255, 174, 0.2);
    color: #a4fbd3;
    font: 11px/1 "Share Tech Mono", monospace;
    flex-shrink: 0;
}

.add-server-slots-pill b {
    color: #51ff9b;
    font-size: 13px;
    font-weight: 700;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #51ff9b;
    box-shadow: 0 0 8px #51ff9b;
    animation: pulseGlow 2s infinite ease-in-out;
}

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

.add-server-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(90px, 0.7fr) minmax(130px, 1fr);
    gap: 14px;
}

.server-title-sep {
    color: var(--orange-primary);
    font-weight: 700;
    margin: 0 4px;
}

.as-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.as-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.as-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b3c5d4;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.as-super-tag {
    color: #72d5ff !important;
    font: 10px "Share Tech Mono", monospace !important;
    text-transform: none;
}

.as-required {
    color: #ff6b7a;
    font-weight: 700;
}

.as-field-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 11px;
    color: #8aa1b3;
    line-height: 1.4;
}

.as-field-hint svg {
    flex-shrink: 0;
    color: var(--orange-primary);
}

.as-rcon-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #ff9d42;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.as-rcon-link:hover {
    color: #ffb773;
}

/* Delete Confirmation Modal Popup */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 8, 14, 0.78);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.delete-modal-overlay[hidden] {
    display: none !important;
}

.delete-modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(26, 20, 24, 0.95), rgba(16, 12, 16, 0.98));
    border: 1px solid rgba(229, 57, 53, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(229, 57, 53, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: popupScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupScale {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.delete-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.15);
    color: #ff5252;
    font-size: 22px;
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.delete-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.delete-modal-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #a0acb8;
}

.delete-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.delete-modal-actions .btn {
    flex: 1;
    min-height: 42px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 10px;
    justify-content: center;
}

/* Slot Quick Preset Chips */
.as-slot-chips {
    display: flex;
    align-items: center;
    gap: 4px;
}

.as-chip {
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8fa4b2;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.as-chip:hover {
    background: rgba(244, 123, 32, 0.18);
    border-color: rgba(244, 123, 32, 0.4);
    color: #fff;
}

.as-chip.active {
    background: rgba(244, 123, 32, 0.25);
    border-color: var(--orange-primary);
    color: #ffa559;
}

/* Input Wrappers & Icon styling */
.as-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.as-field-icon {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #607385;
    pointer-events: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.as-input-wrap:focus-within .as-field-icon {
    color: var(--orange-primary);
    transform: scale(1.08);
}

.as-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px 0 38px;
    border-radius: 10px;
    background: rgba(6, 12, 19, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    font-family: "Share Tech Mono", monospace, sans-serif;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.as-input-wrap input::placeholder {
    color: #4a5968;
    font-weight: 400;
}

.as-input-wrap input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.as-input-wrap input:focus {
    outline: none;
    background: rgba(6, 12, 19, 0.9);
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Password Eye Toggle Button */
.as-input-pass-wrap input {
    padding-right: 38px;
}

.as-toggle-pass {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #607385;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.as-toggle-pass:hover {
    color: #d1dfed;
    background: rgba(255, 255, 255, 0.08);
}

/* Divider */
.as-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 2px 0;
}

/* Consent Checkbox */
.add-server-consent {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #92a4b3 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.add-server-consent:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #c0d1e0 !important;
}

.add-server-consent input {
    flex: none;
    width: 16px;
    height: 16px;
    accent-color: var(--orange-primary);
    cursor: pointer;
}

/* Submit Button */
.modern-client-grid .add-server-card .add-server-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border-radius: 10px;
    min-height: 46px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    background: linear-gradient(135deg, #f47b20 0%, #d66a0f 100%);
    box-shadow: 0 4px 18px rgba(244, 123, 32, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.25s ease;
    cursor: pointer;
}

.modern-client-grid .add-server-card .add-server-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 123, 32, 0.5);
    background: linear-gradient(135deg, #ff8f3c 0%, #e87315 100%);
}

.modern-client-grid .add-server-card .add-server-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(244, 123, 32, 0.3);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .add-server-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .as-field-address {
        grid-column: 1 / -1;
    }
}

@media (max-width: 580px) {
    .add-server-card {
        padding: 18px;
    }
    .add-server-form-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .add-server-slots-pill {
        align-self: flex-start;
    }
    .add-server-fields {
        grid-template-columns: 1fr;
    }
}

/* ---------- Profile: quick access ---------- */
.profile-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.profile-link-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
    text-decoration: none;
    overflow: hidden;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
/* Accent sweep grows from the left edge on hover instead of flooding the card. */
.profile-link-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--orange-primary), #b9520f);
    opacity: 0;
    transition: opacity .16s ease;
}
.profile-link-card:hover,
.profile-link-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(244,123,32,.42);
    box-shadow: 0 12px 28px rgba(0,0,0,.34);
    outline: none;
}
.profile-link-card:hover::before,
.profile-link-card:focus-visible::before { opacity: 1; }
.profile-link-card::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 19px;
    line-height: 1;
    transition: transform .16s ease, color .16s ease;
}
.profile-link-card:hover::after {
    transform: translate(3px, -50%);
    color: var(--orange-hover);
}
.plc-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid rgba(244,123,32,.32);
    background: linear-gradient(180deg, rgba(244,123,32,.2), rgba(244,123,32,.06));
    color: var(--orange-hover);
    font-family: Oswald, sans-serif;
    font-size: 16px;
    font-weight: 700;
    transition: box-shadow .16s ease;
}
.profile-link-card:hover .plc-icon { box-shadow: 0 6px 18px rgba(244,123,32,.28); }
.profile-link-card > div { min-width: 0; padding-right: 14px; }
.profile-link-card strong {
    display: block;
    color: var(--text-white);
    font-size: 14px;
    margin-bottom: 4px;
}
.profile-link-card span:not(.plc-icon) {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
    .profile-link-card:hover { transform: none; }
    .profile-link-card:hover::after { transform: translateY(-50%); }
}

@media (max-width: 760px) {
    .profile-identity { padding: 16px; }
    .pi-avatar { width: 58px; height: 58px; font-size: 22px; }
    .profile-links-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRO POLISH — Daily Schedule + Active Players (professional pass)
   Additive refinements; override by cascade order.
   ============================================================ */

/* ---- Daily Schedule editor ---- */
.inline-schedule.schedule-editor {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: linear-gradient(180deg, #0c141d, #0a1119);
    box-shadow: 0 10px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
}
.inline-schedule.schedule-editor.state-armed  { border-color: rgba(242,193,78,.34); }
.inline-schedule.schedule-editor.state-paused { border-color: rgba(230,184,102,.28); }

.schedule-editor-summary {
    min-height: 66px;
    padding: 12px 14px 12px 0;
    background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 70%), #0d161f;
}
.schedule-editor-summary:hover { background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 70%), #101b26; }
.schedule-state-line { border-radius: 0 3px 3px 0; }
.state-armed  .schedule-state-line { background: linear-gradient(180deg,#ffd36a,#f2c14e); }
.state-paused .schedule-state-line { background: linear-gradient(180deg,#f2cd8c,#e6b866); }

.schedule-summary-copy .se-title-row { display: flex; align-items: center; gap: 10px; }
.schedule-summary-copy .se-title-row strong { font-size: 14.5px; letter-spacing: .4px; }

.schedule-summary-action {
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.schedule-editor-summary:hover .schedule-summary-action { border-color: rgba(242,193,78,.5); color: #f2c14e; }

/* Professional pill badges */
.se-badge {
    padding: 4px 11px;
    border-radius: 999px;
    font: 700 10px "Share Tech Mono", monospace;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.se-badge-armed  { background: rgba(242,193,78,.12); border-color: rgba(242,193,78,.5); }
.se-badge-paused { background: rgba(255,210,138,.1);  border-color: rgba(255,210,138,.42); }

.schedule-editor-body {
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,.012);
}

/* Refined field inputs */
.schedule-editor-grid { gap: 12px 10px; }
.se-field-label b { color: #cdd9e2; font-size: 10.5px; letter-spacing: .8px; }
.se-time-picker {
    min-height: 42px;
    border-radius: 8px;
    border-color: rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(24,33,45,.96), rgba(11,16,23,.96));
    transition: border-color .16s ease, box-shadow .16s ease;
}
.se-time-picker:focus-within { border-color: var(--orange-hover); box-shadow: 0 0 0 3px rgba(244,123,32,.16); }
.schedule-editor-grid .se-player-control input,
.schedule-editor-grid .se-field input {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, rgba(24,33,45,.9), rgba(11,16,23,.9));
    transition: border-color .16s ease, box-shadow .16s ease;
}
.schedule-editor-grid .se-field input:focus { border-color: var(--orange-hover); box-shadow: 0 0 0 3px rgba(244,123,32,.16); outline: 0; }

.schedule-editor-grid .se-save {
    min-height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-hover));
    border: 0;
    font-weight: 700;
    letter-spacing: .4px;
    box-shadow: 0 6px 16px rgba(244,123,32,.28);
    transition: transform .12s ease, box-shadow .16s ease;
}
.schedule-editor-grid .se-save:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(244,123,32,.36); }

/* Reservations status bar */
.schedule-status-bar {
    border-radius: 10px;
    padding: 11px 13px;
}
.schedule-status-bar.is-armed  { border-color: rgba(115,255,174,.32); background: rgba(115,255,174,.06); }
.schedule-status-bar.is-paused { border-color: rgba(255,210,138,.32); background: rgba(255,210,138,.06); }
.ssb-count { font: 700 12px "Share Tech Mono", monospace; letter-spacing: .5px; }

/* ---- Active Players roster ---- */
.roster-head h4 { font-family: Oswald, sans-serif; letter-spacing: .5px; }
.roster-summary { gap: 7px; }
.rs-pill {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.03);
    font: 700 11px "Share Tech Mono", monospace;
    letter-spacing: .3px;
}
.rs-pill.rs-online  { color: #73ffae; border-color: rgba(115,255,174,.34); background: rgba(115,255,174,.07); }
.rs-pill.rs-joining { color: #72d5ff; border-color: rgba(114,213,255,.32); background: rgba(114,213,255,.07); }
.rs-pill.rs-offline { color: #ff9aa2; border-color: rgba(229,57,53,.3);   background: rgba(229,57,53,.06); }
.rs-pill.rs-waiting { color: #ffd28a; border-color: rgba(255,210,138,.34); background: rgba(255,210,138,.07); }
.rs-pill i { box-shadow: 0 0 7px currentColor; }
.rs-target {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px dashed rgba(255,255,255,.16);
    color: #9fb2c0;
}

/* Waiting list */
.roster-waiting { border-radius: 10px; }

/* Capacity dock — cleaner stat cards */
.roster-control-dock { gap: 12px; }
.pcap-allocation { gap: 8px; }
.pcap-stat {
    border-radius: 8px;
    padding: 9px 11px;
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.07);
    transition: transform .12s ease, border-color .16s ease;
}
.pcap-stat:hover { transform: translateY(-1px); }
.pcap-stat.schedule:hover { border-color: rgba(242,193,78,.4); }
.pcap-stat.manual:hover   { border-color: rgba(114,213,255,.4); }
.pcap-stat.packet:hover   { border-color: rgba(115,255,174,.4); }
.pcap-actions .ps-btn {
    border-radius: 8px;
    transition: transform .1s ease, background .16s ease;
}
.pcap-actions .ps-btn:hover { transform: scale(1.06); }
