.nxtcp-wrap {
    max-width: 560px;
    margin: 24px auto;
}

.nxtcp-account-wrap {
    max-width: 1120px;
}

.nxtcp-panel {
    background: #ffffff;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(24, 31, 38, 0.08);
    padding: 24px;
}

.nxtcp-panel h2 {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.2;
}

.nxtcp-panel label {
    display: block;
    margin: 0 0 16px;
}

.nxtcp-panel label span,
.nxtcp-panel dt {
    color: #5c6873;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.nxtcp-panel input[type="text"],
.nxtcp-panel input[type="password"],
.nxtcp-panel input[type="email"] {
    border: 1px solid #c9d1d9;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.nxtcp-email-wide {
    max-width: 100%;
    width: 100%;
}

.nxtcp-panel button,
.nxtcp-panel .nxtcp-secondary {
    background: #1f6feb;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 16px;
}

.nxtcp-panel button:disabled {
    background: #8c98a4;
    cursor: not-allowed;
}

.nxtcp-alert {
    background: #fff4d6;
    border: 1px solid #f0d58c;
    border-radius: 6px;
    color: #5f4500;
    margin: 0 0 16px;
    padding: 10px 12px;
}

.nxtcp-muted {
    color: #5c6873;
    margin: 0 0 16px;
}

.nxtcp-topline {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.nxtcp-topline h2 {
    margin: 0;
}

.nxtcp-account dl {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
}

.nxtcp-account dl > div {
    border-bottom: 1px solid #edf0f2;
    padding-bottom: 12px;
}

.nxtcp-account dl > div.nxtcp-expiry-expired {
    background: #fde8e8;
    border: 1px solid #f2b8b8;
    border-radius: 6px;
    padding: 12px;
}

.nxtcp-expiry-expired dt,
.nxtcp-expiry-expired dd,
.nxtcp-expiry-expired .nxtcp-expiry-remaining {
    color: #8a1f1f;
    font-weight: 800;
}

.nxtcp-account dd {
    margin: 0;
}

.nxtcp-expiry-remaining {
    color: #5c6873;
    display: inline-block;
    font-size: 14px;
    margin-top: 4px;
}

.nxtcp-extension-form {
    margin: 0;
}

.nxtcp-password-button {
    min-height: 38px;
    padding: 8px 14px;
}

.nxtcp-modal {
    align-items: center;
    display: none;
    justify-content: center;
    inset: 0;
    padding: 20px;
    position: fixed;
    z-index: 9999;
}

.nxtcp-modal.is-open {
    display: flex;
}

.nxtcp-modal-backdrop {
    background: rgba(15, 23, 42, 0.55);
    inset: 0;
    position: absolute;
}

.nxtcp-modal-dialog {
    background: #ffffff;
    border: 1px solid #d9dee3;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(24, 31, 38, 0.28);
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 860px);
    max-width: 640px;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 2;
}

.nxtcp-modal-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    justify-content: space-between;
    padding: 18px 20px 14px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.nxtcp-modal-header h3 {
    color: #1f2933;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
    min-width: 0;
}

.nxtcp-modal-close {
    background: transparent;
    color: #5c6873;
    font-size: 28px;
    line-height: 1;
    min-height: auto;
    padding: 0 4px;
}

.nxtcp-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.nxtcp-password-form label {
    display: block;
    margin-bottom: 14px;
}

.nxtcp-password-form input[type="password"] {
    border: 1px solid #c9d1d9;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.nxtcp-modal-cancel {
    background: #637381;
}

body.nxtcp-modal-open {
    overflow: hidden;
}

.nxtcp-profile-switcher {
    border-bottom: 1px solid #edf0f2;
    margin: 0 0 22px;
    padding: 0 0 20px;
}

.nxtcp-profile-heading {
    color: #5c6873;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
}

.nxtcp-profile-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nxtcp-profile-card {
    background: #f7f9fb;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    color: #1f2933;
    display: block;
    min-height: 76px;
    padding: 12px;
    text-decoration: none;
}

.nxtcp-profile-card:hover,
.nxtcp-profile-card:focus {
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
    color: #1f2933;
    outline: 0;
}

.nxtcp-users-meta p {
    margin: 8px 0 4px;
}

.nxtcp-users-toolbar {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    margin: 10px 0 14px;
    padding: 10px 12px;
}

.nxtcp-users-toolbar-title {
    font-size: 16px;
    margin: 0 0 8px;
}

.nxtcp-users-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.nxtcp-users-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #e0e4e9;
    border-radius: 8px;
    background: #f8fafc;
}

.nxtcp-users-tools-row .button {
    padding: 8px 18px;
}

.nxtcp-admin-pager {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin: 10px 0 0;
}

.nxtcp-admin-pager span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.nxtcp-package-credit-note {
    color: #0f172a;
    display: inline-block;
    margin-left: 10px;
}

.nxtcp-inline-loading {
    align-items: center;
    color: #475569;
    font-weight: 700;
    gap: 8px;
    margin-left: 10px;
    vertical-align: middle;
}

.nxtcp-inline-loading i {
    animation: nxtcp-spin 0.8s linear infinite;
    border: 2px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 999px;
    display: inline-block;
    height: 14px;
    width: 14px;
}

@keyframes nxtcp-spin {
    to {
        transform: rotate(360deg);
    }
}

.nxtcp-account-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 8px;
}

.nxtcp-filter-search-label {
    font-weight: 600;
    margin-left: 4px;
}

.nxtcp-filter-search-input {
    min-width: 320px;
}

.nxtcp-account-legend {
    margin: 0 0 8px;
}

.nxtcp-settings-form {
    margin: 8px 0 10px;
}

.nxtcp-settings-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    grid-template-areas:
        "portal reseller"
        "core reseller";
    align-items: stretch;
}

.nxtcp-settings-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #d7dee7;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    margin: 12px 0;
    padding: 12px 14px;
}

.nxtcp-settings-card h2 {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.nxtcp-settings-card .form-table th,
.nxtcp-settings-card .form-table td {
    border-bottom: 1px solid #e6ecf2;
    padding-bottom: 11px;
    padding-top: 11px;
    vertical-align: top;
}

.nxtcp-settings-card .form-table tr:last-child th,
.nxtcp-settings-card .form-table tr:last-child td {
    border-bottom: 0;
}

.nxtcp-settings-card .form-table th {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: 240px;
}

.nxtcp-settings-card .form-table td {
    color: #1f2937;
    font-size: 13px;
}

.nxtcp-settings-card .form-table {
    margin: 0;
}

.nxtcp-settings-card .regular-text,
.nxtcp-settings-card input[type="number"],
.nxtcp-settings-card input[type="url"],
.nxtcp-settings-card input[type="email"],
.nxtcp-settings-card input[type="text"],
.nxtcp-settings-card input[type="password"],
.nxtcp-settings-card textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: none;
    max-width: 100%;
}

.nxtcp-settings-card .regular-text,
.nxtcp-settings-card input[type="url"],
.nxtcp-settings-card input[type="email"],
.nxtcp-settings-card input[type="text"],
.nxtcp-settings-card input[type="password"] {
    min-height: 38px;
    padding: 6px 10px;
}

.nxtcp-settings-card textarea {
    padding: 8px 10px;
}

.nxtcp-settings-card .description {
    color: #64748b;
    font-size: 12px;
}

.nxtcp-settings-card .nxtcp-users-tools-row,
.nxtcp-settings-card .nxtcp-users-action-row {
    margin-top: 8px;
}

.nxtcp-secret-field {
    align-items: center;
    display: flex;
    gap: 8px;
}

.nxtcp-secret-field .regular-text {
    margin: 0;
}

.nxtcp-settings-card-portal {
    grid-area: portal;
}

.nxtcp-settings-card-core {
    grid-area: core;
}

.nxtcp-settings-card-reseller {
    grid-area: reseller;
}

@media (max-width: 640px) {
    .nxtcp-hide-phone {
        display: none !important;
    }

    .nxtcp-account-filters {
        gap: 6px;
    }

    .nxtcp-filter-search-input {
        min-width: 0;
        width: 100%;
    }

    .nxtcp-status-chip {
        margin: 4px 4px 0 0;
    }
}

@media (max-width: 900px) {
    .nxtcp-users-action-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nxtcp-users-action-row .button {
        width: 100%;
        text-align: center;
    }

    .nxtcp-users-tools-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .nxtcp-users-tools-row .button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 782px) {
    .nxtcp-hide-phone {
        display: none !important;
    }

    .nxtcp-table-wrap {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        margin-top: 8px;
    }

    .nxtcp-settings-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "portal"
            "reseller"
            "core";
    }

    .nxtcp-settings-card .form-table th {
        width: auto;
    }

    .nxtcp-users-tools-row {
        grid-template-columns: 1fr;
    }

    .nxtcp-playlist-shell {
        grid-template-columns: 1fr;
    }

    .nxtcp-playlist-sidebar {
        max-height: none;
        position: static;
    }

    .nxtcp-playlist-users {
        max-height: 360px;
    }

    .nxtcp-playlist-selected {
        align-items: flex-start;
        flex-direction: column;
    }

    .nxtcp-playlist-filters {
        grid-template-columns: 1fr;
    }

    .nxtcp-playlist-item {
        grid-template-columns: 1fr;
    }

    .nxtcp-playlist-item-main {
        grid-template-columns: 1fr;
    }

    .nxtcp-playlist-logo-tile {
        width: 96px;
    }

    .nxtcp-guide-pop {
        left: 0;
        max-width: 100%;
        position: static;
        width: 100%;
    }

    .nxtcp-now-block:hover .nxtcp-guide-pop {
        display: block;
    }

    .nxtcp-playlist-item-meta {
        align-items: flex-start;
    }

    .widefat.striped {
        border: 0;
        background: transparent;
    }

    .widefat.striped thead {
        display: none;
    }

    .widefat.striped tbody,
    .widefat.striped tr,
    .widefat.striped td,
    .widefat.striped tbody th {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .nxtcp-modern-table.widefat {
        background: transparent !important;
        border: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
        display: block;
        min-width: 0 !important;
        width: 100% !important;
    }

    .nxtcp-modern-table.widefat tbody tr {
        background: #f8fafc;
        border: 1px solid #d7dee7;
        border-radius: 10px;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
        margin: 0 0 12px;
        overflow: hidden;
    }

    .nxtcp-modern-table.widefat tbody tr:nth-child(even) {
        background: #eef6ff;
    }

    .nxtcp-modern-table.widefat tbody td,
    .nxtcp-modern-table.widefat tbody th {
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-sizing: border-box;
        padding: 12px 16px !important;
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .nxtcp-modern-table.widefat tbody td:last-child,
    .nxtcp-modern-table.widefat tbody th:last-child {
        border-bottom: 0 !important;
    }

    .nxtcp-modern-table.widefat tbody td::before {
        content: attr(data-label);
        color: #334155;
        display: block;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.02em;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .widefat.striped tr.nxtcp-admin-row {
        padding: 0;
    }

    .widefat.striped tr.nxtcp-admin-row.nxtcp-group-child {
        background: #ede7ff !important;
    }

    .widefat.striped tr.nxtcp-admin-row.nxtcp-admin-trial {
        background: #eef7ff !important;
    }

    .widefat.striped tr.nxtcp-admin-row.nxtcp-admin-expiring {
        background: #fff8c5 !important;
    }

    .widefat.striped tr.nxtcp-admin-row.nxtcp-admin-expired {
        background: #fde8e8 !important;
    }

    .widefat.striped tr.nxtcp-admin-row td {
        margin: 0;
        min-height: 0;
        padding: 12px 16px !important;
    }

    .nxtcp-users-table {
        min-width: 0;
        table-layout: auto;
    }

    /* Reset desktop column width constraints so mobile cards don't collapse into narrow strips. */
    .nxtcp-users-table th,
    .nxtcp-users-table td,
    .nxtcp-users-table th:nth-child(1), .nxtcp-users-table td:nth-child(1),
    .nxtcp-users-table th:nth-child(2), .nxtcp-users-table td:nth-child(2),
    .nxtcp-users-table th:nth-child(3), .nxtcp-users-table td:nth-child(3),
    .nxtcp-users-table th:nth-child(4), .nxtcp-users-table td:nth-child(4),
    .nxtcp-users-table th:nth-child(5), .nxtcp-users-table td:nth-child(5),
    .nxtcp-users-table th:nth-child(6), .nxtcp-users-table td:nth-child(6),
    .nxtcp-users-table th:nth-child(7), .nxtcp-users-table td:nth-child(7),
    .nxtcp-users-table th:nth-child(8), .nxtcp-users-table td:nth-child(8),
    .nxtcp-users-table th:nth-child(9), .nxtcp-users-table td:nth-child(9),
    .nxtcp-users-table th:nth-child(10), .nxtcp-users-table td:nth-child(10),
    .nxtcp-users-table th:nth-child(11), .nxtcp-users-table td:nth-child(11),
    .nxtcp-users-table th:nth-child(12), .nxtcp-users-table td:nth-child(12),
    .nxtcp-users-table th:nth-child(13), .nxtcp-users-table td:nth-child(13),
    .nxtcp-users-table th:nth-child(14), .nxtcp-users-table td:nth-child(14) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .nxtcp-users-table td {
        white-space: normal !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .nxtcp-group-child td:first-child,
    .nxtcp-group-child td:nth-child(2),
    .nxtcp-group-child td:nth-child(3),
    .nxtcp-group-child td:nth-child(4) {
        padding-left: 0;
    }

    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-dup-child {
        margin-left: 14px;
        width: calc(100% - 14px);
    }

    /* Fill full width for status/child rows on mobile to remove white side gutters. */
    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-admin-expired,
    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-admin-trial,
    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-dup-child {
        padding: 0;
    }

    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-admin-expired td,
    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-admin-trial td,
    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-dup-child td {
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-dup-child td {
        padding-left: 18px;
    }

    /* Force full-card status colors edge-to-edge on mobile. */
    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-admin-expired {
        background: #fde8e8 !important;
    }

    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-admin-trial {
        background: #eaf4ff !important;
    }

    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-admin-expired td {
        background: #fde8e8 !important;
    }

    .nxtcp-dashboard-users-table.widefat.striped tbody tr.nxtcp-admin-trial td {
        background: #eaf4ff !important;
    }

    .nxtcp-connections-table.widefat.striped tbody tr {
        background: #f8fafc !important;
        border: 1px solid #d7dee7;
        border-radius: 10px;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
        margin: 0 0 12px;
        overflow: hidden;
        padding: 0;
    }

    .nxtcp-connections-table.widefat.striped tbody td {
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
        margin: 0;
        min-height: 0;
        padding: 12px 16px !important;
    }

    .nxtcp-connections-table.widefat.striped tbody td:last-child {
        border-bottom: 0;
    }

    .nxtcp-connections-table.widefat.striped tbody td::before {
        content: attr(data-label);
        color: #50575e;
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    .nxtcp-connections-table.widefat.striped tbody tr.nxtcp-conn-group-even td,
    .nxtcp-connections-table.widefat.striped tbody tr.nxtcp-conn-group-odd td {
        background: transparent !important;
    }

    .nxtcp-connections-table-wrap,
    .nxtcp-connections-table.widefat.nxtcp-connections-table,
    .nxtcp-connections-table.widefat.nxtcp-connections-table tbody {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}

/* Default admin data-table pattern: wrap with .nxtcp-table-wrap and use .nxtcp-modern-table. */
.nxtcp-table-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #d7dee7;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    margin-top: 12px;
    overflow-x: auto;
}

.nxtcp-modern-table.widefat {
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    table-layout: fixed;
    width: 100%;
}

.nxtcp-modern-table.widefat thead th {
    background: #e8eef6 !important;
    border-bottom: 1px solid #cfd8e3 !important;
    color: #334155 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 11px 10px;
    position: static;
    text-transform: uppercase;
}

.nxtcp-modern-table.widefat thead th a,
.nxtcp-modern-table.widefat thead th a:visited {
    color: #334155 !important;
    text-decoration: none;
}

.nxtcp-modern-table.widefat thead th a:hover,
.nxtcp-modern-table.widefat thead th a:focus {
    color: #1d4ed8 !important;
    text-decoration: underline;
}

.nxtcp-modern-table.widefat tbody td {
    border-bottom: 1px solid #e6ecf2 !important;
    color: #1f2937 !important;
    font-size: 13px;
    line-height: 1.35;
    padding: 10px 10px !important;
    vertical-align: middle;
}

.nxtcp-modern-table.widefat tbody tr:last-child td {
    border-bottom: 0;
}

.nxtcp-modern-table.widefat tbody tr:hover td {
    background: #eaf3ff !important;
}

.nxtcp-users-table {
    min-width: 1460px;
    table-layout: fixed;
}

.nxtcp-users-table th,
.nxtcp-users-table td {
    overflow: hidden;
}

.nxtcp-users-table th:nth-child(1), .nxtcp-users-table td:nth-child(1) { width: 7%; }
.nxtcp-users-table th:nth-child(2), .nxtcp-users-table td:nth-child(2) { width: 14%; }
.nxtcp-users-table th:nth-child(3), .nxtcp-users-table td:nth-child(3) { width: 24%; }
.nxtcp-users-table th:nth-child(4), .nxtcp-users-table td:nth-child(4) { width: 15%; }
.nxtcp-users-table th:nth-child(5), .nxtcp-users-table td:nth-child(5) { width: 8%; }
.nxtcp-users-table th:nth-child(6), .nxtcp-users-table td:nth-child(6) { width: 14%; }
.nxtcp-users-table th:nth-child(7), .nxtcp-users-table td:nth-child(7) { width: 18%; }

.nxtcp-users-table td:nth-child(2),
.nxtcp-users-table td:nth-child(3),
.nxtcp-users-table td:nth-child(4),
.nxtcp-users-table td:nth-child(6) {
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-group-child > td,
.nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-group-child:hover > td {
    background: #ede7ff !important;
}

.nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-trial > td,
.nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-trial:hover > td {
    background: #eef7ff !important;
}

.nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-expiring > td,
.nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-expiring:hover > td {
    background: #fff8c5 !important;
}

.nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-expired > td,
.nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-expired:hover > td {
    background: #fde8e8 !important;
}

.nxtcp-users-actions-cell {
    white-space: normal;
}

.nxtcp-users-actions-cell .button {
    margin: 0 6px 6px 0;
}

.nxtcp-profile-overview {
    max-width: none !important;
    width: 100%;
}

.nxtcp-profile-overview .nxtcp-profile-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.nxtcp-profile-detail-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.nxtcp-profile-detail-grid span,
.nxtcp-profile-detail-section h4,
.nxtcp-profile-links-grid h4 {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 3px;
    text-transform: uppercase;
}

.nxtcp-profile-detail-section h4 {
    border-top: 1px solid #e5edf5;
    margin: 2px 0 8px;
    padding-top: 10px;
}

.nxtcp-profile-detail-pair {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.nxtcp-profile-detail-grid strong,
.nxtcp-profile-detail-grid .nxtcp-credential-value,
.nxtcp-profile-detail-grid .nxtcp-password-value,
.nxtcp-profile-detail-grid [id^="nxtcp-secret-"] {
    color: #0f172a;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-transform: none;
}

.nxtcp-profile-detail-grid .nxtcp-credential-value.is-empty {
    color: #64748b;
}

.nxtcp-profile-detail-wide {
    grid-column: 1 / -1;
}

.nxtcp-profile-detail-wide p {
    margin: 0;
    white-space: pre-wrap;
}

.nxtcp-profile-links-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.nxtcp-profile-links-grid ul {
    margin: 0 0 0 16px;
}

.nxtcp-profile-links-grid li {
    margin: 0 0 6px;
}

.nxtcp-insights-session-note {
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.nxtcp-insights-session-tools {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 12px;
}

.nxtcp-insights-filter-row[hidden] {
    display: none !important;
}

.nxtcp-modern-table.widefat.nxtcp-insights-sessions-table {
    table-layout: fixed;
}

.nxtcp-modern-table.widefat.nxtcp-insights-sessions-table thead th,
.nxtcp-modern-table.widefat.nxtcp-insights-sessions-table tbody td {
    font-size: 12px;
    vertical-align: top;
}

.nxtcp-modern-table.widefat.nxtcp-insights-sessions-table tbody td {
    padding: 10px 12px;
}

.nxtcp-session-col-channel {
    width: 22%;
}

.nxtcp-session-col-ip {
    width: 13%;
}

.nxtcp-session-col-isp {
    width: 14%;
}

.nxtcp-session-col-device {
    width: 14%;
}

.nxtcp-session-col-start,
.nxtcp-session-col-end {
    width: 13%;
}

.nxtcp-session-col-duration {
    width: 10%;
}

.nxtcp-session-col-type {
    width: 9%;
}

.nxtcp-session-text-clamp {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.nxtcp-session-subtle {
    color: #475569;
    font-size: 11px;
    line-height: 1.45;
}

.nxtcp-session-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.nxtcp-session-time {
    color: #0f172a;
    display: block;
    font-size: 11px;
    line-height: 1.45;
}

.nxtcp-session-date {
    color: #64748b;
    display: block;
    font-size: 10px;
    line-height: 1.35;
    margin-top: 2px;
}

.nxtcp-session-badge {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    color: #3730a3;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    white-space: nowrap;
}

.nxtcp-session-type-pill {
    background: #f1f5f9;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    color: #334155;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    max-width: 100%;
    padding: 5px 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 782px) {
    .nxtcp-users-admin-wrap,
    .nxtcp-users-admin-wrap .nxtcp-table-wrap,
    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table,
    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tbody {
        background: transparent !important;
    }

    .nxtcp-users-admin-wrap .nxtcp-table-wrap {
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible;
    }

    .nxtcp-profile-overview .nxtcp-profile-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nxtcp-profile-detail-pair {
        grid-template-columns: 1fr;
    }

    .nxtcp-profile-links-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table {
        background: transparent !important;
        border: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
        display: block;
        min-width: 0 !important;
        table-layout: auto !important;
        width: 100% !important;
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tbody,
    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tr,
    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table td {
        display: block;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tr.nxtcp-admin-row {
        background: #f8fafc;
        border: 1px solid #d7dee7;
        border-radius: 10px;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
        margin: 0 0 14px;
        overflow: hidden;
        padding: 0;
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-row > td {
        background: #f8fafc !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-sizing: border-box;
        padding: 12px 16px !important;
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-row.nxtcp-group-child > td {
        background: #ede7ff !important;
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-row.nxtcp-admin-trial > td {
        background: #eef7ff !important;
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-row.nxtcp-admin-expiring > td {
        background: #fff8c5 !important;
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-row.nxtcp-admin-expired > td {
        background: #fde8e8 !important;
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-row > td:last-child {
        border-bottom: 0 !important;
    }

    .nxtcp-users-admin-wrap .nxtcp-modern-table.widefat.nxtcp-users-table tbody tr.nxtcp-admin-row > td::before {
        content: attr(data-label);
        color: #334155;
        display: block;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.02em;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .nxtcp-modern-table.widefat.nxtcp-insights-sessions-table {
        background: transparent !important;
        border: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 12px !important;
        display: block;
        min-width: 0 !important;
        width: 100% !important;
    }

    .nxtcp-modern-table.widefat.nxtcp-insights-sessions-table tbody,
    .nxtcp-modern-table.widefat.nxtcp-insights-sessions-table tr,
    .nxtcp-modern-table.widefat.nxtcp-insights-sessions-table td {
        display: block;
        width: 100% !important;
    }

    .nxtcp-modern-table.widefat.nxtcp-insights-sessions-table tr {
        background: #f8fafc;
        border: 1px solid #d7dee7;
        border-radius: 10px;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
        margin: 0 0 12px;
        overflow: hidden;
    }

    .nxtcp-modern-table.widefat.nxtcp-insights-sessions-table tr:nth-child(even) {
        background: #eef6ff;
    }

    .nxtcp-modern-table.widefat.nxtcp-insights-sessions-table td {
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-sizing: border-box;
        padding: 10px 14px !important;
        white-space: normal !important;
        word-break: break-word;
    }

    .nxtcp-modern-table.widefat.nxtcp-insights-sessions-table td:last-child {
        border-bottom: 0 !important;
    }

    .nxtcp-modern-table.widefat.nxtcp-insights-sessions-table td::before {
        content: attr(data-label);
        color: #334155;
        display: block;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.02em;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .nxtcp-insights-session-tools {
        justify-content: stretch;
    }

    .nxtcp-insights-session-tools .button {
        width: 100%;
    }

    .nxtcp-session-text-clamp {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        display: block;
    }

    .nxtcp-session-type-pill,
    .nxtcp-session-badge {
        white-space: normal;
    }
}

.nxtcp-portal-playlists {
    border-top: 1px solid #edf0f2;
    margin-top: 24px;
    padding-top: 22px;
}

.nxtcp-portal-playlists-head {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nxtcp-portal-playlists-head h3 {
    color: #1f2933;
    font-size: 22px;
    margin: 0 0 4px;
}

.nxtcp-portal-playlists .nxtcp-playlist-toggle-group {
    margin-bottom: 12px;
}

.nxtcp-portal-playlists .nxtcp-secondary {
    min-height: 36px;
    padding: 7px 12px;
}

.nxtcp-portal-playlists .nxtcp-secondary.is-active {
    background: #174ea6;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.nxtcp-portal-playlists .nxtcp-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.nxtcp-playlist-editor-launch {
    align-items: center;
    background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    margin: 0 0 14px;
    padding: 14px;
}

.nxtcp-playlist-editor-launch h3 {
    color: #174ea6;
    font-size: 17px;
    margin: 0 0 3px;
}

.nxtcp-playlist-editor-launch p {
    margin: 0;
}

.nxtcp-playlist-editor-launch .nxtcp-secondary {
    text-decoration: none;
}

.nxtcp-portal-playlist-filters {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 260px) auto;
    margin-bottom: 12px;
}

.nxtcp-portal-playlist-filters input,
.nxtcp-portal-playlist-filters select {
    border: 1px solid #c9d1d9;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
}

.nxtcp-playlist-shell {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    margin-top: 16px;
}

.nxtcp-playlist-sidebar,
.nxtcp-playlist-main {
    background: #ffffff;
    border: 1px solid #d7dee7;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.nxtcp-playlist-sidebar {
    max-height: calc(100vh - 140px);
    overflow: hidden;
    position: sticky;
    top: 48px;
}

.nxtcp-playlist-sidebar-head {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px;
}

.nxtcp-playlist-sidebar-head h2,
.nxtcp-playlist-selected h2 {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.nxtcp-playlist-sidebar input,
.nxtcp-playlist-filters input,
.nxtcp-playlist-filters select {
    max-width: 100%;
    width: 100%;
}

.nxtcp-playlist-users {
    max-height: calc(100vh - 235px);
    overflow: auto;
    padding: 8px;
}

.nxtcp-playlist-user {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #1f2937;
    cursor: pointer;
    display: block;
    margin: 0 0 8px;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.nxtcp-playlist-user:hover,
.nxtcp-playlist-user.is-active {
    border-color: #2563eb;
    box-shadow: inset 3px 0 0 #2563eb;
}

.nxtcp-playlist-user strong,
.nxtcp-playlist-user span,
.nxtcp-playlist-user small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nxtcp-playlist-user span {
    color: #334155;
    margin-top: 3px;
}

.nxtcp-playlist-user small {
    color: #64748b;
    margin-top: 2px;
}

.nxtcp-playlist-user em {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.nxtcp-playlist-user b {
    background: #f1f5f9;
    border-radius: 999px;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    line-height: 1;
    padding: 4px 7px;
}

.nxtcp-playlist-user b.is-ready {
    background: #dcfce7;
    color: #166534;
}

.nxtcp-playlist-main {
    min-width: 0;
    padding: 14px;
}

.nxtcp-playlist-selected {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: -14px -14px 14px;
    padding: 14px;
}

.nxtcp-playlist-selected p {
    margin: 0;
}

.nxtcp-playlist-controls,
.nxtcp-playlist-filters,
.nxtcp-playlist-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.nxtcp-playlist-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nxtcp-playlist-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
}

.nxtcp-playlist-status {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    margin-bottom: 12px;
    padding: 9px 10px;
}

.nxtcp-playlist-status.is-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.nxtcp-playlist-status.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.nxtcp-playlist-status.is-loading {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.nxtcp-playlist-summary span {
    background: #f1f5f9;
    border-radius: 999px;
    color: #334155;
    font-size: 12px;
    padding: 5px 9px;
}

.nxtcp-playlist-content {
    display: grid;
    gap: 8px;
}

.nxtcp-playlist-item {
    align-items: start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
}

.nxtcp-playlist-item-main {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
}

.nxtcp-playlist-logo-tile {
    align-items: center;
    background: #cbd5e1;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    display: flex;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    width: 72px;
}

.nxtcp-playlist-logo {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.nxtcp-playlist-item h3 {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 3px;
}

.nxtcp-playlist-item p {
    color: #64748b;
    margin: 0;
}

@media (max-width: 782px) {
    .nxtcp-playlist-item p {
        color: #7b8798;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.35;
    }
}

.nxtcp-now-block {
    margin-top: 8px;
    max-width: 760px;
    position: relative;
}

.nxtcp-now-title {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.nxtcp-now-time {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.nxtcp-guide-pop {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
    display: none;
    left: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px 10px;
    position: absolute;
    top: calc(100% + 6px);
    width: min(520px, 88vw);
    z-index: 20;
}

.nxtcp-now-block:hover .nxtcp-guide-pop {
    display: block;
}

.nxtcp-guide-pop-head {
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.nxtcp-guide-pop ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nxtcp-guide-pop li {
    border-bottom: 1px solid #e2e8f0;
    margin: 0;
    padding: 6px 0;
}

.nxtcp-guide-pop li:last-child {
    border-bottom: 0;
}

.nxtcp-guide-pop li strong {
    color: #0f172a;
    display: block;
    font-size: 12px;
    line-height: 1.3;
}

.nxtcp-guide-pop li span {
    color: #64748b;
    display: block;
    font-size: 11px;
    margin-top: 1px;
}

.nxtcp-guide-pop li.is-current strong {
    color: #1d4ed8;
}

.nxtcp-playlist-item-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nxtcp-playlist-item-meta span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 12px;
    padding: 3px 7px;
}

.nxtcp-playlist-item-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

.nxtcp-playlist-item-actions .button,
.nxtcp-playlist-item-actions .nxtcp-secondary {
    text-decoration: none;
}

.nxtcp-playlist-debug-url {
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 10px;
    word-break: break-all;
}

.nxtcp-playlist-debug-url code {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #0f172a;
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    margin-top: 4px;
    max-width: 100%;
    padding: 6px 8px;
    white-space: pre-wrap;
}

.nxtcp-playlist-debug-meta {
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px 12px;
    margin-top: 6px;
}

.nxtcp-playback-modal {
    display: none;
    inset: 0;
    position: fixed;
    z-index: 100000;
}

.nxtcp-playback-modal.is-open {
    display: block;
}

.nxtcp-playback-modal-backdrop {
    background: rgba(15, 23, 42, 0.78);
    inset: 0;
    position: absolute;
}

.nxtcp-playback-modal-dialog {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    left: 50%;
    max-height: min(86vh, 900px);
    max-width: min(960px, calc(100vw - 32px));
    overflow: auto;
    padding: 18px 18px 20px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.nxtcp-playback-modal-close {
    appearance: none;
    background: transparent;
    border: 0;
    color: #475569;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    position: absolute;
    right: 12px;
    top: 10px;
}

.nxtcp-playback-modal h3 {
    color: #0f172a;
    font-size: 18px;
    margin: 0 30px 14px 0;
}

.nxtcp-playback-frame {
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 0;
    border-radius: 10px;
    display: block;
    height: auto;
    max-height: min(62vh, 70vw);
    min-height: 220px;
    width: 100%;
}

.nxtcp-playback-note {
    color: #64748b;
    font-size: 12px;
    margin: 12px 0 10px;
}

.nxtcp-series-detail {
    display: none;
    grid-column: 1 / -1;
}

.nxtcp-series-detail.is-open {
    display: block;
}

.nxtcp-series-detail details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 8px;
    padding: 8px 10px;
}

.nxtcp-series-detail summary {
    cursor: pointer;
    font-weight: 700;
}

.nxtcp-series-detail summary span {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    margin-left: 6px;
}

.nxtcp-series-detail ol {
    margin: 8px 0 0 20px;
}

.nxtcp-series-detail li {
    margin-bottom: 6px;
}

.nxtcp-series-detail li span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.nxtcp-season-tabs {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.nxtcp-season-tabs > span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.nxtcp-season-pane {
    display: none;
    margin-top: 8px;
}

.nxtcp-season-pane.is-open {
    display: block;
}

.nxtcp-season-pane h4 {
    font-size: 14px;
    margin: 0 0 8px;
}

.nxtcp-season-pane h4 span {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
    margin-left: 6px;
}

.nxtcp-playlist-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    color: #64748b;
    padding: 14px;
}

.nxtcp-playlist-pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    text-align: center;
}

.nxtcp-playlist-pagination span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.nxtcp-heatmap-legend {
    flex-wrap: wrap;
}

.nxtcp-account-identity {
    display: grid;
    gap: 8px;
    margin: 6px 0 10px;
}

.nxtcp-account-identity-primary span {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.nxtcp-account-identity-primary strong {
    color: #0f172a;
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.nxtcp-account-identity-secondary {
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
}

.nxtcp-account-identity-secondary strong {
    color: #475569;
}

.nxtcp-connections-table.widefat .nxtcp-conn-group-even td {
    background: #ffffff !important;
}

.nxtcp-connections-table.widefat .nxtcp-conn-group-odd td {
    background: #f6f9fc !important;
}

.nxtcp-connections-table.widefat {
    table-layout: auto;
    width: 100%;
}

.nxtcp-connections-table .nxtcp-col-line-id,
.nxtcp-connections-table .nxtcp-col-panel-username,
.nxtcp-connections-table .nxtcp-col-local-name,
.nxtcp-connections-table .nxtcp-col-ip,
.nxtcp-connections-table .nxtcp-col-type,
.nxtcp-connections-table .nxtcp-col-start,
.nxtcp-connections-table .nxtcp-col-total,
.nxtcp-connections-table .nxtcp-col-updated {
    white-space: nowrap;
    width: 1%;
}

.nxtcp-connections-table .nxtcp-col-channel {
    width: auto;
}

.nxtcp-connections-table.widefat tbody tr.nxtcp-group-hover td {
    background: #eaf3ff !important;
}

.nxtcp-connections-table td.nxtcp-col-channel {
    font-weight: 600 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: none;
}

.nxtcp-connections-table td[data-label="Local Name:"] {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.nxtcp-connections-table td[data-label="Panel Username:"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nxtcp-connections-table .nxtcp-col-start,
.nxtcp-connections-table .nxtcp-col-total,
.nxtcp-connections-table .nxtcp-col-updated {
    white-space: nowrap;
    width: 1%;
}

.nxtcp-connections-table td[data-label="Start:"],
.nxtcp-connections-table td[data-label="Total:"],
.nxtcp-connections-table td[data-label="Updated:"] {
    white-space: nowrap;
}

.nxtcp-connections-table td[data-label="IP:"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nxtcp-connections-table td[data-label="IP:"] .nxtcp-ip-link {
    color: #2563eb;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.nxtcp-mobile-streams-cell {
    display: none;
}

.nxtcp-mobile-streams-list {
    margin: 0;
    padding-left: 16px;
}

.nxtcp-mobile-streams-list li {
    margin: 0 0 6px;
}

.nxtcp-mobile-stream-meta {
    color: #475569;
    font-size: 11px;
}

.nxtcp-profile-card.is-active {
    background: #eef5ff;
    border-color: #1f6feb;
}

.nxtcp-profile-card strong,
.nxtcp-profile-card span {
    display: block;
    overflow-wrap: anywhere;
}

.nxtcp-profile-card strong {
    font-size: 15px;
    line-height: 1.25;
}

.nxtcp-profile-card span {
    color: #5c6873;
    font-size: 13px;
    margin-top: 6px;
}

.nxtcp-account-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.nxtcp-portal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px;
}

.nxtcp-portal-page {
    display: none;
}

.nxtcp-portal-page.is-active {
    display: block;
}

.nxtcp-account-summary {
    min-width: 0;
}

.nxtcp-account-login-info {
    min-width: 0;
}

.nxtcp-login-info {
    background: #f7f9fb;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    color: #1f2933;
    margin: 0;
    padding: 24px;
}

.nxtcp-login-info h3 {
    color: #1f2933;
    font-size: 22px;
    margin: 0 0 14px;
}

.nxtcp-login-info .nxtcp-muted {
    color: #5c6873;
    font-size: 16px;
    line-height: 1.5;
}

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

.nxtcp-copy-row {
    margin: 16px 0;
}

.nxtcp-copy-row label {
    color: #5c6873;
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.nxtcp-copy-control {
    display: flex;
    min-width: 0;
}

.nxtcp-copy-control input {
    background: #ffffff;
    border: 1px solid #c9d1d9;
    border-radius: 6px 0 0 6px;
    color: #1f2933;
    flex: 1;
    min-height: 44px;
    min-width: 0;
    padding: 10px 12px;
}

.nxtcp-copy-control button {
    border-radius: 0 6px 6px 0;
    min-width: 84px;
}

.nxtcp-footnote {
    color: #5c6873;
    font-size: 14px;
    font-weight: 700;
    margin: 18px 0 0;
}

.nxtcp-dashboard-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

.nxtcp-dashboard-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 8px 0 14px;
}

.nxtcp-dashboard-card {
    border: 2px solid #27313e;
    border-radius: 10px;
    padding: 10px;
}

a.nxtcp-dashboard-card {
    color: inherit;
    text-decoration: none;
}

a.nxtcp-dashboard-card:hover,
button.nxtcp-dashboard-card:hover {
    transform: translateY(-1px);
}

.nxtcp-dashboard-card.is-active {
    box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.25);
}

button.nxtcp-dashboard-card {
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.nxtcp-dashboard-card h3 {
    color: #1f2933;
    font-size: 13px;
    margin: 0 0 6px;
}

.nxtcp-dashboard-value {
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.nxtcp-card-total { background: #fff7d6; }
.nxtcp-card-iptv { background: #dff4ff; }
.nxtcp-card-panel { background: #f3e8ff; }
.nxtcp-card-trial { background: #ffe4ef; }
.nxtcp-card-conns { background: #dcfce7; }
.nxtcp-card-expired { background: #ffe2e2; }
.nxtcp-card-missing-email { background: #fff0d8; }
.nxtcp-card-missing-name { background: #fde68a; }
.nxtcp-card-linked { background: #e0f2fe; }
.nxtcp-card-unlinked { background: #ddd6fe; }
.nxtcp-card-no-expiry { background: #fce7f3; }
.nxtcp-card-missing-creds { background: #fecaca; }
.nxtcp-card-stale-sync { background: #fee2e2; }
.nxtcp-card-duplicate { background: #d1fae5; }
.nxtcp-card-near-max { background: #ffedd5; }
.nxtcp-card-expiring-30 { background: #fff8c5; }
.nxtcp-card-expiring-7 { background: #ffe9b3; }
.nxtcp-card-expiring-3 { background: #ffd4a7; }
.nxtcp-card-expiring-1 { background: #ffc1c1; }

.nxtcp-dashboard-users-table .nxtcp-parent-even > td {
    background: #ffffff !important;
}

.nxtcp-dashboard-users-table .nxtcp-parent-odd > td {
    background: #f8fafc !important;
}

.nxtcp-dashboard-analytics-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 10px 0 16px;
}

.nxtcp-analytics-panel {
    background: #ffffff;
    border: 1px solid #d7dee7;
    border-radius: 10px;
    padding: 12px;
}

.nxtcp-analytics-panel h3 {
    margin: 0 0 8px;
}

.nxtcp-funnel-row,
.nxtcp-util-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 56px 1fr 50px;
    margin-bottom: 6px;
}

.nxtcp-util-bar {
    background: #e5e7eb;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.nxtcp-util-bar i {
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    display: block;
    height: 100%;
}

.nxtcp-analytics-list {
    margin: 0;
    padding: 0;
}

.nxtcp-analytics-list li {
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 6px 0;
}

.nxtcp-dashboard-users-table .nxtcp-dup-child > td {
    background: #f3efff !important;
}

.nxtcp-dashboard-users-table .nxtcp-dup-child td:first-child,
.nxtcp-dashboard-users-table .nxtcp-dup-child td:nth-child(2),
.nxtcp-dashboard-users-table .nxtcp-dup-child td:nth-child(3) {
    padding-left: 22px;
}

.nxtcp-dashboard-users-table .nxtcp-admin-trial.nxtcp-parent-even > td {
    background: #eaf4ff !important;
}

.nxtcp-dashboard-users-table .nxtcp-admin-trial.nxtcp-parent-odd > td {
    background: #e2efff !important;
}

.nxtcp-dashboard-users-table .nxtcp-admin-expired.nxtcp-parent-even > td {
    background: #fde8e8 !important;
}

.nxtcp-dashboard-users-table .nxtcp-admin-expired.nxtcp-parent-odd > td {
    background: #fbdede !important;
}

.nxtcp-dashboard-users-table .nxtcp-admin-expired.nxtcp-dup-child > td {
    background: #f2e8ff !important;
}

.nxtcp-dashboard-users-table .nxtcp-admin-trial.nxtcp-dup-child > td {
    background: #ede7ff !important;
}

.nxtcp-credits-card {
    background: linear-gradient(135deg, #eef6ff 0%, #e0f2fe 100%);
    border: 2px solid #1f2937;
    border-radius: 10px;
    margin: 8px 0 12px;
    max-width: 430px;
    padding: 10px 12px;
}

.nxtcp-credits-label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nxtcp-credits-value {
    color: #0f172a;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
}

.nxtcp-credits-unavailable {
    color: #b91c1c;
    font-size: 22px;
}

.nxtcp-credits-updated {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.nxtcp-active-connections-card {
    background: #f8fbff;
    border: 1px solid #c7d7ec;
    border-radius: 8px;
    display: inline-block;
    margin: 2px 0 10px;
    min-width: 170px;
    padding: 8px 10px;
}

.nxtcp-active-connections-label {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nxtcp-active-connections-value {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 2px;
}

.nxtcp-user-detail-body {
    display: grid;
    gap: 0;
    max-height: calc(min(88vh, 860px) - 72px);
    overflow: auto;
    padding: 10px 20px 18px;
}

.nxtcp-user-detail-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #dbe3ea;
    border-radius: 0;
    padding: 12px 0;
}

.nxtcp-user-detail-item:first-child {
    padding-top: 4px;
}

.nxtcp-user-detail-item:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
}

.nxtcp-user-detail-label {
    color: #475569;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.nxtcp-user-detail-value {
    color: #0f172a;
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.nxtcp-user-detail-muted,
.nxtcp-user-detail-streams-loading {
    color: #64748b;
}

.nxtcp-user-detail-stream-list {
    list-style: disc;
    margin: 0;
    padding-left: 18px;
}

.nxtcp-user-detail-stream-list li {
    margin: 0 0 4px;
}

.nxtcp-connection-name-link {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
}

.nxtcp-connection-name-text {
    color: #475569;
    display: inline-block;
    font-size: 14px;
    line-height: 1.35;
}

.nxtcp-status-chip {
    border-radius: 999px;
    color: #fff;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 8px;
    padding: 4px 8px;
    vertical-align: middle;
}

.nxtcp-status-chip-expired {
    background: #d63638;
}

.nxtcp-status-chip-trial {
    background: #0ea5e9;
}

.nxtcp-status-chip-expiring {
    background: #ffe9b3;
    color: #7a4b00;
}

.nxtcp-status-chip-child {
    background: #6d5dfc;
}

body.woocommerce-account.nxtcp-account-portal {
    background:
        radial-gradient(circle at top left, rgba(31, 111, 235, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 28%),
        linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
    color: #0f172a;
}

body.woocommerce-account.nxtcp-account-portal #main-content,
body.woocommerce-account.nxtcp-account-portal .container,
body.woocommerce-account.nxtcp-account-portal .et_pb_section,
body.woocommerce-account.nxtcp-account-portal .et_pb_row {
    background: transparent;
}

body.woocommerce-account.nxtcp-account-portal #main-content {
    position: relative;
    z-index: 1;
}

body.woocommerce-account.nxtcp-account-portal #et-main-area,
body.woocommerce-account.nxtcp-account-portal #main-content,
body.woocommerce-account.nxtcp-account-portal #main-content > .container,
body.woocommerce-account.nxtcp-account-portal #content-area,
body.woocommerce-account.nxtcp-account-portal #left-area,
body.woocommerce-account.nxtcp-account-portal article.page,
body.woocommerce-account.nxtcp-account-portal .entry-content {
    box-sizing: border-box;
    max-width: none !important;
    width: 100% !important;
}

body.woocommerce-account.nxtcp-account-portal #main-content > .container,
body.woocommerce-account.nxtcp-account-portal #content-area,
body.woocommerce-account.nxtcp-account-portal #left-area {
    padding: 0 !important;
}

body.woocommerce-account.nxtcp-account-portal #main-content > .container::before,
body.woocommerce-account.nxtcp-account-portal #left-area::before {
    display: none !important;
}

body.woocommerce-account.nxtcp-account-portal article.page > .entry-title {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1380px;
    padding: 28px 16px 0;
    width: 100%;
}

body.woocommerce-account.nxtcp-account-portal .entry-content,
body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-content p,
body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-content ul,
body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-content ol {
    margin-bottom: 0;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce {
    display: grid !important;
    gap: 24px;
    grid-template-columns: clamp(210px, 22vw, 250px) minmax(0, 1fr);
    max-width: 1380px;
    margin: 0 auto;
    padding: 8px 16px 56px;
    align-items: start;
    position: relative;
    z-index: 1;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation,
body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-content {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0;
    min-width: 0;
    margin: 0 !important;
    clear: none !important;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    padding: 18px;
    backdrop-filter: blur(16px);
    position: sticky;
    top: 136px;
    align-self: start;
    grid-column: 1;
    width: 100%;
    max-width: 250px;
    z-index: 2;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation::before {
    color: #2563eb;
    content: "Portal Menu";
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 2px 6px 14px;
    text-transform: uppercase;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation ul {
    display: grid;
    gap: 10px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation li {
    display: block;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation li::marker {
    content: "";
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation a {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 16px;
    color: #0f172a;
    display: block;
    font-weight: 700;
    line-height: 1.3;
    padding: 13px 14px;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a {
    background: rgba(248, 250, 252, 0.92);
    color: #475569;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation a:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
    outline: 0;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation .is-active a {
    background: linear-gradient(135deg, #1f6feb, #0ea5e9);
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(31, 111, 235, 0.2);
    color: #ffffff;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-content {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    grid-column: 2;
    min-width: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px;
    backdrop-filter: blur(16px);
    overflow: visible;
    position: relative;
    z-index: 1;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-content > :first-child {
    margin-top: 0;
}

body.woocommerce-account.nxtcp-account-portal .woocommerce-message,
body.woocommerce-account.nxtcp-account-portal .woocommerce-info,
body.woocommerce-account.nxtcp-account-portal .woocommerce-error {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    margin: 0 0 18px !important;
    overflow: hidden;
}

body.woocommerce-account.nxtcp-account-portal #main-header,
body.woocommerce-account.nxtcp-account-portal #top-header,
body.woocommerce-account.nxtcp-account-portal .et-fixed-header,
body.woocommerce-account.nxtcp-account-portal .et-fixed-header#main-header,
body.woocommerce-account.nxtcp-account-portal #page-container #main-header,
body.woocommerce-account.nxtcp-account-portal #page-container .et-fixed-header,
body.woocommerce-account.nxtcp-account-portal #et-boc > header,
body.woocommerce-account.nxtcp-account-portal #et-boc > header.et-l--header,
body.woocommerce-account.nxtcp-account-portal .et-l--header .et_builder_inner_content,
body.woocommerce-account.nxtcp-account-portal .et-l--header,
body.woocommerce-account.nxtcp-account-portal header[role="banner"] {
    z-index: 10010 !important;
}

body.woocommerce-account.nxtcp-account-portal .et-fixed-header,
body.woocommerce-account.nxtcp-account-portal #main-header.et-fixed-header,
body.woocommerce-account.nxtcp-account-portal #et-boc > header {
    z-index: 10010 !important;
}

body.woocommerce-account.nxtcp-account-portal #et-boc > header {
    background: #ffffff;
    position: sticky !important;
    top: 0;
}

body.woocommerce-account.nxtcp-account-portal #et-boc > header .et_builder_inner_content {
    background: #ffffff;
    position: relative;
    z-index: 10011 !important;
}

.nxtcp-woo-shell * {
    box-sizing: border-box;
}

.nxtcp-woo-shell {
    display: grid;
    gap: 20px;
}

.nxtcp-woo-shell-endpoint {
    gap: 18px;
}

.nxtcp-woo-hero,
.nxtcp-woo-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.nxtcp-woo-hero {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    padding: 24px;
}

.nxtcp-woo-hero-copy h1 {
    color: #0f172a;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.02;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.nxtcp-woo-eyebrow {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.nxtcp-woo-intro {
    color: #334155;
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    max-width: 66ch;
}

.nxtcp-woo-hero-status {
    background: linear-gradient(180deg, rgba(31, 111, 235, 0.08), rgba(14, 165, 233, 0.03));
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 20px;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
}

.nxtcp-woo-hero-status p {
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.nxtcp-woo-status-chip {
    background: #0f172a;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 12px;
}

.nxtcp-woo-section {
    padding: 22px;
}

.nxtcp-woo-section-head {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.nxtcp-woo-section-head h2 {
    color: #0f172a;
    font-size: 22px;
    margin: 0;
}

.nxtcp-woo-section-head p {
    color: #64748b;
    margin: 0;
    max-width: 62ch;
}

.nxtcp-woo-action-grid,
.nxtcp-woo-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.nxtcp-woo-card {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    color: #0f172a;
    display: grid;
    gap: 10px;
    min-height: 148px;
    padding: 18px;
}

.nxtcp-woo-card strong {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.nxtcp-woo-card span {
    color: #64748b;
    line-height: 1.55;
}

.nxtcp-woo-summary-grid .nxtcp-woo-card strong {
    font-size: clamp(18px, 2.2vw, 24px);
}

.nxtcp-woo-card-value-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 15px;
    line-height: 1.45;
}

a.nxtcp-woo-card {
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

a.nxtcp-woo-card:hover,
a.nxtcp-woo-card:focus {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
    outline: 0;
}

.nxtcp-woo-card-action {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.nxtcp-woo-card-kicker {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nxtcp-woo-card-action strong {
    color: #0f172a;
    font-size: 17px;
}

.nxtcp-woo-card-action span {
    color: #475569;
}

.nxtcp-woo-card-success {
    background: linear-gradient(180deg, #ecfdf5, #f8fffc);
}

.nxtcp-woo-card-warning {
    background: linear-gradient(180deg, #fff7ed, #fffbf5);
}

.nxtcp-woo-card-info {
    background: linear-gradient(180deg, #eff6ff, #f8fbff);
}

.nxtcp-woo-card-muted {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.nxtcp-woo-section + .nxtcp-woo-section {
    margin-top: 2px;
}

.nxtcp-woo-empty-state {
    background: #f8fafc;
    border: 1px dashed rgba(148, 163, 184, 0.65);
    border-radius: 18px;
    color: #475569;
    padding: 18px;
}

@media (max-width: 1180px) {
    body.woocommerce-account.nxtcp-account-portal .woocommerce {
        grid-template-columns: clamp(200px, 24vw, 230px) minmax(0, 1fr);
    }

    .nxtcp-woo-hero {
        grid-template-columns: 1fr;
    }

    body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation {
        max-width: 230px;
        top: 124px;
    }
}

@media (max-width: 720px) {
    .nxtcp-credits-card {
        border-width: 1px;
        margin: 6px 0 8px;
        max-width: 100%;
        padding: 6px 8px;
    }

    .nxtcp-credits-label {
        font-size: 10px;
    }

    .nxtcp-credits-value {
        font-size: 18px;
        line-height: 1.1;
    }

    .nxtcp-credits-updated {
        font-size: 10px;
        margin-top: 2px;
    }

    body.woocommerce-account.nxtcp-account-portal .woocommerce {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 100%;
        padding: 0 4px 32px;
    }

    body.woocommerce-account.nxtcp-account-portal #main-content {
        padding-top: 0;
    }

    body.woocommerce-account.nxtcp-account-portal article.page > .entry-title {
        padding: 18px 8px 0;
    }

    body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation {
        overflow: visible;
        position: static;
        padding: 10px 10px 8px;
        max-width: none;
        border-radius: 18px;
        z-index: 1;
    }

    body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation::before {
        font-size: 11px;
        margin: 0 4px 8px;
    }

    body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-content {
        grid-column: 1;
        border-radius: 20px;
        padding: 14px;
    }

    body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation ul {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        padding: 0 !important;
    }

    body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation li {
        min-width: 0;
    }

    body.woocommerce-account.nxtcp-account-portal .woocommerce-MyAccount-navigation a {
        min-height: 100%;
        border-radius: 14px;
        padding: 10px 12px;
        text-align: center;
        white-space: normal;
    }

    .nxtcp-woo-hero {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .nxtcp-woo-section {
        padding: 14px;
    }

    .nxtcp-woo-section-head {
        gap: 8px;
        margin-bottom: 12px;
    }

    .nxtcp-woo-action-grid,
    .nxtcp-woo-summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nxtcp-woo-card {
        min-height: 0;
        border-radius: 16px;
        gap: 8px;
        padding: 14px;
    }

    .nxtcp-woo-card strong {
        font-size: 16px;
    }

    .nxtcp-woo-card span,
    .nxtcp-woo-intro,
    .nxtcp-woo-hero-status p {
        font-size: 15px;
        line-height: 1.45;
    }

    .nxtcp-woo-hero-copy h1 {
        font-size: clamp(28px, 8vw, 38px);
        margin-bottom: 6px;
    }

    .nxtcp-woo-hero-status {
        border-radius: 16px;
        padding: 14px;
    }

    .nxtcp-active-connections-card {
        margin: 2px 0 8px;
        min-width: 130px;
        padding: 6px 8px;
    }

    .nxtcp-active-connections-label {
        font-size: 10px;
    }

    .nxtcp-active-connections-value {
        font-size: 18px;
    }

    .nxtcp-connections-table td.nxtcp-col-channel {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-break: break-word;
    }

    .nxtcp-connections-table .nxtcp-mobile-streams-cell {
        display: block;
    }

    .nxtcp-connections-table tbody tr[data-group-key] td[data-label="Channel:"],
    .nxtcp-connections-table tbody tr[data-group-key] td[data-label="IP:"],
    .nxtcp-connections-table tbody tr[data-group-key] td[data-label="Type:"],
    .nxtcp-connections-table tbody tr[data-group-key] td[data-label="Start:"],
    .nxtcp-connections-table tbody tr[data-group-key] td[data-label="Total:"],
    .nxtcp-connections-table tbody tr[data-group-key] td[data-label="Updated:"] {
        display: none;
    }

    .nxtcp-connections-table tbody tr.nxtcp-conn-stream-row {
        display: none;
    }

    .nxtcp-dashboard-value {
        font-size: 24px;
    }

    .nxtcp-login-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .nxtcp-account-wrap {
        max-width: 760px;
    }

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

    .nxtcp-account-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nxtcp-wrap {
        margin: 16px auto;
    }

    .nxtcp-panel {
        padding: 18px;
    }

    .nxtcp-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .nxtcp-profile-list {
        grid-template-columns: 1fr;
    }

    .nxtcp-login-info {
        padding: 18px;
    }

    .nxtcp-copy-control {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nxtcp-copy-control input {
        border-radius: 6px 6px 0 0;
    }

    .nxtcp-copy-control button {
        border-radius: 0 0 6px 6px;
        width: 100%;
    }

    .nxtcp-modal-actions {
        flex-direction: column;
    }

    .nxtcp-portal-playlist-filters {
        grid-template-columns: 1fr;
    }

    .nxtcp-playlist-pagination {
        justify-content: flex-start;
    }

    .nxtcp-playlist-pagination button {
        min-width: 120px;
    }
}
