#resellerDropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

.table-custom {
    width: 100%;
    min-width: 500px;
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.table-custom td,
.table-custom th {
    vertical-align: middle !important;
    border-color: var(--datatable-border-color, var(--bs-border-color, #e0e0e0)) !important;
}

.table-custom > :not(caption) > * > * {
    border-bottom: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    border-right: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
}

.table-custom > :not(caption) > * > *:last-child {
    border-right: 0;
}

.table-custom > tbody > tr:last-child > * {
    border-bottom: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

table.dataTable th,
table.dataTable td {
    white-space: nowrap;
}

/* ================================
   DATATABLES – TOP LAYOUT
================================ */

:root {
    --dt-control-height: calc(1.5em + .8125rem + 2px);
    --dt-mobile-search-width: 220px;
}

.dt-layout-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 8px;
}

.dt-layout-top .dt-layout-cell {
    display: flex;
    align-items: center;
    min-width: 0;
}

.dt-layout-top .dt-layout-cell:first-child {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 5px;
}

.dt-layout-top .dt-layout-cell:last-child {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.dt-layout-top .dt-layout-cell > * {
    margin: 0;
}

.dt-length {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--dt-control-height);
    flex: 0 0 auto;
    margin-bottom: 0;
}

.dt-extra-filter {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    margin-left: 0;
    min-width: 0;
}

.datatable-selector,
.datatable-input {
    height: var(--dt-control-height);
    min-height: var(--dt-control-height);
    padding-top: .40625rem !important;
    padding-bottom: .40625rem !important;
    line-height: 1.5;
    box-sizing: border-box;
}

.dt-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: var(--dt-control-height);
    margin-top: 0;
}

.dt-search input {
    text-align: center;
    width: 220px;
    max-width: 260px;
}

.dt-extra-filter select {
    min-width: 130px;
    width: auto;
}

.server-toolbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: auto;
}

.server-toolbox.d-none {
    display: none !important;
}

.btn-compact {
    height: var(--dt-control-height);
    min-height: var(--dt-control-height);
    font-size: .875rem;
    line-height: 1.5;
    padding: .40625rem .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    letter-spacing: .04em;
    width: auto;
}

.btn-compact .material-symbols-outlined {
    font-size: 1rem;
    line-height: 1;
}

/* ================================
   DATATABLES – MOBILE TOP LAYOUT
================================ */

@media (max-width: 767.98px) {
    .dt-layout-top {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding-top: 28px;
        padding-bottom: 14px;
    }

    .dt-layout-top .dt-layout-cell,
    .dt-layout-top .dt-layout-cell:first-child,
    .dt-layout-top .dt-layout-cell:last-child {
        width: 100%;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .dt-length {
        width: auto;
        height: var(--dt-control-height);
        justify-content: center;
        margin-bottom: 0;
    }

    .dt-extra-filter {
        width: 100%;
        justify-content: center;
        padding-top: 8px;
    }

    .server-toolbox {
        display: inline-flex;
        width: auto;
        max-width: 100%;
        justify-content: center;
        gap: 6px;
    }

    .server-toolbox.d-none {
        display: none !important;
    }

    .btn-compact {
        width: auto;
        min-width: auto;
        padding-left: .55rem;
        padding-right: .55rem;
        font-size: .75rem;
    }

    .btn-compact .material-symbols-outlined {
        font-size: .9rem;
    }

    .dt-search {
        width: 100%;
        height: var(--dt-control-height);
        justify-content: center;
    }

    .dt-search input {
        width: min(100%, var(--dt-mobile-search-width));
        max-width: none;
    }
}

@media (max-width: 360px) {
    .server-toolbox {
        gap: 4px;
    }

    .btn-compact {
        padding-left: .45rem;
        padding-right: .45rem;
        font-size: .7rem;
        letter-spacing: .02em;
    }

    .btn-compact .material-symbols-outlined {
        font-size: .85rem;
    }
}

mwc-select {
    --mdc-menu-max-height: 300px;
}

.select-icon {
    width: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.litepicker {
    animation: fadeInScale 0.15s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#data-table tbody td {
    vertical-align: middle !important;
}

/* remove default blue highlight (FIXED properly) */
#server-table-list tbody td {
    vertical-align: middle !important;
}

#server-table-list.dataTable tbody tr.selected,
#server-table-list.dataTable tbody tr.selected > td {
    background-color: #f5f5f5 !important;
    color: inherit !important;
}

/* optional: subtle hover (nice UX) */
#server-table-list.dataTable tbody tr:hover {
    background-color: #f1f3f5;
}

/* checkbox column */
#server-table-list td.select-checkbox {
    position: relative;
    cursor: pointer;
}

/* checkbox box */
#server-table-list td.select-checkbox::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 1px solid #adb5bd;
    border-radius: 3px;
    display: inline-block;
    vertical-align: middle;
    background: #fff;
}

/* checked state */
#server-table-list tr.selected td.select-checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 8px;
    border: solid #0d6efd;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* force override DataTables select blue */
#server-table-list.dataTable tbody tr.selected,
#server-table-list.dataTable tbody tr.selected > td,
#server-table-list.dataTable tbody tr.selected > * {
    background-color: #f5f5f5 !important;
    color: inherit !important;
}

#server-table-list.dataTable tbody tr.selected > * {
    box-shadow: inset 0 0 0 9999px rgba(var(--bs-primary-rgb), 0.15) !important;
    color: inherit !important;
}

#server-table-list .checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#bulk-list {
    scrollbar-gutter: stable;
}

.bulk-item {
    padding-right: 8px;
}

.bulk-item:hover {
    background: #f8f9fa;
}

/* bulk action modal */

.bulk-action-content {
    width: 100%;
}

.bulk-action-content {
    width: 100%;
}

.bulk-action-content .alert,
.bulk-server-list,
.bulk-server-item {
    width: 100%;
    box-sizing: border-box;
}

.bulk-server-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0 !important;
    margin-right: 0 !important;
    scrollbar-width: thin;
}

#bulk-list {
    padding-right: 0 !important;
    margin-right: 0 !important;
    scrollbar-gutter: auto !important;
}

.bulk-server-item {
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    padding: 10px 12px;
    background: #fff;
    transition: background .15s ease, border-color .15s ease;
}

.bulk-server-item:hover {
    background: #fafafa;
    border-color: #d6d6d6;
}

.bulk-server-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bulk-server-ip {
    font-weight: 700;
    color: var(--bs-primary);
    white-space: nowrap;
}

.bulk-server-name {
    color: #757575;
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulk-remove-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bulk-remove-btn i {
    font-size: 16px;
    line-height: 1;
}
.bulk-confirm-area {
    text-align: center;
    padding-top: 8px;
}

.bulk-confirm-text {
    font-size: 13px;
    color: #424242;
}

.bulk-confirm-btn {
    min-width: 170px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* session modal */

.session-route-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-route-item {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    overflow: hidden;
}

.session-route-front,
.session-route-confirm {
    transition: transform .2s ease, opacity .2s ease;
}

.session-route-front {
    opacity: 1;
    transform: rotateY(0);
}

.session-route-confirm {
    position: absolute;
    inset: 0;
    background: #fff;
    padding: 12px;
    opacity: 0;
    transform: rotateY(90deg);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.session-route-item.is-confirming .session-route-front {
    opacity: 0;
    transform: rotateY(-90deg);
    pointer-events: none;
}

.session-route-item.is-confirming .session-route-confirm {
    opacity: 1;
    transform: rotateY(0);
    pointer-events: auto;
}

.session-route-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.session-route-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-route-number {
    font-size: 12px;
    color: #777;
    font-weight: 700;
    min-width: 20px;
}

.session-route-action-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.session-route-action-btn i {
    font-size: 16px;
    line-height: 1;
}

.session-protocol-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    line-height: 1;
    font-size: 9px;
    font-weight: 700;
    padding: 0 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.session-route-main {
    --arrow-left: 43%;
    --arrow-top: 10px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    align-items: start;
}

.session-route-client,
.session-route-server {
    min-width: 0;
}

.session-route-ipbox {
    min-width: 0;
}

.session-route-label {
    font-size: 9px;
    color: #888;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 3px;
}

.session-route-ip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 0;
}

.session-route-ip-text {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.session-route-country {
    font-size: 10px;
    color: #777;
    line-height: 1.2;
}

.session-route-flag {
    width: 16px;
    height: 12px;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 2px;
}

.session-route-arrow-wrap {
    position: absolute;
    left: var(--arrow-left);
    top: var(--arrow-top);
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.session-route-arrow {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    background: #f8f9fa;
    line-height: 1;
}

.session-route-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    margin-top: 9px;
    font-size: 10px;
    color: #777;
}

.session-route-time span b {
    color: #555;
}

.session-time-start,
.session-time-last {
    min-width: 0;
}

.session-kick-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.session-kick-text {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 10px;
}

.session-kick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-kick-confirm-btn,
.session-kick-cancel-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
}

.session-kick-confirm-btn:disabled {
    opacity: .75;
    cursor: not-allowed;
}

.session-penalty-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.session-penalty-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #ffe69c;
    background: #fff8e1;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 11px;
    color: #664d03;
}

.session-penalty-info {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.session-penalty-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.session-penalty-time {
    font-weight: 700;
    white-space: nowrap;
}

.session-refreshing .session-route-item {
    opacity: .6;
    pointer-events: none;
}

.session-refreshing .session-route-action-btn,
.session-refreshing .session-kick-confirm-btn,
.session-refreshing .session-kick-cancel-btn {
    pointer-events: none;
}

@media (max-width: 420px) {
    .session-route-item {
        padding: 10px;
    }

    .session-route-confirm {
        padding: 10px;
    }

    .session-route-top {
        margin-bottom: 8px;
    }

    .session-route-action-btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }

    .session-route-action-btn i {
        font-size: 15px;
    }

    .session-route-main {
        --arrow-left: 47%;
        --arrow-top: 10px;
        grid-template-columns: 1fr 1fr;
        column-gap: 42px;
    }

    .session-route-arrow {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .session-route-ip {
        font-size: 11px;
    }

    .session-route-country {
        font-size: 9px;
    }

    .session-route-time {
        grid-template-columns: 1fr 1fr;
        column-gap: 42px;
        font-size: 9px;
    }

    .session-kick-title {
        font-size: 12px;
    }

    .session-kick-text {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .session-kick-confirm-btn,
    .session-kick-cancel-btn {
        font-size: 10px;
        padding: 5px 8px;
    }

    .session-penalty-item {
        font-size: 10px;
        padding: 6px 8px;
    }

    .session-penalty-text {
        max-width: 170px;
    }
}

/* shared radius */

:root {
    --datatable-radius: var(--bs-border-radius, 0.25rem);
    --datatable-border-color: var(--bs-border-color, #e0e0e0);
}

/* install status */

.install-status-panel {
    border: 1px solid rgba(var(--bs-primary-rgb), .14);
    border-radius: var(--datatable-radius);
    padding: 10px 12px;
    background: #fff;
    margin-bottom: 14px;
}

.install-status-item {
    border: 1px solid #edf0f2;
    border-left-width: 3px;
    border-left-style: solid;
    border-radius: var(--datatable-radius);
    padding: 10px 12px;
    background: #fff;
}

.install-status-item:last-child {
    margin-bottom: 0 !important;
}

.install-status-progress {
    height: 5px;
    border-radius: 999px;
    background-color: #f1f3f5;
}

.install-status-progress .progress-bar {
    border-radius: 999px;
}

.install-status-primary {
    border-left-color: var(--bs-primary);
}

.install-status-success {
    border-left-color: var(--bs-success);
}

.install-status-danger {
    border-left-color: var(--bs-danger);
}

.install-status-icon {
    width: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-status-icon .material-symbols-outlined {
    font-size: 18px;
}

.min-w-0 {
    min-width: 0;
}

/* universal DataTables custom border */

.dt-container .dt-scroll {
    border: 1px solid var(--datatable-border-color) !important;
    border-radius: var(--datatable-radius) !important;
    overflow: hidden !important;
    background: #fff;
    box-shadow: none !important;
}

.dt-container .dt-scroll-head,
.dt-container .dt-scroll-body,
.dt-container .dt-scroll-headInner {
    border: 0 !important;
    box-shadow: none !important;
}

.dt-container .dt-scroll-body {
    scrollbar-width: thin;
}

.dt-container table.dataTable {
    margin-bottom: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    box-shadow: none !important;
}

.dt-container table.dataTable,
.dt-container table.dataTable.no-footer {
    border-bottom: 0 !important;
}

.dt-container table.dataTable th,
.dt-container table.dataTable td {
    border-color: var(--datatable-border-color) !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}

/* keep clean horizontal + vertical inner table lines only */
.dt-container table.dataTable > thead > tr > th,
.dt-container table.dataTable > thead > tr > td {
    border-top: 0 !important;
    border-bottom: 1px solid var(--datatable-border-color) !important;
}

.dt-container table.dataTable > tbody > tr > th,
.dt-container table.dataTable > tbody > tr > td {
    border-top: 0 !important;
    border-bottom: 1px solid var(--datatable-border-color) !important;
}

.dt-container table.dataTable > thead > tr > th:not(:last-child),
.dt-container table.dataTable > thead > tr > td:not(:last-child),
.dt-container table.dataTable > tbody > tr > th:not(:last-child),
.dt-container table.dataTable > tbody > tr > td:not(:last-child) {
    border-right: 1px solid var(--datatable-border-color) !important;
}

.dt-container table.dataTable > thead > tr > th:last-child,
.dt-container table.dataTable > thead > tr > td:last-child,
.dt-container table.dataTable > tbody > tr > th:last-child,
.dt-container table.dataTable > tbody > tr > td:last-child {
    border-right: 0 !important;
}

/* remove duplicated outside bottom border because wrapper owns it */
.dt-container .dt-scroll table.dataTable tbody tr:last-child > * {
    border-bottom: 0 !important;
}

/* empty table row */
.dt-container .dt-scroll table.dataTable tbody tr:last-child td.dt-empty {
    border-bottom: 0 !important;
}

/* non-scroll datatables fallback */
.dt-container:not(:has(.dt-scroll)) table.dataTable {
    border: 1px solid var(--datatable-border-color) !important;
    border-radius: var(--datatable-radius) !important;
    overflow: hidden;
}

/* prevent action buttons wrapping */
.dt-container table.dataTable .btn-icon {
    flex: 0 0 auto;
}

/* ================================
   DATATABLES – ACTION BUTTONS FIX
================================ */

.dt-container table.dataTable tbody td:last-child {
    white-space: nowrap;
}

.dt-container table.dataTable tbody td:last-child > .col-12 {
    width: auto;
    min-width: max-content;
}

.dt-container table.dataTable tbody td:last-child .d-flex {
    flex-wrap: nowrap !important;
    align-items: center;
}

.dt-container table.dataTable tbody td:last-child .btn-icon {
    flex: 0 0 auto;
}

/* ================================
   DATATABLES – UNIVERSAL ACTION COLUMN AUTO FIT
================================ */

.dt-container table.dataTable th.dt-action-cell,
.dt-container table.dataTable td.dt-action-cell {
    width: 1% !important;
    min-width: max-content !important;
    max-width: max-content !important;
    white-space: nowrap !important;
    padding-left: .45rem !important;
    padding-right: .45rem !important;
}

.dt-container table.dataTable td.dt-action-cell > .col-12 {
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.dt-container table.dataTable td.dt-action-cell .table-action-buttons,
.dt-container table.dataTable td.dt-action-cell .d-flex {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
}

.dt-container table.dataTable td.dt-action-cell .btn-icon {
    flex: 0 0 auto !important;
}

/* credit pill */

.credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    white-space: nowrap;
    transform: scale(.92);
    transform-origin: right center;
}

.credit-pill-icon {
    width: 17px;
    height: 17px;
    min-width: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .20);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.credit-pill-icon i {
    font-size: 12px;
    line-height: 1;
}

.credit-pill-value {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}


.install-slot-pill {
    cursor: default;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.credit-pill.install-slot-pill-warning {
    background: rgba(255, 193, 7, .98);
    border-color: rgba(255, 255, 255, .42);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, .2);
}

.credit-pill.install-slot-pill-warning .credit-pill-icon {
    background: rgba(0, 0, 0, .12);
}

.credit-pill.install-slot-pill-warning .credit-pill-icon i,
.credit-pill.install-slot-pill-warning .credit-pill-value {
    color: #212529;
}

.credit-pill.install-slot-pill-danger {
    background: rgba(220, 53, 69, .95);
    border-color: rgba(255, 255, 255, .38);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, .18);
}

.credit-pill.install-slot-pill-danger .credit-pill-icon {
    background: rgba(255, 255, 255, .24);
}

/* account stats */

.account-stats-card .card-body {
    padding: 12px;
}

.account-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    background: #fafafa;
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
}

.account-stat-item + .account-stat-item {
    margin-top: 6px;
}

.account-stat-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-stat-icon {
    width: 21px;
    height: 21px;
    min-width: 21px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-stat-icon i {
    font-size: 13px;
    line-height: 1;
}

.account-stat-value {
    min-width: 24px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-stat-primary .account-stat-left {
    color: var(--bs-primary);
}

.account-stat-success .account-stat-left {
    color: var(--bs-success);
}

.account-stat-warning .account-stat-left {
    color: var(--bs-warning);
}

.account-stat-danger .account-stat-left {
    color: var(--bs-danger);
}

.account-stat-primary .account-stat-icon {
    background: rgba(var(--bs-primary-rgb), .12);
}

.account-stat-success .account-stat-icon {
    background: rgba(var(--bs-success-rgb), .12);
}

.account-stat-warning .account-stat-icon {
    background: rgba(var(--bs-warning-rgb), .16);
}

.account-stat-danger .account-stat-icon {
    background: rgba(var(--bs-danger-rgb), .12);
}

.account-stat-primary .account-stat-value {
    background: var(--bs-primary);
}

.account-stat-success .account-stat-value {
    background: var(--bs-success);
}

.account-stat-warning .account-stat-value {
    background: var(--bs-warning);
}

.account-stat-danger .account-stat-value {
    background: var(--bs-danger);
}

/* dashboard panel strip */

.panel-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    background: #fff;
    margin-bottom: 14px;
}

.panel-strip-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    width: 100%;
}

.panel-strip-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-strip-icon i {
    font-size: 16px;
    line-height: 1;
}

.panel-strip-items {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.panel-strip-text,
.panel-strip-expiry {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.panel-strip-domain {
    font-size: 12px;
    font-weight: 700;
    color: #222;
}

.panel-strip-status {
    font-size: 12px;
    font-weight: 700;
}

.panel-strip-status-success {
    color: var(--bs-success);
}

.panel-strip-status-warning {
    color: #9a6700;
}

.panel-strip-status-danger {
    color: var(--bs-danger);
}

.panel-strip-separator {
    font-size: 12px;
    font-weight: 700;
    color: #b0b0b0;
}

.panel-strip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 7px;
    border-radius: 5px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.panel-strip-success {
    border-color: rgba(var(--bs-success-rgb), .22);
    background: rgba(var(--bs-success-rgb), .035);
}

.panel-strip-warning {
    border-color: rgba(var(--bs-warning-rgb), .35);
    background: rgba(var(--bs-warning-rgb), .06);
}

.panel-strip-danger {
    border-color: rgba(var(--bs-danger-rgb), .25);
    background: rgba(var(--bs-danger-rgb), .045);
}

.panel-strip-muted {
    background: #fafafa;
}

.panel-strip-success .panel-strip-icon {
    color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), .12);
}

.panel-strip-warning .panel-strip-icon {
    color: #9a6700;
    background: rgba(var(--bs-warning-rgb), .18);
}

.panel-strip-danger .panel-strip-icon {
    color: var(--bs-danger);
    background: rgba(var(--bs-danger-rgb), .12);
}

.panel-strip-muted .panel-strip-icon {
    color: #777;
    background: #f1f3f5;
}

/* dashboard stat cards */

.dashboard-stat-card {
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    border-left-width: 3px;
    box-shadow: none;
}

.dashboard-stat-card .card-body {
    padding: 14px 16px;
}

.dashboard-stat-primary {
    border-left-color: var(--bs-primary);
}

.dashboard-stat-warning {
    border-left-color: var(--bs-warning);
}

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

.dashboard-stat-value {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    color: #222;
}

.dashboard-stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.dashboard-stat-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.dashboard-stat-primary .dashboard-stat-icon {
    background: var(--bs-primary);
}

.dashboard-stat-warning .dashboard-stat-icon {
    background: var(--bs-warning);
}

.dashboard-stat-icon i {
    font-size: 23px;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .dashboard-stat-card .card-body {
        padding: 12px 14px;
    }

    .dashboard-stat-value {
        font-size: 17px;
        font-weight: 400;
    }

    .dashboard-stat-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}

/* universal compact card header */

:root {
    --card-header-control-size: 28px;
    --card-header-min-height: 42px;
}

.card > .card-header {
    padding-top: 10px !important;
    padding-bottom: 7px !important;
    min-height: var(--card-header-min-height) !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

.card > .card-header > .d-flex {
    width: 100%;
    min-height: var(--card-header-control-size) !important;
    align-items: center !important;
}

.card > .card-header > .d-flex > :first-child {
    min-height: var(--card-header-control-size) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card > .card-header .card-title {
    font-size: 16px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
}

.card > .card-header h1.card-title,
.card > .card-header h2.card-title,
.card > .card-header h3.card-title,
.card > .card-header h4.card-title,
.card > .card-header h5.card-title,
.card > .card-header h6.card-title {
    margin-bottom: 0 !important;
}

.card > .card-header .card-subtitle,
.card > .card-header .card-header-subtitle,
.card > .card-header .small,
.card > .card-header small {
    display: block;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: inherit !important;
    margin-top: 3px !important;
}

.card > .card-header.bg-primary .card-subtitle,
.card > .card-header.bg-primary .card-header-subtitle,
.card > .card-header.bg-primary .small,
.card > .card-header.bg-primary small {
    color: rgba(255, 255, 255, .72) !important;
}

.card > .card-header .btn-icon {
    width: var(--card-header-control-size) !important;
    height: var(--card-header-control-size) !important;
    min-width: var(--card-header-control-size) !important;
    min-height: var(--card-header-control-size) !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card > .card-header .btn-icon.btn-sm {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
}

.card > .card-header .btn-icon i {
    font-size: 16px !important;
    line-height: 1 !important;
}

.card > .card-header .btn-icon.btn-sm i {
    font-size: 15px !important;
}

.card > .card-header.bg-primary .btn-primary.btn-icon {
    background: rgba(255, 255, 255, .12) !important;
    border-color: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
}

.card > .card-header.bg-primary .btn-primary.btn-icon:hover {
    background: rgba(255, 255, 255, .20) !important;
    border-color: rgba(255, 255, 255, .26) !important;
    color: #fff !important;
}

.card > .card-header .card-header-actions,
.card > .card-header .d-flex.gap-2 {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 575.98px) {
    :root {
        --card-header-control-size: 26px;
        --card-header-min-height: 40px;
    }

    .card > .card-header {
        padding-top: 9px !important;
        padding-bottom: 7px !important;
    }

    .card > .card-header .card-title {
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    .card > .card-header .card-subtitle,
    .card > .card-header .card-header-subtitle,
    .card > .card-header .small,
    .card > .card-header small {
        font-size: 10px !important;
    }

    .card > .card-header .btn-icon i {
        font-size: 15px !important;
    }
}

/* panel info card */

.panel-info-card .card-body {
    padding: 12px !important;
}

.panel-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    background: #fafafa;
    padding: 9px 10px;
}

.panel-info-row-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-info-row-icon i {
    font-size: 17px;
    line-height: 1;
}

.panel-info-row-main {
    min-width: 0;
    flex: 1;
}

.panel-info-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 4px;
    line-height: 1;
}

.panel-info-value {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
    font-size: 12px;
    line-height: 1.2;
}

.panel-info-domain {
    font-weight: 600;
    color: #222;
}

.panel-info-muted-text {
    color: #666;
    font-weight: 500;
}

.panel-info-dot {
    color: #aaa;
    font-weight: 700;
}

.panel-info-status {
    font-weight: 600;
}

.panel-info-status-success {
    color: var(--bs-success);
}

.panel-info-status-warning {
    color: #9a6700;
}

.panel-info-status-danger {
    color: var(--bs-danger);
}

.panel-info-primary {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .12);
}

.panel-info-success {
    color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), .12);
}

.panel-info-warning {
    color: #9a6700;
    background: rgba(var(--bs-warning-rgb), .18);
}

.panel-info-danger {
    color: var(--bs-danger);
    background: rgba(var(--bs-danger-rgb), .12);
}

.panel-info-muted {
    color: #777;
    background: #f1f3f5;
}

.panel-info-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

/* dashboard charts */

.dashboard-registration-card {
    height: auto;
}

.dashboard-line-wrap {
    position: relative;
    width: 100%;
    height: 250px;
}

.dashboard-pie-wrap {
    position: relative;
    width: 100%;
    max-width: 14rem;
    height: 240px;
    margin: 0 auto;
}

.chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.chart-empty.d-none {
    display: none !important;
}

@media (max-width: 575.98px) {
    .dashboard-line-wrap {
        height: 220px;
    }

    .dashboard-pie-wrap {
        max-width: 13rem;
        height: 220px;
    }
}

/* cloudflare integration */

.cloudflare-traffic-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.cloudflare-traffic-total {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.cloudflare-traffic-subtitle {
    font-size: 12px;
    color: #777;
}

.cloudflare-country-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cloudflare-country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 9px 10px;
    background: #fff;
}

.cloudflare-country-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cloudflare-country-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
}

.cloudflare-country-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cloudflare-country-requests {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.cloudflare-empty {
    padding: 22px 0;
    text-align: center;
    color: #777;
}

@media (max-width: 420px) {
    .cloudflare-traffic-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .cloudflare-country-name {
        max-width: 170px;
    }
}

.cloudflare-card-body {
    min-height: 145px;
}

.cloudflare-loading {
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 13px;
}

/* server map */

.server-map-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 12px;
}

#server-map {
    width: 100%;
    height: 320px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.server-map-list {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px;
    height: 320px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ced4da transparent;
}

.server-map-list::-webkit-scrollbar {
    width: 6px;
}

.server-map-list::-webkit-scrollbar-track {
    background: transparent;
}

.server-map-list::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 10px;
}

.server-map-list::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.server-map-loading,
.server-map-empty {
    min-height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 13px;
    text-align: center;
}

.server-map-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #f1f3f5;
    padding: 9px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background .12s ease;
}

.server-map-row:last-child {
    border-bottom: 0;
}

.server-map-row:hover {
    background: #f5f5f5;
}

.server-map-row.is-active {
    background: #eeeeee;
}

.server-map-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.server-map-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
}

.server-map-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.server-map-ip {
    font-size: 10px;
    color: #777;
    line-height: 1.2;
}

.server-map-country {
    font-size: 10px;
    color: #999;
    line-height: 1.2;
}

.server-map-connected {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    color: #111;
}

/* leaflet */

.leaflet-container {
    font-family: inherit;
    background: #f8f9fa;
}

.leaflet-control-attribution {
    font-size: 9px;
}

.server-map-marker {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
    cursor: pointer;
}

.server-map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

.server-map-popup .leaflet-popup-content {
    margin: 0;
}

.server-map-popup .leaflet-popup-tip {
    background: var(--bs-primary, #6f00ff);
}

.server-map-popup-box {
    background: var(--bs-primary, #6f00ff);
    color: #fff;
    padding: 12px 14px;
    min-width: 170px;
}

.server-map-popup-name {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #fff;
}

.server-map-popup-line {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, .95);
    margin-bottom: 2px;
}

.server-map-popup-line:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .server-map-wrap {
        grid-template-columns: 1fr;
    }

    #server-map {
        height: 260px;
    }

    .server-map-list {
        height: 260px;
        max-height: 260px;
    }

    .server-map-name {
        max-width: 180px;
    }
}

.server-map-cluster {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bs-primary, #6f00ff);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}

/* free mode css */

.free-mode-user-card {
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    box-shadow: none;
}

.free-mode-user-card .card-body {
    padding: 14px 16px;
}

.free-mode-user-card.border-primary {
    border-color: var(--bs-primary) !important;
}

.free-mode-user-heading {
    min-width: 0;
}

.free-mode-user-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.free-mode-user-subtitle {
    font-size: 12px;
    color: #777;
    line-height: 1.3;
    margin-top: 3px;
}

.free-mode-badge {
    height: 18px;
    padding: 0 7px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.free-mode-alert {
    border-color: rgba(var(--bs-warning-rgb), .35);
    background: rgba(var(--bs-warning-rgb), .08);
    color: #664d03;
}

.free-stat-box {
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    background: #fff;
    padding: 8px 10px;
    height: 100%;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.free-stat-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #777;
    font-size: 12px;
    line-height: 1.2;
    min-height: 17px;
    margin-bottom: 4px;
}

.free-stat-label i {
    font-size: 16px;
    line-height: 1;
}

.free-stat-value {
    font-size: 12px;
    font-weight: 400;
    color: var(--bs-primary);
    line-height: 1.2;
    min-height: 15px;
    display: flex;
    align-items: center;
}

.free-pending-box {
    --free-close-top: 0px;
    --free-close-right: -8px;
    position: relative;
    overflow: hidden;
    border-color: rgba(var(--bs-warning-rgb), .35);
    background: rgba(var(--bs-warning-rgb), .08);
    color: #664d03;
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    min-height: 82px;
}

.free-pending-front,
.free-pending-confirm {
    transition: transform .18s ease, opacity .18s ease;
}

.free-pending-front {
    opacity: 1;
    transform: rotateY(0);
    padding-right: 34px;
}

.free-pending-confirm {
    position: absolute;
    inset: 0;
    padding: 10px 12px;
    background: #fff8e1;
    opacity: 0;
    transform: rotateY(90deg);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: inherit;
}

.free-pending-box.is-confirming .free-pending-front {
    opacity: 0;
    transform: rotateY(-90deg);
    pointer-events: none;
}

.free-pending-box.is-confirming .free-pending-confirm {
    opacity: 1;
    transform: rotateY(0);
    pointer-events: auto;
}

.free-pending-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50% !important;
    position: absolute;
    top: var(--free-close-top) !important;
    right: var(--free-close-right) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1;
    z-index: 5;
}

.free-pending-close i {
    font-size: 17px;
    line-height: 1;
}

.free-pending-title {
    font-size: 12px;
    font-weight: 700;
    color: #664d03;
    line-height: 1.2;
    margin-bottom: 5px;
}

.free-pending-row {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
}

.free-pending-row + .free-pending-row {
    margin-top: 5px;
}

.free-pending-icon {
    font-size: 16px;
    line-height: 1;
    flex: 0 0 auto;
}

.free-pending-text {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.free-pending-confirm-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 4px;
    text-align: center;
}

.free-pending-confirm-text {
    font-size: 11px;
    color: #777;
    line-height: 1.35;
    margin-bottom: 9px;
    text-align: center;
}

.free-pending-confirm-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.free-confirm-btn {
    min-width: 72px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.free-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.free-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.free-delete-modal-text {
    font-size: 13px;
    color: #333;
    line-height: 1.35;
}

.free-delete-modal-muted {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .free-mode-user-card .card-body {
        padding: 12px;
    }

    .free-mode-alert {
        padding: 10px 12px;
    }

    .free-mode-alert .small {
        font-size: 11px;
    }

    .free-stat-box {
        padding: 8px 9px;
    }

    .free-stat-label {
        font-size: 11px;
    }

    .free-stat-label i {
        font-size: 15px;
    }

    .free-pending-box {
        --free-close-top: 0px;
        --free-close-right: -8px;
        min-height: 78px;
    }

    .free-pending-front {
        padding-right: 32px;
    }

    .free-pending-title,
    .free-pending-row,
    .free-stat-value {
        font-size: 11px;
    }

    .free-pending-confirm-title {
        font-size: 12px;
    }

    .free-pending-confirm-text {
        font-size: 10px;
    }

    .free-user-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .free-user-actions .btn,
    .free-action-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* settings vpn panel */

.settings-vpn-shell {
    width: 100%;
}

.settings-vpn-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(var(--bs-primary-rgb), .18);
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .08), rgba(var(--bs-primary-rgb), .02));
    padding: 14px 16px;
    margin-bottom: 12px;
}

.settings-vpn-hero-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.settings-vpn-hero-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    color: #fff;
    background: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.settings-vpn-hero-icon i {
    font-size: 22px;
    line-height: 1;
}

.settings-vpn-title {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    line-height: 1.2;
}

.settings-vpn-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    line-height: 1.35;
}


.settings-vpn-info-card,
.settings-vpn-card {
    overflow: hidden;
    border: 1px solid var(--kobz-border, var(--bs-border-color, #e0e0e0));
    border-radius: .85rem;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .055);
    background: var(--bs-body-bg, #fff);
}

.settings-vpn-info-card {
    padding: 12px;
}

.settings-vpn-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #edf0f2;
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    padding: 10px;
    margin-bottom: 9px;
    background: #fafafa;
}

.settings-vpn-info-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.settings-vpn-info-icon i {
    font-size: 17px;
    line-height: 1;
}

.settings-vpn-info-title {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    margin-bottom: 3px;
}

.settings-vpn-info-text {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.settings-vpn-protocols {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.settings-vpn-protocols .badge {
    font-size: 10px;
    font-weight: 500;
}

.settings-vpn-card .card-body {
    padding: 16px;
}

.settings-vpn-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.settings-vpn-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.settings-vpn-section-subtitle {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
}


.settings-vpn-clear-box {
    border: 1px solid #edf0f2;
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    padding: 10px 12px;
    background: #fafafa;
}

.settings-vpn-clear-main mwc-formfield {
    font-weight: 600;
}

.settings-vpn-save-note {
    font-size: 11px;
}

.vpn-clear-warning {
    font-size: 12px;
}

.vpn-clear-warning .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .settings-vpn-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .settings-vpn-form-head {
        flex-direction: column;
        align-items: flex-start;
    }

}


/* settings shared friendly panels */

.settings-tab-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(var(--bs-primary-rgb), .18);
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .08), rgba(var(--bs-primary-rgb), .02));
    padding: 14px 16px;
    margin-bottom: 12px;
}

.settings-tab-hero-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.settings-tab-hero-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    color: #fff;
    background: var(--bs-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.settings-tab-hero-icon i {
    font-size: 22px;
    line-height: 1;
}

.settings-tab-title {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    line-height: 1.2;
}

.settings-tab-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    line-height: 1.35;
}

.settings-app-hero {
    border-color: rgba(var(--bs-success-rgb), .20);
    background: linear-gradient(135deg, rgba(var(--bs-success-rgb), .08), rgba(var(--bs-success-rgb), .02));
}

.settings-app-hero-icon {
    background: var(--bs-success);
}

.settings-cloudflare-hero {
    border-color: rgba(var(--bs-primary-rgb), .20);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .08), rgba(var(--bs-primary-rgb), .02));
}

.settings-cloudflare-hero-icon {
    background: var(--bs-primary);
}

.settings-info-card,
.settings-form-card,
.settings-table-card {
    overflow: hidden;
    border: 1px solid var(--kobz-border, var(--bs-border-color, #e0e0e0));
    border-radius: .85rem;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .055);
    background: var(--bs-body-bg, #fff);
}

.settings-info-card {
    padding: 12px;
}

.settings-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #edf0f2;
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem));
    padding: 10px;
    margin-bottom: 9px;
    background: #fafafa;
}

.settings-info-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.settings-info-icon i {
    font-size: 17px;
    line-height: 1;
}

.settings-info-title {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    margin-bottom: 3px;
}

.settings-info-text {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.settings-info-tags {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.settings-info-tags .badge {
    font-size: 10px;
    font-weight: 500;
}

.settings-form-card .card-body,
.settings-table-card .card-body {
    padding: 16px;
}

.settings-form-title,
.settings-table-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.settings-form-subtitle,
.settings-table-subtitle {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
}

.settings-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

@media (max-width: 575.98px) {
    .settings-tab-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .settings-tab-title {
        font-size: 16px;
    }

    .settings-tab-subtitle {
        font-size: 11px;
    }

    .settings-form-card .card-body,
    .settings-table-card .card-body {
        padding: 14px;
    }
}


/* settings form header action */

.settings-form-head-action {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.settings-header-action {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.settings-header-action i {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 420px) {
    .settings-form-head-action {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-header-action {
        width: 100%;
    }
}

/* free mode locked account alert */

.free-disabled-note {
    border: 1px solid rgba(var(--bs-danger-rgb), .20) !important;
    border-radius: var(--datatable-radius, var(--bs-border-radius, 0.25rem)) !important;
    background: rgba(var(--bs-danger-rgb), .035) !important;
    color: #842029 !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
}

.free-disabled-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.free-disabled-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-danger);
    background: rgba(var(--bs-danger-rgb), .10);
    margin-top: 1px;
}

.free-disabled-icon i {
    font-size: 15px;
    line-height: 1;
}

.free-disabled-copy {
    min-width: 0;
}

.free-disabled-title {
    font-size: 12px;
    font-weight: 700;
    color: #842029;
    line-height: 1.2;
    margin-bottom: 3px;
}

.free-disabled-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    color: #9f2432;
}

@media (max-width: 420px) {
    .free-disabled-note {
        padding: 8px 10px !important;
    }

    .free-disabled-text {
        font-size: 10.5px;
    }
}

/* free mode account stats */

.free-stat-box {
    position: relative;
    min-height: 54px;
    padding: 8px 10px;
}

.free-stat-label {
    min-height: 17px;
    margin-bottom: 4px;
}

.free-stat-box > .free-stat-value {
    position: absolute;
    left: 10px;
    bottom: 8px;
    height: 15px;
    min-height: 15px;
    display: flex;
    align-items: center;
    line-height: 15px;
    transform: none;
}

@media (max-width: 575.98px) {
    .free-mode-user-card .row.gx-2.gy-2 {
        --bs-gutter-x: 0;
    }

    .free-mode-user-card .row.gx-2.gy-2 > .col-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .free-mode-user-card .row.gx-2.gy-2 > .col-6 + .col-6 {
        margin-top: 8px;
    }

    .free-stat-box {
        min-height: 54px;
        padding: 8px 10px;
    }

    .free-stat-box > .free-stat-value {
        left: 10px;
        bottom: 8px;
    }
}

@media (max-width: 360px) {
    .free-mode-user-card .card-body {
        padding: 11px;
    }
}

/* bandwidth usage modal */
.usage-modalize .modal-dialog {
    max-width: 520px;
}

.usage-reset-alert {
    margin-bottom: 16px;
}

.usage-alert-row {
    display: grid;
    grid-template-columns: minmax(135px, 42%) minmax(0, 1fr);
    column-gap: 10px;
    padding: 4px 0;
}

.usage-alert-label,
.usage-detail-label {
    color: var(--bs-gray-600);
}

.usage-alert-value,
.usage-detail-value {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

.usage-detail-row {
    display: grid;
    grid-template-columns: minmax(125px, 42%) minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    padding: 8px 16px;
}

.usage-detail-label {
    font-size: 0.875em;
}

.usage-progress-wrap {
    padding: 8px 16px;
}

.usage-progress {
    height: 20px;
}

.usage-reset-confirm {
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    white-space: normal;
    line-height: 1.35;
}

.usage-reset-confirm mwc-checkbox {
    flex: 0 0 auto;
}

.usage-reset-actions .btn {
    min-width: 140px;
}

@media (max-width: 575.98px) {
    .usage-modalize .modal-dialog {
        max-width: none;
        margin: 8px;
    }

    .usage-modalize .modal-content {
        max-height: calc(100dvh - 16px);
    }

    .usage-modalize .modal-header {
        padding: 14px 16px;
    }

    .usage-modalize .modal-body {
        overflow-y: auto;
        padding: 10px 12px 14px;
    }

    .usage-reset-alert {
        padding: 12px !important;
        margin-bottom: 12px;
        font-size: 0.875rem;
    }

    .usage-reset-alert > .mb-2 {
        margin-bottom: 8px !important;
    }

    .usage-alert-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 1px;
        padding: 5px 0;
    }

    .usage-alert-row + .usage-alert-row {
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .usage-alert-label {
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .usage-alert-value {
        font-size: 0.875rem;
        line-height: 1.35;
    }

    .usage-detail-row {
        grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
        column-gap: 8px;
        padding: 9px 12px;
    }

    .usage-detail-label {
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .usage-detail-value {
        font-size: 0.875rem;
        line-height: 1.35;
    }

    .usage-progress-wrap {
        padding: 8px 12px;
    }

    .usage-reset-confirm {
        margin-bottom: 12px !important;
        font-size: 0.875rem;
    }

}

@media (max-width: 380px) {
    .usage-detail-row {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2px;
    }
}

/* premium dashboard ranked analytics */
.dashboard-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-rank-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, .1);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 41, 55, .07);
}

.dashboard-rank-header {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 78px;
    padding: 1rem 1.1rem;
    background: var(--bs-primary);
    color: #fff;
}

.dashboard-rank-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
}

.dashboard-rank-icon .material-symbols-outlined {
    font-size: 23px;
}

.dashboard-rank-title {
    margin: 0;
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.dashboard-rank-subtitle {
    margin-top: .2rem;
    color: rgba(255, 255, 255, .78);
    font-size: .74rem;
    line-height: 1.3;
}

.dashboard-rank-body {
    min-height: 392px;
    padding: .75rem 1.1rem 1rem;
    background: #fff;
    color: #1f2937;
}

.dashboard-rank-list {
    min-width: 0;
}

.dashboard-rank-columns {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .3rem 0 .65rem;
    color: #7b8494;
    font-family: var(--bs-font-monospace);
    font-size: .7rem;
}

.dashboard-rank-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: .55rem;
    min-height: 36px;
    padding: .28rem 0;
    border-top: 1px solid rgba(31, 41, 55, .09);
}

.dashboard-rank-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .09);
    color: var(--bs-primary);
    font-size: .7rem;
    font-weight: 600;
}

.dashboard-rank-user {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: .05rem;
    overflow: hidden;
}

.dashboard-rank-name,
.dashboard-rank-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-rank-name {
    color: #202938;
    font-size: .86rem;
    font-weight: 600;
}

.dashboard-rank-meta {
    color: #8a6470;
    font-size: .72rem;
}

.dashboard-rank-value {
    color: var(--bs-primary);
    font-size: .86rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-rank-state {
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    color: #7b8494;
    text-align: center;
}

@media (min-width: 1400px) {
    .dashboard-rank-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .dashboard-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .dashboard-rank-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .dashboard-rank-body {
        min-height: auto;
        padding: .65rem .9rem .9rem;
    }

    .dashboard-rank-state {
        min-height: 150px;
    }
}

@media (max-width: 420px) {
    .dashboard-rank-header {
        min-height: 72px;
        padding: .85rem;
    }

    .dashboard-rank-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .dashboard-rank-row {
        grid-template-columns: 24px minmax(0, 1fr) auto;
        gap: .4rem;
    }

    .dashboard-rank-name,
    .dashboard-rank-value {
        font-size: .8rem;
    }
}


/* premium dashboard material-style section cards */
.dashboard-section-card {
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, .1);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 41, 55, .07);
}

.card > .dashboard-section-header {
    display: flex !important;
    min-height: 72px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .8rem;
    padding: .9rem 1rem !important;
    border-bottom: 0;
    background: var(--bs-primary);
    color: #fff;
}

.dashboard-section-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
}

.dashboard-section-icon .material-symbols-outlined {
    font-size: 23px;
}

.dashboard-section-heading {
    min-width: 0;
}

.card > .dashboard-section-header .card-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: .9rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.card > .dashboard-section-header .card-subtitle {
    margin-top: .18rem !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: .74rem !important;
    line-height: 1.3 !important;
}

.dashboard-rank-meta {
    color: #7b8494;
}

@media (max-width: 575.98px) {
    .card > .dashboard-section-header {
        min-height: 66px !important;
        gap: .7rem;
        padding: .8rem .9rem !important;
    }

    .dashboard-section-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    .dashboard-section-icon .material-symbols-outlined {
        font-size: 21px;
    }

    .card > .dashboard-section-header .card-title {
        font-size: .82rem !important;
    }

    .card > .dashboard-section-header .card-subtitle {
        font-size: .69rem !important;
    }
}

/* dashboard hero and summary cards */
.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    border-radius: 12px;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.dashboard-hero-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.dashboard-hero-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .11);
}

.dashboard-hero-icon i {
    font-size: 23px;
}

.dashboard-hero-title {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.dashboard-hero-subtitle {
    margin-top: 2px;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 12px;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-action-btn {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: none;
}

.dashboard-action-btn i {
    font-size: 17px;
}

.dashboard-summary-grid > [class*="col-"] {
    display: flex;
}

.dashboard-summary-card {
    width: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--datatable-border-color, var(--bs-border-color, #e0e0e0));
    border-radius: 11px;
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
    transition: transform .18s ease, box-shadow .18s ease;
}

.dashboard-summary-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--dashboard-summary-accent, var(--bs-primary));
}

.dashboard-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .085);
}

.dashboard-summary-card .card-body {
    width: 100%;
    min-height: 82px;
    padding: 12px 13px 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-summary-copy {
    min-width: 0;
}

.dashboard-summary-label {
    margin-bottom: 3px;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.dashboard-summary-value {
    color: var(--bs-body-color, #212529);
    font-size: clamp(1.2rem, 1.65vw, 1.45rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.dashboard-summary-meta {
    margin-top: 3px;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 10.5px;
    line-height: 1.25;
}

.dashboard-summary-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dashboard-summary-accent, var(--bs-primary));
    background: var(--dashboard-summary-soft, rgba(var(--bs-primary-rgb), .11));
}

.dashboard-summary-icon i {
    font-size: 21px;
}

.dashboard-summary-primary {
    --dashboard-summary-accent: var(--bs-primary);
    --dashboard-summary-soft: rgba(var(--bs-primary-rgb), .11);
}

.dashboard-summary-warning {
    --dashboard-summary-accent: var(--bs-warning);
    --dashboard-summary-soft: rgba(var(--bs-warning-rgb), .16);
}

.dashboard-summary-success {
    --dashboard-summary-accent: var(--bs-success);
    --dashboard-summary-soft: rgba(var(--bs-success-rgb), .13);
}

.dashboard-summary-danger {
    --dashboard-summary-accent: var(--bs-danger);
    --dashboard-summary-soft: rgba(var(--bs-danger-rgb), .12);
}

@media (max-width: 991.98px) {
    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .dashboard-hero {
        padding: 12px;
        border-radius: 11px;
    }

    .dashboard-hero-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
    }

    .dashboard-hero-subtitle {
        font-size: 12px;
    }

    .dashboard-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-action-btn {
        width: 100%;
    }

    .dashboard-summary-card .card-body {
        min-height: 76px;
        padding: 11px 12px 11px 14px;
    }

    .dashboard-summary-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 10px;
    }
}

/* ================================================================
   KOBZ SHARED APPLICATION DESIGN SYSTEM
   Shared by operational pages and Bootstrap modals.
================================================================ */
:root {
    --kobz-surface: var(--bs-body-bg, #fff);
    --kobz-surface-muted: rgba(var(--bs-primary-rgb), .045);
    --kobz-border: rgba(17, 24, 39, .1);
    --kobz-shadow: 0 10px 30px rgba(17, 24, 39, .06);
    --kobz-shadow-hover: 0 16px 38px rgba(17, 24, 39, .1);
    --kobz-radius: 1rem;
}

.kobz-page-header {
    position: relative;
    padding: .85rem 1.05rem;
    margin-bottom: 1rem !important;
    overflow: hidden;
    border: 1px solid var(--kobz-border);
    border-left: 3px solid var(--bs-primary);
    border-radius: .8rem;
    background: linear-gradient(135deg, var(--kobz-surface) 0%, var(--kobz-surface-muted) 100%);
    box-shadow: var(--kobz-shadow);
}

.kobz-page-header::after {
    content: "";
    position: absolute;
    top: -2.4rem;
    right: -2.4rem;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .07);
    pointer-events: none;
}

.kobz-page-header h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.kobz-page-header .subheading {
    position: relative;
    z-index: 1;
    margin: .18rem 0 0 !important;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .8rem;
}

.kobz-content-card {
    overflow: hidden;
    border: 1px solid var(--kobz-border);
    border-radius: var(--kobz-radius);
    background: var(--kobz-surface);
    box-shadow: var(--kobz-shadow);
    transition: box-shadow .2s ease, transform .2s ease;
}

.kobz-content-card:hover {
    box-shadow: var(--kobz-shadow-hover);
}

.kobz-card-header {
    min-height: 3.75rem;
    display: flex;
    align-items: center;
    border: 0;
    background: linear-gradient(135deg, var(--bs-primary) 0%, rgba(var(--bs-primary-rgb), .88) 100%) !important;
}

.kobz-card-header .card-title {
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.kobz-content-card > .card-body {
    padding: 1.35rem;
}

.kobz-data-table {
    margin-bottom: 0 !important;
    color: inherit;
}

.kobz-data-table > thead > tr > th {
    padding-top: .85rem;
    padding-bottom: .85rem;
    color: var(--bs-secondary-color, #6c757d);
    background: rgba(var(--bs-primary-rgb), .04);
    border-bottom-width: 1px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kobz-data-table > tbody > tr > td {
    padding-top: .8rem;
    padding-bottom: .8rem;
}

.kobz-data-table > tbody > tr:last-child > td {
    border-bottom: 0;
}

.kobz-data-table > tbody > tr:hover > * {
    background: rgba(var(--bs-primary-rgb), .035);
}

.kobz-content-card .btn {
    border-radius: .7rem;
    font-weight: 600;
}

.kobz-content-card .alert {
    border: 0;
    border-radius: .8rem;
}

.kobz-modal .modal-dialog {
    margin: 1rem auto;
}

.kobz-modal-content,
.kobz-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--kobz-border);
    border-radius: 1.1rem;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .22);
}

.kobz-modal-header,
.kobz-modal .modal-header {
    min-height: 4.35rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--kobz-border);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .08), rgba(var(--bs-primary-rgb), .025));
}

.kobz-modal .modal-title {
    font-size: 1rem;
    font-weight: 500;
}

.kobz-modal-body,
.kobz-modal .modal-body {
    padding: 1.25rem;
}

.kobz-modal-footer,
.kobz-modal .modal-footer {
    gap: .6rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--kobz-border);
    background: rgba(var(--bs-primary-rgb), .025);
}

.kobz-modal .modal-footer .btn {
    min-width: 6.5rem;
    border-radius: .7rem;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .kobz-content-card {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .kobz-page-header {
        padding: .75rem .9rem;
        border-radius: .75rem;
    }

    .kobz-page-header h1 {
        font-size: 1.35rem;
    }

    .kobz-content-card {
        border-radius: .85rem;
    }

    .kobz-card-header {
        min-height: 3.6rem;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .kobz-content-card > .card-body {
        padding: 1rem;
    }

    .kobz-modal .modal-dialog {
        margin: .5rem;
    }

    .kobz-modal .modal-content {
        max-height: calc(100vh - 1rem);
        border-radius: .9rem;
    }

    .kobz-modal .modal-header,
    .kobz-modal .modal-body,
    .kobz-modal .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .kobz-modal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kobz-modal .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}


/* ================================================================
   KOBZ LOGIN LAYOUT
   Login sizing is independent from the Bootstrap grid so the form
   remains usable even while a theme asset is being refreshed.
================================================================ */
.login-page {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    overflow-x: hidden;
    background-color: #f7f8fb !important;
    background-image: none;
}

.login-page #layoutAuthentication {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.login-page #layoutAuthentication_content {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
}

.login-main,
.login-shell {
    width: 100%;
}

.login-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.login-shell {
    display: flex;
    justify-content: center;
}

.login-column {
    width: 100%;
    max-width: 430px;
    min-width: 0;
}

.login-card,
.login-apps-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 55px rgba(17, 24, 39, .105), 0 1px 0 rgba(255, 255, 255, .9) inset;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.login-card-body {
    padding: 1.8rem;
}

.login-logo-wrap {
    margin-bottom: 1.25rem;
}

.login-logo {
    display: block;
    width: auto;
    max-width: min(170px, 70%);
    max-height: 140px;
    margin: 0 auto;
    object-fit: contain;
}

.login-form,
.login-form mwc-textfield {
    width: 100%;
}

.login-form mwc-textfield {
    display: block;
}

.login-submit {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1rem;
    border-radius: .7rem;
    font-weight: 500;
    letter-spacing: .035em;
    text-align: center;
}

.login-apps-card {
    margin-top: .9rem;
}

.login-apps-header {
    padding: .85rem 1rem;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary, #6200ee), rgba(var(--bs-primary-rgb, 98, 0, 238), .82));
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .055em;
    text-align: center;
    text-transform: uppercase;
}

.login-apps-body {
    padding: .45rem 1rem;
}

.login-app-item {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    padding: .8rem 0;
}

.login-app-item + .login-app-item {
    border-top: 1px solid rgba(17, 24, 39, .09);
}

.login-app-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--bs-primary, #6200ee);
    font-size: .88rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.login-app-star {
    color: #e8b300;
}

.login-app-download {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    border-radius: .6rem;
    font-weight: 500;
}

.login-app-download .material-symbols-outlined {
    font-size: 1rem;
}

.login-page #layoutAuthentication_footer {
    flex: 0 0 auto;
}

.login-page #layoutAuthentication_footer footer {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}

.privacy-page-title,
.privacy-policy-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    font-weight: 500 !important;
}

@media (max-width: 575.98px) {
    .login-page {
        background-image: none;
    }

    .login-main {
        align-items: flex-start;
        padding: 1rem;
    }

    .login-main.login-main-single {
        align-items: center;
        align-items: safe center;
    }

    .login-card,
    .login-apps-card {
        border-radius: .85rem;
    }

    .login-card-body {
        padding: 1.25rem;
    }

    .login-logo {
        max-width: min(150px, 65%);
        max-height: 120px;
    }

    .login-app-item {
        align-items: stretch;
        flex-direction: column;
        gap: .6rem;
    }

    .login-app-download {
        width: 100%;
    }
}

/* ================================================================
   KOBZ ACCOUNT HEADERS AND MODAL SPACING 8.0.38
================================================================ */
.kobz-card-header > * {
    width: 100%;
    min-width: 0;
}

.kobz-card-header-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.kobz-card-header-row .card-title {
    margin: 0;
}

.kobz-card-header-row .btn-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kobz-card-header-detail {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(5rem, 1fr) minmax(0, auto) minmax(5rem, 1fr);
    align-items: center;
    gap: .75rem;
}

.kobz-card-header-back {
    justify-self: start;
}

.kobz-card-header-detail-title {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kobz-card-header-spacer {
    width: 100%;
}

.kobz-modal-body,
.kobz-modal .modal-body {
    padding: 1.25rem !important;
}

.kobz-modal-body > :last-child,
.kobz-modal .modal-body > :last-child,
.kobz-modal-body > :last-child > :last-child,
.kobz-modal .modal-body > :last-child > :last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 575.98px) {
    .kobz-card-header-detail {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .kobz-card-header-spacer {
        display: none;
    }

    .kobz-card-header-detail-title {
        text-align: right;
    }

    .kobz-modal-body,
    .kobz-modal .modal-body {
        padding: 1rem !important;
    }
}


/* FREE dashboard shared-card completion 8.0.40 */
.dashboard-section-badge {
    margin-left: auto;
    padding: .42rem .68rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.dashboard-section-card > .card-body {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .dashboard-section-badge {
        padding: .36rem .55rem;
        font-size: .66rem;
    }
}


/* ================================================================
   KOBZ MODERN ALERT SYSTEM 8.0.50
================================================================ */
.alert {
    --kobz-alert-rgb: var(--bs-primary-rgb, 98, 0, 238);
    --kobz-alert-color: var(--bs-primary, #6200ee);
    position: relative;
    margin-bottom: 1rem;
    padding: .9rem 1rem .9rem 1.1rem;
    overflow: hidden;
    border: 1px solid rgba(var(--kobz-alert-rgb), .2) !important;
    border-radius: .85rem !important;
    color: #263238;
    background: linear-gradient(135deg, rgba(var(--kobz-alert-rgb), .09), rgba(255, 255, 255, .92));
    box-shadow: 0 8px 22px rgba(17, 24, 39, .045);
    line-height: 1.45;
}

.alert::before {
    content: '';
    position: absolute;
    top: .65rem;
    bottom: .65rem;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--kobz-alert-color);
}

.alert-primary {
    --kobz-alert-rgb: var(--bs-primary-rgb, 98, 0, 238);
    --kobz-alert-color: var(--bs-primary, #6200ee);
}

.alert-secondary {
    --kobz-alert-rgb: 108, 117, 125;
    --kobz-alert-color: #6c757d;
}

.alert-success {
    --kobz-alert-rgb: 25, 135, 84;
    --kobz-alert-color: #198754;
}

.alert-danger {
    --kobz-alert-rgb: 220, 53, 69;
    --kobz-alert-color: #dc3545;
}

.alert-warning,
.free-mode-alert,
.vpn-clear-warning {
    --kobz-alert-rgb: 255, 193, 7;
    --kobz-alert-color: #d79a00;
    color: #4f3b00;
}

.alert-info {
    --kobz-alert-rgb: 13, 202, 240;
    --kobz-alert-color: #0aa2c0;
}

.alert-light {
    --kobz-alert-rgb: 108, 117, 125;
    --kobz-alert-color: #6c757d;
    background: rgba(255, 255, 255, .94);
}

.alert-dark {
    --kobz-alert-rgb: 33, 37, 41;
    --kobz-alert-color: #212529;
    color: #212529;
}

.alert-heading {
    margin-bottom: .35rem;
    color: inherit;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.alert strong {
    font-weight: 600;
}

.alert p:last-child,
.alert ul:last-child,
.alert ol:last-child {
    margin-bottom: 0;
}

.alert .btn-close {
    padding: 1rem;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-maintenance-warning,
.alert-session-warning,
.free-mode-alert,
.free-disabled-note,
.free-pending-box,
.vpn-clear-warning {
    border-radius: .85rem !important;
}

.free-mode-alert {
    background: linear-gradient(135deg, rgba(255, 193, 7, .1), rgba(255, 255, 255, .94));
}

.kobz-content-card .alert {
    border: 1px solid rgba(var(--kobz-alert-rgb), .2) !important;
}

@media (max-width: 575.98px) {
    .alert {
        padding: .8rem .85rem .8rem 1rem;
        border-radius: .75rem !important;
        font-size: .84rem;
    }

    .alert::before {
        top: .55rem;
        bottom: .55rem;
    }

    .alert-heading {
        font-size: .9rem;
    }
}


/* ================================================================
   KOBZ UNIFIED NOTICE AND SETTINGS BANNERS 8.0.49
================================================================ */
.alert {
    isolation: isolate;
    padding: 1rem 1.1rem 1rem 1.25rem;
    border: 1px solid rgba(var(--kobz-alert-rgb), .18) !important;
    border-radius: 1rem !important;
    background:
        radial-gradient(circle at calc(100% - 1rem) 0, rgba(var(--kobz-alert-rgb), .12) 0, rgba(var(--kobz-alert-rgb), 0) 5.5rem),
        linear-gradient(135deg, rgba(var(--kobz-alert-rgb), .09), rgba(255, 255, 255, .97));
    box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
}

.alert::before {
    top: .8rem;
    bottom: .8rem;
    width: 4px;
    border-radius: 0 999px 999px 0;
}

.alert::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: .65rem;
    right: .75rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(var(--kobz-alert-rgb), .12);
    border-radius: 50%;
    background: rgba(var(--kobz-alert-rgb), .045);
}

.alert-heading {
    margin-bottom: .3rem;
    font-size: .9rem;
    font-weight: 600;
}

.settings-vpn-hero,
.settings-tab-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 72px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(var(--bs-primary-rgb), .18);
    border-radius: 1rem;
    background:
        radial-gradient(circle at calc(100% - 1.25rem) 0, rgba(var(--bs-primary-rgb), .13) 0, rgba(var(--bs-primary-rgb), 0) 5.75rem),
        linear-gradient(135deg, rgba(var(--bs-primary-rgb), .085), rgba(255, 255, 255, .97));
    box-shadow: 0 10px 28px rgba(17, 24, 39, .05);
}

.settings-vpn-hero::before,
.settings-tab-hero::before {
    content: '';
    position: absolute;
    top: .8rem;
    bottom: .8rem;
    left: 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--bs-primary);
}

.settings-vpn-hero::after,
.settings-tab-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -.9rem;
    right: -1rem;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .055);
}

.settings-vpn-hero-icon,
.settings-tab-hero-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: .8rem;
    box-shadow: 0 8px 18px rgba(var(--bs-primary-rgb), .2);
}

.settings-vpn-title,
.settings-tab-title {
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.settings-vpn-subtitle,
.settings-tab-subtitle {
    margin-top: .2rem;
    color: #5f6772;
    font-size: .78rem;
    line-height: 1.4;
}

.settings-app-hero {
    border-color: rgba(var(--bs-success-rgb), .18);
    background:
        radial-gradient(circle at calc(100% - 1.25rem) 0, rgba(var(--bs-success-rgb), .13) 0, rgba(var(--bs-success-rgb), 0) 5.75rem),
        linear-gradient(135deg, rgba(var(--bs-success-rgb), .085), rgba(255, 255, 255, .97));
}

.settings-app-hero::before {
    background: var(--bs-success);
}

.settings-app-hero::after {
    background: rgba(var(--bs-success-rgb), .055);
}

.settings-app-hero-icon {
    box-shadow: 0 8px 18px rgba(var(--bs-success-rgb), .2);
}

@media (max-width: 575.98px) {
    .alert {
        padding: .9rem .95rem .9rem 1.1rem;
        border-radius: .85rem !important;
    }

    .alert::after {
        width: 2rem;
        height: 2rem;
    }

    .settings-vpn-hero,
    .settings-tab-hero {
        min-height: 64px;
        padding: .85rem .9rem;
        border-radius: .85rem;
    }

    .settings-vpn-hero-icon,
    .settings-tab-hero-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
}


/* ================================================================
   KOBZ COMPACT SETTINGS SECTION STRIPS 8.0.49
   Keep the main page hero prominent; inner tab headings stay compact.
================================================================ */
.settings-vpn-hero,
.settings-tab-hero {
    min-height: 0;
    padding: .72rem .9rem;
    margin-bottom: .85rem;
    overflow: visible;
    border: 1px solid rgba(var(--bs-primary-rgb), .14);
    border-left: 3px solid var(--bs-primary);
    border-radius: .7rem;
    background: rgba(var(--bs-primary-rgb), .035);
    box-shadow: none;
}

.settings-vpn-hero::before,
.settings-vpn-hero::after,
.settings-tab-hero::before,
.settings-tab-hero::after {
    content: none;
    display: none;
}

.settings-vpn-hero-main,
.settings-tab-hero-main {
    gap: .7rem;
}

.settings-vpn-hero-icon,
.settings-tab-hero-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: .65rem;
    box-shadow: none;
}

.settings-vpn-hero-icon i,
.settings-tab-hero-icon i {
    font-size: 1.15rem;
}

.settings-vpn-title,
.settings-tab-title {
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0;
}

.settings-vpn-subtitle,
.settings-tab-subtitle {
    margin-top: .12rem;
    font-size: .73rem;
    line-height: 1.35;
}

.settings-app-hero {
    border-color: rgba(var(--bs-success-rgb), .15);
    border-left-color: var(--bs-success);
    background: rgba(var(--bs-success-rgb), .035);
}

.settings-cloudflare-hero {
    border-color: rgba(var(--bs-primary-rgb), .14);
    border-left-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .035);
}

@media (max-width: 575.98px) {
    .settings-vpn-hero,
    .settings-tab-hero {
        min-height: 0;
        padding: .68rem .75rem;
        border-radius: .65rem;
    }

    .settings-vpn-hero-icon,
    .settings-tab-hero-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .settings-vpn-title,
    .settings-tab-title {
        font-size: .86rem;
    }

    .settings-vpn-subtitle,
    .settings-tab-subtitle {
        font-size: .7rem;
    }
}


/* ================================================================
   KOBZ COMPACT ALERT STRIPS 8.0.50
   Match the compact settings notice style across remaining alerts.
================================================================ */
.alert {
    padding: .72rem .9rem .72rem 1rem;
    min-height: 0;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: rgba(var(--kobz-alert-rgb), .14) !important;
    border-left: 3px solid var(--kobz-alert-color) !important;
    border-radius: .7rem !important;
    background: rgba(var(--kobz-alert-rgb), .035);
    box-shadow: none;
}

.alert::before,
.alert::after {
    content: none;
    display: none;
}

.alert-heading {
    margin-bottom: .18rem;
    font-size: .9rem;
    font-weight: 500;
}

.alert strong {
    font-weight: 600;
}

.alert small,
.alert .small {
    color: inherit;
}

.alert-dismissible {
    padding-right: 2.65rem;
}

.alert .btn-close {
    padding: .85rem .9rem;
}

.alert-warning,
.free-mode-alert,
.vpn-clear-warning {
    color: #5d4700;
}

@media (max-width: 575.98px) {
    .alert {
        padding: .68rem .75rem .68rem .88rem;
        border-radius: .65rem !important;
    }

    .alert-dismissible {
        padding-right: 2.35rem;
    }
}


/* ================================================================
   KOBZ SIMPLE CLOUDFLARE TABLE HELP 8.0.51
================================================================ */
.cloudflare-table-note {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .15rem 0;
}

.cloudflare-table-note-item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: #5f6772;
    font-size: .78rem;
    line-height: 1.4;
}

.cloudflare-table-note-item .material-symbols-outlined {
    flex: 0 0 auto;
    margin-top: .05rem;
    font-size: 1rem;
}

.cloudflare-table-note-item strong {
    color: #374151;
    font-weight: 600;
}

#table-cloudflare .btn-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .45rem;
}

#table-cloudflare .btn-icon .material-symbols-outlined {
    font-size: 1rem;
}

@media (max-width: 575.98px) {
    .cloudflare-table-note-item {
        font-size: .74rem;
    }

    #table-cloudflare .btn-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}


/* ================================================================
   KOBZ CLOUDFLARE DOMAIN GUIDE AND TABLE ACTIONS 8.0.62
================================================================ */
.cloudflare-domain-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem 1rem;
}

.cloudflare-domain-guide-item {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}

.cloudflare-domain-guide-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
}

.cloudflare-domain-guide-icon .material-symbols-outlined {
    font-size: 1rem;
}

.cloudflare-domain-guide-item > span:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.cloudflare-domain-guide-item strong {
    color: #374151;
    font-size: .8rem;
    font-weight: 600;
}

.cloudflare-domain-guide-item small {
    color: #6b7280;
    font-size: .72rem;
    line-height: 1.4;
}

#table-cloudflare .cloudflare-table-actions,
#table-apps .apps-table-actions {
    align-items: center;
}

#table-cloudflare .cloudflare-table-actions .btn-icon,
#table-apps .apps-table-actions .btn-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#table-cloudflare .cloudflare-table-actions .material-symbols-outlined,
#table-apps .apps-table-actions .material-symbols-outlined {
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    .cloudflare-domain-guide {
        grid-template-columns: minmax(0, 1fr);
        gap: .7rem;
    }
}


/* ================================================================
   KOBZ CLOUDFLARE ACTION COLUMN AUTO FIT 8.0.62
================================================================ */
.table-custom th.cloudflare-action-column,
.table-custom td.cloudflare-action-column,
.table-custom th.apps-action-column,
.table-custom td.apps-action-column {
    width: 1%;
    min-width: 0;
    white-space: nowrap;
}

#table-cloudflare td.cloudflare-action-column,
#table-apps td.apps-action-column {
    padding-left: .5rem;
    padding-right: .5rem;
}

#table-cloudflare .cloudflare-table-actions,
#table-apps .apps-table-actions {
    width: max-content;
    margin: 0 auto;
}

/* ================================================================
   KOBZ DASHBOARD NOTICE MODALS 8.1.20
================================================================ */
.kobz-notice-modal:focus {
    outline: 0;
}

.kobz-notice-modal .modal-dialog {
    width: calc(100% - 2rem);
    max-width: 500px;
    margin: 1rem auto;
}

.kobz-notice-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 24px 70px rgba(17, 24, 39, .2);
}

.kobz-notice-modal .modal-header {
    min-height: 0;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(17, 24, 39, .07);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .075), rgba(var(--bs-primary-rgb), .018));
}

.kobz-notice-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
    color: #1f2937;
    line-height: 1.2;
}

.kobz-notice-icon {
    width: 2.35rem;
    height: 2.35rem;
    min-width: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
}

.kobz-notice-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

.kobz-notice-icon-primary {
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .11);
}

.kobz-notice-icon-warning {
    color: #a16207;
    background: rgba(245, 158, 11, .14);
}

.kobz-notice-title-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.kobz-notice-eyebrow {
    color: #8a94a3;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .075em;
    line-height: 1.15;
    text-transform: uppercase;
}

.kobz-notice-heading {
    overflow: hidden;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kobz-notice-modal .kobz-notice-close {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    margin: 0 0 0 .75rem;
    padding: .55rem;
    border-radius: .65rem;
    background-size: .72rem;
    box-shadow: none !important;
    opacity: .55;
    transition: background-color .15s ease, opacity .15s ease;
}

.kobz-notice-modal .kobz-notice-close:hover {
    background-color: rgba(17, 24, 39, .055);
    opacity: .85;
}

.kobz-notice-modal .kobz-notice-close:focus {
    box-shadow: none !important;
}

.kobz-notice-modal .kobz-notice-close:focus-visible {
    outline: 2px solid rgba(var(--bs-primary-rgb), .25);
    outline-offset: 2px;
}

.kobz-notice-modal .modal-body,
.kobz-notice-body {
    padding: 1.1rem !important;
}

.kobz-notice-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid transparent;
    border-radius: .8rem;
}

.kobz-notice-summary-warning {
    border-color: rgba(245, 158, 11, .28);
    background: linear-gradient(135deg, rgba(255, 248, 230, .98), rgba(255, 252, 244, .98));
}

.kobz-notice-summary-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.kobz-notice-summary-label {
    color: #8a6a16;
    font-size: .72rem;
    font-weight: 600;
}

.kobz-notice-summary-value {
    color: #5f4708;
    font-size: .94rem;
    font-weight: 650;
}

.kobz-notice-countdown {
    flex: 0 0 auto;
    padding: .38rem .62rem;
    border-radius: 999px;
    color: #8a5b05;
    background: rgba(245, 158, 11, .13);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.kobz-notice-message {
    display: flex;
    align-items: flex-start;
    gap: .72rem;
    margin-top: .95rem;
    color: #667085;
}

.kobz-notice-message-icon {
    width: 1.9rem;
    height: 1.9rem;
    min-width: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .58rem;
    color: #667085;
    background: #f3f5f8;
}

.kobz-notice-message-icon .material-symbols-outlined {
    font-size: 1rem;
}

.kobz-notice-message-title {
    margin-bottom: .15rem;
    color: #374151;
    font-size: .82rem;
    font-weight: 600;
}

.kobz-notice-message p {
    margin: 0;
    font-size: .8rem;
    line-height: 1.55;
}

.kobz-announcement-message {
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.kobz-announcement-updates {
    margin-top: 1rem;
    padding: .85rem .95rem;
    border: 1px solid rgba(var(--bs-primary-rgb), .12);
    border-radius: .8rem;
    background: rgba(var(--bs-primary-rgb), .035);
}

.kobz-announcement-updates-title {
    display: flex;
    align-items: center;
    gap: .42rem;
    color: #374151;
    font-size: .76rem;
    font-weight: 700;
}

.kobz-announcement-updates-title .material-symbols-outlined {
    color: var(--bs-primary);
    font-size: 1rem;
}

.kobz-announcement-updates ul {
    margin: .6rem 0 0;
    padding-left: 1.15rem;
    color: #5f6772;
    font-size: .77rem;
    line-height: 1.5;
}

.kobz-announcement-updates li + li {
    margin-top: .25rem;
}

@media (max-width: 575.98px) {
    .kobz-notice-modal .modal-dialog {
        width: auto;
        margin: .75rem;
    }

    .kobz-notice-modal .modal-header {
        padding: .9rem;
    }

    .kobz-notice-modal .modal-body,
    .kobz-notice-body {
        padding: .9rem !important;
    }

    .kobz-notice-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: .55rem;
        padding: .8rem .85rem;
    }

    .kobz-notice-countdown {
        align-self: flex-start;
    }

    .kobz-notice-heading {
        font-size: .94rem;
    }
}

/* Reseller credit history */
.credit-history-modalize .modal-dialog{max-width:880px;width:calc(100% - 2rem)}
.credit-history-modalize .kobz-modal-body{padding-top:.75rem}
.credit-history-summary{padding:.2rem .1rem .35rem}
.credit-history-summary-label{margin-bottom:.15rem;font-size:.7rem;font-weight:400;line-height:1.2;letter-spacing:.015em;text-transform:uppercase;color:#757575}
.credit-history-reseller-name{font-size:.9rem;font-weight:400;color:var(--bs-body-color);line-height:1.35}
.credit-history-current-balance{font-size:.95rem;font-weight:400;line-height:1.35}
.credit-history-scroll{max-height:min(54vh,500px);overflow:auto}
.credit-history-table{min-width:680px;font-size:.875rem}
.credit-history-table thead{position:sticky;top:-1px;z-index:4;background:#fff;box-shadow:0 1px 0 var(--bs-border-color)}
.credit-history-table thead th{position:static;background:#fff;white-space:nowrap;font-size:.82rem}
.credit-history-table td,.credit-history-table th{vertical-align:middle;padding:.55rem .7rem}
.credit-history-date{min-width:190px;white-space:nowrap}
.credit-history-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;padding:1.4rem .9rem;text-align:center;background:#fff}
.credit-history-empty-symbol{font-size:2rem;line-height:1;margin-bottom:.15rem}
.credit-history-loader{display:flex;align-items:center;justify-content:center;gap:.45rem;padding:.7rem;background:#fff;color:#757575;font-size:.82rem}
@media (max-width:575.98px){.credit-history-modalize .modal-dialog{width:auto;margin:.65rem}.credit-history-modalize .kobz-modal-body{padding:.7rem}.credit-history-summary{padding-bottom:.3rem}.credit-history-scroll{max-height:56vh}.credit-history-empty{min-height:160px}}


/* Reseller credit change result */
.credit-change-result{display:flex;flex-direction:column;align-items:center;gap:.8rem;padding:.5rem .15rem .15rem;text-align:center}
.credit-change-result-icon{width:3.9rem;height:3.9rem;border-radius:1.25rem;display:flex;align-items:center;justify-content:center;background:rgba(var(--bs-success-rgb),.09);color:var(--bs-success);box-shadow:inset 0 0 0 1px rgba(var(--bs-success-rgb),.12)}
.credit-change-result-icon .material-symbols-outlined{font-size:2rem;line-height:1;font-variation-settings:'FILL' 1,'wght' 500,'GRAD' 0,'opsz' 24}
.credit-change-result-content{display:flex;flex-direction:column;align-items:center;gap:.35rem;max-width:440px}
.credit-change-result-title{font-size:1.08rem;font-weight:750;color:#2f2f37;line-height:1.3}
.credit-change-result-text{font-size:.94rem;line-height:1.5;color:#6f6f7a}
.credit-change-result-text strong{color:#33333a;font-weight:700}
.credit-change-copy-btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;margin-top:.35rem;padding:.68rem 1rem;border-radius:.8rem;font-size:.82rem;font-weight:700;letter-spacing:.02em;box-shadow:0 8px 20px rgba(var(--bs-primary-rgb),.18)}
.credit-change-copy-btn .material-symbols-outlined{font-size:1.15rem;line-height:1;font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 20}
.credit-change-copy-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(var(--bs-primary-rgb),.22)}
.credit-change-copy-btn:active{transform:translateY(0)}
@media (max-width:575.98px){.credit-change-result{padding:.35rem 0 .1rem}.credit-change-copy-btn{width:100%;max-width:320px}.credit-change-result-text{font-size:.9rem}}

/* ================================================================
   KOBZ MATERIAL ADMIN PRO UI RESTORATION 8.1.31
   Authoritative visual language: Material Admin Pro / Bootstrap 5.
   Tables and DataTables are intentionally excluded from this pass.
================================================================ */

/* Cards: restore Material Admin Pro's compact outlined/raised surfaces. */
.card:not(.card-raised){
    border:1px solid var(--bs-border-color-translucent) !important;
    border-radius:.25rem !important;
    background:#fff !important;
    box-shadow:none !important;
}
.card.card-raised{
    border:0 !important;
    border-radius:.25rem !important;
    background:#fff !important;
    box-shadow:0 .125rem .25rem rgba(0,0,0,.075) !important;
}
.card > .card-header{
    min-height:0 !important;
    padding:.75rem 1rem !important;
    border-bottom:1px solid rgba(0,0,0,.08) !important;
    border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0 !important;
    background:rgba(0,0,0,.025) !important;
    box-shadow:none !important;
}
.card > .card-header.bg-primary{border-bottom:0 !important;background:var(--bs-primary) !important}
.card > .card-header.bg-secondary{border-bottom:0 !important;background:var(--bs-secondary) !important}
.card > .card-header.bg-success{border-bottom:0 !important;background:var(--bs-success) !important}
.card > .card-header.bg-danger{border-bottom:0 !important;background:var(--bs-danger) !important}
.card > .card-header.bg-warning{border-bottom:0 !important;background:var(--bs-warning) !important}
.card > .card-header.bg-info{border-bottom:0 !important;background:var(--bs-info) !important}
.card > .card-header.bg-dark{border-bottom:0 !important;background:var(--bs-dark) !important}
.card > .card-body{
    background:#fff;
}
.kobz-content-card,
.settings-form-card,
.settings-table-card,
.settings-vpn-card,
.panel-info-card,
.free-mode-user-card,
.account-stats-card,
.dashboard-stat-card{
    border-radius:.25rem !important;
    box-shadow:none !important;
}
.kobz-content-card .btn{
    border-radius:.25rem;
    font-weight:500;
}

/* Alerts: use Material Admin Pro's native Bootstrap alert treatment. */
.alert,
.kobz-content-card .alert,
.alert-maintenance-warning,
.alert-session-warning,
.free-mode-alert,
.free-disabled-note,
.free-pending-box,
.vpn-clear-warning{
    position:relative;
    isolation:auto;
    min-height:0;
    margin-bottom:1rem;
    padding:var(--bs-alert-padding-y,1rem) var(--bs-alert-padding-x,1rem) !important;
    overflow:visible;
    color:var(--bs-alert-color) !important;
    background:var(--bs-alert-bg) !important;
    border:var(--bs-alert-border) !important;
    border-radius:var(--bs-alert-border-radius,.25rem) !important;
    box-shadow:none !important;
}
.alert::before,
.alert::after{
    content:none !important;
    display:none !important;
}
.alert-heading{
    margin-bottom:.5rem;
    color:inherit;
    font-size:1rem;
    font-weight:500;
    letter-spacing:normal;
}
.alert strong{font-weight:500}
.alert-dismissible{padding-right:3rem !important}
.alert .btn-close{padding:1.25rem 1rem}

/* Modals/dialogs: restore the toolkit's Material dialog surface. */
.modal-content,
.kobz-modal-content,
.kobz-modal .modal-content,
.kobz-notice-modal .modal-content{
    overflow:hidden;
    border:0 !important;
    border-radius:.25rem !important;
    background:#fff !important;
    box-shadow:var(--bs-modal-box-shadow,0 .5rem 1rem rgba(0,0,0,.15)) !important;
}
.modal-header,
.kobz-modal-header,
.kobz-modal .modal-header,
.kobz-notice-modal .modal-header{
    min-height:0 !important;
    padding:1rem 1.5rem !important;
    border:0 !important;
    border-radius:.25rem .25rem 0 0 !important;
    background:#fff !important;
    box-shadow:none !important;
}
.modal-title,
.kobz-modal .modal-title{
    color:#212121;
    font-size:1rem;
    font-weight:500;
}
.modal-body,
.kobz-modal-body,
.kobz-modal .modal-body,
.kobz-notice-modal .modal-body,
.kobz-notice-body{
    padding:1rem 1.5rem !important;
    background:#fff !important;
}
.modal-footer,
.kobz-modal-footer,
.kobz-modal .modal-footer{
    gap:0;
    padding:.5rem 1rem 1rem !important;
    border:0 !important;
    background:#fff !important;
}
.modal-footer .btn:not(.btn-icon),
.kobz-modal .modal-footer .btn:not(.btn-icon){
    min-width:0;
    border-radius:.25rem;
    box-shadow:none !important;
    font-weight:500;
}
.kobz-notice-modal .kobz-notice-close{
    border-radius:50%;
    background-color:transparent;
}
.kobz-notice-modal .kobz-notice-close:hover{
    background-color:rgba(0,0,0,.04);
}
.kobz-notice-summary,
.kobz-announcement-updates{
    border-radius:.25rem !important;
    box-shadow:none !important;
}
.kobz-notice-summary-warning{
    background:#fff8e1 !important;
}
.kobz-notice-countdown{
    border-radius:.25rem;
}
.kobz-notice-message-icon,
.kobz-notice-icon{
    border-radius:50%;
    box-shadow:none !important;
}

/* Dashboard header: use the toolkit's simple page-heading pattern. */
.dashboard-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:.25rem 0 .5rem;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}
.dashboard-hero-main{gap:.75rem}
.dashboard-hero-icon{
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:50%;
    color:var(--bs-primary);
    background:transparent;
}
.dashboard-hero-icon i{font-size:26px}
.dashboard-hero-title{
    margin:0;
    color:#212121;
    font-size:1.5rem;
    font-weight:400;
    line-height:1.2;
    letter-spacing:0;
}
.dashboard-hero-subtitle{
    margin-top:.15rem;
    color:#757575;
    font-size:.8rem;
    line-height:1.35;
}
.dashboard-actions{gap:.5rem}
.dashboard-action-btn{
    min-height:34px;
    padding:.375rem .75rem;
    border-radius:.25rem;
    gap:.4rem;
    font-weight:500;
    letter-spacing:.02em;
    box-shadow:none !important;
}
.dashboard-action-btn i{font-size:1.05rem}

/* Dashboard summary cards: flat outlined Material cards, no custom accent bar/lift. */
.dashboard-summary-grid{--bs-gutter-x:.75rem;--bs-gutter-y:.75rem}
.dashboard-summary-card{
    overflow:hidden;
    border:1px solid var(--bs-border-color-translucent) !important;
    border-radius:.25rem !important;
    background:#fff !important;
    box-shadow:none !important;
    transition:none;
}
.dashboard-summary-card::before{content:none !important;display:none !important}
.dashboard-summary-card:hover{transform:none;box-shadow:none !important}
.dashboard-summary-card .card-body{
    min-height:76px;
    padding:.875rem 1rem;
    gap:.75rem;
}
.dashboard-summary-label{
    margin-bottom:.2rem;
    color:#757575;
    font-size:.68rem;
    font-weight:500;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.dashboard-summary-value{
    color:#212121;
    font-size:1.35rem;
    font-weight:400;
    line-height:1.1;
    letter-spacing:0;
}
.dashboard-summary-meta{
    margin-top:.2rem;
    color:#757575;
    font-size:.72rem;
    line-height:1.25;
}
.dashboard-summary-icon{
    width:34px;
    height:34px;
    min-width:34px;
    border-radius:50%;
    color:var(--dashboard-summary-accent,var(--bs-primary));
    background:transparent;
}
.dashboard-summary-icon i{font-size:24px}

/* Dashboard analytics/rank cards: standard outlined cards with compact Material headers. */
.dashboard-rank-grid{gap:.75rem;margin-bottom:1rem}
.dashboard-rank-card{
    overflow:hidden;
    border:1px solid var(--bs-border-color-translucent) !important;
    border-radius:.25rem !important;
    background:#fff !important;
    box-shadow:none !important;
}
.dashboard-rank-header{
    min-height:0;
    gap:.65rem;
    padding:.75rem 1rem;
    border-bottom:1px solid rgba(0,0,0,.08);
    background:rgba(0,0,0,.025);
    color:#212121;
}
.dashboard-rank-icon{
    width:32px;
    height:32px;
    flex:0 0 32px;
    border-radius:50%;
    color:var(--bs-primary);
    background:transparent;
}
.dashboard-rank-icon .material-symbols-outlined{font-size:21px}
.dashboard-rank-title{
    color:#212121;
    font-size:.82rem;
    font-weight:500;
    letter-spacing:.025em;
    text-transform:none;
}
.dashboard-rank-subtitle{
    margin-top:.1rem;
    color:#757575;
    font-size:.7rem;
}
.dashboard-rank-body{
    min-height:340px;
    padding:.5rem 1rem .75rem;
    background:#fff;
    color:#424242;
}
.dashboard-rank-position{
    border-radius:50%;
    background:rgba(var(--bs-primary-rgb),.08);
    font-weight:500;
}
.dashboard-rank-name{color:#424242;font-weight:500}
.dashboard-rank-meta{color:#757575}
.dashboard-rank-value{font-weight:500}

/* Dashboard section cards: standard card header instead of full-color custom headers. */
.dashboard-section-card{
    overflow:hidden;
    border:1px solid var(--bs-border-color-translucent) !important;
    border-radius:.25rem !important;
    background:#fff !important;
    box-shadow:none !important;
}
.card > .dashboard-section-header{
    min-height:0 !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:.65rem;
    padding:.75rem 1rem !important;
    border-bottom:1px solid rgba(0,0,0,.08) !important;
    background:rgba(0,0,0,.025) !important;
    color:#212121 !important;
}
.dashboard-section-icon{
    width:32px;
    height:32px;
    flex:0 0 32px;
    border-radius:50%;
    color:var(--bs-primary);
    background:transparent;
}
.dashboard-section-icon .material-symbols-outlined{font-size:21px}
.card > .dashboard-section-header .card-title{
    color:#212121 !important;
    font-size:.82rem !important;
    font-weight:500 !important;
    letter-spacing:.025em;
    text-transform:none;
}
.card > .dashboard-section-header .card-subtitle{
    margin-top:.1rem !important;
    color:#757575 !important;
    font-size:.7rem !important;
    line-height:1.3 !important;
}
.dashboard-section-badge{
    border-radius:.25rem !important;
    box-shadow:none !important;
}

/* Credit result dialog: keep the state, use native Material surface geometry. */
.credit-change-result-icon{
    width:3rem;
    height:3rem;
    border-radius:50%;
    box-shadow:none;
}
.credit-change-copy-btn{
    min-height:36px;
    margin-top:.25rem;
    padding:.45rem .75rem;
    border-radius:.25rem;
    font-weight:500;
    box-shadow:none !important;
}
.credit-change-copy-btn:hover,
.credit-change-copy-btn:active{
    transform:none;
    box-shadow:none !important;
}

/* Mobile: compact Material spacing without touching tables/DataTables. */
@media (max-width:767.98px){
    .dashboard-hero{align-items:flex-start;flex-direction:column;gap:.65rem}
    .dashboard-actions{width:100%;justify-content:flex-start}
    .dashboard-summary-card .card-body{min-height:70px;padding:.75rem .85rem}
    .dashboard-summary-value{font-size:1.2rem}
    .dashboard-rank-grid{gap:.65rem}
    .dashboard-rank-body{min-height:auto;padding:.45rem .85rem .65rem}
}
@media (max-width:575.98px){
    .card > .card-header{padding:.65rem .75rem !important}
    .alert{padding:.75rem !important}
    .alert-dismissible{padding-right:2.75rem !important}
    .modal-header,
    .kobz-modal-header,
    .kobz-modal .modal-header,
    .kobz-notice-modal .modal-header{padding:.875rem 1rem !important}
    .modal-body,
    .kobz-modal-body,
    .kobz-modal .modal-body,
    .kobz-notice-modal .modal-body,
    .kobz-notice-body{padding:.875rem 1rem !important}
    .modal-footer,
    .kobz-modal-footer,
    .kobz-modal .modal-footer{padding:.35rem .5rem .75rem !important}
    .dashboard-hero-title{font-size:1.3rem}
    .dashboard-hero-icon{width:32px;height:32px;min-width:32px}
    .dashboard-hero-icon i{font-size:23px}
    .dashboard-action-btn{min-height:32px;padding:.32rem .65rem;font-size:.78rem}
    .dashboard-summary-grid{--bs-gutter-x:.6rem;--bs-gutter-y:.6rem}
    .dashboard-summary-card .card-body{padding:.7rem .75rem}
    .dashboard-summary-icon{width:30px;height:30px;min-width:30px}
    .dashboard-summary-icon i{font-size:21px}
    .dashboard-rank-header,
    .card > .dashboard-section-header{padding:.65rem .75rem !important}
}

/* ================================================================
   KOBZ MATERIAL ACCENT RESTORE 8.1.32
   Keep Material Admin Pro compact geometry while preserving KOBZ
   primary card headers and semantic alert accent strips.
================================================================ */

/* Dashboard/card headers: preserve the KOBZ primary header identity. */
.card > .dashboard-section-header,
.dashboard-rank-header{
    border-bottom:0 !important;
    background:var(--bs-primary) !important;
    color:#fff !important;
}
.card > .dashboard-section-header .card-title,
.card > .dashboard-section-header .card-subtitle,
.dashboard-rank-title,
.dashboard-rank-subtitle{
    color:#fff !important;
}
.dashboard-section-icon,
.dashboard-rank-icon{
    color:#fff !important;
    background:transparent !important;
}

/* Alerts: retain Material compact surfaces but restore the semantic stripe. */
.alert,
.kobz-content-card .alert,
.alert-maintenance-warning,
.alert-session-warning,
.free-mode-alert,
.free-disabled-note,
.free-pending-box,
.vpn-clear-warning{
    border-left:3px solid var(--kobz-alert-color,var(--bs-primary)) !important;
}

@media (max-width:575.98px){
    .alert,
    .kobz-content-card .alert,
    .alert-maintenance-warning,
    .alert-session-warning,
    .free-mode-alert,
    .free-disabled-note,
    .free-pending-box,
    .vpn-clear-warning{
        border-left-width:3px !important;
    }
}


/* ================================================================
   KOBZ MATERIAL ADMIN PRO CONSOLIDATION 8.1.36
   Material Admin Pro is the frontend authority. Keep KOBZ primary
   headers + alert stripes. Tables/DataTables intentionally excluded.
================================================================ */

/* Shared page headings: Material Admin Pro uses simple heading/subtitle
   hierarchy rather than decorative hero cards. */
.kobz-page-header{
    position:relative;
    overflow:visible;
    padding:.25rem 0 .5rem;
    margin-bottom:1rem !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
.kobz-page-header::after{content:none !important;display:none !important}
.kobz-page-header h1{
    margin:0;
    color:#212121;
    font-size:1.5rem;
    font-weight:400;
    line-height:1.2;
    letter-spacing:0;
}
.kobz-page-header .subheading{
    margin:.15rem 0 0 !important;
    color:#757575;
    font-size:.8rem;
    line-height:1.35;
}

/* Standard operational cards: compact outlined Material surfaces.
   Primary headers are intentionally retained as KOBZ identity. */
.kobz-content-card,
.settings-info-card,
.settings-form-card,
.settings-table-card,
.settings-vpn-info-card,
.settings-vpn-card,
.panel-info-card,
.free-mode-user-card,
.account-stats-card{
    overflow:hidden;
    border:1px solid var(--bs-border-color-translucent) !important;
    border-radius:.25rem !important;
    background:#fff !important;
    box-shadow:none !important;
    transition:none !important;
}
.kobz-content-card:hover{transform:none !important;box-shadow:none !important}
.kobz-content-card > .card-body,
.settings-form-card .card-body,
.settings-table-card .card-body,
.settings-vpn-card .card-body{
    padding:1rem;
}
.card > .kobz-card-header{
    min-height:0 !important;
    padding:.7rem 1rem !important;
    border:0 !important;
    border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0 !important;
    background:var(--bs-primary) !important;
    box-shadow:none !important;
}
.kobz-card-header .card-title{
    color:#fff !important;
    font-size:.82rem;
    font-weight:500;
    letter-spacing:.035em;
    text-transform:uppercase;
}

/* Existing credit/slot indicators become compact Material chips. */
.credit-pill{
    min-height:30px;
    padding:.25rem .55rem;
    gap:.35rem;
    border:1px solid rgba(255,255,255,.28);
    border-radius:1rem;
    background:rgba(255,255,255,.12);
    box-shadow:none;
}
.credit-pill-icon{width:22px;height:22px;min-width:22px;border-radius:50%;background:rgba(255,255,255,.14)}
.credit-pill-icon i{font-size:14px}
.credit-pill-value{font-size:.75rem;font-weight:500}

/* Settings sub-page heroes: remove bespoke gradients/large radii and use
   a flat Material panel with a simple primary accent. */
.settings-tab-hero,
.settings-vpn-hero{
    min-height:0;
    padding:.75rem 1rem;
    margin-bottom:.75rem;
    border:1px solid var(--bs-border-color-translucent) !important;
    border-left:3px solid var(--bs-primary) !important;
    border-radius:.25rem !important;
    background:#fff !important;
    box-shadow:none !important;
}
.settings-tab-hero-main,
.settings-vpn-hero-main{gap:.75rem}
.settings-tab-hero-icon,
.settings-vpn-hero-icon{
    width:34px;
    height:34px;
    min-width:34px;
    border-radius:50% !important;
    color:#fff !important;
    background:var(--bs-primary) !important;
    box-shadow:none !important;
}
.settings-tab-hero-icon i,
.settings-vpn-hero-icon i{font-size:20px}
.settings-tab-title,
.settings-vpn-title{font-size:.9rem;font-weight:500;color:#212121}
.settings-tab-subtitle,
.settings-vpn-subtitle{margin-top:.1rem;font-size:.72rem;color:#757575}
.settings-info-card,
.settings-vpn-info-card{padding:.75rem}
.settings-info-item,
.settings-vpn-info-item,
.settings-vpn-clear-box{
    border:1px solid rgba(0,0,0,.08);
    border-radius:.25rem;
    background:#fafafa;
    box-shadow:none;
}
.settings-info-icon,
.settings-vpn-info-icon{border-radius:50%}

/* Dashboard page heading mirrors Material Admin Pro minimal dashboard. */
.dashboard-hero{
    padding:.25rem 0 .5rem !important;
    margin-bottom:1rem !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
.dashboard-hero-icon{display:none !important}
.dashboard-hero-main{gap:0}
.dashboard-hero-title{font-size:1.5rem;font-weight:400;line-height:1.2;color:#212121}
.dashboard-hero-subtitle{margin-top:.15rem;font-size:.8rem;color:#757575}
.dashboard-actions{gap:.5rem}
.dashboard-action-btn{
    min-height:34px;
    padding:.375rem .75rem;
    border-radius:.2rem !important;
    gap:.4rem;
    font-weight:500;
    box-shadow:none !important;
}

/* Minimal dashboard summary cards: compact raised surface, 4px semantic
   left rail, value-first hierarchy, circular accent icon. */
.dashboard-summary-grid{--bs-gutter-x:.75rem;--bs-gutter-y:.75rem}
.dashboard-summary-card{
    position:relative;
    overflow:hidden;
    border:0 !important;
    border-radius:.2rem !important;
    background:#fff !important;
    box-shadow:0 .125rem .25rem rgba(0,0,0,.12) !important;
    transition:none !important;
}
.dashboard-summary-card::before{
    content:"" !important;
    display:block !important;
    position:absolute;
    inset:0 auto 0 0;
    width:4px;
    background:var(--dashboard-summary-accent,var(--bs-primary));
}
.dashboard-summary-card:hover{transform:none !important;box-shadow:0 .125rem .25rem rgba(0,0,0,.12) !important}
.dashboard-summary-card .card-body{
    min-height:84px;
    padding:.75rem .9rem .7rem 1.05rem;
    align-items:center;
    gap:.75rem;
}
.dashboard-summary-copy{min-width:0}
.dashboard-summary-value{
    margin:0 0 .15rem;
    color:#212121;
    font-size:1.35rem;
    font-weight:400;
    line-height:1.1;
    letter-spacing:0;
}
.dashboard-summary-label{
    margin:0;
    color:#616161;
    font-size:.78rem;
    font-weight:400;
    line-height:1.25;
    letter-spacing:0;
    text-transform:none;
}
.dashboard-summary-meta{
    margin-top:.35rem;
    color:#757575;
    font-size:.68rem;
    line-height:1.2;
}
.dashboard-summary-icon{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:50%;
    color:#fff !important;
    background:var(--dashboard-summary-accent,var(--bs-primary)) !important;
    box-shadow:none !important;
}
.dashboard-summary-icon i{font-size:22px;color:#fff}
.dashboard-summary-secondary{--dashboard-summary-accent:var(--bs-secondary);--dashboard-summary-soft:rgba(var(--bs-secondary-rgb),.12)}
.dashboard-summary-info{--dashboard-summary-accent:var(--bs-info);--dashboard-summary-soft:rgba(var(--bs-info-rgb),.12)}

/* Dashboard content cards keep the requested KOBZ primary header while
   the card body remains flat and compact Material. */
.dashboard-rank-card,
.dashboard-section-card{
    border:1px solid var(--bs-border-color-translucent) !important;
    border-radius:.25rem !important;
    background:#fff !important;
    box-shadow:none !important;
}
.dashboard-rank-header,
.card > .dashboard-section-header{
    min-height:0 !important;
    padding:.7rem 1rem !important;
    border:0 !important;
    background:var(--bs-primary) !important;
    color:#fff !important;
}
.dashboard-rank-icon,
.dashboard-section-icon{width:30px;height:30px;flex-basis:30px;border-radius:50%;color:#fff!important;background:transparent!important}
.dashboard-rank-icon .material-symbols-outlined,
.dashboard-section-icon .material-symbols-outlined{font-size:20px}
.dashboard-rank-title,
.card > .dashboard-section-header .card-title{font-size:.8rem!important;font-weight:500!important;color:#fff!important}
.dashboard-rank-subtitle,
.card > .dashboard-section-header .card-subtitle{font-size:.68rem!important;color:rgba(255,255,255,.82)!important}

/* Alerts/notices: Material Bootstrap alert body + KOBZ semantic left rail. */
.alert,
.alert-maintenance-warning,
.alert-session-warning,
.free-mode-alert,
.free-disabled-note,
.free-pending-box,
.vpn-clear-warning{
    border-radius:.2rem !important;
    box-shadow:none !important;
    border-left:3px solid var(--kobz-alert-color,var(--bs-primary)) !important;
}

/* Login/auth: use a clean Material authentication surface rather than the
   custom glass/circuit-card treatment. */
.login-page{background:#f5f5f5 !important}
.login-main{padding:1.25rem 1rem}
.login-column{max-width:400px}
.login-card,
.login-apps-card{
    overflow:hidden;
    border-radius:.25rem !important;
    background:#fff !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    box-shadow:0 .25rem .75rem rgba(0,0,0,.12) !important;
}
.login-card-body{padding:1.5rem}
.login-logo-wrap{margin-bottom:1.1rem}
.login-logo{max-width:min(150px,65%);max-height:120px}
.login-form > .mb-3{margin-bottom:1rem !important}
.login-submit{
    width:100%;
    min-height:40px;
    padding:.5rem 1rem;
    border-radius:.2rem !important;
    font-weight:500;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.login-apps-card{margin-top:.75rem}
.card > .login-apps-header{
    padding:.7rem 1rem !important;
    border:0 !important;
    border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0 !important;
    background:var(--bs-primary) !important;
    color:#fff !important;
    font-size:.76rem;
    font-weight:500;
    letter-spacing:.04em;
    text-align:left;
    text-transform:uppercase;
}
.login-apps-body{padding:.35rem 1rem}
.login-app-item{padding:.7rem 0;gap:.75rem}
.login-app-name{font-size:.84rem;font-weight:500}
.login-app-download{
    min-height:32px;
    padding:.3rem .65rem;
    border-radius:.2rem !important;
    font-size:.72rem;
    font-weight:500;
    letter-spacing:.035em;
    text-transform:uppercase;
}
.login-app-download .material-symbols-outlined{font-size:1rem}

/* Material dialogs/buttons: preserve theme geometry; remove remaining
   custom oversized treatment without touching modal behavior. */
.modal-content,
.kobz-modal-content,
.kobz-modal .modal-content,
.kobz-notice-modal .modal-content{border-radius:.25rem !important}
.modal-header,
.kobz-modal-header,
.kobz-modal .modal-header,
.kobz-notice-modal .modal-header{padding:.9rem 1.25rem !important}
.modal-body,
.kobz-modal-body,
.kobz-modal .modal-body,
.kobz-notice-modal .modal-body,
.kobz-notice-body{padding:1rem 1.25rem !important}
.credit-change-result-icon{border-radius:50% !important;box-shadow:none!important}
.credit-change-copy-btn{min-height:36px;padding:.4rem .75rem;border-radius:.2rem!important;box-shadow:none!important;font-weight:500}

/* Compact mobile rhythm. */
@media (max-width:767.98px){
    .kobz-page-header{padding:.15rem 0 .4rem;margin-bottom:.75rem!important}
    .kobz-page-header h1,.dashboard-hero-title{font-size:1.3rem}
    .dashboard-hero{gap:.6rem}
    .dashboard-actions{width:100%;justify-content:flex-start}
    .dashboard-summary-card .card-body{min-height:76px;padding:.65rem .75rem .65rem .9rem}
    .dashboard-summary-value{font-size:1.2rem}
    .dashboard-summary-icon{width:38px;height:38px;min-width:38px}
    .settings-tab-hero,.settings-vpn-hero{padding:.65rem .75rem}
}
@media (max-width:575.98px){
    .login-main{padding:.75rem}
    .login-card-body{padding:1.15rem}
    .login-app-item{align-items:center;flex-direction:row;gap:.6rem}
    .login-app-download{width:auto;flex:0 0 auto}
    .kobz-content-card > .card-body,
    .settings-form-card .card-body,
    .settings-table-card .card-body,
    .settings-vpn-card .card-body{padding:.85rem}
    .dashboard-actions{display:flex;flex-wrap:wrap}
    .dashboard-action-btn{width:auto;flex:1 1 auto}
}

/* Remaining page-level compactness and secondary surfaces. */
#layoutDrawer_content > main > .container-xl{padding:1.5rem !important}
.account-stats-card .card-body{padding:.75rem !important}
.account-stat-item{
    padding:.5rem .6rem;
    border:1px solid rgba(0,0,0,.08);
    border-radius:.2rem;
    background:#fafafa;
}
.account-stat-left{gap:.5rem;font-size:.7rem;font-weight:500;letter-spacing:.02em;text-transform:none}
.account-stat-icon{width:24px;height:24px;min-width:24px;border-radius:50%}
.account-stat-value{font-weight:500}
.free-mode-user-card .card-body{padding:.85rem 1rem !important}
.free-mode-badge{border-radius:.2rem;font-weight:500}
.kobz-content-card > .card-body.p-5{padding:1rem !important}
.dashboard-section-card > .card-body.p-4{padding:1rem !important}
.dashboard-rank-card > .card-body.p-4{padding:1rem !important}

/* Buttons inside application surfaces should use the theme's Material
   geometry; the base theme supplies ripple behavior. */
.kobz-content-card .btn:not(.btn-icon),
.settings-form-card .btn:not(.btn-icon),
.settings-vpn-card .btn:not(.btn-icon),
.dashboard-section-card .btn:not(.btn-icon){
    border-radius:.2rem;
    font-weight:500;
}

@media (max-width:575.98px){
    #layoutDrawer_content > main > .container-xl{padding:1rem !important}
}

/* Operational page rhythm: compact without changing component behavior. */
.kobz-page-header + .row.g-4{--bs-gutter-x:1rem;--bs-gutter-y:1rem}
.kobz-content-card form > .mb-4{margin-bottom:1rem !important}
.kobz-content-card form > .mb-3{margin-bottom:.85rem !important}
@media (max-width:575.98px){
    .kobz-page-header + .row.g-4{--bs-gutter-x:.75rem;--bs-gutter-y:.75rem}
}

/* ================================================================
   KOBZ TABLE TYPOGRAPHY 8.1.37
   Material Admin Pro uses medium-weight table headers. Keep all
   table/DataTable structure and behavior intact; normalize only type.
================================================================ */
.table > thead > tr > th,
.table-custom > thead > tr > th,
.kobz-data-table > thead > tr > th,
table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td,
.dataTable > thead > tr > th,
.datatable-table > thead > tr > th {
    font-weight: 500 !important;
}

table.dataTable > thead > tr > th .dt-column-title,
table.dataTable > thead > tr > td .dt-column-title,
.dataTable > thead > tr > th .dt-column-title {
    font-weight: 500 !important;
}

.table > tbody > tr > td,
.table-custom > tbody > tr > td,
.kobz-data-table > tbody > tr > td,
table.dataTable > tbody > tr > td,
.dataTable > tbody > tr > td,
.datatable-table > tbody > tr > td {
    font-weight: 400;
}

/* 8.1.41 — center Credit Details action label independently of leading icon */
.credit-change-copy-btn{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding-left:2.6rem!important;padding-right:2.6rem!important;text-align:center!important}
.credit-change-copy-btn>.material-symbols-outlined{position:absolute!important;left:.75rem!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important}
.credit-change-copy-btn>span:last-child{display:block!important;width:100%!important;text-align:center!important}
@media (max-width:575.98px){.credit-change-copy-btn{padding-left:2.6rem!important;padding-right:2.6rem!important}}


/* 8.1.42 — Material-align Credit Details action */
.credit-change-copy-btn{position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.45rem!important;height:36px!important;min-height:36px!important;padding:0 1rem!important;border-radius:.2rem!important;line-height:1!important;text-align:center!important;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12)!important;vertical-align:middle!important}
.credit-change-copy-btn>.material-symbols-outlined{position:static!important;left:auto!important;top:auto!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:1.15rem!important;height:1.15rem!important;margin:0!important;font-size:1.15rem!important;line-height:1!important}
.credit-change-copy-btn>span:last-child{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;height:100%!important;margin:0!important;line-height:1!important;text-align:center!important;white-space:nowrap!important}
.credit-change-copy-btn:hover{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)!important}
@media (max-width:575.98px){.credit-change-copy-btn{height:36px!important;min-height:36px!important;padding:0 1rem!important}}


/* 8.1.43 — Credit Details result spacing/icon refinement */
.credit-change-result{padding-bottom:.85rem!important}
.credit-change-copy-btn>.material-symbols-outlined{width:1.3rem!important;height:1.3rem!important;font-size:1.3rem!important;font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24!important}
@media (max-width:575.98px){.credit-change-result{padding-bottom:.7rem!important}}


/* 8.1.44 credit result spacing and semantic status icons */
.credit-change-result{padding-bottom:2.5rem!important}
.credit-change-result-icon{width:4.25rem!important;height:4.25rem!important}
.credit-change-result-icon .material-symbols-outlined{font-size:2.3rem!important;font-variation-settings:'FILL' 1,'wght' 500,'GRAD' 0,'opsz' 28!important}
.credit-change-result-icon-deducted{background:rgba(var(--bs-danger-rgb),.09)!important;color:var(--bs-danger)!important;box-shadow:inset 0 0 0 1px rgba(var(--bs-danger-rgb),.12)!important}
.credit-change-copy-btn>.material-symbols-outlined{width:1.4rem!important;height:1.4rem!important;font-size:1.4rem!important;font-variation-settings:'FILL' 0,'wght' 500,'GRAD' 0,'opsz' 24!important}
@media (max-width:575.98px){.credit-change-result{padding-bottom:2rem!important}}

/* 8.1.47 — keep utility controls flat; balance credit-result modal spacing */
.kobz-modal-body > .credit-change-result,
.kobz-modal .modal-body > .credit-change-result{padding-bottom:.8rem!important}
@media (max-width:575.98px){.kobz-modal-body > .credit-change-result,.kobz-modal .modal-body > .credit-change-result{padding-bottom:.7rem!important}}

/* 8.1.54 — native Material search progress centered over Credit History table */
.credit-history-table-wrap{position:relative}
.credit-history-search-progress{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:6}
.credit-history-search-progress[hidden]{display:none!important}
.credit-history-search-progress mwc-linear-progress{display:block;width:min(220px,42%);min-width:140px;--mdc-theme-primary:var(--bs-primary)}
@media (max-width:575.98px){.credit-history-search-progress mwc-linear-progress{width:min(180px,52%);min-width:120px}}

/* Reseller credit history event context */
.credit-history-details{min-width:210px}
.credit-history-detail-label{color:#757575;font-weight:400}
.credit-history-details strong{font-weight:500}
.credit-history-flow{display:inline-flex;align-items:center;gap:.3rem;white-space:nowrap}
.credit-history-direction-icon{font-size:1rem;line-height:1;color:#757575}
@media (max-width:575.98px){.credit-history-details{min-width:190px}}


/* 8.1.57 — deliberate Credit History AJAX search loading lifecycle */
.credit-history-scroll{transition:opacity .16s ease,filter .16s ease}
.credit-history-scroll.credit-history-searching{opacity:.42;filter:grayscale(.35);pointer-events:none;user-select:none}
.credit-history-search-progress{background:transparent}
.credit-history-search-progress mwc-linear-progress{width:min(260px,46%);min-width:160px}
@media (max-width:575.98px){.credit-history-search-progress mwc-linear-progress{width:min(200px,58%);min-width:140px}}

/* Device history audit */
.device-history-scroll{max-height:420px;overflow:auto;padding-right:.2rem}.device-history-list{display:flex;flex-direction:column;gap:.4rem}
.device-history-item{border:1px solid rgba(0,0,0,.12);border-radius:.35rem;padding:.6rem .7rem;background:#fff}
.device-history-item.is-current{border-color:rgba(0,172,105,.45);background:rgba(0,172,105,.035)}
.device-history-id{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.device-history-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.15rem .65rem;font-size:.75rem;line-height:1.3;color:#757575}.device-history-state{min-height:42px;display:flex;align-items:center;justify-content:center;gap:.45rem;font-size:.8rem;padding:.55rem}.device-history-state .material-symbols-outlined{font-size:20px}.device-history-more{padding:.2rem 0}.device-history-admin-actions{padding-top:0}
.dashboard-device-action{display:flex;align-items:center;justify-content:flex-end;gap:.55rem;white-space:nowrap}
.dashboard-device-view{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;aspect-ratio:1/1;flex:0 0 32px;box-sizing:border-box!important;padding:0!important;border-radius:50%!important;line-height:1!important;display:inline-flex;align-items:center;justify-content:center}
.dashboard-device-view .material-symbols-outlined{font-size:18px}
@media(max-width:575.98px){.device-history-meta{grid-template-columns:1fr}.dashboard-device-action{gap:.35rem}}

/* 8.1.75 — align KOBZ App administration with established Panel Material layout */
.kobz-app-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:rgba(var(--bs-primary-rgb),.08);color:var(--bs-primary)}
.kobz-app-empty-icon .material-symbols-outlined{font-size:34px;font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 32}
.kobz-app-status-badge{font-size:.7rem;letter-spacing:.02em;padding:.38rem .55rem}
.kobz-app-summary-grid>.col-md-6:first-child .kobz-app-summary-item{border-right:1px solid rgba(0,0,0,.08)}
.kobz-app-summary-item{display:flex;align-items:center;gap:.85rem;min-height:58px;padding:.25rem .9rem .25rem 0}
.kobz-app-section-intro{max-width:760px}
.kobz-app-list-body{min-height:180px;padding:0}
.kobz-app-list{display:flex;flex-direction:column}
.kobz-app-list-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border-bottom:1px solid rgba(0,0,0,.08);transition:background-color .15s ease}
.kobz-app-list-item:last-child{border-bottom:0}
.kobz-app-list-item:hover{background:rgba(var(--bs-primary-rgb),.025)}
.kobz-app-list-main{display:flex;align-items:center;gap:.75rem;min-width:0}
.kobz-app-list-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:rgba(var(--bs-primary-rgb),.08);color:var(--bs-primary)}
.kobz-app-list-icon .material-symbols-outlined{font-size:21px}
.kobz-app-list-title{font-size:.9rem;font-weight:500;line-height:1.25;overflow-wrap:anywhere}
.kobz-app-list-meta{margin-top:.15rem;font-size:.75rem;line-height:1.3;color:#757575;overflow-wrap:anywhere}
.kobz-app-list-actions{display:flex;align-items:center;gap:.35rem;flex-shrink:0}
.kobz-app-list-actions .btn-icon{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important}
.kobz-app-list-actions .material-symbols-outlined{font-size:18px}
.kobz-app-empty-state{min-height:178px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1.4rem;color:#757575}
.kobz-app-empty-state .material-symbols-outlined{font-size:30px;margin-bottom:.45rem;color:#9e9e9e}
.kobz-app-empty-state-title{font-size:.85rem;font-weight:500;color:#616161}
.kobz-app-empty-state-text{max-width:330px;margin-top:.15rem;font-size:.75rem;line-height:1.4}
.kobz-app-editor-form mwc-textfield,.kobz-app-editor-form mwc-select,.kobz-app-editor-form mwc-textarea{width:100%}
@media(max-width:767.98px){.kobz-app-summary-grid>.col-md-6:first-child .kobz-app-summary-item{border-right:0;border-bottom:1px solid rgba(0,0,0,.08);padding-bottom:.8rem}.kobz-app-summary-item{padding-right:0}.kobz-app-list-item{align-items:flex-start}.kobz-app-list-main{align-items:flex-start}.kobz-app-list-actions{padding-top:.15rem}}
\n\n/* 8.1.76 — Material Admin Pro native App editor dialogs */\n.kobz-app-editor-form{--bs-gutter-x:1rem;--bs-gutter-y:1rem}\n.kobz-app-editor-form mwc-textfield,.kobz-app-editor-form mwc-select,.kobz-app-editor-form mwc-textarea{display:block;width:100%}\n.kobz-app-editor-section{display:flex;align-items:center;gap:.65rem;margin-top:.15rem;padding:.15rem 0 .65rem;border-bottom:1px solid rgba(0,0,0,.08)}\n.kobz-app-editor-section:not(:first-child){margin-top:.35rem}\n.kobz-app-editor-section-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:rgba(var(--bs-primary-rgb),.08);color:var(--bs-primary)}\n.kobz-app-editor-section-icon .material-symbols-outlined{font-size:18px}\n.kobz-app-editor-section-title{font-size:.84rem;font-weight:500;line-height:1.2;color:rgba(0,0,0,.87)}\n.kobz-app-editor-section-text{margin-top:.1rem;font-size:.72rem;line-height:1.3;color:#757575}\n#kobz-editor-modal .modal-body{padding-top:1.05rem!important;padding-bottom:1.05rem!important}\n#kobz-editor-modal .modal-footer{gap:.25rem}\n#kobz-editor-modal .modal-footer .btn{min-width:72px;box-shadow:none!important}\n@media(max-width:575.98px){.kobz-app-editor-form{--bs-gutter-x:.75rem;--bs-gutter-y:.85rem}.kobz-app-editor-section{padding-bottom:.55rem}.kobz-app-editor-section-text{font-size:.7rem}}\n
/* 8.1.81 - bundled Flagpedia App server flags */
.kobz-app-list-flag{overflow:hidden;background:transparent;border:1px solid rgba(0,0,0,.08)}
.kobz-app-list-flag img{display:block;width:100%;height:100%;object-fit:cover}
.kobz-app-flag-field{display:flex;align-items:center;gap:.75rem}
.kobz-app-flag-field mwc-textfield{flex:1 1 auto}
.kobz-app-flag-preview{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:36px;border:1px solid rgba(0,0,0,.12);border-radius:6px;background:#fff;overflow:hidden}
.kobz-app-flag-preview img{display:block;max-width:42px;max-height:28px;width:auto;height:auto}

/* 8.1.84 — refined KOBZ App configuration editor */
.kobz-app-config-chip{display:inline-flex;align-items:center;min-height:32px;padding:.38rem .75rem;border:1px solid rgba(var(--bs-primary-rgb),.2);border-radius:16px;background:rgba(var(--bs-primary-rgb),.08);color:var(--bs-primary);font-size:.78rem;font-weight:600;line-height:1.2;box-shadow:none}
.kobz-app-list-flag{width:44px;height:30px;flex-basis:44px;border-radius:4px;background:#f5f5f5}
.kobz-app-list-flag img{width:100%;height:100%;object-fit:cover}
.kobz-app-flag-field{align-items:flex-start}
.kobz-app-flag-preview{flex:0 0 48px;width:48px;height:32px;margin-top:8px;border-radius:4px}
.kobz-app-flag-preview img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.kobz-app-dependent-fields{min-height:96px;transition:opacity .16s ease}
.kobz-app-editor-form.is-populating .kobz-app-dependent-fields{opacity:0;pointer-events:none}
#kobz-editor-modal .modal-footer{justify-content:flex-end;gap:.5rem;padding:.75rem 1rem}
#kobz-editor-modal .modal-footer .btn{min-width:84px;height:36px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:575.98px){.kobz-app-list-flag{width:40px;height:28px;flex-basis:40px}.kobz-app-flag-field{align-items:center}.kobz-app-flag-preview{margin-top:0}}

/* 8.1.85 — Network proxy source controls */
.kobz-app-checkbox-field{display:flex;align-items:center;min-height:40px;margin-top:-.15rem}
.kobz-app-checkbox-field mwc-formfield{font-size:.84rem;color:rgba(0,0,0,.72)}

/* 8.1.87 — compact App settings and searchable configuration tables */
.kobz-app-table-name{display:flex;align-items:center;gap:.6rem;min-width:0;font-weight:600}
.kobz-app-table-name>img{display:block;width:20px;height:auto;max-height:16px;object-fit:contain;flex:0 0 20px}
.kobz-app-table-name>div{min-width:0;overflow-wrap:anywhere}
.kobz-app-table-name small{display:block;margin-top:.08rem;color:#757575;font-size:.68rem;font-weight:400}
.kobz-app-table-network-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:rgba(var(--bs-primary-rgb),.08);color:var(--bs-primary)}
.kobz-app-table-network-icon .material-symbols-outlined{font-size:16px}
.kobz-app-server-ip-field{position:relative}
.kobz-app-server-ip-field mwc-textfield{--mdc-text-field-trailing-icon-color:transparent}
.kobz-app-flag-trailing{position:absolute;right:14px;top:50%;display:flex;align-items:center;justify-content:center;width:24px;height:20px;transform:translateY(-50%);pointer-events:none;transition:opacity .15s ease}
.kobz-app-flag-trailing img{display:block;width:20px;height:auto;max-height:15px;object-fit:contain}
.kobz-app-flag-trailing.is-loading{opacity:.35}
@media(max-width:575.98px){.kobz-app-table-name small{white-space:normal}}

/* 8.1.88 — standard Panel DataTables and published configuration history */
.kobz-app-list-body{min-height:0;padding:1rem}
#kobz-history-pane .dt-container{width:100%}
#kobz-history-pane .btn .leading-icon{font-size:17px}

/* 8.1.99 — keep editor section icons aligned with their text */
.kobz-app-editor-form .kobz-app-editor-section{display:flex!important;flex-direction:row!important;align-items:center!important;gap:.65rem}
.kobz-app-editor-form .kobz-app-editor-section-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center;line-height:1}
.kobz-app-editor-form .kobz-app-editor-section-icon .material-symbols-outlined{display:block;line-height:1}
