/**
 * Xtream Pro theme — overlay (do not edit app.css / bootstrap.css)
 * Modern dark NOC style; light variant via body.xtream-pro.xt-light
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body.xtream-pro {
    --xt-accent: #00bcd4;
    --xt-accent-hover: #00a5bb;
    --xt-accent-soft: rgba(0, 188, 212, 0.15);
    --xt-topnav: #0d1117;
    --xt-sidebar: #111820;
    --xt-sidebar-active: rgba(0, 188, 212, 0.12);
    --xt-body: #0f1419;
    --xt-card: #1a2332;
    --xt-card-border: rgba(255, 255, 255, 0.06);
    --xt-text: #e6edf3;
    --xt-text-muted: #8b9cb3;
    --xt-input-bg: #151d2b;
    --xt-input-border: rgba(255, 255, 255, 0.08);
    --xt-table-stripe: rgba(255, 255, 255, 0.02);
    --xt-radius: 10px;
    --xt-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --xt-success: #22c55e;
    --xt-warning: #f59e0b;
    --xt-danger: #ef4444;
    font-family: "Inter", "Poppins", sans-serif !important;
}

body.xtream-pro.xt-light {
    /* Stream-style light panel (reference dashboard) */
    --xt-accent: #e74c3c;
    --xt-accent-hover: #c0392b;
    --xt-accent-soft: rgba(231, 76, 60, 0.12);
    --xt-menu-active: #e74c3c;
    --xt-topnav: #ffffff;
    --xt-sidebar: #e9ecef;
    --xt-sidebar-active: #ffffff;
    --xt-body: #f4f5f7;
    --xt-card: #ffffff;
    --xt-card-border: #e3e6ea;
    --xt-text: #2c3e50;
    --xt-text-muted: #7f8c8d;
    --xt-input-bg: #ffffff;
    --xt-input-border: #dce1e6;
    --xt-table-stripe: rgba(0, 0, 0, 0.02);
    --xt-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --xt-radius: 6px;
    --xt-success: #27ae60;
    --xt-warning: #f39c12;
    --xt-danger: #e74c3c;
}

/* Layout */
body.xtream-pro {
    background-color: var(--xt-body) !important;
    color: var(--xt-text);
}

body.xtream-pro .wrapper .container-fluid {
    padding-top: 0;
}

/* Vertical sidebar layout — full-height sidebar (no empty topbar gap above brand) */
body.xtream-pro .left-side-menu {
    width: 240px !important;
    top: 0 !important;
    position: fixed !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 1003 !important;
}

body.xtream-pro .content-page {
    margin-left: 240px !important;
    margin-top: 70px !important;
    padding: 0 15px 5px 15px !important;
    min-height: 80vh !important;
}

body.xtream-pro.enlarged .left-side-menu {
    width: 70px !important;
}

body.xtream-pro.enlarged .content-page {
    margin-left: 70px !important;
}

body.xtream-pro .navbar-custom {
    left: 240px !important;
    right: 0 !important;
    position: fixed !important;
    top: 0 !important;
    z-index: 1002 !important;
    height: 70px !important;
}

body.xtream-pro.enlarged .navbar-custom {
    left: 70px !important;
}

/* Empty topbar logo slot — brand lives in sidebar only */
body.xtream-pro .logo-box {
    display: none !important;
}

body.xtream-pro #sidebar-menu > ul > li > a {
    padding: 11px 18px !important;
    font-size: 0.9rem !important;
}

body.xtream-pro #sidebar-menu .menu-title {
    color: var(--xt-text-muted) !important;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 12px 18px 6px !important;
}

body.xtream-pro #sidebar-menu .nav-second-level .menu-title {
    padding: 10px 20px 4px !important;
    margin-top: 4px;
    pointer-events: none;
    font-weight: 600;
}

body.xtream-pro #sidebar-menu .nav-second-level .menu-title:first-child {
    margin-top: 0;
    padding-top: 4px !important;
}

body.xtream-pro .user-box {
    padding: 16px 18px !important;
    border-bottom: 1px solid var(--xt-card-border) !important;
    margin-bottom: 8px !important;
}

/* Top bar */
body.xtream-pro #topnav,
body.xtream-pro .navbar-custom {
    background: var(--xt-topnav) !important;
    box-shadow: var(--xt-shadow) !important;
    border-bottom: 1px solid var(--xt-card-border);
}

body.xtream-pro #topnav .navigation-menu > li > a,
body.xtream-pro .navbar-custom .nav-link,
body.xtream-pro .topnav-menu .nav-link {
    color: var(--xt-text) !important;
}

body.xtream-pro #topnav .navigation-menu > li > a:hover,
body.xtream-pro #topnav .navigation-menu > li.active > a {
    color: var(--xt-accent) !important;
}

/* Sidebar */
body.xtream-pro .left-side-menu {
    background: var(--xt-sidebar) !important;
    border-right: 1px solid var(--xt-card-border);
    box-shadow: none !important;
}

body.xtream-pro #sidebar-menu > ul > li > a {
    color: var(--xt-text-muted) !important;
    border-radius: 8px;
    margin: 2px 8px;
}

body.xtream-pro #sidebar-menu > ul > li > a:hover,
body.xtream-pro #sidebar-menu > ul > li > a:focus,
body.xtream-pro #sidebar-menu > ul > li > a:active {
    color: var(--xt-accent) !important;
    background: var(--xt-sidebar-active) !important;
}

body.xtream-pro #sidebar-menu > ul > li > a i,
body.xtream-pro #sidebar-menu > ul > li > a .la,
body.xtream-pro #sidebar-menu > ul > li > a .mdi {
    color: var(--xt-accent) !important;
}

body.xtream-pro .user-box,
body.xtream-pro .user-box .user-name,
body.xtream-pro .user-box .text-muted {
    color: var(--xt-text) !important;
}

body.xtream-pro.xt-light .left-side-menu {
    background: var(--xt-sidebar) !important;
}

body.xtream-pro.xt-light #sidebar-menu > ul > li > a {
    color: var(--xt-text-muted) !important;
}

/* Cards */
body.xtream-pro .card {
    background: var(--xt-card) !important;
    border: 1px solid var(--xt-card-border) !important;
    border-radius: var(--xt-radius) !important;
    box-shadow: var(--xt-shadow) !important;
}

body.xtream-pro .card-header:not([class*="bg-"]),
body.xtream-pro .card-footer {
    background: transparent !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .card-header[class*="bg-"] {
    border-color: transparent !important;
}

body.xtream-pro .header-title,
body.xtream-pro .page-title,
body.xtream-pro h1,
body.xtream-pro h2,
body.xtream-pro h3,
body.xtream-pro h4,
body.xtream-pro h5 {
    color: var(--xt-text) !important;
}

body.xtream-pro .text-muted {
    color: var(--xt-text-muted) !important;
}

/* Buttons */
body.xtream-pro .btn-primary {
    background: var(--xt-accent) !important;
    border-color: var(--xt-accent) !important;
    border-radius: 8px !important;
}

body.xtream-pro .btn-primary:hover,
body.xtream-pro .btn-primary:focus {
    background: var(--xt-accent-hover) !important;
    border-color: var(--xt-accent-hover) !important;
}

body.xtream-pro .btn-outline-primary {
    color: var(--xt-accent) !important;
    border-color: var(--xt-accent) !important;
    border-radius: 8px !important;
}

body.xtream-pro .btn-outline-primary:hover {
    background: var(--xt-accent-soft) !important;
}

body.xtream-pro .btn-light {
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    color: var(--xt-text) !important;
    border-radius: 8px !important;
}

body.xtream-pro .btn-outline-success {
    border-radius: 8px !important;
}

/* Forms */
body.xtream-pro .form-control,
body.xtream-pro .custom-select,
body.xtream-pro select.form-control {
    background-color: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    color: var(--xt-text) !important;
    border-radius: 8px !important;
}

body.xtream-pro .form-control:focus {
    border-color: var(--xt-accent) !important;
    box-shadow: 0 0 0 0.15rem var(--xt-accent-soft) !important;
}

body.xtream-pro .input-group-text {
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    color: var(--xt-text-muted) !important;
}

/* Tables */
body.xtream-pro .table {
    color: var(--xt-text) !important;
}

body.xtream-pro .table thead th {
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-card-border) !important;
    color: var(--xt-text-muted) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}

body.xtream-pro .table td,
body.xtream-pro .table th {
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--xt-table-stripe) !important;
}

body.xtream-pro table.dataTable tbody tr {
    background-color: transparent !important;
}

body.xtream-pro .dataTables_wrapper .dataTables_filter input,
body.xtream-pro .dataTables_wrapper .dataTables_length select {
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    color: var(--xt-text) !important;
    border-radius: 8px !important;
}

body.xtream-pro .page-link {
    background: var(--xt-card) !important;
    border-color: var(--xt-card-border) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro .page-item.active .page-link {
    background: var(--xt-accent) !important;
    border-color: var(--xt-accent) !important;
}

/* Badges & status */
body.xtream-pro .badge-success,
body.xtream-pro .badge.badge-success {
    background-color: var(--xt-success) !important;
}

body.xtream-pro .badge-danger {
    background-color: var(--xt-danger) !important;
}

body.xtream-pro .badge-primary {
    background-color: var(--xt-accent) !important;
}

body.xtream-pro .btn-outline-success {
    color: var(--xt-success) !important;
    border-color: var(--xt-success) !important;
}

/* Alerts */
body.xtream-pro .alert {
    border-radius: var(--xt-radius) !important;
    border-width: 1px !important;
}

body.xtream-pro .alert-success {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: var(--xt-success) !important;
}

body.xtream-pro .alert-info {
    background: var(--xt-accent-soft) !important;
    border-color: rgba(0, 188, 212, 0.35) !important;
    color: var(--xt-accent) !important;
}

body.xtream-pro .alert-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

/* Dropdowns */
body.xtream-pro .dropdown-menu {
    background: var(--xt-card) !important;
    border: 1px solid var(--xt-card-border) !important;
    box-shadow: var(--xt-shadow) !important;
    border-radius: var(--xt-radius) !important;
}

body.xtream-pro .dropdown-item {
    color: var(--xt-text) !important;
}

body.xtream-pro .dropdown-item:hover {
    background: var(--xt-sidebar-active) !important;
    color: var(--xt-accent) !important;
}

/* Breadcrumb */
body.xtream-pro .breadcrumb-item,
body.xtream-pro .breadcrumb-item a {
    color: var(--xt-text-muted) !important;
}

body.xtream-pro .breadcrumb-item.active {
    color: var(--xt-text) !important;
}

/* Switchery accent */
body.xtream-pro .switchery-default {
    background-color: var(--xt-input-border) !important;
    border-color: var(--xt-input-border) !important;
}

body.xtream-pro .switchery-default small {
    background-color: #fff !important;
}

/* Stream info mini tables in datatables */
body.xtream-pro .table[style*="font-size: 12px"] td {
    color: var(--xt-text) !important;
}

/* Login */
body.xtream-pro.authentication-bg,
body.xtream-pro.authentication-bg-pattern {
    background: linear-gradient(145deg, #0a0e14 0%, #111820 40%, #0d1520 100%) !important;
}

body.xtream-pro.authentication-bg .card,
body.xtream-pro.authentication-bg-pattern .card {
    background: var(--xt-card) !important;
    border: 1px solid var(--xt-card-border) !important;
}

body.xtream-pro .account-pages .text-center img {
    filter: drop-shadow(0 4px 12px rgba(0, 188, 212, 0.25));
}

/* Scrollbar (webkit) */
body.xtream-pro ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.xtream-pro ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

body.xtream-pro ::-webkit-scrollbar-track {
    background: transparent;
}

/* ========== Stream-style light (screenshot reference) ========== */
body.xtream-pro.xt-light {
    background-color: var(--xt-body) !important;
}

body.xtream-pro.xt-light .navbar-custom {
    background: var(--xt-topnav) !important;
    border-bottom: 1px solid var(--xt-card-border) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.xtream-pro.xt-light .navbar-custom .nav-link,
body.xtream-pro.xt-light .topnav-menu .nav-link,
body.xtream-pro.xt-light .button-menu-mobile span {
    color: var(--xt-text) !important;
}

body.xtream-pro.xt-light .left-side-menu {
    background: var(--xt-sidebar) !important;
    border-right: 1px solid var(--xt-card-border) !important;
    box-shadow: none !important;
}

body.xtream-pro.xt-light #sidebar-menu > ul > li > a {
    color: #5a6a7e !important;
    border-left: 3px solid transparent !important;
    margin: 1px 8px !important;
    border-radius: 0 4px 4px 0 !important;
}

body.xtream-pro.xt-light #sidebar-menu > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro.xt-light #sidebar-menu > ul > li > a.active,
body.xtream-pro.xt-light .left-side-menu-light #sidebar-menu > ul > li > a.active {
    background: var(--xt-sidebar-active) !important;
    color: var(--xt-text) !important;
    border-left-color: var(--xt-menu-active) !important;
    font-weight: 600 !important;
}

body.xtream-pro.xt-light #sidebar-menu > ul > li > a i,
body.xtream-pro.xt-light #sidebar-menu > ul > li > a .la {
    color: #5a6a7e !important;
}

body.xtream-pro.xt-light #sidebar-menu > ul > li > a.active i,
body.xtream-pro.xt-light #sidebar-menu > ul > li > a.active .la {
    color: var(--xt-menu-active) !important;
}

body.xtream-pro.xt-light .page-title,
body.xtream-pro.xt-light .header-title {
    font-weight: 600 !important;
    color: #34495e !important;
}

/* Dashboard Overview — centered stat tiles (circular icons) */
body.xtream-pro .xt-overview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--xt-text);
    margin: 0 0 1rem 0;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--xt-card-border);
}

body.xtream-pro a.xt-stat-card-link {
    text-decoration: none !important;
    color: inherit;
}

body.xtream-pro a.xt-stat-card-link:hover .xt-stat-card {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

body.xtream-pro #server-home .xt-stat-card,
body.xtream-pro .content-page .xt-stat-card,
body.xtream-pro .wrapper .xt-stat-card {
    text-align: center;
    padding: 1.35rem 1rem 1.15rem !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 1200px) {
    body.xtream-pro #server-home > .row > .col-xl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

body.xtream-pro .xt-stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.25rem;
}

body.xtream-pro .xt-stat-card__icon--yellow { background: #f1c40f; }
body.xtream-pro .xt-stat-card__icon--blue { background: #3498db; }
body.xtream-pro .xt-stat-card__icon--green { background: #2ecc71; }
body.xtream-pro .xt-stat-card__icon--red { background: #e74c3c; }
body.xtream-pro .xt-stat-card__icon--purple { background: #9b59b6; }
body.xtream-pro .xt-stat-card__icon--cyan { background: #1abc9c; }

body.xtream-pro .xt-stat-card__value {
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    margin-bottom: 0.35rem !important;
}

body.xtream-pro .xt-stat-card__label {
    font-size: 0.8125rem !important;
    color: var(--xt-text-muted) !important;
}

body.xtream-pro .streams-ratio .xt-stat-card__label {
    white-space: nowrap;
}

body.xtream-pro.xt-light #server-home .card-box,
body.xtream-pro.xt-light #server-tab .card-box,
body.xtream-pro.xt-light .xt-stat-card {
    border: 1px solid var(--xt-card-border) !important;
    border-radius: var(--xt-radius) !important;
    box-shadow: var(--xt-shadow) !important;
}

/* Server grid — medium cards (~2 per row), scroll if 10+ servers */
body.xtream-pro .xt-servers-section {
    margin-bottom: 12px;
}

body.xtream-pro .xt-servers-count {
    font-size: 0.85rem;
}

body.xtream-pro .xt-servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 14px;
}

body.xtream-pro .xt-servers-scroll {
    max-height: 580px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

@media (min-width: 1600px) {
    body.xtream-pro .xt-servers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

body.xtream-pro .xt-server-card {
    background: var(--xt-card) !important;
    border: 1px solid var(--xt-card-border) !important;
    border-radius: var(--xt-radius) !important;
    box-shadow: var(--xt-shadow) !important;
    margin: 0 !important;
    overflow: hidden;
}

body.xtream-pro .xt-server-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--xt-card-border);
    background: var(--xt-card);
}

body.xtream-pro .xt-server-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--xt-text) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

body.xtream-pro .xt-server-card__monitor {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--xt-text-muted) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

body.xtream-pro .xt-server-card__monitor:hover {
    color: var(--xt-accent) !important;
}

body.xtream-pro .xt-server-card__body {
    display: flex;
    flex-wrap: nowrap;
    padding: 14px 16px 16px;
    gap: 14px;
}

body.xtream-pro .xt-server-card__stats {
    flex: 1 1 58%;
    min-width: 0;
}

body.xtream-pro .xt-stat-dl dt {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--xt-text-muted);
    margin: 0 0 1px;
    padding-top: 6px;
}

body.xtream-pro .xt-stat-dl dt:first-child {
    padding-top: 0;
}

body.xtream-pro .xt-stat-dl dd {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--xt-text);
    margin: 0 0 2px;
}

body.xtream-pro .xt-server-card__bars {
    flex: 0 0 38%;
    max-width: 160px;
    border-left: 1px solid var(--xt-card-border);
    padding-left: 14px;
}

body.xtream-pro .xt-meter-v {
    margin-bottom: 10px;
}

body.xtream-pro .xt-meter-v:last-child {
    margin-bottom: 0;
}

body.xtream-pro .xt-meter-v__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--xt-text);
    margin-bottom: 4px;
}

body.xtream-pro .xt-meter-v__top span:last-child {
    font-weight: 500;
    color: var(--xt-text-muted);
    font-size: 0.72rem;
}

body.xtream-pro .xt-meter-v .progress {
    height: 8px !important;
    border-radius: 3px !important;
    background: #ecf0f1 !important;
}

body.xtream-pro:not(.xt-light) .xt-meter-v .progress {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.xtream-pro .xt-meter-v .progress-bar.bg-success {
    background-color: #2ecc71 !important;
    border-radius: 3px;
}

@media (max-width: 480px) {
    body.xtream-pro .xt-servers-grid {
        grid-template-columns: 1fr;
    }
    body.xtream-pro .xt-server-card__body {
        flex-direction: column;
    }
    body.xtream-pro .xt-server-card__bars {
        max-width: none;
        border-left: none;
        border-top: 1px solid var(--xt-card-border);
        padding-left: 0;
        padding-top: 12px;
    }
}

body.xtream-pro.xt-light .card {
    border-radius: var(--xt-radius) !important;
}

body.xtream-pro.xt-light .progress {
    height: 8px !important;
    border-radius: 4px !important;
    background: #ecf0f1 !important;
}

body.xtream-pro.xt-light .progress-bar {
    background-color: var(--xt-success) !important;
}

body.xtream-pro.xt-light .nav-tabs .nav-link {
    color: var(--xt-text-muted) !important;
    border: none !important;
}

body.xtream-pro.xt-light .nav-tabs .nav-link.active {
    color: var(--xt-menu-active) !important;
    border-bottom: 2px solid var(--xt-menu-active) !important;
    background: transparent !important;
}

body.xtream-pro.xt-light .alert-info {
    background: #d6eaf8 !important;
    border-color: #aed6f1 !important;
    color: #2471a3 !important;
}

body.xtream-pro.xt-light .alert-warning,
body.xtream-pro.xt-light .alert-danger {
    background: #fadbd8 !important;
    border-color: #f5b7b1 !important;
    color: #922b21 !important;
}

body.xtream-pro.xt-light .btn-primary {
    background: #d9534f !important;
    border-color: #d43f3a !important;
}

body.xtream-pro.xt-light.authentication-bg,
body.xtream-pro.xt-light.authentication-bg-pattern {
    background: linear-gradient(160deg, #ecf0f1 0%, #f4f5f7 50%, #e9ecef 100%) !important;
}

body.xtream-pro.xt-light ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

/* Dashboard + Server Monitor section titles */
body.xtream-pro .xt-dashboard-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--xt-text, #34495e);
}

body.xtream-pro .xt-dashboard-chart-toolbar {
    gap: 0.75rem;
}

body.xtream-pro .xt-dashboard-period-btns .btn-light {
    border-color: var(--xt-card-border, #e8ecf1);
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-dashboard-period-btns .btn-light:hover {
    background: #f8f9fb;
    color: var(--xt-accent, #d9534f);
}

body.xtream-pro .xt-dashboard-chart-card {
    margin-bottom: 1rem;
}

/* Server Monitor page */
body.xtream-pro .xt-smon-page {
    margin-bottom: 1rem;
}

body.xtream-pro .xt-smon-hero {
    padding: 14px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(46, 204, 113, 0.06) 100%);
    border: 1px solid rgba(52, 152, 219, 0.12);
}

body.xtream-pro .xt-smon-hero__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

body.xtream-pro .xt-smon-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

body.xtream-pro .xt-smon-status--online {
    color: #1e8449;
    background: rgba(46, 204, 113, 0.15);
}

body.xtream-pro .xt-smon-status--offline {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.12);
}

body.xtream-pro .xt-smon-status .mdi-circle {
    font-size: 8px;
}

body.xtream-pro .xt-smon-hero__ip {
    font-size: 0.875rem;
    color: var(--xt-text-muted);
    font-weight: 500;
}

body.xtream-pro .xt-smon-hero__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(155, 89, 182, 0.12);
    color: #8e44ad;
}

body.xtream-pro .xt-smon-hero__note {
    font-size: 0.8125rem;
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-smon-tile {
    text-align: center;
    padding: 16px 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.xtream-pro .xt-smon-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

body.xtream-pro .xt-smon-tile__icon {
    font-size: 1.25rem;
    opacity: 0.85;
    margin-bottom: 6px;
}

body.xtream-pro .xt-smon-tile__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--xt-text);
    line-height: 1.2;
}

body.xtream-pro .xt-smon-tile__value small {
    font-size: 0.65em;
    font-weight: 600;
    opacity: 0.7;
}

body.xtream-pro .xt-smon-tile__label {
    font-size: 0.75rem;
    color: var(--xt-text-muted);
    margin-top: 4px;
    font-weight: 500;
}

body.xtream-pro .xt-smon-tile--purple .xt-smon-tile__icon { color: #9b59b6; }
body.xtream-pro .xt-smon-tile--cyan .xt-smon-tile__icon { color: #3498db; }
body.xtream-pro .xt-smon-tile--green .xt-smon-tile__icon { color: #2ecc71; }
body.xtream-pro .xt-smon-tile--orange .xt-smon-tile__icon { color: #e67e22; }

body.xtream-pro .xt-smon-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--xt-text);
    margin-bottom: 1rem;
}

body.xtream-pro .xt-smon-section-title .mdi,
body.xtream-pro .xt-smon-section-title .fe {
    margin-right: 6px;
    opacity: 0.75;
}

body.xtream-pro .xt-smon-chart-card,
body.xtream-pro .xt-smon-gauge-card,
body.xtream-pro .xt-smon-info-card {
    margin-bottom: 14px;
}

body.xtream-pro .xt-smon-chart {
    min-height: 340px;
}

body.xtream-pro .xt-smon-chart-head {
    gap: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(120, 130, 150, 0.1);
}

body.xtream-pro .xt-smon-chart-head__right {
    gap: 8px;
}

body.xtream-pro .xt-smon-chart-legend {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-smon-chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.xtream-pro .xt-smon-chart-legend__item i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

body.xtream-pro .xt-smon-chart-legend__item--in i {
    background: #3498db;
}

body.xtream-pro .xt-smon-chart-legend__item--out i {
    background: #2ecc71;
}

body.xtream-pro .xt-smon-chart .apexcharts-toolbar {
    top: 2px !important;
    right: 4px !important;
}

body.xtream-pro .xt-smon-chart .apexcharts-canvas {
    margin-top: 4px;
}

body.xtream-pro .xt-smon-ring-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

body.xtream-pro .xt-smon-ring-item {
    text-align: center;
    min-width: 110px;
}

body.xtream-pro .xt-smon-ring {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 8px;
}

body.xtream-pro .xt-smon-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

body.xtream-pro .xt-smon-ring__bg {
    fill: none;
    stroke: rgba(120, 130, 150, 0.15);
    stroke-width: 3;
}

body.xtream-pro .xt-smon-ring__fill {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.4s ease;
}

body.xtream-pro .xt-smon-ring__fill--cpu { stroke: #e74c3c; }
body.xtream-pro .xt-smon-ring__fill--mem { stroke: #3498db; }

body.xtream-pro .xt-smon-ring__val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--xt-text);
}

body.xtream-pro .xt-smon-ring-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--xt-text);
}

body.xtream-pro .xt-smon-info-grid {
    margin-top: 0.25rem;
}

body.xtream-pro .xt-smon-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(120, 130, 150, 0.06);
    border: 1px solid rgba(120, 130, 150, 0.08);
}

body.xtream-pro .xt-smon-info-item > i {
    font-size: 1.25rem;
    color: #3498db;
    opacity: 0.85;
    margin-top: 2px;
    flex-shrink: 0;
}

body.xtream-pro .xt-smon-info-item span {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--xt-text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

body.xtream-pro .xt-smon-info-item strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--xt-text);
    font-weight: 600;
    word-break: break-word;
}

body.xtream-pro .xt-smon-dl dt {
    font-size: 0.8rem;
    color: var(--xt-text-muted);
    font-weight: 500;
}

body.xtream-pro .xt-smon-dl dd {
    font-size: 0.85rem;
    color: var(--xt-text);
    font-weight: 600;
    word-break: break-word;
}

body.xtream-pro .xt-restreamers-page .xt-restreamers-table thead th,
body.xtream-pro .xt-whitelist-page .xt-sc-section label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

body.xtream-pro .xt-restreamers-page .xt-restreamers-tabs .nav-link.active {
    color: #d9534f;
    border-color: #dee2e6 #dee2e6 #fff;
}

body.xtream-pro .xt-restreamers-page .xt-restreamers-links .list-group-item-action {
    border-radius: 6px;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

body.xtream-pro .xt-restreamers-page .xt-restreamers-links .list-group-item-action:hover {
    color: #d9534f;
    background: rgba(217, 83, 79, 0.06);
}

body.xtream-pro .xt-whitelist-page .xt-whitelist-preview {
    max-height: 120px;
    overflow: auto;
    border-radius: 6px;
}

body.xtream-pro .xt-isp-page .xt-sc-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-tickets-page .xt-tickets-table thead th,
body.xtream-pro .xt-subresellers-page .xt-subresellers-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

body.xtream-pro .xt-ticket-view-page .xt-ticket-timeline {
    padding: 0.5rem 0;
}

body.xtream-pro .xt-ticket-view-page .xt-ticket-thread-card .card-body {
    padding: 1.25rem 1.5rem;
}

body.xtream-pro .xt-mag-events-page .xt-mag-events-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

body.xtream-pro .xt-mass-delete-page .xt-mass-delete-card .nav-pills .nav-link.active {
    background-color: #d9534f;
}

body.xtream-pro .xt-vpn-isp-page .xt-sc-card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-vpn-isp-page .xt-isp-add-form label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--xt-text-muted);
    text-transform: uppercase;
}

body.xtream-pro .xt-vpn-isp-page .xt-isp-rules-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--xt-text-muted);
    border-top: 0;
}

body.xtream-pro .xt-vpn-isp-page #xt_isp_delete_sel {
    font-weight: 600;
}

body.xtream-pro .xt-vpn-isp-page .xt-security-quicklinks a {
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-vpn-isp-page .xt-security-quicklinks a:hover {
    color: var(--xt-accent, #d9534f);
}

body.xtream-pro .xt-vpn-isp-page .xt-sc-yesno .xt-sc-check-group {
    justify-content: flex-end;
}

body.xtream-pro .xt-vpn-isp-page .xt-sc-yesno .xt-sc-radio input[type="radio"] {
    accent-color: #d9534f;
}

/* Manage VOD — StreamCreed */
body.xtream-pro .xt-movies-manage-page .xt-movies-manage-card .xt-sc-card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-movies-manage-page .xt-movies-bulk-actions .btn {
    font-weight: 600;
    margin-left: 0.35rem;
}

body.xtream-pro .xt-movies-manage-page .xt-movies-toolbar .xt-streams-filter-label,
body.xtream-pro .xt-movies-manage-page .xt-movies-filters .xt-streams-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--xt-text-muted);
    margin-bottom: 0.25rem;
}

body.xtream-pro .xt-movies-manage-page .xt-movies-dt-controls {
    min-height: 2rem;
    gap: 0.5rem 0.75rem;
}

body.xtream-pro .xt-movies-manage-page .xt-movies-dt-controls .dataTables_length,
body.xtream-pro .xt-movies-manage-page .xt-movies-dt-controls .dataTables_filter {
    float: none !important;
    display: inline-block !important;
    margin: 0 !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.xtream-pro .xt-movies-manage-page .xt-movies-dt-controls .dataTables_length label,
body.xtream-pro .xt-movies-manage-page .xt-movies-dt-controls .dataTables_filter label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--xt-text-muted);
    margin: 0 !important;
}

body.xtream-pro .xt-movies-manage-page .xt-movies-dt-controls .dataTables_length select,
body.xtream-pro .xt-movies-manage-page .xt-movies-dt-controls .dataTables_filter input {
    display: inline-block !important;
    margin: 0 !important;
    min-width: 4.5rem;
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
}

body.xtream-pro .xt-movies-manage-page .xt-movies-dt-controls .dataTables_filter input {
    min-width: 14rem;
}

body.xtream-pro .xt-movies-manage-page .xt-movie-tmdb-id {
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

body.xtream-pro .xt-movies-manage-page .xt-movie-tmdb-id:hover {
    text-decoration: underline;
}

body.xtream-pro .xt-movies-manage-page .xt-movie-title-hover {
    color: var(--xt-text);
    font-weight: 500;
    cursor: pointer;
}

body.xtream-pro .xt-movies-manage-page .xt-movie-title-hover:hover {
    color: var(--xt-accent);
    text-decoration: underline;
}

body.xtream-pro .xt-movies-manage-page .xt-movies-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--xt-text-muted);
    border-top: 0;
    white-space: nowrap;
}

body.xtream-pro .xt-movies-manage-page .xt-movie-codec-lines {
    color: var(--xt-text);
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: nowrap;
}

body.xtream-pro .xt-movies-manage-page .xt-movie-codec-line + .xt-movie-codec-line {
    margin-top: 2px;
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-movies-manage-page .xt-movie-info-dl dt {
    font-size: 0.8125rem;
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-movies-manage-page .xt-movie-info-dl dd {
    font-size: 0.875rem;
    color: var(--xt-text);
}

/* Add / Edit VOD — StreamCreed */
body.xtream-pro .xt-movie-page .xt-movie-form-card .xt-sc-card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-movie-page .xt-sc-status-card {
    margin-bottom: 1rem;
}

body.xtream-pro .xt-movie-page .xt-sc-status-card thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--xt-text-muted);
    border-top: 0;
}

/* Stream Flow Chart — VOD / shared */
body.xtream-pro .xt-flow-chart-row {
    margin-top: 0.25rem;
}

body.xtream-pro .xt-flow-chart-area {
    min-height: 220px;
    padding: 1.25rem 1rem 1.5rem;
    background: var(--xt-input-bg);
    border: 1px solid var(--xt-card-border);
    border-radius: 6px;
}

body.xtream-pro .xt-flow-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.xtream-pro .xt-flow-root {
    margin-bottom: 0.35rem;
}

body.xtream-pro .xt-flow-children {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    width: 100%;
    padding-top: 0.5rem;
    position: relative;
}

body.xtream-pro .xt-flow-children::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 0.5rem;
    background: var(--xt-text-muted);
    transform: translateX(-50%);
}

body.xtream-pro .xt-flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

body.xtream-pro .xt-flow-vline {
    width: 1px;
    height: 18px;
    background: var(--xt-text-muted);
    margin-bottom: 2px;
}

body.xtream-pro .xt-flow-node {
    position: relative;
    min-width: 150px;
    max-width: 220px;
    padding: 0.55rem 0.85rem;
    background: #4a4f57;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: default;
    user-select: none;
}

body.xtream-pro .xt-flow-node-source {
    background: #4a4f57;
    cursor: default;
}

body.xtream-pro .xt-flow-node-server {
    cursor: grab;
    padding-top: 1.1rem;
}

body.xtream-pro .xt-flow-readonly .xt-flow-node-server {
    cursor: default;
    padding-top: 0.55rem;
}

body.xtream-pro .xt-flow-node-server.xt-flow-dragging {
    opacity: 0.55;
}

body.xtream-pro .xt-flow-node.xt-flow-drop-hover {
    outline: 2px solid #d9534f;
    outline-offset: 2px;
}

body.xtream-pro .xt-flow-node-icon {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    opacity: 0.9;
}

body.xtream-pro .xt-flow-node-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: #d9534f;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    padding: 0;
    cursor: pointer;
    font-weight: 700;
}

body.xtream-pro .xt-flow-node-remove:hover {
    background: #c9302c;
}

body.xtream-pro .xt-flow-pool {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.xtream-pro .xt-flow-pool-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    background: #4a4f57;
    color: #fff;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

body.xtream-pro .xt-flow-pool-item:hover {
    background: #3d4249;
}

body.xtream-pro .xt-flow-pool-item .mdi {
    font-size: 1rem;
    opacity: 0.9;
}

body.xtream-pro .xt-stream-page .xt-flow-chart-area,
body.xtream-pro .xt-stream-mass-page .xt-flow-chart-area {
    min-height: 200px;
}

body.xtream-pro .xt-movie-page .xt-sc-field .xt-sc-check-group {
    margin-top: 0.15rem;
}

body.xtream-pro .xt-movie-page .xt-sc-add-footer .xt-sc-check-group {
    justify-content: flex-start;
}

body.xtream-pro .xt-movie-page #xt_movie_pick,
body.xtream-pro .xt-movie-page #xt_movie_pick_sub {
    font-weight: 600;
    min-width: 4.5rem;
}

/* Import Multiple VOD — StreamCreed */
body.xtream-pro .xt-movie-import-page .xt-movie-import-card .xt-sc-card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-movie-import-page #xt_import_pick {
    font-weight: 600;
    min-width: 4.5rem;
}

body.xtream-pro .xt-import-fb-modal .modal-title {
    font-size: 1.05rem;
}

body.xtream-pro .xt-import-fb-list {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--xt-border, #e8ecf1);
    border-radius: 4px;
}

body.xtream-pro .xt-import-fb-item {
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f2f5;
    user-select: none;
}

body.xtream-pro .xt-import-fb-item:last-child {
    border-bottom: 0;
}

body.xtream-pro .xt-import-fb-item:hover,
body.xtream-pro .xt-import-fb-item:focus {
    background: #e8f4fc;
}

body.xtream-pro .xt-import-fb-item .mdi-folder,
body.xtream-pro .xt-import-fb-item .mdi-subdirectory-arrow-left {
    margin-right: 0.35rem;
}

body.xtream-pro .xt-import-fb-path {
    font-family: monospace;
}

/* Manage Series — StreamCreed */
body.xtream-pro .xt-series-manage-page .xt-series-manage-card .xt-sc-card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-series-manage-page .xt-series-bulk-actions .btn {
    font-weight: 600;
}

body.xtream-pro .xt-series-manage-page .xt-series-filters .xt-streams-filter-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

body.xtream-pro .xt-series-manage-page .xt-series-table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    border-top: 0;
}

body.xtream-pro .xt-series-manage-page .xt-series-title-hover {
    color: var(--xt-text);
    font-weight: 500;
    cursor: pointer;
}

body.xtream-pro .xt-series-manage-page .xt-series-title-hover:hover {
    color: #d9534f;
    text-decoration: underline;
}

body.xtream-pro .xt-series-manage-page .xt-series-toolbar .xt-streams-filter-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

body.xtream-pro .xt-series-manage-page .xt-series-tmdb-id,
body.xtream-pro .xt-movies-manage-page .xt-movie-tmdb-id {
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
}

body.xtream-pro .xt-series-manage-page .xt-series-tmdb-id:hover,
body.xtream-pro .xt-movies-manage-page .xt-movie-tmdb-id:hover {
    text-decoration: underline;
}

body.xtream-pro .xt-series-manage-page .xt-streams-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--xt-text-muted);
    margin-bottom: 0.25rem;
}

body.xtream-pro .xt-series-hover-popover {
    position: fixed;
    z-index: 1080;
    width: 520px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #222;
    border-radius: 2px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    padding: 0.85rem 1rem 1rem;
    pointer-events: auto;
}

body.xtream-pro .xt-series-hover-arrow {
    position: absolute;
    left: -8px;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -8px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #222;
}

body.xtream-pro .xt-series-hover-popover--left .xt-series-hover-arrow {
    left: auto;
    right: -8px;
    border-right: 0;
    border-left: 8px solid #222;
}

body.xtream-pro .xt-series-hover-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

body.xtream-pro .xt-series-hover-cover {
    width: 110px;
    min-height: 165px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

body.xtream-pro .xt-series-hover-meta-row {
    margin-bottom: 0.45rem;
}

body.xtream-pro .xt-series-hover-meta-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: #111;
    margin-bottom: 0.1rem;
}

body.xtream-pro .xt-series-hover-meta-value {
    font-size: 0.82rem;
    color: #333;
    line-height: 1.35;
}

body.xtream-pro .xt-series-hover-plot-wrap {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid #ddd;
}

body.xtream-pro .xt-series-hover-plot {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #333;
    margin-top: 0.2rem;
}

body.xtream-pro .xt-series-hover-loading {
    font-size: 0.85rem;
    color: #666;
    padding: 0.5rem 0;
}

body.xtream-pro .xt-stream-status-dot--empty {
    background: #adb5bd;
}

/* Episode list per series — StreamCreed */
body.xtream-pro .xt-ep-series-page .xt-ep-series-cover {
    width: 56px;
    height: 84px;
    object-fit: cover;
}

body.xtream-pro .xt-ep-series-page .xt-ep-drag-hint {
    font-size: 0.85rem;
}

body.xtream-pro .xt-ep-series-page .xt-ep-series-manage-card .xt-sc-card-header h5,
body.xtream-pro .xt-ep-series-page .xt-ep-season-card .xt-sc-card-header h6 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-ep-series-page .xt-ep-series-actions .btn {
    font-weight: 600;
}

body.xtream-pro .xt-ep-series-page .xt-ep-season-table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--xt-text-muted, #6c757d);
    border-top: 0;
}

body.xtream-pro .xt-ep-series-page .xt-movie-codec-lines {
    color: var(--xt-text);
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: nowrap;
    text-align: left;
    display: inline-block;
}

body.xtream-pro .xt-ep-series-page .xt-movie-codec-line + .xt-movie-codec-line {
    margin-top: 2px;
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-ep-series-page .xt-ep-sort-placeholder {
    background: #fff8e6;
    visibility: visible !important;
    height: 42px;
}

body.xtream-pro .xt-ep-series-page .xt-ep-sort-placeholder td {
    border-top: 2px dashed #f0ad4e;
}

/* Import Multiple Episodes — StreamCreed */
body.xtream-pro .xt-episode-import-page .xt-episode-import-card .xt-sc-card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-episode-import-page #xt_ep_import_pick {
    font-weight: 600;
    min-width: 4.5rem;
}

body.xtream-pro .xt-episode-import-page .xt-ep-import-row .col-form-label {
    font-size: 0.85rem;
}

/* Add/Edit Episode — StreamCreed */
body.xtream-pro .xt-episode-page .xt-episode-form-card .xt-sc-card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-episode-page .xt-sc-status-card {
    border-radius: 0.35rem;
}

body.xtream-pro .xt-episode-page .xt-sc-status-card thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.xtream-pro .xt-episode-page #xt_episode_pick,
body.xtream-pro .xt-episode-page #xt_episode_pick_sub {
    font-weight: 600;
    min-width: 4.5rem;
}

/* Add/Edit Series — StreamCreed */
body.xtream-pro .xt-profiles-page .xt-profiles-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

body.xtream-pro .xt-tprofile-page .xt-tprofile-form-card .xt-sc-card-header h5 {
    color: var(--xt-text);
}

body.xtream-pro .xt-watch-add-page .xt-watch-form-card .xt-sc-card-header h5 {
    color: var(--xt-text);
}

body.xtream-pro .xt-watch-add-page .xt-watch-dir-table tbody tr {
    cursor: pointer;
}

body.xtream-pro .xt-watch-add-page .xt-watch-dir-table tbody tr:hover {
    background: #f8f9fb;
}

body.xtream-pro .xt-fingerprint-modal .modal-title {
    font-weight: 600;
}

body.xtream-pro .xt-fingerprint-modal .modal-footer .btn-danger {
    min-width: 5rem;
}

body.xtream-pro .xt-fingerprint-page .xt-fingerprint-card .xt-sc-order-tabs .nav-link {
    font-size: 0.875rem;
    font-weight: 600;
}

body.xtream-pro .xt-fingerprint-page .xt-fingerprint-filters .xt-streams-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

body.xtream-pro .xt-fingerprint-page .xt-fingerprint-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

body.xtream-pro .xt-fingerprint-page .xt-fingerprint-controls .btn-danger {
    min-height: 31px;
}

body.xtream-pro .xt-watch-add-page .dataTables_scrollBody {
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
}

body.xtream-pro .xt-watch-page .xt-watch-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

body.xtream-pro .xt-watch-page .xt-watch-table code {
    font-size: 0.75rem;
    word-break: break-all;
}

body.xtream-pro .xt-tprofile-page .xt-sc-section .mdi-information {
    color: #9ca3af;
    font-size: 0.9rem;
    cursor: help;
}

body.xtream-pro .xt-profiles-page .xt-profiles-table code {
    font-size: 0.75rem;
    word-break: break-all;
}

body.xtream-pro .xt-epg-page .xt-epg-form-card .xt-sc-card-header h5 {
    color: var(--xt-text);
}

body.xtream-pro .xt-epgs-page .xt-epgs-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

body.xtream-pro .xt-channel-order-page .xt-channel-order-card .xt-sc-card-header h5 {
    color: var(--xt-text);
}

body.xtream-pro .xt-channel-order-page .xt-sc-order-tabs .nav-link {
    font-size: 0.875rem;
    font-weight: 600;
}

body.xtream-pro .xt-channel-order-page .xt-channel-order-list {
    border-radius: 6px;
    font-size: 0.875rem;
}

body.xtream-pro .xt-channel-order-page .xt-channel-order-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

body.xtream-pro .xt-radios-manage-page .xt-radios-manage-card .xt-sc-card-header h5 {
    color: var(--xt-text);
}

body.xtream-pro .xt-radios-manage-page .xt-radios-filters .xt-streams-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

body.xtream-pro .xt-radios-manage-page .xt-radios-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

body.xtream-pro .xt-radio-page .xt-radio-form-card .xt-sc-card-header h5 {
    color: var(--xt-text);
}

body.xtream-pro .xt-created-channel-page .xt-created-channel-card .xt-sc-card-header h5 {
    color: var(--xt-text);
}

body.xtream-pro .xt-created-channel-page .form-wizard-header {
    border-radius: 6px;
}

body.xtream-pro .xt-packages-page .xt-packages-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
    border-bottom-width: 1px;
}

body.xtream-pro .xt-profile-page .xt-profile-form-card .xt-sc-card-header h5 {
    color: var(--xt-text);
}

body.xtream-pro .xt-profile-page .xt-profile-form-card .form-control[readonly] {
    background: #f8f9fb;
    color: #6c757d;
}

body.xtream-pro .xt-serie-page .xt-serie-form-card .xt-sc-card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-serie-page #bouquets {
    min-height: 10rem;
}

body.xtream-pro .xt-serie-page .xt-serie-form-card textarea.form-control {
    min-height: 6.5rem;
}

body.xtream-pro .xt-serie-page #xt_tmdb_query {
    font-size: 0.9rem;
}

body.xtream-pro .xt-serie-page .xt-serie-tmdb-status {
    font-size: 0.82rem;
    line-height: 1.45;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid transparent;
}

body.xtream-pro .xt-serie-page .xt-serie-tmdb-status.is-ok {
    color: #2d6a2e;
    background: #edf7ed;
    border-color: #c8e6c9;
}

body.xtream-pro .xt-serie-page .xt-serie-tmdb-status.is-warn {
    color: #8a6d3b;
    background: #fff8e6;
    border-color: #f0e0b2;
}

body.xtream-pro .xt-serie-page .xt-serie-tmdb-status.is-err {
    color: #a94442;
    background: #fdf0f0;
    border-color: #f5c6cb;
}

body.xtream-pro .xt-serie-page .xt-serie-tmdb-status.is-loading {
    color: #555;
    background: #f5f5f5;
    border-color: #e0e0e0;
}

body.xtream-pro .xt-serie-page #xt_serie_tmdb_search {
    font-weight: 600;
}

body.xtream-pro .xt-ep-series-page .xt-ep-drag-handle .mdi {
    font-size: 1.1rem;
}

/* Edit bouquet — StreamCreed dual-list */
body.xtream-pro .xt-bq-edit-card .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

body.xtream-pro .xt-bq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
    padding: 0.65rem 0.85rem;
    background: var(--xt-input-bg);
    border: 1px solid var(--xt-input-border);
    border-radius: 6px;
}

body.xtream-pro .xt-bq-filter-item {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--xt-text);
    cursor: pointer;
    user-select: none;
}

body.xtream-pro .xt-bq-filter-item input {
    margin-right: 0.35rem;
    vertical-align: -2px;
}

body.xtream-pro .xt-bq-dual-row {
    margin-top: 0.25rem;
}

body.xtream-pro .xt-bq-list {
    min-height: 320px;
    height: 42vh;
    max-height: 480px;
    font-size: 0.8125rem;
    border-color: #d5dae2;
    border-radius: 4px;
    padding: 4px;
}

body.xtream-pro .xt-bq-list option {
    padding: 3px 6px;
    border-radius: 2px;
}

body.xtream-pro .xt-bq-transfer-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
}

body.xtream-pro .xt-bq-transfer-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

body.xtream-pro .xt-bq-btn-transfer {
    min-width: 42px;
    width: 42px;
    height: 34px;
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #f0ad4e;
    border: 1px solid #eea236;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.xtream-pro .xt-bq-btn-transfer:hover,
body.xtream-pro .xt-bq-btn-transfer:focus {
    color: #fff;
    background: #ec971f;
    border-color: #d58512;
}

body.xtream-pro .xt-bq-sort-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.5rem;
}

body.xtream-pro .xt-bq-btn-sort {
    min-width: 52px;
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
    background: #eef1f5;
    border: 1px solid #d5dae2;
    border-radius: 4px;
}

body.xtream-pro .xt-bq-btn-sort:hover {
    background: #e2e7ee;
    color: #2d3748;
}

body.xtream-pro .xt-bq-btn-sort .mdi {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 767px) {
    body.xtream-pro .xt-bq-transfer-col {
        flex-direction: row;
        padding: 0.75rem 0;
    }
    body.xtream-pro .xt-bq-transfer-btns {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* StreamCreed-style Edit Stream */
body.xtream-pro .xt-stream-page .page-title-box {
    margin-bottom: 0.75rem;
}

body.xtream-pro .xt-sc-stream-card,
body.xtream-pro .xt-sc-status-card {
    border: 1px solid var(--xt-card-border);
    border-radius: 6px;
    box-shadow: var(--xt-shadow);
    background: var(--xt-card);
    color: var(--xt-text);
}

body.xtream-pro .xt-sc-card-header {
    background: var(--xt-card);
    border-bottom: 1px solid var(--xt-card-border);
    padding: 0.85rem 1.25rem;
}

body.xtream-pro .xt-sc-card-header h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--xt-text);
}

body.xtream-pro .xt-sc-btn-save {
    font-weight: 600;
}

body.xtream-pro .xt-sc-section {
    padding: 1.1rem 0 1.25rem;
    border-bottom: 1px solid var(--xt-card-border);
}

body.xtream-pro .xt-sc-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

body.xtream-pro .xt-sc-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--xt-text);
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #f0ad4e;
    display: inline-block;
}

body.xtream-pro .xt-sc-stream-card .form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--xt-text);
    margin-bottom: 0.35rem;
}

body.xtream-pro .xt-sc-check-group {
    display: flex;
    gap: 1.25rem;
    padding-top: 0.15rem;
}

body.xtream-pro .xt-sc-radio {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

body.xtream-pro .xt-sc-radio input {
    margin-right: 0.35rem;
}

body.xtream-pro .xt-sc-source-row .btn-danger {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
}

body.xtream-pro .xt-sc-days-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    overflow-x: auto;
}

body.xtream-pro .xt-sc-day-check {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    flex: 0 0 auto;
}

body.xtream-pro .xt-sc-server-tree {
    min-height: 120px;
    padding: 0.75rem;
    background: var(--xt-input-bg);
    border: 1px solid var(--xt-card-border);
    border-radius: 6px;
    color: var(--xt-text);
}

body.xtream-pro .xt-sc-stream-card select[multiple] {
    min-height: 180px;
}

body.xtream-pro .xt-sc-stream-card .btn-warning {
    background: #f0ad4e;
    border-color: #eea236;
    color: #fff;
    font-weight: 600;
}

body.xtream-pro .xt-sc-stream-card .btn-warning:hover {
    background: #ec971f;
    border-color: #d58512;
    color: #fff;
}

body.xtream-pro .xt-sc-map-panel {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--xt-input-bg);
    border: 1px solid var(--xt-card-border);
    border-radius: 6px;
    color: var(--xt-text);
}

body.xtream-pro .xt-sc-map-panel table.dataTable tbody tr {
    cursor: pointer;
}

body.xtream-pro .xt-sc-map-panel table.dataTable tbody tr.selected,
body.xtream-pro .xt-sc-map-panel table.dataTable tbody tr.selected td {
    background-color: rgba(240, 173, 78, 0.25) !important;
}

/* Activity / connection logs — theme via --xt-* */
body.xtream-pro .xt-logs-page .xt-logs-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--xt-text-muted) !important;
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .xt-logs-page .xt-logs-filters label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--xt-text-muted) !important;
}

body.xtream-pro .xt-logs-page .xt-logs-modal .modal-title {
    font-weight: 600;
    color: var(--xt-text) !important;
}

body.xtream-pro .xt-logs-page .xt-logs-table tbody td,
body.xtream-pro .xt-logs-page .xt-logs-table tbody td a,
body.xtream-pro .xt-user-activity-page .xt-logs-table tbody td,
body.xtream-pro .xt-user-activity-page .xt-logs-table tbody td a {
    color: var(--xt-text) !important;
}

body.xtream-pro .xt-logs-page .xt-logs-filters .form-control,
body.xtream-pro .xt-user-activity-page .xt-logs-filters .form-control {
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro .xt-logs-page .dataTables_wrapper .dataTables_info,
body.xtream-pro .xt-user-activity-page .dataTables_wrapper .dataTables_info {
    color: var(--xt-text-muted) !important;
}

body.xtream-pro .xt-logs-page .xt-logs-modal .modal-content,
body.xtream-pro .xt-user-activity-page .xt-logs-modal .modal-content {
    background: var(--xt-card) !important;
    color: var(--xt-text) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .xt-logs-page .xt-logs-modal .modal-header,
body.xtream-pro .xt-logs-page .xt-logs-modal .modal-footer,
body.xtream-pro .xt-user-activity-page .xt-logs-modal .modal-header,
body.xtream-pro .xt-user-activity-page .xt-logs-modal .modal-footer {
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .xt-logs-page .xt-logs-modal .close,
body.xtream-pro .xt-user-activity-page .xt-logs-modal .close {
    color: var(--xt-text) !important;
    text-shadow: none;
    opacity: 0.85;
}

body.xtream-pro .xt-ips-page .xt-ips-table thead th,
body.xtream-pro .xt-useragents-page .xt-useragents-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
}

body.xtream-pro .xt-movie-mass-page .xt-sc-mass-card,
body.xtream-pro .xt-series-mass-page .xt-sc-mass-card,
body.xtream-pro .xt-episodes-mass-page .xt-sc-mass-card,
body.xtream-pro .xt-stream-mass-page .xt-sc-mass-card,
body.xtream-pro .xt-radio-mass-page .xt-sc-mass-card {
    border: 1px solid #e2e7ee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.xtream-pro .xt-stream-mass-page .card-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid #f0ad4e;
    display: inline-block;
}

body.xtream-pro .xt-stream-mass-page .card-subtitle span {
    display: inline-block;
}

body.xtream-pro .xt-stream-mass-page .form-subgroup {
    padding: 1rem 0 1.25rem;
    border-top: 1px solid #eef1f5;
}

body.xtream-pro .xt-stream-mass-page .card-body + .card-body {
    border-top: 1px solid #eef1f5;
}

body.xtream-pro .xt-sc-mass-footer {
    background: #fff;
    border-top: 1px solid #eef1f5;
    padding: 0.85rem 1.25rem;
}

body.xtream-pro .xt-mass-stream-list {
    width: 100%;
    min-height: 360px;
    font-size: 0.875rem;
    line-height: 1.4;
    border: 1px solid #e2e7ee;
    border-radius: 4px;
    padding: 0;
}

body.xtream-pro .xt-mass-stream-list option {
    padding: 3px 8px;
}

body.xtream-pro .xt-mass-stream-list option:checked {
    background: #f0ad4e linear-gradient(0deg, #f0ad4e 0%, #f0ad4e 100%);
    color: #fff;
}

body.xtream-pro .xt-mass-stream-list.xt-mass-stream-loading {
    opacity: 0.55;
    pointer-events: none;
}

body.xtream-pro .xt-mass-fetch-table thead th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
    border-top: none;
}

body.xtream-pro .xt-mass-fetch-table td {
    vertical-align: middle;
}

body.xtream-pro .xt-mass-apply-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

body.xtream-pro .xt-mass-apply-check {
    flex: 0 0 70px;
    padding-top: 1.75rem;
    text-align: center;
}

body.xtream-pro .xt-mass-apply-check label {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
}

body.xtream-pro .xt-mass-tri .check-group,
body.xtream-pro .xt-mass-tri .xt-sc-check-group {
    margin-top: 0.15rem;
}

body.xtream-pro .xt-stream-mass-page .check-group .form-check-inline {
    margin-right: 1rem;
}

body.xtream-pro .xt-stream-mass-page .check-group .form-check-label {
    font-size: 0.875rem;
    font-weight: 500;
}

body.xtream-pro .xt-stream-mass-page .xt-sc-server-tree {
    min-height: 120px;
    padding: 0.75rem;
    background: #f8f9fb;
    border: 1px solid #e2e7ee;
    border-radius: 6px;
}

/* Bouquet order — StreamCreed */
body.xtream-pro .xt-bq-sort-page .page-title-box {
    margin-bottom: 0.75rem;
}

body.xtream-pro .xt-bq-sort-card .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

body.xtream-pro .xt-bq-sort-help {
    font-size: 0.875rem;
    line-height: 1.55;
    padding: 0.75rem 1rem;
    background: #f8f9fb;
    border: 1px solid var(--xt-border, #e8ecf1);
    border-radius: 6px;
}

body.xtream-pro .xt-bq-sort-list {
    min-height: 420px;
    height: 50vh;
    max-height: 560px;
}

body.xtream-pro .xt-bq-sort-list option:checked {
    background: linear-gradient(0deg, #fff3e0 0%, #fff3e0 100%);
    color: #2d3748;
}

body.xtream-pro .xt-bq-btn-sort-accent {
    color: #fff;
    background: #f0ad4e;
    border-color: #eea236;
    min-width: 3.5rem;
}

body.xtream-pro .xt-bq-btn-sort-accent:hover {
    color: #fff;
    background: #ec971f;
    border-color: #d58512;
}

body.xtream-pro .xt-bq-retro-check {
    padding: 0.85rem 1rem;
    background: #fffbf0;
    border: 1px solid #f5e6c8;
    border-radius: 6px;
}

body.xtream-pro .xt-bq-sort-footer {
    padding-top: 0.5rem;
    border-top: 1px solid var(--xt-border, #e8ecf1);
}

body.xtream-pro .xt-bq-edit-page .page-title-box {
    margin-bottom: 0.75rem;
}

body.xtream-pro .xt-bq-edit-card .xt-bq-col-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.35rem;
}

/* Edit server Main/LB — StreamCreed */
body.xtream-pro .xt-srv-edit-page .page-title-box {
    margin-bottom: 0.75rem;
}

body.xtream-pro .xt-srv-edit-card .card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

body.xtream-pro .xt-srv-edit-card .badge-soft-primary {
    background: rgba(103, 93, 183, 0.12);
    color: #675db7;
    font-weight: 600;
}

body.xtream-pro .xt-srv-edit-card .badge-soft-secondary {
    background: #eef1f5;
    color: #4a5568;
    font-weight: 600;
}

body.xtream-pro .xt-srv-dual-row .xt-bq-list {
    min-height: 280px;
    height: 32vh;
    max-height: 400px;
}

/* —— Cache edge nodes (distinct from LB / Main) —— */
body.xtream-pro .xt-cache-page .page-title-box h4,
body.xtream-pro .xt-cache-page .page-title {
    color: #0f766e;
}

body.xtream-pro .xt-cache-hero {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(20, 184, 166, 0.06) 100%);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

body.xtream-pro .xt-cache-hero .xt-cache-hero-title {
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 0.35rem;
}

body.xtream-pro .xt-cache-hero p {
    margin: 0;
    font-size: 0.875rem;
    color: #4a5568;
}

body.xtream-pro .xt-badge-cache {
    background: rgba(13, 148, 136, 0.15);
    color: #0f766e;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

body.xtream-pro .xt-badge-lb {
    background: rgba(103, 93, 183, 0.12);
    color: #675db7;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

body.xtream-pro .xt-badge-abr {
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
    margin-left: 0.35rem;
    vertical-align: middle;
    white-space: nowrap;
}

body.xtream-pro .xt-badge-abr--sm {
    font-size: 0.62rem;
    padding: 0.15rem 0.35rem;
    margin-left: 0;
    margin-right: 0.35rem;
}

body.xtream-pro .xt-adaptive-variants-table th {
    font-size: 0.72rem;
    white-space: nowrap;
}

body.xtream-pro .xt-adaptive-variants-table .form-control-sm {
    min-width: 8rem;
}

body.xtream-pro .xt-abr-info-head {
    cursor: pointer;
    background: transparent;
    color: var(--xt-text);
}

body.xtream-pro .xt-abr-info-head:hover {
    background: var(--xt-accent-soft);
    color: var(--xt-text);
}

body.xtream-pro .xt-abr-info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}

body.xtream-pro .xt-abr-info-panel .table-sm td {
    font-size: 0.78rem;
    vertical-align: middle;
}
body.xtream-pro .xt-abr-info-panel .table-sm th {
    white-space: nowrap;
    font-size: 0.72rem;
}

body.xtream-pro .xt-cache-card {
    border-top: 3px solid #14b8a6;
    box-shadow: 0 1px 3px rgba(15, 118, 110, 0.08);
}

body.xtream-pro .xt-cache-card .xt-sc-card-header,
body.xtream-pro .xt-cache-card .xt-cache-card-header {
    background: #f0fdfa;
    border-bottom: 1px solid rgba(13, 148, 136, 0.15);
    padding: 0.85rem 1.25rem;
}

body.xtream-pro .xt-cache-card .xt-sc-section-title,
body.xtream-pro .xt-cache-card .xt-cache-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #ccfbf1;
}

body.xtream-pro .xt-btn-cache {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

body.xtream-pro .xt-btn-cache:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

body.xtream-pro .xt-cache-table thead th {
    background: #f0fdfa;
    color: #0f766e;
    font-weight: 600;
    border-bottom: 2px solid #99f6e4;
}

body.xtream-pro .xt-cache-table tbody tr:hover {
    background: rgba(240, 253, 250, 0.6);
}

body.xtream-pro .xt-cache-flow {
    font-size: 0.8rem;
    color: #64748b;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
}

body.xtream-pro .xt-cache-flow strong {
    color: #0f766e;
}

body.xtream-pro .xt-cache-stream-list {
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
}

body.xtream-pro .xt-cache-stream-row {
    margin: 0;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid #eef2f7;
    cursor: pointer;
    font-size: 0.875rem;
}

body.xtream-pro .xt-cache-stream-row:hover {
    background: #f8fafc;
}

body.xtream-pro .xt-cache-stream-row:last-child {
    border-bottom: 0;
}

body.xtream-pro .xt-cache-stream-row.xt-cache-stream-row--hidden {
    display: none !important;
}

body.xtream-pro .xt-cache-stream-toolbar .form-control-sm {
    min-width: 160px;
}

body.xtream-pro .xt-cache-stream-actions .btn-group-sm > .btn {
    white-space: nowrap;
}

body.xtream-pro .xt-cache-stream-stats {
    line-height: 2rem;
}

body.xtream-pro .xt-cache-stream-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.xtream-pro .xt-cache-split-targets label {
    cursor: pointer;
    font-size: 0.875rem;
}

body.xtream-pro #xtCacheSplitModal .modal-title {
    font-size: 1.05rem;
}

body.xtream-pro .xt-bouquets-page .xt-bouquets-table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

body.xtream-pro .xt-bouquets-page .xt-bouquets-table tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
}

body.xtream-pro .xt-bouquets-page .xt-bouquets-table tbody tr:hover {
    background: #f8fafc;
}

/* LB install / servers — purple accent */
body.xtream-pro .xt-lb-page .page-title-box h4,
body.xtream-pro .xt-lb-page .page-title {
    color: #675db7;
}

body.xtream-pro .xt-lb-hero {
    background: linear-gradient(135deg, rgba(103, 93, 183, 0.1) 0%, rgba(103, 93, 183, 0.04) 100%);
    border: 1px solid rgba(103, 93, 183, 0.2);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

body.xtream-pro .xt-lb-hero .xt-lb-hero-title {
    font-weight: 600;
    color: #675db7;
    margin-bottom: 0.35rem;
}

body.xtream-pro .xt-lb-hero p {
    margin: 0;
    font-size: 0.875rem;
    color: #4a5568;
}

body.xtream-pro .xt-lb-card {
    border-top: 3px solid #675db7;
    box-shadow: 0 1px 3px rgba(103, 93, 183, 0.08);
}

body.xtream-pro .xt-lb-card .xt-lb-card-header {
    background: #f5f3ff;
    border-bottom: 1px solid rgba(103, 93, 183, 0.15);
    padding: 0.85rem 1.25rem;
}

body.xtream-pro .xt-lb-card .xt-lb-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #675db7;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e8e4f8;
}

body.xtream-pro .xt-btn-lb {
    background: #675db7;
    border-color: #675db7;
    color: #fff;
}

body.xtream-pro .xt-btn-lb:hover {
    background: #564aa8;
    border-color: #564aa8;
    color: #fff;
}

body.xtream-pro .xt-lb-flow {
    font-size: 0.8rem;
    color: #64748b;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
}

/* All admin panels — unified card chrome (sidebar, topnav, cache pages) */
body.xtream-pro .xt-lb-page .card:not(.card-box):not(.xt-cache-card):not(.border-0),
body.xtream-pro .xt-panel-page .card:not(.card-box):not(.xt-cache-card):not(.border-0),
body.xtream-pro .xt-cache-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) {
    border-top: 3px solid var(--xt-menu-active, #675db7);
    box-shadow: var(--xt-shadow);
}

body.xtream-pro .xt-lb-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) > .card-header,
body.xtream-pro .xt-panel-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) > .card-header,
body.xtream-pro .xt-cache-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) > .card-header {
    background: var(--xt-accent-soft, #f5f3ff);
    border-bottom: 1px solid var(--xt-card-border);
}

body.xtream-pro .xt-lb-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) > .card-header .card-title,
body.xtream-pro .xt-lb-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) > .card-header h5,
body.xtream-pro .xt-panel-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) > .card-header .card-title,
body.xtream-pro .xt-panel-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) > .card-header h5,
body.xtream-pro .xt-cache-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) > .card-header .card-title,
body.xtream-pro .xt-cache-page .card:not(.card-box):not(.xt-cache-card):not(.border-0) > .card-header h5 {
    color: var(--xt-text);
    font-weight: 600;
}

body.xtream-pro .xt-lb-flow strong {
    color: #675db7;
}

/* Manage Servers list (StreamCreed-style) */
body.xtream-pro .xt-servers-manage .xt-srv-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

body.xtream-pro .xt-servers-manage .xt-srv-toolbar .btn {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
}

body.xtream-pro .xt-servers-manage .btn-xt-add {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

body.xtream-pro .xt-servers-manage .btn-xt-reload {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

body.xtream-pro .xt-servers-manage .btn-xt-disable {
    background: #fecaca;
    border-color: #fca5a5;
    color: #991b1b;
}

body.xtream-pro .xt-servers-manage .btn-xt-enable {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
}

body.xtream-pro .xt-servers-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

body.xtream-pro .xt-servers-table tbody td {
    vertical-align: middle;
    font-size: 0.875rem;
}

body.xtream-pro .xt-srv-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

body.xtream-pro .xt-srv-status-dot.online { background: #22c55e; }
body.xtream-pro .xt-srv-status-dot.offline { background: #ef4444; }
body.xtream-pro .xt-srv-status-dot.installing { background: #3b82f6; }
body.xtream-pro .xt-srv-status-dot.purging { background: #dc2626; }
body.xtream-pro .xt-srv-status-dot.disabled { background: #94a3b8; }

body.xtream-pro .xt-srv-flag-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.1;
    max-width: 7rem;
}

body.xtream-pro .xt-srv-flag {
    display: inline-block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    vertical-align: middle;
}

body.xtream-pro .xt-srv-flag-dc {
    display: block;
    font-size: 0.625rem;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.xtream-pro .xt-srv-flag-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0.55;
}

body.xtream-pro .xt-srv-health-ok {
    color: #16a34a;
    font-weight: 600;
    font-size: 0.8125rem;
}

body.xtream-pro .xt-srv-health-bad {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.8125rem;
}

body.xtream-pro .xt-srv-health-installing {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.8125rem;
}

body.xtream-pro .xt-srv-health-purging {
    color: #dc2626;
    font-weight: 600;
    font-size: 0.8125rem;
}

body.xtream-pro .xt-srv-health-reloading {
    color: #d97706;
    font-weight: 600;
    font-size: 0.8125rem;
}

body.xtream-pro .xt-srv-actions-btn {
    min-width: 2rem;
    padding: 0.2rem 0.5rem;
}

body.xtream-pro .xt-servers-manage .dataTables_wrapper .dataTables_length,
body.xtream-pro .xt-servers-manage .dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.75rem;
}

/* Manage Cache list — teal variant of servers toolbar */
body.xtream-pro .xt-cache-manage .page-title-box h4,
body.xtream-pro .xt-cache-manage .page-title {
    color: #0f766e;
}

body.xtream-pro .xt-cache-manage .xt-srv-toolbar .btn-xt-cache-add {
    background: #0d9488;
    border-color: #0d9488;
    color: #fff;
}

body.xtream-pro .xt-cache-manage .xt-srv-toolbar .btn-xt-cache-add:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

body.xtream-pro .xt-cache-manage .xt-srv-toolbar .btn-xt-playlist {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

body.xtream-pro .xt-cache-manage .xt-srv-toolbar .btn-xt-playlist:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

body.xtream-pro .xt-cache-manage .xt-srv-toolbar .btn-xt-purge {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

body.xtream-pro .xt-cache-manage .xt-cache-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0f766e;
    border-bottom: 2px solid #99f6e4;
    white-space: nowrap;
}

body.xtream-pro .xt-cache-manage .xt-disk-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    min-width: 80px;
    display: inline-block;
    vertical-align: middle;
}

body.xtream-pro .xt-cache-manage .xt-disk-bar > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #14b8a6;
}

/* Cache statistics page */
body.xtream-pro .xt-cache-stats .xt-cache-stat-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

body.xtream-pro .xt-cache-stats .xt-cache-stat-item {
    flex: 1 1 0;
    min-width: 0;
}

body.xtream-pro .xt-cache-stats .xt-cache-stat-card {
    border: 1px solid var(--xt-card-border);
    border-radius: 0.5rem;
    background: var(--xt-card);
    padding: 0.75rem 0.5rem;
    height: 100%;
    transition: box-shadow 0.15s ease;
    color: var(--xt-text);
}

body.xtream-pro .xt-cache-stats .xt-cache-stat-card .xt-disk-bar {
    max-width: 100%;
}

body.xtream-pro .xt-cache-stats .xt-cache-stat-card:hover {
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

body.xtream-pro .xt-cache-stats .xt-cache-stat-card h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    color: var(--xt-accent);
    margin: 0.25rem 0;
    white-space: nowrap;
}

body.xtream-pro .xt-cache-stats .xt-cache-stat-card p {
    font-size: clamp(0.7rem, 0.85vw, 0.8125rem);
    font-weight: 600;
    color: var(--xt-text-muted);
    margin-bottom: 0;
    line-height: 1.2;
}

body.xtream-pro .xt-cache-stats .xt-cache-stat-card small {
    font-size: clamp(0.65rem, 0.75vw, 0.75rem);
}

@media (max-width: 991.98px) {
    body.xtream-pro .xt-cache-stats .xt-cache-stat-item {
        flex: 0 0 120px;
        min-width: 120px;
    }
}

body.xtream-pro .xt-cache-stats .xt-cache-table tbody tr:hover {
    background: var(--xt-table-stripe);
}

body.xtream-pro .xt-cache-stats .xt-lc-stream__line {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.xtream-pro .xt-cache-stats .xt-lc-stream-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--xt-input-bg);
}

body.xtream-pro .xt-cache-stats .xt-lc-stream__name {
    font-weight: 500;
    color: var(--xt-text);
}

body.xtream-pro .xt-cache-stats .xt-cache-stats-tiles {
    margin-left: -8px;
    margin-right: -8px;
}

body.xtream-pro .xt-cache-stats-hero {
    padding: 14px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    border: 1px solid rgba(13, 148, 136, 0.15);
}

body.xtream-pro .xt-cache-stats-hero__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

body.xtream-pro .xt-cache-stats-hero__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

body.xtream-pro .xt-cache-stats-hero__status--online {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.18);
}

body.xtream-pro .xt-cache-stats-hero__status--offline {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.12);
}

body.xtream-pro .xt-cache-stats-hero__status .mdi-circle {
    font-size: 8px;
}

body.xtream-pro .xt-cache-stats-hero__chip {
    font-size: 0.8125rem;
    color: var(--xt-text-muted);
    font-weight: 500;
}

body.xtream-pro .xt-cache-stats-hero__chip .mdi {
    opacity: 0.75;
    margin-right: 2px;
}

body.xtream-pro .xt-cache-stats-hero__badge {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
}

body.xtream-pro .xt-cache-stats-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8125rem;
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-cache-stats-hero__meta .mdi {
    margin-right: 4px;
    opacity: 0.8;
}

body.xtream-pro .xt-cache-cta-card {
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(13, 148, 136, 0.12) !important;
}

body.xtream-pro .xt-cache-cta-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-right: 14px;
    flex-shrink: 0;
}

body.xtream-pro .xt-cache-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0.85rem 1.25rem 0.5rem;
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

body.xtream-pro .xt-cache-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--xt-text);
}

body.xtream-pro .xt-cache-section-title .mdi {
    margin-right: 6px;
    opacity: 0.85;
}

body.xtream-pro .xt-cache-chart-legend {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-cache-chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.xtream-pro .xt-cache-chart-legend__item i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

body.xtream-pro .xt-cache-chart-legend__item--in i {
    background: #0d9488;
}

body.xtream-pro .xt-cache-chart-legend__item--out i {
    background: #f59e0b;
}

body.xtream-pro .xt-cache-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

body.xtream-pro .xt-cache-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(13, 148, 136, 0.05);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

body.xtream-pro .xt-cache-info-item > i {
    font-size: 1.2rem;
    color: #0d9488;
    margin-top: 2px;
    flex-shrink: 0;
}

body.xtream-pro .xt-cache-info-item span {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--xt-text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

body.xtream-pro .xt-cache-info-item strong {
    display: block;
    font-size: 0.8125rem;
    color: var(--xt-text);
    font-weight: 600;
    word-break: break-word;
}

body.xtream-pro .xt-cache-stats .xt-cache-table-wrap {
    overflow-x: auto;
}

body.xtream-pro .xt-cache-stats .xt-cache-table-wrap--scroll {
    max-height: 420px;
    overflow-y: auto;
}

body.xtream-pro .xt-cache-stats .xt-cache-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--xt-input-bg);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--xt-text-muted);
    border-top: none;
}

body.xtream-pro .xt-cache-stats .xt-cache-stats-tiles > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
}

body.xtream-pro .xt-cache-stats .xt-cache-stat-tile {
    height: 100%;
    min-height: 148px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.xtream-pro .xt-cache-stats .xt-cache-stat-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.08);
}

body.xtream-pro .xt-cache-stats .xt-stat-card__sub {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

body.xtream-pro .xt-cache-stats .xt-stat-card__disk {
    max-width: 88%;
    height: 6px;
    background: var(--xt-input-bg);
    border-radius: 3px;
    overflow: hidden;
}

body.xtream-pro .xt-cache-stats .xt-stat-card__disk > span {
    display: block;
    height: 100%;
    background: #9b59b6;
    border-radius: 3px;
    transition: width 0.4s ease;
}

body.xtream-pro .xt-cache-stats .xt-cache-section-card {
    border-radius: 10px;
    border-top: 3px solid #14b8a6;
    box-shadow: var(--xt-shadow);
    background: var(--xt-card);
    color: var(--xt-text);
    border-color: var(--xt-card-border);
}

body.xtream-pro .xt-cache-stats .xt-cache-section-header {
    background: var(--xt-input-bg);
    border-bottom: 1px solid var(--xt-card-border);
    padding: 0.75rem 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--xt-text);
}

body.xtream-pro .xt-cache-stats .xt-cache-info-table td:first-child {
    font-weight: 600;
    color: var(--xt-text-muted);
    width: 40%;
}

body.xtream-pro .xt-cache-stats .xt-cache-section-title {
    color: var(--xt-text);
}

body.xtream-pro .xt-cache-stats .xt-cache-section-head {
    border-bottom-color: var(--xt-card-border);
}

/* ApexCharts text/track readable on dark */
body.xtream-pro:not(.xt-light) .xt-cache-stats .apexcharts-datalabel-label,
body.xtream-pro:not(.xt-light) .xt-cache-stats .apexcharts-datalabel-value,
body.xtream-pro:not(.xt-light) .xt-cache-stats .apexcharts-text,
body.xtream-pro:not(.xt-light) .xt-cache-stats .apexcharts-yaxis text,
body.xtream-pro:not(.xt-light) .xt-cache-stats .apexcharts-xaxis text,
body.xtream-pro:not(.xt-light) .xt-cache-stats .apexcharts-legend-text {
    fill: var(--xt-text) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro:not(.xt-light) .xt-cache-stats .apexcharts-radialbar-track path {
    stroke: rgba(255, 255, 255, 0.08) !important;
}

body.xtream-pro:not(.xt-light) .xt-cache-stats .apexcharts-gridline {
    stroke: rgba(255, 255, 255, 0.08) !important;
}

body.xtream-pro:not(.xt-light) .xt-cache-stats .xt-cache-stat-tile,
body.xtream-pro:not(.xt-light) .xt-cache-stats .xt-stat-card,
body.xtream-pro:not(.xt-light) .xt-cache-stats .card {
    background: var(--xt-card) !important;
    color: var(--xt-text) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro:not(.xt-light) .xt-cache-stats .xt-cache-cta-card {
    background: var(--xt-card) !important;
}

body.xtream-pro:not(.xt-light) .xt-cache-stats .xt-cache-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

body.xtream-pro .xt-cache-stats .xt-cache-chart-wrap {
    min-height: 260px;
    position: relative;
}

body.xtream-pro .xt-cache-stats .xt-cache-chart-wrap.xt-chart-sm {
    min-height: 200px;
}

body.xtream-pro .xt-cache-stats .xt-cache-chart-wrap.xt-chart-md {
    min-height: 240px;
}

body.xtream-pro .xt-cache-stats .xt-cache-charts-pair .card-body {
    padding-bottom: 0.5rem !important;
}

body.xtream-pro .xt-cache-stats .apexcharts-canvas {
    margin: 0 auto;
}

body.xtream-pro .xt-cache-stats .apexcharts-toolbar {
    top: 4px !important;
    right: 6px !important;
    z-index: 4;
}

body.xtream-pro .xt-cache-stats .apexcharts-legend {
    top: auto !important;
    bottom: 0 !important;
    justify-content: center !important;
    padding-top: 4px;
}

body.xtream-pro .xt-cache-stats .apexcharts-legend-series {
    margin: 0 8px !important;
}

body.xtream-pro .xt-cache-stats .apexcharts-tooltip {
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.15);
    border: 1px solid #ccfbf1 !important;
}

body.xtream-pro .xt-cache-stats .apexcharts-legend-text {
    font-size: 12px !important;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    body.xtream-pro .xt-cache-stats .xt-cache-charts-pair > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========== Global panel — all admin pages (list, forms, settings) ========== */
body.xtream-pro .wrapper,
body.xtream-pro .content-page,
body.xtream-pro .xt-panel-page {
    color: var(--xt-text);
}

body.xtream-pro .page-title-box {
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--xt-card-border);
}

body.xtream-pro .page-title-box .page-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0;
}

body.xtream-pro .page-title-box .page-title-right {
    margin-top: 0;
}

body.xtream-pro .page-title-right .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

body.xtream-pro .page-title-right .btn-sm {
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.35rem 0.7rem;
    margin-left: 4px;
    box-shadow: none;
}

body.xtream-pro.xt-light .page-title-right .btn-success {
    background: var(--xt-success) !important;
    border-color: var(--xt-success) !important;
    color: #fff !important;
}

body.xtream-pro.xt-light .page-title-right .btn-warning {
    background: #f0ad4e !important;
    border-color: #eea236 !important;
    color: #fff !important;
}

body.xtream-pro.xt-light .page-title-right .btn-info {
    background: #5bc0de !important;
    border-color: #46b8da !important;
    color: #fff !important;
}

body.xtream-pro.xt-light .page-title-right .btn-dark {
    background: #4a5568 !important;
    border-color: #3d4654 !important;
    color: #fff !important;
}

body.xtream-pro .btn-success {
    background: var(--xt-success) !important;
    border-color: var(--xt-success) !important;
    border-radius: 8px !important;
}

body.xtream-pro .btn-warning {
    border-radius: 8px !important;
}

body.xtream-pro .btn-info {
    border-radius: 8px !important;
}

body.xtream-pro .btn-danger {
    border-radius: 8px !important;
}

body.xtream-pro .btn-secondary,
body.xtream-pro .btn-dark {
    border-radius: 8px !important;
}

body.xtream-pro .btn-outline-secondary {
    color: var(--xt-text-muted) !important;
    border-color: var(--xt-input-border) !important;
    border-radius: 8px !important;
}

body.xtream-pro .btn-outline-secondary:hover {
    background: var(--xt-sidebar-active) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro .card .header-title,
body.xtream-pro .card-body h4.header-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--xt-text) !important;
}

body.xtream-pro .wrapper .card .form-group > label,
body.xtream-pro .content-page .card .form-group > label,
body.xtream-pro .col-form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--xt-text-muted) !important;
}

body.xtream-pro .card-box {
    background: var(--xt-card) !important;
    border: 1px solid var(--xt-card-border) !important;
    border-radius: var(--xt-radius) !important;
    box-shadow: var(--xt-shadow) !important;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

body.xtream-pro.xt-light .card-box .text-dark,
body.xtream-pro.xt-light .card-box h3.text-dark {
    color: var(--xt-text) !important;
}

body.xtream-pro .nav-tabs {
    border-bottom: 1px solid var(--xt-card-border) !important;
}

body.xtream-pro .nav-tabs .nav-link {
    color: var(--xt-text-muted) !important;
    border: none !important;
    border-radius: 6px 6px 0 0 !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
}

body.xtream-pro .nav-tabs .nav-link:hover {
    color: var(--xt-accent) !important;
    background: var(--xt-sidebar-active) !important;
}

body.xtream-pro .nav-tabs .nav-link.active {
    color: var(--xt-accent) !important;
    background: transparent !important;
    border-bottom: 2px solid var(--xt-accent) !important;
}

body.xtream-pro.xt-light .nav-tabs .nav-link.active {
    color: var(--xt-menu-active, var(--xt-accent)) !important;
    border-bottom-color: var(--xt-menu-active, var(--xt-accent)) !important;
}

body.xtream-pro .nav-pills .nav-link {
    border-radius: 8px !important;
    color: var(--xt-text-muted) !important;
    font-weight: 600;
}

body.xtream-pro .nav-pills .nav-link.active {
    background: var(--xt-accent) !important;
    color: #fff !important;
}

body.xtream-pro .modal-content {
    background: var(--xt-card) !important;
    border: 1px solid var(--xt-card-border) !important;
    border-radius: var(--xt-radius) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro .modal-header,
body.xtream-pro .modal-footer {
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .modal-header .close {
    color: var(--xt-text-muted) !important;
    text-shadow: none;
}

body.xtream-pro .select2-container--default .select2-selection--single,
body.xtream-pro .select2-container--default .select2-selection--multiple {
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    border-radius: 8px !important;
    min-height: 38px;
}

body.xtream-pro .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--xt-text) !important;
    line-height: 36px;
}

body.xtream-pro .select2-dropdown {
    background: var(--xt-card) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--xt-accent) !important;
}

body.xtream-pro .bootstrap-select .dropdown-toggle {
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    color: var(--xt-text) !important;
    border-radius: 8px !important;
}

body.xtream-pro .bootstrap-select .dropdown-menu {
    background: var(--xt-card) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .bootstrap-select .dropdown-item {
    color: var(--xt-text) !important;
}

body.xtream-pro .bootstrap-select .dropdown-item.active,
body.xtream-pro .bootstrap-select .dropdown-item:active {
    background: var(--xt-accent) !important;
}

body.xtream-pro .custom-control-label {
    color: var(--xt-text) !important;
}

body.xtream-pro .table-hover tbody tr:hover {
    background: var(--xt-sidebar-active) !important;
}

body.xtream-pro table.dataTable tbody tr.selected,
body.xtream-pro table.dataTable tbody tr.selected td {
    background: var(--xt-accent-soft) !important;
}

body.xtream-pro .dataTables_wrapper .dataTables_info,
body.xtream-pro .dataTables_wrapper .dataTables_length label {
    color: var(--xt-text-muted) !important;
}

body.xtream-pro div.dataTables_wrapper div.dataTables_processing {
    background: var(--xt-card) !important;
    border: 1px solid var(--xt-card-border) !important;
    color: var(--xt-text) !important;
    border-radius: var(--xt-radius) !important;
}

body.xtream-pro .dt-buttons .btn {
    border-radius: 6px !important;
    font-weight: 600;
    font-size: 0.8125rem;
}

body.xtream-pro .bg-soft-light,
body.xtream-pro .bg-light {
    background: var(--xt-input-bg) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro .border-light {
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .list-group-item {
    background: var(--xt-card) !important;
    border-color: var(--xt-card-border) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro .progress {
    background: var(--xt-input-bg) !important;
    border-radius: 6px;
}

body.xtream-pro .footer {
    background: var(--xt-card-bg) !important;
    background-image: none !important;
    background-size: auto !important;
    color: var(--xt-text-muted) !important;
    border-top: 1px solid var(--xt-card-border);
    padding: 12px 15px 14px !important;
    font-size: 0.8125rem;
}

body.xtream-pro .footer .copyright {
    color: var(--xt-text-muted) !important;
}

body.xtream-pro .footer .copyright a {
    color: var(--xt-accent) !important;
    font-weight: 600;
}

body.xtream-pro .alert .close {
    color: inherit;
    opacity: 0.7;
}

body.xtream-pro .boxed-layout-ext .container-fluid {
    max-width: 1400px;
}

/* Generic form cards — StreamCreed section feel (pages without xt-sc-* classes) */
body.xtream-pro .wrapper:not(.xt-stream-page):not(.xt-stream-mass-page) .card .card-body > .row > .col-xl-12 > .card,
body.xtream-pro .wrapper .card form .form-group.row {
    margin-bottom: 0.75rem;
}

body.xtream-pro.xt-light .wrapper .card .card-header.bg-primary,
body.xtream-pro.xt-light .content-page .card .card-header.bg-primary {
    background: var(--xt-accent) !important;
    border-color: var(--xt-accent) !important;
}

body.xtream-pro #sidebar-menu .metismenu a.active {
    color: var(--xt-accent) !important;
}

/* Manage Users — StreamCreed-style table */
body.xtream-pro .xt-users-manage .page-title-box {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

body.xtream-pro .xt-users-manage .xt-users-toolbar {
    margin-bottom: 1rem;
}

body.xtream-pro .xt-users-manage .xt-users-filter-select {
    width: auto;
    min-width: 160px;
    max-width: 220px;
    font-size: 0.8125rem;
}

body.xtream-pro .xt-users-manage .btn-xt-add {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
}

body.xtream-pro .xt-users-manage .btn-xt-add:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

body.xtream-pro .xt-users-card {
    border: 1px solid #e2e8f0 !important;
}

body.xtream-pro .xt-users-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    padding: 0.65rem 0.5rem;
    background: #fff !important;
}

body.xtream-pro .xt-users-table tbody td {
    vertical-align: middle;
    font-size: 0.8125rem;
    padding: 0.5rem;
    border-color: #eef1f5 !important;
    color: #334155;
}

body.xtream-pro .xt-users-table tbody tr:hover {
    background: #f8fafc !important;
}

body.xtream-pro .xt-user-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

body.xtream-pro .xt-user-online-dot.online {
    background: #22c55e;
}

body.xtream-pro .xt-user-online-dot.offline {
    background: #ef4444;
}

body.xtream-pro .xt-user-status {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.xtream-pro .xt-user-status--enabled {
    color: #16a34a;
}

body.xtream-pro .xt-user-status--expired {
    color: #dc2626;
}

body.xtream-pro .xt-user-status--banned {
    color: #dc2626;
}

body.xtream-pro .xt-user-status--disabled {
    color: #94a3b8;
    font-weight: 600;
}

body.xtream-pro .xt-user-exp-unlimited {
    color: #ea580c;
    font-weight: 600;
}

body.xtream-pro .xt-user-exp-expired {
    color: #dc2626;
    font-weight: 600;
}

body.xtream-pro .xt-user-cons {
    font-weight: 600;
    color: #475569;
    text-decoration: none;
}

body.xtream-pro .xt-user-cons:hover {
    color: #3b82f6;
}

body.xtream-pro .xt-user-notes {
    color: #64748b;
    font-size: 0.75rem;
}

body.xtream-pro .xt-user-opts {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

body.xtream-pro .xt-user-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.05rem;
    line-height: 1;
}

body.xtream-pro .xt-user-opt:hover {
    background: #f1f5f9;
    color: #334155;
}

body.xtream-pro .xt-user-opt--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

body.xtream-pro .xt-users-manage .dataTables_wrapper .dataTables_length,
body.xtream-pro .xt-users-manage .dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.5rem;
}

body.xtream-pro .xt-users-manage .dataTables_wrapper .dataTables_length label,
body.xtream-pro .xt-users-manage .dataTables_wrapper .dataTables_filter label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

body.xtream-pro .xt-users-manage .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dce1e6;
    border-radius: 4px;
    padding: 0.35rem 0.65rem;
    margin-left: 0.35rem;
}

body.xtream-pro .xt-users-table.font-small tbody td {
    font-size: 0.75rem;
}

body.xtream-pro .xt-users-table.font-large tbody td {
    font-size: 0.9375rem;
}

/* Manage Categories — hierarchy tree (theme tokens: works dark + light) */
body.xtream-pro .xt-categories-manage .xt-cat-new-form label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--xt-text);
}

body.xtream-pro .xt-categories-manage .xt-cat-btn-add {
    background: #dc2626;
    border-color: #dc2626;
    font-weight: 600;
}

body.xtream-pro .xt-categories-manage .xt-cat-btn-add:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

body.xtream-pro .xt-cat-sort-card__header {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

body.xtream-pro .xt-cat-sort-card__title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--xt-text);
}

body.xtream-pro .xt-cat-sort-card__summary {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-cat-type-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 5.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    flex-shrink: 0;
}

body.xtream-pro .xt-cat-type-chip--live {
    background: linear-gradient(135deg, #675db7 0%, #4f46e5 100%);
    box-shadow: 0 4px 14px rgba(103, 93, 183, 0.28);
}

body.xtream-pro .xt-cat-type-chip--movie {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.24);
}

body.xtream-pro .xt-cat-type-chip--series {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.24);
}

body.xtream-pro .xt-cat-toggle {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--xt-input-border);
    border-radius: 4px;
    background: var(--xt-input-bg);
    color: var(--xt-text);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.xtream-pro .xt-cat-toggle:hover {
    background: var(--xt-accent-soft);
    border-color: var(--xt-accent);
}

body.xtream-pro .xt-cat-toggle__sign {
    display: block;
    margin-top: -1px;
}

body.xtream-pro .xt-cat-item--parent.xt-cat-item--collapsed > .xt-cat-sublist {
    display: none !important;
}

body.xtream-pro .xt-cat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 140px;
    border: 1px dashed var(--xt-input-border);
    border-radius: 12px;
    background: var(--xt-input-bg);
    color: var(--xt-text-muted);
    text-align: center;
}

body.xtream-pro .xt-cat-empty i {
    font-size: 2rem;
}

body.xtream-pro .xt-cat-sort-card .card-body {
    padding-top: 1rem;
}

body.xtream-pro .xt-cat-sort-list {
    border: 1px solid var(--xt-card-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--xt-input-bg);
}

body.xtream-pro .xt-cat-sort-list > .dd-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.xtream-pro .xt-cat-sort-list .dd-item {
    position: relative;
    margin: 0;
}

body.xtream-pro .xt-cat-item--parent + .xt-cat-item--parent {
    border-top: 1px solid var(--xt-card-border);
}

body.xtream-pro .xt-cat-sort-list .dd3-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.65rem 0.85rem 0.65rem 2.75rem;
    margin: 0;
    border: none;
    background: var(--xt-card);
    color: var(--xt-text);
}

body.xtream-pro .xt-cat-item--parent > .dd3-content {
    background: linear-gradient(90deg, rgba(103, 93, 183, 0.14) 0%, var(--xt-card) 100%);
    border-left: 4px solid #675db7;
}

body.xtream-pro .xt-cat-sublist {
    list-style: none;
    margin: 0 0 0.65rem 2rem !important;
    padding: 0.35rem 0 0.35rem 1rem !important;
    border-left: 2px solid rgba(103, 93, 183, 0.45);
    background: var(--xt-input-bg);
    border-radius: 0 10px 10px 0;
}

body.xtream-pro .xt-cat-sublist--empty {
    display: none !important;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

body.xtream-pro .xt-cat-sort-list.xt-cat-dragging .xt-cat-sublist--empty {
    display: block !important;
    min-height: 30px;
    margin: 0.35rem 0 0.5rem 2rem !important;
    padding: 0.25rem 0 0.25rem 1rem !important;
    border: 1px dashed rgba(103, 93, 183, 0.45) !important;
    background: var(--xt-input-bg) !important;
    border-radius: 0 8px 8px 0;
}

body.xtream-pro .xt-cat-toggle--spacer {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-block;
}

body.xtream-pro .xt-cat-item--sub > .dd3-content {
    min-height: 52px;
    background: var(--xt-card);
    border: 1px solid var(--xt-card-border);
    border-radius: 10px;
    margin: 0.35rem 0.65rem 0.35rem 0;
    box-shadow: var(--xt-shadow);
}

body.xtream-pro .xt-cat-item--sub + .xt-cat-item--sub > .dd3-content {
    margin-top: 0;
}

body.xtream-pro .xt-cat-sort-list .dd3-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.5rem;
    margin: 0;
    background: transparent;
    border: none;
    color: var(--xt-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
}

body.xtream-pro .xt-cat-item--sub .dd3-handle {
    left: -0.15rem;
}

body.xtream-pro .xt-cat-sort-list .dd3-handle:hover {
    color: #a78bfa;
    background: rgba(103, 93, 183, 0.12);
}

body.xtream-pro .xt-cat-row__main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

body.xtream-pro .xt-cat-row__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

body.xtream-pro .xt-cat-row__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--xt-text);
    line-height: 1.25;
}

body.xtream-pro .xt-cat-row--sub .xt-cat-row__name {
    font-weight: 500;
    font-size: 0.875rem;
}

body.xtream-pro .xt-cat-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

body.xtream-pro .xt-cat-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    flex-shrink: 0;
}

body.xtream-pro .xt-cat-row__icon--parent {
    background: rgba(103, 93, 183, 0.22);
    color: #c4b5fd;
}

body.xtream-pro .xt-cat-row__icon--sub {
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
}

body.xtream-pro .xt-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
}

body.xtream-pro .xt-cat-badge--parent {
    background: rgba(103, 93, 183, 0.28);
    color: #ddd6fe;
}

body.xtream-pro .xt-cat-badge--sub {
    background: rgba(59, 130, 246, 0.22);
    color: #bfdbfe;
}

body.xtream-pro .xt-cat-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--xt-input-bg);
    color: var(--xt-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

body.xtream-pro .xt-cat-meta-pill--streams {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

body.xtream-pro .xt-cat-meta-pill--muted {
    background: transparent;
    padding-left: 0;
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-cat-row__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

body.xtream-pro .xt-cat-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--xt-text-muted);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

body.xtream-pro .xt-cat-icon-btn:hover {
    background: var(--xt-accent-soft);
    color: var(--xt-text);
}

body.xtream-pro .xt-cat-icon-btn--danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

body.xtream-pro .xt-cat-icon-btn i {
    font-size: 1.125rem;
}

body.xtream-pro .xt-cat-sort-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--xt-card-border);
    color: var(--xt-text-muted);
}

body.xtream-pro .xt-cat-sort-footer .text-muted,
body.xtream-pro .xt-cat-sort-footer small {
    color: var(--xt-text-muted) !important;
}

body.xtream-pro .xt-cat-sort-list.dd-dragel .dd3-content {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
}

/* Light theme: restore brighter category accents */
body.xtream-pro.xt-light .xt-cat-item--parent > .dd3-content {
    background: linear-gradient(90deg, #faf9ff 0%, #fff 100%);
}

body.xtream-pro.xt-light .xt-cat-row__icon--parent {
    background: #ede9fe;
    color: #5b21b6;
}

body.xtream-pro.xt-light .xt-cat-row__icon--sub {
    background: #e0f2fe;
    color: #0369a1;
}

body.xtream-pro.xt-light .xt-cat-badge--parent {
    background: #ede9fe;
    color: #5b21b6;
}

body.xtream-pro.xt-light .xt-cat-badge--sub {
    background: #dbeafe;
    color: #1d4ed8;
}

body.xtream-pro.xt-light .xt-cat-meta-pill--streams {
    background: #ecfdf5;
    color: #047857;
}

/* Mass Edit Users — layout matches install_server.php (xt-lb-page) */
body.xtream-pro .xt-user-mass-page .xt-mass-table-scroll {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body.xtream-pro .xt-user-mass-page .xt-mass-table-scroll .dataTables_wrapper {
    min-width: 0;
}

body.xtream-pro .xt-user-mass-page #datatable-mass {
    width: auto !important;
    min-width: 100%;
    margin-bottom: 0;
}

body.xtream-pro .xt-user-mass-page #datatable-mass thead th,
body.xtream-pro .xt-user-mass-page #datatable-mass tbody td {
    white-space: nowrap;
    padding: 0.45rem 0.65rem !important;
    vertical-align: middle;
}

body.xtream-pro .xt-user-mass-page #datatable-mass tbody td:nth-child(10),
body.xtream-pro .xt-user-mass-page #datatable-mass tbody td:nth-child(11),
body.xtream-pro .xt-user-mass-page #datatable-mass tbody td:nth-child(12) {
    white-space: normal;
    max-width: 12rem;
}

body.xtream-pro .xt-user-mass-page .xt-mass-field.form-group {
    margin-bottom: 0;
}

body.xtream-pro .xt-user-mass-page .xt-sc-section {
    margin-bottom: 1.5rem;
}

body.xtream-pro .xt-user-mass-page .xt-sc-section:last-of-type {
    margin-bottom: 0;
}

body.xtream-pro .xt-mass-field__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 0.4rem;
    cursor: pointer;
}

body.xtream-pro .xt-mass-field__label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

body.xtream-pro .xt-mass-field .form-control:disabled {
    background: #f8fafc;
    opacity: 0.85;
}

body.xtream-pro .xt-mass-bouquets-warn {
    color: #dc2626;
    font-size: 0.8125rem;
    margin: 0.25rem 0 0.75rem;
}

body.xtream-pro .xt-mass-bq-btns .xt-bq-btn-transfer {
    background: #fbbf24;
    border-color: #f59e0b;
    color: #1f2937;
    font-weight: 700;
}

body.xtream-pro .xt-mass-bq-btns .xt-bq-btn-transfer:hover:not(:disabled) {
    background: #f59e0b;
    color: #111827;
}

body.xtream-pro .xt-mass-bq-btns .xt-bq-btn-transfer:disabled {
    opacity: 0.45;
}

body.xtream-pro .xt-mass-send {
    background: #dc2626;
    border-color: #dc2626;
    font-weight: 600;
    min-width: 120px;
}

body.xtream-pro .xt-mass-send:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

body.xtream-pro #datatable-mass tbody tr.selected {
    background: rgba(59, 130, 246, 0.08) !important;
}

body.xtream-pro .xt-user-mass-page .xt-mass-bq-dual .xt-bq-list {
    min-height: 220px;
    width: 100%;
}

/* Registered users — StreamCreed table + edit */
body.xtream-pro .xt-reg-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #64748b;
    white-space: nowrap;
}

body.xtream-pro .xt-reg-badge--reseller {
    background: #ea580c;
}

body.xtream-pro .xt-reg-badge--user {
    background: #16a34a;
}

body.xtream-pro .xt-reg-badge--admin {
    background: #dc2626;
}

body.xtream-pro .xt-user-opt--muted {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

body.xtream-pro .xt-user-opt--credits:hover {
    background: #fef2f2;
    color: #dc2626;
}

body.xtream-pro .xt-user-opt--lit {
    color: #dc2626;
}

body.xtream-pro .xt-user-opt--lit:hover {
    background: #fef2f2;
    color: #b91c1c;
}

body.xtream-pro .xt-reg-users-manage .xt-user-opts .mdi-toggle-switch,
body.xtream-pro .xt-reg-users-manage .xt-user-opts .mdi-toggle-switch-off-outline {
    font-size: 1.2rem;
}

body.xtream-pro #xt_credits_modal .modal-header {
    border-bottom: 1px solid #e2e8f0;
}

body.xtream-pro #xt_credits_modal .modal-footer {
    border-top: 1px solid #e2e8f0;
}

body.xtream-pro .xt-reg-user-page .xt-reg-form-actions .btn-danger {
    min-width: 100px;
}

body.xtream-pro .xt-reg-packages-table thead th {
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 600;
    border-top: none;
}

body.xtream-pro .xt-reg-2fa-qr {
    max-width: 140px;
    border: 1px solid #e2e8f0;
    padding: 4px;
    background: #fff;
}

body.xtream-pro .xt-reg-users-manage .dataTables_wrapper .dataTables_filter input {
    border-radius: 4px;
}

/* Groups — StreamCreed Yes/No (radios, not toggle switches) */
body.xtream-pro .xt-groups-manage .xt-sc-yesno .xt-group-radio-label,
body.xtream-pro .xt-group-edit-page .xt-sc-yesno .xt-group-radio-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

body.xtream-pro .xt-groups-manage .xt-sc-yesno .xt-sc-check-group,
body.xtream-pro .xt-group-edit-page .xt-sc-yesno .xt-sc-check-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    padding-top: 0.15rem;
}

body.xtream-pro .xt-groups-manage .xt-sc-yesno .xt-sc-radio,
body.xtream-pro .xt-group-edit-page .xt-sc-yesno .xt-sc-radio {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}

body.xtream-pro .xt-groups-manage .xt-sc-yesno .xt-sc-radio input[type="radio"],
body.xtream-pro .xt-group-edit-page .xt-sc-yesno .xt-sc-radio input[type="radio"] {
    -webkit-appearance: radio;
    appearance: radio;
    width: 1rem;
    height: 1rem;
    margin: 0 0.4rem 0 0;
    accent-color: #dc2626;
    cursor: pointer;
}

body.xtream-pro .xt-groups-manage .xt-sc-yesno .switchery,
body.xtream-pro .xt-group-edit-page .xt-sc-yesno .switchery {
    display: none !important;
}

body.xtream-pro .xt-group-name-colored {
    font-weight: 600;
}

body.xtream-pro .xt-group-edit-page .xt-group-perms-table tbody tr {
    cursor: pointer;
}

body.xtream-pro .xt-group-edit-page .xt-group-perms-table tbody tr.selected,
body.xtream-pro .xt-group-edit-page .xt-group-perms-table tbody tr.ui-selected {
    background: rgba(59, 130, 246, 0.12) !important;
}

body.xtream-pro .xt-group-edit-page .xt-group-perms-table thead th {
    background: #f8fafc;
    font-size: 0.8125rem;
    font-weight: 600;
    border-top: none;
}

body.xtream-pro .xt-group-pages-list {
    min-height: 320px;
    max-height: 420px;
    font-size: 0.8125rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    padding: 0.35rem;
}

body.xtream-pro .xt-group-pages-list option {
    padding: 0.35rem 0.5rem;
    border-radius: 3px;
}

body.xtream-pro .xt-group-pages-list option:checked {
    background: linear-gradient(0deg, #dbeafe 0%, #dbeafe 100%);
    color: #1e3a8a;
}

body.xtream-pro .xt-group-pages-btns .btn + .btn {
    margin-left: 0.35rem;
}

/* Manage MAG Devices — toolbar + actions */
body.xtream-pro .xt-mags-manage .xt-mags-toolbar {
    gap: 0.4rem;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    border: none;
    padding: 0.38rem 0.65rem;
    white-space: nowrap;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--event {
    background: #0d9488;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--event:hover {
    background: #0f766e;
    color: #fff;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--edit {
    background: #3b82f6;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--edit:hover {
    background: #2563eb;
    color: #fff;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--block {
    background: #eab308;
    color: #1e293b;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--block:hover {
    background: #ca8a04;
    color: #1e293b;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--unblock {
    background: #fb923c;
    color: #fff;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--unblock:hover {
    background: #ea580c;
    color: #fff;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--delete {
    background: #dc2626;
}

body.xtream-pro .xt-mags-manage .xt-mag-btn--delete:hover {
    background: #b91c1c;
    color: #fff;
}

body.xtream-pro .xt-mag-actions-dd .dropdown-menu {
    font-size: 0.8125rem;
    min-width: 10rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
}

body.xtream-pro .xt-mag-actions-dd .dropdown-item {
    padding: 0.4rem 0.85rem;
}

body.xtream-pro .xt-mag-actions-dd .dropdown-item:hover {
    background: #f1f5f9;
}

body.xtream-pro .xt-mag-event-status {
    font-size: 0.75rem;
    font-weight: 700;
}

body.xtream-pro .xt-mag-event-status--pending {
    color: #d97706;
}

body.xtream-pro .xt-mag-event-status--sent {
    color: #16a34a;
}

body.xtream-pro .xt-mag-event-status--failed {
    color: #dc2626;
}

/* Add / Edit MAG device — single-page form */
body.xtream-pro .xt-mag-form-page-wrap .page-title-box {
    border-bottom: none;
    margin-bottom: 0.75rem;
}

body.xtream-pro .xt-mag-form-page .xt-lb-card {
    border: 1px solid #e2e8f0 !important;
}

body.xtream-pro .xt-mag-form-page .xt-lb-card-header h5 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
}

body.xtream-pro .xt-mag-form-page label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #475569;
}

body.xtream-pro .xt-mag-ip-list {
    min-height: 140px;
    background: #fff;
    border: 1px solid #dce1e6;
}

body.xtream-pro .xt-mag-form-page .btn-warning {
    background: #eab308;
    border-color: #eab308;
    color: #1e293b;
    font-weight: 600;
}

body.xtream-pro .xt-mag-form-page .btn-warning:hover {
    background: #ca8a04;
    border-color: #ca8a04;
    color: #1e293b;
}

body.xtream-pro .xt-mag-bq-dual .xt-bq-btn-transfer,
body.xtream-pro .xt-e2-bq-dual .xt-bq-btn-transfer {
    background: #eab308;
    border-color: #ca8a04;
    color: #1e293b;
}

body.xtream-pro .xt-mag-bq-dual .xt-bq-btn-transfer:hover,
body.xtream-pro .xt-e2-bq-dual .xt-bq-btn-transfer:hover {
    background: #ca8a04;
    color: #1e293b;
}

body.xtream-pro .xt-enigmas-manage .xt-mags-toolbar {
    gap: 0.4rem;
}

/* Manage Streams — StreamCreed layout */
body.xtream-pro .xt-streams-manage-page .page-title-box {
    margin-bottom: 0.75rem;
}

body.xtream-pro .xt-streams-manage-card .card-body {
    padding: 1rem 1.25rem;
}

body.xtream-pro .xt-streams-filter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.35rem;
}

body.xtream-pro .xt-streams-filters .btn-warning {
    color: #1e293b;
    background: #f0ad4e;
    border-color: #eea236;
    font-weight: 600;
}

body.xtream-pro .xt-streams-filters .btn-warning:hover {
    background: #ec971f;
    border-color: #d58512;
    color: #1e293b;
}

body.xtream-pro .xt-streams-table thead th {
    background: #e9ecef;
    color: #2d3748;
    font-size: 0.8125rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
}

body.xtream-pro .xt-streams-table tbody td {
    vertical-align: middle;
    font-size: 0.875rem;
}

body.xtream-pro .xt-stream-parent-row {
    background: #fff;
}

body.xtream-pro .xt-stream-children-wrap > td {
    background: #f4f6f9;
    border-top: none;
}

body.xtream-pro .xt-stream-child-table td {
    padding: 0.35rem 0.5rem;
    border-top: 1px solid #e8ecf1;
}

body.xtream-pro .xt-stream-child-name {
    font-size: 0.875rem;
    color: #4a5568;
}

body.xtream-pro .xt-stream-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

body.xtream-pro .xt-stream-status-dot--stopped,
body.xtream-pro .xt-stream-status-dot--starting {
    background: #adb5bd;
}

body.xtream-pro .xt-stream-status-dot--down {
    background: #dc3545;
}

body.xtream-pro tr.xt-stream-row--down > td {
    background-color: rgba(220, 53, 69, 0.08) !important;
}

body.xtream-pro tr.xt-stream-row--down:hover > td {
    background-color: rgba(220, 53, 69, 0.14) !important;
}

body.xtream-pro tr.xt-stream-row--stopped > td {
    background-color: transparent;
}

body.xtream-pro .xt-stream-status-dot--unassigned {
    background: #f0ad4e;
}

body.xtream-pro .xt-stream-status-dot--running {
    background: #28a745;
}

body.xtream-pro .xt-stream-status-dot--creating {
    background: #f0ad4e;
}

body.xtream-pro .xt-stream-status-dot--ondemand {
    background: #e83e8c;
}

body.xtream-pro .xt-stream-status-dot--direct {
    background: #6f42c1;
}

body.xtream-pro .xt-stream-actions-btn {
    padding: 0 0.25rem;
    color: #6c757d;
    font-size: 1.25rem;
    line-height: 1;
}

body.xtream-pro .xt-stream-clients {
    font-weight: 600;
    color: #2d3748;
}

body.xtream-pro .xt-stream-expand {
    padding: 0 0.35rem;
    line-height: 1;
}

body.xtream-pro .xt-streams-manage-page #filter_servers {
    min-height: 7.5rem;
}

/* Manage Streams / Series / VOD — shared DataTables top bar (Show + Search) */
body.xtream-pro .xt-streams-manage-page #datatable-streampage_length,
body.xtream-pro .xt-streams-manage-page #datatable-streampage_filter,
body.xtream-pro .xt-streams-manage-page #datatable-streampage_info,
body.xtream-pro .xt-streams-manage-page #datatable-streampage_paginate,
body.xtream-pro .xt-series-manage-page #datatable-streampage_length,
body.xtream-pro .xt-series-manage-page #datatable-streampage_filter,
body.xtream-pro .xt-series-manage-page #datatable-streampage_info,
body.xtream-pro .xt-series-manage-page #datatable-streampage_paginate,
body.xtream-pro .xt-movies-manage-page #datatable-streampage_length,
body.xtream-pro .xt-movies-manage-page #datatable-streampage_filter,
body.xtream-pro .xt-movies-manage-page #datatable-streampage_info,
body.xtream-pro .xt-movies-manage-page #datatable-streampage_paginate {
    display: block !important;
}

body.xtream-pro #datatable-streampage_wrapper .xt-streams-dt-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

body.xtream-pro #datatable-streampage_wrapper .xt-streams-dt-top .dataTables_length,
body.xtream-pro #datatable-streampage_wrapper .xt-streams-dt-top .dataTables_filter {
    margin-bottom: 0;
    float: none;
}

body.xtream-pro #datatable-streampage_wrapper .xt-streams-dt-top .dataTables_filter {
    margin-left: auto;
    text-align: right;
}

body.xtream-pro #datatable-streampage_wrapper .xt-streams-dt-top .dataTables_filter label {
    margin-bottom: 0;
    font-size: 0;
}

body.xtream-pro #datatable-streampage_wrapper .xt-streams-dt-top .dataTables_filter input {
    display: inline-block;
    width: auto;
    min-width: 12rem;
    margin-left: 0.35rem;
    padding: 0.2rem 0.5rem 0.2rem 1.75rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 0.45rem center;
}

body.xtream-pro #datatable-streampage_wrapper .xt-streams-dt-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
}

body.xtream-pro #datatable-streampage_wrapper .xt-streams-dt-bottom .dataTables_info {
    order: 2;
    width: 100%;
    text-align: right;
    font-size: 0.8125rem;
    color: #6c757d;
    margin-top: 0.15rem;
    padding-top: 0;
}

body.xtream-pro #datatable-streampage_wrapper .xt-streams-dt-bottom .dataTables_paginate {
    order: 1;
    margin-left: auto;
}

body.xtream-pro .xt-streams-dt-length-label {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 400;
    margin-bottom: 0;
}

body.xtream-pro .xt-streams-dt-length-select,
body.xtream-pro #datatable-streampage_length select {
    display: inline-block;
    width: auto;
    min-width: 4.5rem;
    margin: 0 0.35rem;
    padding: 0.2rem 1.75rem 0.2rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
}

body.xtream-pro #datatable-streampage_wrapper .dataTables_paginate .pagination {
    margin-bottom: 0;
    justify-content: flex-end;
}

body.xtream-pro #datatable-streampage_wrapper .dataTables_paginate .page-link {
    font-size: 0.875rem;
    color: #495057;
    border-color: #dee2e6;
    padding: 0.35rem 0.75rem;
    min-width: 2.25rem;
    text-align: center;
}

body.xtream-pro #datatable-streampage_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
    font-weight: 600;
}

body.xtream-pro #datatable-streampage_wrapper .dataTables_paginate .page-item.disabled .page-link {
    color: #adb5bd;
}

body.xtream-pro #datatable-streampage_wrapper .dataTables_processing {
    z-index: 5;
}

body.xtream-pro .xt-streams-table {
    border-collapse: separate;
    border-spacing: 0;
}

body.xtream-pro .xt-streams-table tbody tr.xt-stream-parent-row td {
    border-top: 1px solid #eef1f4;
}

body.xtream-pro .xt-streams-table tbody tr.xt-stream-parent-row:hover td {
    background: #fafbfc;
}

body.xtream-pro .xt-stream-tech-muted {
    color: #9aa5b1;
    font-size: 0.8125rem;
}

body.xtream-pro .xt-stream-tech-live,
body.xtream-pro .xt-stream-tech-live .xt-stream-tech-ok {
    color: #20a009;
    font-size: 0.8125rem;
}

body.xtream-pro .xt-stream-tech-live .mdi-check-circle {
    font-size: 0.875rem;
    vertical-align: -1px;
}

body.xtream-pro .xt-stream-node {
    display: block;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.xtream-pro .xt-stream-node-host {
    font-size: 0.8125rem;
    color: #4a5568;
}

body.xtream-pro .xt-stream-node-proto {
    font-size: 0.75rem;
    color: #9aa5b1;
    white-space: nowrap;
}

body.xtream-pro .xt-stream-child-name {
    padding-left: 0.25rem;
    font-weight: 500;
}

body.xtream-pro .xt-stream-children-wrap .xt-stream-child-table tbody tr:first-child td {
    border-top: none;
}

/* ========== Unified panel — all pages (sidebar + topnav) ========== */
body.xtream-pro .wrapper.xt-panel-page,
body.xtream-pro .wrapper.xt-lb-page {
    padding-top: 24px;
    padding-bottom: 24px;
    min-height: calc(100vh - 70px);
    background: var(--xt-body) !important;
}

body.xtream-pro .page-title-box {
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}

body.xtream-pro .page-title-box .page-title {
    color: var(--xt-text) !important;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

body.xtream-pro .page-title-box .breadcrumb-item,
body.xtream-pro .page-title-box .breadcrumb-item a {
    color: var(--xt-text-muted) !important;
    font-size: 0.8125rem;
}

body.xtream-pro .text-dark,
body.xtream-pro h1.text-dark,
body.xtream-pro h2.text-dark,
body.xtream-pro h3.text-dark,
body.xtream-pro h4.text-dark,
body.xtream-pro h5.text-dark,
body.xtream-pro .text-dark.my-1 {
    color: var(--xt-text) !important;
}

body.xtream-pro .bg-soft-purple,
body.xtream-pro .bg-soft-success,
body.xtream-pro .bg-soft-info,
body.xtream-pro .bg-soft-warning {
    background: var(--xt-accent-soft) !important;
}

body.xtream-pro .text-purple,
body.xtream-pro .text-success,
body.xtream-pro .text-info,
body.xtream-pro .text-pink {
    color: var(--xt-accent) !important;
}

body.xtream-pro .btn-warning {
    background: var(--xt-warning) !important;
    border-color: var(--xt-warning) !important;
    color: #fff !important;
}

body.xtream-pro .btn-info {
    background: var(--xt-accent) !important;
    border-color: var(--xt-accent) !important;
    color: #fff !important;
}

body.xtream-pro .btn-dark {
    background: #4a5568 !important;
    border-color: #4a5568 !important;
}

body.xtream-pro #topnav {
    background: var(--xt-topnav) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body.xtream-pro.xt-light #topnav .navigation-menu > li > a {
    color: #5a6a7e !important;
}

body.xtream-pro.xt-light #topnav .navigation-menu > li.active > a,
body.xtream-pro.xt-light #topnav .navigation-menu > li > a:hover {
    color: var(--xt-menu-active, var(--xt-accent)) !important;
}

body.xtream-pro .footer {
    background: var(--xt-card) !important;
    border-top: 1px solid var(--xt-card-border) !important;
    color: var(--xt-text-muted) !important;
}

/* Reseller dashboard */
body.xtream-pro .xt-reseller-dashboard-page .xt-reseller-card-title,
body.xtream-pro .xt-redis-page .xt-redis-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--xt-text, #34495e);
    margin: 0 0 1rem;
}

body.xtream-pro .xt-reseller-dashboard-page .xt-reseller-timeline .timeline-item {
    padding-bottom: 0.75rem;
}

body.xtream-pro .xt-reseller-dashboard-page .xt-reseller-timeline .timeline-item:last-child {
    padding-bottom: 0;
}

body.xtream-pro .xt-redis-page .xt-table-pro td:first-child {
    width: 42%;
    color: var(--xt-text-muted);
}

/* RTL panel (Arabic) */
body.xt-rtl {
    direction: rtl;
    text-align: right;
}
body.xt-rtl .left-side-menu,
body.xt-rtl .navbar-custom,
body.xt-rtl .content-page,
body.xt-rtl .footer {
    direction: rtl;
}
body.xt-rtl .xt-sc-field,
body.xt-rtl .form-group.row {
    text-align: right;
}
body.xt-rtl .dropdown-menu-right {
    right: auto;
    left: 0;
}
body.xt-rtl .xt-user-opts,
body.xt-rtl .xt-table-pro td.text-right,
body.xt-rtl .text-right {
    text-align: left !important;
}
body.xt-rtl .text-left {
    text-align: right !important;
}
body.xt-rtl .ml-1, body.xt-rtl .ml-2, body.xt-rtl .ml-3 {
    margin-left: 0 !important;
    margin-right: 0.25rem !important;
}
body.xt-rtl .mr-1, body.xt-rtl .mr-2, body.xt-rtl .mr-3 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

/* RTL layout — sidebar on right */
body.xt-rtl.xtream-pro .left-side-menu {
    left: auto !important;
    right: 0 !important;
}
body.xt-rtl.xtream-pro .content-page {
    margin-left: 0 !important;
    margin-right: 240px !important;
}
body.xt-rtl.xtream-pro.enlarged .content-page {
    margin-right: 70px !important;
}
body.xt-rtl .xt-page-header {
    flex-direction: row-reverse;
}
body.xt-rtl .xt-page-header__actions {
    margin-left: 0;
    margin-right: auto;
}
body.xt-rtl .xt-cache-stream-row,
body.xt-rtl .xt-cache-stream-toolbar,
body.xt-rtl .card-header.d-flex {
    flex-direction: row-reverse;
}
body.xt-rtl .xt-cache-stream-check {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}
body.xt-rtl .float-right {
    float: left !important;
}
body.xt-rtl .float-left {
    float: right !important;
}
body.xt-rtl .dataTables_wrapper .dataTables_filter {
    text-align: left !important;
}
body.xt-rtl .dataTables_wrapper .dataTables_length {
    text-align: right !important;
}
body.xt-rtl .dataTables_wrapper .dataTables_paginate {
    text-align: left !important;
}
body.xt-rtl #sidebar-menu > ul > li > a i,
body.xt-rtl #sidebar-menu > ul > li > a .mdi {
    margin-right: 0 !important;
    margin-left: 8px !important;
}
body.xt-rtl .custom-control {
    padding-right: 1.5rem;
    padding-left: 0;
}
body.xt-rtl .custom-control-label::before,
body.xt-rtl .custom-control-label::after {
    left: auto;
    right: -1.5rem;
}
body.xt-rtl .btn i.mr-1,
body.xt-rtl .btn i.mr-2,
body.xt-rtl .btn .mdi.mr-1 {
    margin-right: 0 !important;
    margin-left: 0.35rem !important;
}
body.xt-rtl .text-right.mt-4 {
    text-align: left !important;
}
body.xt-rtl .ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}


/* ==========================================================================
   Dark mode — global surface remaps (pages with hardcoded light greys/whites)
   Active when body.xtream-pro without .xt-light
   ========================================================================== */
body.xtream-pro:not(.xt-light) .xt-bq-list,
body.xtream-pro:not(.xt-light) .xt-bq-btn-sort,
body.xtream-pro:not(.xt-light) .xt-sc-stream-card .form-control,
body.xtream-pro:not(.xt-light) .xt-sc-stream-card select[multiple],
body.xtream-pro:not(.xt-light) .xt-ep-series-page .form-control,
body.xtream-pro:not(.xt-light) .xt-profile-page .form-control,
body.xtream-pro:not(.xt-light) .xt-lb-card .form-control,
body.xtream-pro:not(.xt-light) .xt-mass-table-scroll,
body.xtream-pro:not(.xt-light) .xt-user-mass-page .xt-mass-table-scroll,
body.xtream-pro:not(.xt-light) .xt-groups-manage .card,
body.xtream-pro:not(.xt-light) .xt-group-edit-page .card {
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro:not(.xt-light) .xt-bq-btn-sort:hover,
body.xtream-pro:not(.xt-light) .xt-bq-btn-sort:focus {
    background: var(--xt-accent-soft) !important;
    color: var(--xt-text) !important;
    border-color: var(--xt-accent) !important;
}

/* Hardcoded slate text → theme text */
body.xtream-pro:not(.xt-light) .xt-sc-tool-row__title,
body.xtream-pro:not(.xt-light) .xt-sc-field-row__label,
body.xtream-pro:not(.xt-light) .xt-lb-section-title,
body.xtream-pro:not(.xt-light) .xt-sc-label,
body.xtream-pro:not(.xt-light) label.col-form-label,
body.xtream-pro:not(.xt-light) .xt-mass-field__label,
body.xtream-pro:not(.xt-light) .xt-ep-series-page label,
body.xtream-pro:not(.xt-light) .xt-profile-page label {
    color: var(--xt-text) !important;
}

body.xtream-pro:not(.xt-light) .xt-sc-tool-row__desc,
body.xtream-pro:not(.xt-light) .xt-sc-info,
body.xtream-pro:not(.xt-light) .text-muted,
body.xtream-pro:not(.xt-light) .xt-bq-col-label,
body.xtream-pro:not(.xt-light) small.text-muted {
    color: var(--xt-text-muted) !important;
}

/* Light panel strips / toolbars / nested cards */
body.xtream-pro:not(.xt-light) .xt-sc-tools-card,
body.xtream-pro:not(.xt-light) .xt-sc-settings-panel,
body.xtream-pro:not(.xt-light) .xt-sc-section,
body.xtream-pro:not(.xt-light) .xt-ep-toolbar,
body.xtream-pro:not(.xt-light) .xt-srv-panel,
body.xtream-pro:not(.xt-light) .xt-cache-stats-tiles .card,
body.xtream-pro:not(.xt-light) .xt-cache-charts-pair .card,
body.xtream-pro:not(.xt-light) .xt-vpn-isp-page .card-body,
body.xtream-pro:not(.xt-light) .xt-profile-form-card,
body.xtream-pro:not(.xt-light) .dd3-content,
body.xtream-pro:not(.xt-light) .dd-handle {
    background-color: var(--xt-card) !important;
    color: var(--xt-text);
}

body.xtream-pro:not(.xt-light) .dd-handle {
    background-color: transparent !important;
    color: var(--xt-text-muted) !important;
}

/* Tables inside manage pages */
body.xtream-pro:not(.xt-light) table.dataTable thead th,
body.xtream-pro:not(.xt-light) .table thead th {
    background: var(--xt-input-bg) !important;
    color: var(--xt-text-muted) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro:not(.xt-light) table.dataTable tbody td,
body.xtream-pro:not(.xt-light) .table tbody td {
    color: var(--xt-text) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro:not(.xt-light) table.dataTable tbody tr:nth-child(even),
body.xtream-pro:not(.xt-light) .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--xt-table-stripe) !important;
}

/* Select2 / input groups that stay white */
body.xtream-pro:not(.xt-light) .select2-container--default .select2-selection--single,
body.xtream-pro:not(.xt-light) .select2-container--default .select2-selection--multiple,
body.xtream-pro:not(.xt-light) .select2-dropdown,
body.xtream-pro:not(.xt-light) .input-group-text,
body.xtream-pro:not(.xt-light) .custom-select,
body.xtream-pro:not(.xt-light) .form-control {
    background-color: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro:not(.xt-light) .select2-container--default .select2-results__option {
    background-color: var(--xt-card);
    color: var(--xt-text);
}

body.xtream-pro:not(.xt-light) .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--xt-accent-soft) !important;
    color: var(--xt-text) !important;
}

/* Modal / nested listboxes */
body.xtream-pro:not(.xt-light) .modal-content {
    background: var(--xt-card) !important;
    color: var(--xt-text) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro:not(.xt-light) .modal-header,
body.xtream-pro:not(.xt-light) .modal-footer {
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro:not(.xt-light) .list-group-item {
    background: var(--xt-card) !important;
    color: var(--xt-text) !important;
    border-color: var(--xt-card-border) !important;
}

/* Pagination */
body.xtream-pro:not(.xt-light) .page-link {
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-input-border) !important;
    color: var(--xt-text) !important;
}

body.xtream-pro:not(.xt-light) .page-item.active .page-link {
    background: var(--xt-accent) !important;
    border-color: var(--xt-accent) !important;
    color: #0f1419 !important;
}

/* Soft info/warning strips that were cream/white */
body.xtream-pro:not(.xt-light) .alert-light,
body.xtream-pro:not(.xt-light) .bg-light,
body.xtream-pro:not(.xt-light) .card.bg-light {
    background: var(--xt-input-bg) !important;
    color: var(--xt-text) !important;
}

/* Checkbox/radio contrast on dark cards */
body.xtream-pro:not(.xt-light) .custom-control-label,
body.xtream-pro:not(.xt-light) .form-check-label {
    color: var(--xt-text) !important;
}

/* DataTables length/filter labels */
body.xtream-pro:not(.xt-light) .dataTables_wrapper .dataTables_length,
body.xtream-pro:not(.xt-light) .dataTables_wrapper .dataTables_filter,
body.xtream-pro:not(.xt-light) .dataTables_wrapper .dataTables_info {
    color: var(--xt-text-muted) !important;
}

/* Stream server flow / jstree select */
body.xtream-pro:not(.xt-light) .xt-flow-chart-area,
body.xtream-pro:not(.xt-light) .xt-sc-server-tree,
body.xtream-pro:not(.xt-light) .xt-sc-map-panel,
body.xtream-pro:not(.xt-light) .jstree-default,
body.xtream-pro:not(.xt-light) .jstree-container-ul {
    background: var(--xt-input-bg) !important;
    color: var(--xt-text) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro:not(.xt-light) .jstree-default .jstree-anchor,
body.xtream-pro:not(.xt-light) .jstree-default .jstree-hovered,
body.xtream-pro:not(.xt-light) .jstree-default .jstree-clicked {
    color: var(--xt-text) !important;
}

body.xtream-pro:not(.xt-light) .jstree-default .jstree-hovered,
body.xtream-pro:not(.xt-light) .jstree-default .jstree-wholerow-hovered {
    background: var(--xt-accent-soft) !important;
}

body.xtream-pro:not(.xt-light) .jstree-default .jstree-clicked,
body.xtream-pro:not(.xt-light) .jstree-default .jstree-wholerow-clicked {
    background: rgba(0, 188, 212, 0.22) !important;
}

body.xtream-pro:not(.xt-light) .xt-sc-stream-card,
body.xtream-pro:not(.xt-light) .xt-sc-status-card,
body.xtream-pro:not(.xt-light) .xt-sc-card-header,
body.xtream-pro:not(.xt-light) .xt-sc-mass-footer {
    background: var(--xt-card) !important;
    color: var(--xt-text) !important;
    border-color: var(--xt-card-border) !important;
}

/* Live Connections + Cache Live Connections — dark readable stream / IP cells */
body.xtream-pro .xt-live-connections-page .xt-lc-stream__name,
body.xtream-pro .xt-cache-live-connections-page .xt-lc-stream__name,
body.xtream-pro .xt-live-connections-page .xt-lc-speed,
body.xtream-pro .xt-cache-live-connections-page .xt-lc-speed,
body.xtream-pro .xt-live-connections-page .xt-lc-ip__addr,
body.xtream-pro .xt-cache-live-connections-page .xt-lc-ip__addr,
body.xtream-pro .xt-live-connections-page .xt-lc-table tbody td,
body.xtream-pro .xt-cache-live-connections-page .xt-lc-table tbody td,
body.xtream-pro .xt-live-connections-page .xt-lc-table tbody td a,
body.xtream-pro .xt-cache-live-connections-page .xt-lc-table tbody td a {
    color: var(--xt-text) !important;
}

body.xtream-pro .xt-live-connections-page .xt-lc-ip__meta,
body.xtream-pro .xt-cache-live-connections-page .xt-lc-ip__meta,
body.xtream-pro .xt-live-connections-page .dataTables_wrapper .dataTables_info,
body.xtream-pro .xt-cache-live-connections-page .dataTables_wrapper .dataTables_info {
    color: var(--xt-text-muted) !important;
}

body.xtream-pro .xt-live-connections-page .xt-lc-table thead th,
body.xtream-pro .xt-cache-live-connections-page .xt-lc-table thead th {
    background: var(--xt-input-bg) !important;
    color: var(--xt-text-muted) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .xt-live-connections-page .xt-lc-stream-icon,
body.xtream-pro .xt-cache-live-connections-page .xt-lc-stream-icon {
    background: var(--xt-input-bg) !important;
}

/* user_activity.php — reinforce table cell contrast in dark mode */
body.xtream-pro .xt-user-activity-page .xt-logs-table thead th {
    color: var(--xt-text-muted) !important;
    background: var(--xt-input-bg) !important;
    border-color: var(--xt-card-border) !important;
}

body.xtream-pro .xt-user-activity-page .xt-logs-table tbody td,
body.xtream-pro .xt-user-activity-page .xt-logs-table tbody td a {
    color: var(--xt-text) !important;
}

body.xtream-pro .xt-vpn-isp-page .xt-sec-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
body.xtream-pro .xt-vpn-isp-page .xt-sec-rule:last-child {
    border-bottom: 0;
}
body.xtream-pro .xt-vpn-isp-page .xt-sec-rule__label {
    margin: 0;
    white-space: nowrap;
}
body.xtream-pro .xt-vpn-isp-page .xt-sec-rules__split {
    margin-top: 1.25rem;
}
body.xtream-pro .xt-vpn-isp-page .xt-sc-yesno-inline {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}
body.xtream-pro.xt-light .xt-vpn-isp-page .xt-sec-rule {
    border-bottom-color: rgba(15,23,42,.08);
}

body.xtream-pro .xt-restreamers-page .xt-restreamers-table td:last-child,
body.xtream-pro .xt-restreamers-page .xt-restreamers-table td:last-child a {
    white-space: nowrap;
}
body.xtream-pro .xt-restreamers-page .xt-restreamers-table td:last-child .btn {
    margin: 0 0.15rem;
}

body.xtream-pro .xt-whitelist-page .xt-whitelist-grid .card-header h5 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-right: 1rem;
}
body.xtream-pro .xt-whitelist-page .xt-sc-btn-save {
    white-space: nowrap;
    flex-shrink: 0;
}
body.xtream-pro:not(.xt-light) .xt-whitelist-page .xt-sc-section label {
    color: var(--xt-text);
}
body.xtream-pro .xt-whitelist-page .xt-whitelist-preview {
    background: var(--xt-input-bg);
    color: var(--xt-text);
    border: 1px solid var(--xt-card-border);
    border-radius: 6px;
    max-height: 180px;
}

body.xtream-pro .xt-tools-page .xt-tools-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
body.xtream-pro .xt-tools-page .xt-sc-tools-card {
    border: 1px solid var(--xt-card-border) !important;
    border-radius: 10px !important;
    background: var(--xt-card) !important;
    overflow: hidden;
    margin-bottom: 0 !important;
}
body.xtream-pro .xt-tools-page .xt-tools-section {
    padding: 0.8rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--xt-text-muted);
    border-bottom: 1px solid var(--xt-card-border);
}
body.xtream-pro .xt-tools-page .xt-sc-tool-row {
    border-bottom: 1px solid var(--xt-card-border);
    padding: 1rem 1.25rem;
}
body.xtream-pro .xt-tools-page .xt-sc-tool-row:last-child {
    border-bottom: 0;
}
body.xtream-pro .xt-tools-page .xt-sc-tool-row__action {
    align-self: flex-start;
    margin-top: 0.15rem;
}
body.xtream-pro .xt-tools-page .xt-tools-checks .custom-checkbox {
    margin-bottom: 0.25rem;
}

body.xtream-pro #xt_adaptive_info_modal .modal-dialog {
    max-width: 1140px;
    width: calc(100vw - 2rem);
}
body.xtream-pro .xt-abr-info-panel .table-sm {
    table-layout: fixed;
    width: 100%;
}
body.xtream-pro .xt-abr-info-panel .table-sm th:nth-child(1),
body.xtream-pro .xt-abr-info-panel .table-sm td:nth-child(1) { width: 150px; }
body.xtream-pro .xt-abr-info-panel .table-sm th:nth-child(2),
body.xtream-pro .xt-abr-info-panel .table-sm td:nth-child(2) { width: 110px; }
body.xtream-pro .xt-abr-info-panel .table-sm th:nth-child(3),
body.xtream-pro .xt-abr-info-panel .table-sm td:nth-child(3) { width: 110px; }
body.xtream-pro .xt-abr-info-panel .table-sm th:nth-child(4),
body.xtream-pro .xt-abr-info-panel .table-sm td:nth-child(4) { width: 100px; }
body.xtream-pro .xt-abr-info-panel .table-sm th:nth-child(5),
body.xtream-pro .xt-abr-info-panel .table-sm td:nth-child(5) { width: 90px; }
body.xtream-pro .xt-abr-info-panel .table-sm td:first-child {
    white-space: nowrap;
}
body.xtream-pro .xt-abr-info-panel .table-sm td.xt-abr-src {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.xtream-pro .xt-abr-info-panel .table-sm td.xt-abr-src span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* Phone: sidebar is hidden, so do not keep the desktop left offset. */
@media (max-width: 767.98px) {
    body.xtream-pro .content-page,
    body.xtream-pro.enlarged .content-page {
        margin-left: 0 !important;
        width: auto !important;
    }
    body.xtream-pro .navbar-custom,
    body.xtream-pro.enlarged .navbar-custom {
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
    }
    body.xtream-pro .footer,
    body.xtream-pro.enlarged .footer {
        left: 0 !important;
        right: 0 !important;
    }
    body.xtream-pro.sidebar-enable .left-side-menu {
        display: block !important;
        width: min(280px, 86vw) !important;
        z-index: 1005 !important;
    }
}
