:root {
    --primary: #f47b20;
    --primary-dark: #df6410;
    --primary-soft: #fff2e8;

    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-soft: #fafbfc;

    --text: #172033;
    --text-soft: #536078;
    --muted: #8a94a6;

    --border: #e7eaf0;

    --success: #16a36a;
    --success-soft: #eaf9f2;

    --danger: #e05252;
    --danger-soft: #fff0f0;

    --shadow-sm: 0 3px 14px rgba(24, 34, 55, .05);
    --shadow-md: 0 10px 35px rgba(24, 34, 55, .07);

    --radius: 16px;
    --sidebar-width: 252px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.sidebar-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================================================
   PORTAL SHELL
   ========================================================= */

.portal-body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(244, 123, 32, .045),
            transparent 28%
        ),
        var(--bg);
}

.portal-shell {
    min-height: 100vh;
    display: flex;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.portal-sidebar {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    min-height: 100vh;

    background: #ffffff;
    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;

    position: sticky;
    top: 0;
    height: 100vh;

    z-index: 100;
}

.sidebar-brand {
    height: 82px;
    padding: 0 22px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid var(--border);
}

.brand-mark {
    width: 40px;
    height: 40px;

    border-radius: 11px;

    display: grid;
    place-items: center;

    color: #fff;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #ff9d50
        );

    font-size: 19px;
    font-weight: 900;

    box-shadow:
        0 8px 20px rgba(244, 123, 32, .22);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 17px;
    letter-spacing: 1.5px;
}

.brand-text strong span {
    color: var(--primary);
}

.brand-text small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.mobile-sidebar-close {
    display: none;
}

.sidebar-section-title {
    padding: 25px 24px 9px;

    color: #a1a9b8;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.sidebar-section-spaced {
    padding-top: 27px;
}

.portal-menu {
    padding: 0 12px;
}

.portal-menu-item {
    min-height: 46px;

    padding: 0 13px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-radius: 11px;

    color: #657086;

    font-size: 13px;
    font-weight: 650;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.portal-menu-item:hover {
    color: var(--text);
    background: #f7f8fa;
}

.portal-menu-item.active {
    color: var(--primary);
    background: var(--primary-soft);
}

.menu-icon {
    width: 22px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 16px;
}

.sidebar-help {
    padding: 13px;

    display: flex;
    gap: 10px;

    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.help-icon {
    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 13px;
    font-weight: 900;
}

.sidebar-help strong {
    display: block;
    font-size: 11px;
}

.sidebar-help small {
    display: block;
    margin-top: 3px;

    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.logout-link {
    margin-top: 12px;

    min-height: 42px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 0 13px;

    color: #7c8494;

    border-radius: 10px;

    font-size: 12px;
    font-weight: 700;
}

.logout-link:hover {
    color: var(--danger);
    background: var(--danger-soft);
}

/* =========================================================
   MAIN
   ========================================================= */

.portal-main {
    min-width: 0;
    flex: 1;
}

.portal-header {
    height: 82px;

    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 34px;

    position: sticky;
    top: 0;
    z-index: 80;

    backdrop-filter: blur(15px);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-right {
    gap: 20px;
}

.mobile-menu-button,
.mobile-brand {
    display: none;
}

.header-wallet {
    display: flex;
    align-items: center;
    gap: 9px;

    padding-right: 20px;

    border-right: 1px solid var(--border);
}

.header-wallet .wallet-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 15px;
    font-weight: 900;
}

.header-wallet small {
    display: block;

    color: var(--muted);
    font-size: 9px;
}

.header-wallet strong {
    display: block;

    margin-top: 2px;

    font-size: 13px;
}

.notification-button {
    width: 38px;
    height: 38px;

    position: relative;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #fff;

    color: #687286;

    cursor: pointer;
}

.notification-dot {
    width: 6px;
    height: 6px;

    position: absolute;
    right: 8px;
    top: 7px;

    background: var(--primary);
    border: 2px solid #fff;
    border-radius: 50%;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 12px;
    font-weight: 900;
}

.profile-info strong {
    display: block;
    font-size: 12px;
}

.profile-info small {
    display: block;
    margin-top: 2px;

    color: var(--muted);
    font-size: 9px;
}

/* =========================================================
   CONTENT
   ========================================================= */

.portal-content {
    width: min(1440px, 100%);
    margin: 0 auto;

    padding: 36px 38px 60px;
}

.welcome-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.portal-eyebrow,
.card-kicker {
    color: var(--primary);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.6px;
}

.welcome-row h1 {
    margin: 8px 0 6px;

    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;

    letter-spacing: -.7px;
}

.welcome-row p {
    margin: 0;

    color: var(--text-soft);

    font-size: 12px;
}

.welcome-actions {
    display: flex;
    gap: 9px;
    flex-shrink: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.portal-button {
    min-height: 42px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 11px;
    font-weight: 800;

    border: 1px solid transparent;

    cursor: pointer;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.portal-button:hover {
    transform: translateY(-1px);
}

.portal-button.primary {
    color: #fff;
    background: var(--primary);

    box-shadow:
        0 7px 18px rgba(244, 123, 32, .20);
}

.portal-button.primary:hover {
    background: var(--primary-dark);
}

.portal-button.secondary {
    color: #485269;
    background: #fff;
    border-color: var(--border);
}

.portal-button.secondary:hover {
    background: #f8f9fb;
}

.full-width {
    width: 100%;
}

/* =========================================================
   SUMMARY
   ========================================================= */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 18px;
}

.summary-card {
    min-width: 0;

    padding: 20px;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}

.summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.summary-label {
    color: #9199a8;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.3px;
}

.summary-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 15px;
    font-weight: 900;
}

.internet-icon {
    color: var(--success);
    background: var(--success-soft);
}

.plan-icon {
    color: var(--primary);
    background: var(--primary-soft);
}

.wallet-icon-large {
    color: #7359cf;
    background: #f0edff;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-line strong {
    font-size: 17px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-soft);
}

.status-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 0 4px var(--danger-soft);
}

.summary-main p {
    margin: 7px 0 0;

    color: var(--muted);
    font-size: 9px;
}

.summary-footer {
    margin-top: 19px;
    padding-top: 13px;

    border-top: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.summary-footer span {
    color: var(--muted);
    font-size: 9px;
}

.summary-footer strong {
    font-size: 10px;
}

.plan-summary-name {
    font-size: 19px;
    font-weight: 850;
}

.speed-summary {
    display: flex;
    gap: 12px;

    margin-top: 7px;

    color: var(--text-soft);
    font-size: 9px;
}

.speed-summary b {
    color: var(--text);
    font-size: 14px;
}

.speed-summary.muted {
    color: var(--muted);
}

.wallet-amount {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.8px;
}

.wallet-caption {
    margin: 5px 0 0;

    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.mini-action {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
}

/* =========================================================
   DASHBOARD CARDS
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr);

    gap: 18px;

    margin-bottom: 32px;
}

.dashboard-card {
    min-width: 0;

    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    padding: 23px;

    box-shadow: var(--shadow-sm);
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.card-heading h2 {
    margin: 5px 0 0;

    font-size: 18px;
    letter-spacing: -.2px;
}

.active-badge,
.current-plan-badge {
    padding: 6px 9px;

    border-radius: 99px;

    color: var(--success);
    background: var(--success-soft);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.current-plan-display {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);
}

.plan-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.large-plan-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 19px;
    font-weight: 900;
}

.plan-title-block h3 {
    margin: 0;

    font-size: 18px;
}

.plan-title-block span {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 9px;
}

.plan-price {
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.plan-price small {
    color: var(--muted);

    font-size: 9px;
    font-weight: 500;
}

.service-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin-top: 22px;
}

.service-metric {
    padding: 0 15px;

    border-right: 1px solid var(--border);
}

.service-metric:first-child {
    padding-left: 0;
}

.service-metric:last-child {
    border-right: 0;
}

.service-metric span {
    display: block;

    color: var(--muted);
    font-size: 9px;
}

.service-metric strong {
    display: block;

    margin-top: 5px;

    font-size: 17px;
}

.service-metric strong small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
}

.metric-date {
    font-size: 11px !important;
}

.connection-value {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.connection-value i {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;
}

.connection-value i.connected {
    background: var(--success);
}

.connection-value i.disconnected {
    background: var(--danger);
}

.service-actions {
    display: flex;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 23px;
}

/* =========================================================
   USAGE
   ========================================================= */

.usage-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: #7359cf;
    background: #f0edff;

    font-size: 14px;
}

.usage-circle-row {
    display: flex;
    align-items: center;

    gap: 25px;
}

.usage-circle {
    width: 128px;
    height: 128px;

    flex: 0 0 128px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        conic-gradient(
            var(--primary) var(--usage),
            #edf0f4 0
        );

    position: relative;
}

.usage-circle::after {
    content: "";

    position: absolute;
    inset: 10px;

    background: #fff;
    border-radius: 50%;
}

.usage-circle > div {
    position: relative;
    z-index: 1;

    text-align: center;
}

.usage-circle strong {
    display: block;

    font-size: 23px;
}

.usage-circle small {
    color: var(--muted);
    font-size: 8px;
}

.usage-details {
    min-width: 0;
    flex: 1;
}

.usage-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 9px 0;

    border-bottom: 1px solid var(--border);
}

.usage-details > div:last-child {
    border-bottom: 0;
}

.usage-details span {
    color: var(--muted);
    font-size: 9px;
}

.usage-details strong {
    font-size: 11px;
}

.usage-progress {
    margin-top: 23px;
}

.usage-progress-head {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    color: var(--muted);
    font-size: 8px;
}

.usage-progress-head strong {
    color: var(--text);
}

.progress-track {
    height: 8px;

    overflow: hidden;

    border-radius: 99px;

    background: #edf0f4;
}

.progress-fill {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            #ffab69
        );
}

.unlimited-box {
    min-height: 180px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;

    border-radius: 13px;

    background: #fbfcfd;
    border: 1px solid var(--border);
}

.unlimited-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 28px;
}

.unlimited-box strong {
    font-size: 15px;
}

.unlimited-box p {
    margin: 5px 0 0;

    color: var(--muted);
    font-size: 9px;
}

.empty-service,
.empty-state {
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.empty-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    margin-bottom: 10px;

    border-radius: 12px;

    background: #f5f6f8;
    color: var(--muted);

    font-size: 18px;
}

.empty-service h3 {
    margin: 0 0 5px;

    font-size: 14px;
}

.empty-service p,
.empty-state {
    color: var(--muted);
    font-size: 9px;
}

.empty-service .portal-button {
    margin-top: 14px;
}

.empty-state.compact {
    min-height: 150px;
}

/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.portal-section {
    margin-top: 35px;
}

.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 17px;
}

.section-title-row h2 {
    margin: 5px 0 3px;

    font-size: 20px;
    letter-spacing: -.3px;
}

.section-title-row p {
    margin: 0;

    color: var(--muted);
    font-size: 10px;
}

.section-link {
    color: var(--primary);

    font-size: 10px;
    font-weight: 800;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 13px;
}

.quick-action {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 16px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow: var(--shadow-sm);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-icon {
    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 900;
}

.recharge-icon {
    color: var(--primary);
    background: var(--primary-soft);
}

.plan-quick-icon {
    color: #7359cf;
    background: #f0edff;
}

.router-quick-icon {
    color: var(--success);
    background: var(--success-soft);
}

.quick-action div {
    min-width: 0;
    flex: 1;
}

.quick-action strong {
    display: block;

    font-size: 11px;
}

.quick-action small {
    display: block;

    margin-top: 4px;

    color: var(--muted);
    font-size: 8px;
}

.quick-arrow {
    color: #a0a8b6;
    font-size: 16px;
}

/* =========================================================
   PLANS
   ========================================================= */

.portal-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.portal-plan-card {
    position: relative;

    padding: 20px;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow: var(--shadow-sm);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.portal-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #f2c09d;
}

.portal-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-plan-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--primary-soft);
    color: var(--primary);

    font-weight: 900;
}

.current-plan-badge {
    color: var(--primary);
    background: var(--primary-soft);
}

.portal-plan-card h3 {
    margin: 16px 0 0;

    font-size: 16px;
}

.portal-plan-price {
    margin-top: 9px;

    font-size: 24px;
    font-weight: 900;
}

.portal-plan-price small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 500;
}

.portal-plan-speed {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 17px;
}

.portal-plan-speed div {
    padding: 9px;

    border-radius: 9px;

    background: #f8f9fb;
}

.portal-plan-speed span,
.portal-plan-data span {
    display: block;

    color: var(--muted);
    font-size: 7px;
}

.portal-plan-speed strong {
    display: block;

    margin-top: 3px;

    font-size: 10px;
}

.portal-plan-data {
    margin-top: 9px;
    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #f8f9fb;
    border-radius: 9px;
}

.portal-plan-data strong {
    font-size: 9px;
}

/* =========================================================
   ACCOUNT / SUPPORT / FOOTER
   ========================================================= */

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-top: 35px;
}

.account-list > div {
    padding: 12px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.account-list > div:last-child {
    border-bottom: 0;
}

.account-list span {
    color: var(--muted);
    font-size: 9px;
}

.account-list strong {
    font-size: 10px;
}

.support-banner {
    margin-top: 22px;
    padding: 20px 23px;

    display: flex;
    align-items: center;
    gap: 15px;

    background:
        linear-gradient(
            135deg,
            #fff8f2,
            #fff
        );

    border: 1px solid #f4dcc9;
    border-radius: 15px;
}

.support-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--primary-soft);
    color: var(--primary);

    font-size: 17px;
    font-weight: 900;
}

.support-banner > div:nth-child(2) {
    flex: 1;
}

.support-banner span {
    color: var(--primary);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.support-banner h3 {
    margin: 4px 0 3px;

    font-size: 13px;
}

.support-banner p {
    margin: 0;

    color: var(--muted);
    font-size: 9px;
}

.portal-footer {
    padding: 22px 38px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    color: #9ba3b2;

    font-size: 8px;
}

/* =========================================================
   MOBILE SIDEBAR
   ========================================================= */

.sidebar-overlay {
    display: none;
}

@media (max-width: 1100px) {

    :root {
        --sidebar-width: 225px;
    }

    .portal-content {
        padding-left: 25px;
        padding-right: 25px;
    }

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

    .usage-card {
        min-height: auto;
    }
}

@media (max-width: 900px) {

    .portal-sidebar {
        position: fixed;

        left: 0;
        top: 0;

        transform: translateX(-105%);

        transition: transform .22s ease;

        box-shadow: 15px 0 45px rgba(0,0,0,.12);
    }

    .portal-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;

        position: fixed;
        inset: 0;

        background: rgba(10, 17, 28, .42);

        z-index: 90;
    }

    .mobile-sidebar-close {
        display: grid;

        margin-left: auto;

        width: 31px;
        height: 31px;

        place-items: center;

        border: 0;
        border-radius: 8px;

        background: #f5f6f8;
        color: #687286;

        cursor: pointer;
    }

    .portal-header {
        padding: 0 20px;
    }

    .mobile-menu-button {
        width: 37px;
        height: 37px;

        display: grid;
        place-items: center;

        border: 1px solid var(--border);
        border-radius: 9px;

        background: #fff;

        color: var(--text);

        cursor: pointer;
    }

    .mobile-brand {
        display: block;

        margin-left: 10px;

        font-size: 15px;
        font-weight: 900;
        letter-spacing: 1px;
    }

    .mobile-brand span {
        color: var(--primary);
    }

    .header-wallet {
        display: none;
    }

    .profile-info {
        display: none;
    }

    .portal-content {
        padding: 28px 20px 50px;
    }
}

@media (max-width: 700px) {

    .welcome-row {
        display: block;
    }

    .welcome-actions {
        margin-top: 18px;
    }

    .welcome-actions .portal-button {
        flex: 1;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .service-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 18px 0;
    }

    .service-metric:nth-child(2) {
        border-right: 0;
    }

    .service-metric:nth-child(3) {
        padding-left: 0;
    }

    .current-plan-display {
        display: block;
    }

    .plan-price {
        margin-top: 15px;
    }

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

    .portal-plan-grid {
        grid-template-columns: 1fr;
    }

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

    .support-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .support-banner .portal-button {
        width: 100%;
    }

    .portal-footer {
        padding: 20px;
        display: block;
    }

    .portal-footer div + div {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {

    .portal-header {
        height: 70px;
        padding: 0 14px;
    }

    .header-right {
        gap: 9px;
    }

    .notification-button {
        width: 34px;
        height: 34px;
    }

    .avatar {
        width: 34px;
        height: 34px;
    }

    .portal-content {
        padding: 22px 14px 40px;
    }

    .welcome-row h1 {
        font-size: 25px;
    }

    .welcome-row p {
        line-height: 1.5;
    }

    .welcome-actions {
        gap: 7px;
    }

    .portal-button {
        min-height: 40px;
        padding: 0 12px;
        font-size: 10px;
    }

    .dashboard-card,
    .summary-card {
        padding: 17px;
    }

    .usage-circle-row {
        display: block;
    }

    .usage-circle {
        margin: 0 auto 22px;
    }

    .service-metrics {
        grid-template-columns: 1fr;
    }

    .service-metric,
    .service-metric:nth-child(2),
    .service-metric:nth-child(3) {
        padding: 10px 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .service-metric:last-child {
        border-bottom: 0;
    }

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

    .section-title-row {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 9px;
    }

    .support-banner {
        padding: 17px;
    }
}

/* =========================================================
   NEXAROOT MY PLAN - PROFESSIONAL UI
   ========================================================= */

.myplan-header {
    min-height: 72px;
}

.myplan-page-heading {
    padding: 26px 30px 18px;
}

.myplan-page-heading h1 {
    margin: 5px 0 5px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.myplan-page-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.myplan-current-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
    gap: 18px;
    padding: 0 30px;
}

.myplan-current-card,
.myplan-usage-card {
    min-width: 0;
}

.myplan-section-heading,
.myplan-usage-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.myplan-section-heading h2,
.myplan-usage-heading h2 {
    margin: 5px 0 0;
    font-size: 21px;
}

.myplan-current-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: #fffaf5;
}

.myplan-plan-identity {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.myplan-plan-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #fff0e5;
    color: #f97316;
    font-size: 27px;
    font-weight: 700;
}

.myplan-plan-identity h3 {
    margin: 0 0 4px;
    font-size: 21px;
}

.myplan-plan-identity span {
    color: #64748b;
    font-size: 13px;
}

.myplan-current-price {
    text-align: right;
    white-space: nowrap;
}

.myplan-current-price strong {
    display: block;
    font-size: 25px;
    color: #0f172a;
}

.myplan-current-price span {
    color: #94a3b8;
    font-size: 12px;
}

.myplan-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    overflow: hidden;
}

.myplan-metric {
    padding: 16px;
    min-width: 0;
    background: #fff;
    border-right: 1px solid #eef2f7;
}

.myplan-metric:last-child {
    border-right: 0;
}

.myplan-metric span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 7px;
}

.myplan-metric strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
}

.myplan-metric strong small {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

.myplan-usage-heading > strong {
    color: #f97316;
    font-size: 16px;
    padding-top: 5px;
}

.myplan-progress {
    height: 11px;
    margin-top: 25px;
    background: #edf2f7;
    border-radius: 99px;
    overflow: hidden;
}

.myplan-progress > div {
    height: 100%;
    min-width: 2px;
    background: #f97316;
    border-radius: 99px;
}

.myplan-usage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.myplan-usage-stats > div {
    padding: 13px;
    border-radius: 12px;
    background: #f8fafc;
}

.myplan-usage-stats span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 5px;
}

.myplan-usage-stats strong {
    color: #0f172a;
    font-size: 14px;
}

.myplan-no-plan {
    margin: 0 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.myplan-no-plan h2 {
    margin: 3px 0;
}

.myplan-no-plan p {
    margin: 0;
    color: #64748b;
}

.myplan-plans-section {
    padding: 35px 30px 0;
}

.myplan-plans-heading {
    margin-bottom: 18px;
}

.myplan-plans-heading h2 {
    margin: 5px 0;
    font-size: 27px;
}

.myplan-plans-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.myplan-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.myplan-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 21px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
    transition: transform .18s ease,
                box-shadow .18s ease,
                border-color .18s ease;
}

.myplan-plan-card:hover {
    transform: translateY(-3px);
    border-color: #fed7aa;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.myplan-plan-card.is-recommended {
    border: 1.5px solid #f97316;
    box-shadow: 0 10px 28px rgba(249, 115, 22, .10);
}

.myplan-plan-card.is-current {
    border-color: #bbf7d0;
}

.myplan-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 99px;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    white-space: nowrap;
}

.myplan-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    gap: 10px;
}

.myplan-small-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff1e8;
    color: #f97316;
    font-size: 20px;
    font-weight: 700;
}

.myplan-current-badge {
    padding: 5px 9px;
    border-radius: 99px;
    background: #dcfce7;
    color: #15803d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .45px;
    white-space: nowrap;
}

.myplan-plan-card h3 {
    margin: 18px 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.myplan-card-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 18px;
}

.myplan-card-price strong {
    font-size: 23px;
    color: #0f172a;
}

.myplan-card-price span {
    color: #94a3b8;
    font-size: 11px;
}

.myplan-card-features {
    display: grid;
    gap: 9px;
    margin-bottom: 15px;
}

.myplan-card-features > div {
    display: grid;
    grid-template-columns: 25px 1fr auto;
    align-items: center;
    column-gap: 5px;
    min-height: 28px;
}

.feature-symbol {
    color: #f97316;
    font-size: 17px;
    font-weight: 700;
}

.myplan-card-features strong {
    color: #1e293b;
    font-size: 13px;
}

.myplan-card-features small {
    color: #94a3b8;
    font-size: 10px;
    text-align: right;
}

.myplan-card-description {
    min-height: 34px;
    margin: 0 0 15px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.myplan-plan-form {
    margin-top: auto;
}

.myplan-plan-button {
    width: 100%;
    min-height: 43px;
    border: 1px solid #f97316;
    border-radius: 10px;
    background: #fff;
    color: #f97316;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

.myplan-plan-button:hover {
    background: #fff7ed;
}

.myplan-plan-button.recommended {
    background: #f97316;
    color: #fff;
}

.myplan-plan-button.recommended:hover {
    background: #ea580c;
}

.myplan-plan-button.current {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.myplan-support {
    margin: 22px 30px 30px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
}

.myplan-support > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.myplan-support-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff1e8;
    color: #f97316;
    font-weight: 800;
}

.myplan-support strong,
.myplan-support span {
    display: block;
}

.myplan-support strong {
    color: #0f172a;
    font-size: 14px;
}

.myplan-support span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.myplan-support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 9px;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.myplan-support-button:hover {
    background: #ea580c;
}


/* Desktop spacing */
@media (min-width: 1200px) {

    .myplan-plan-grid {
        grid-template-columns:
            repeat(4, minmax(220px, 1fr));
    }

}


/* Tablet */
@media (max-width: 1100px) {

    .myplan-current-layout {
        grid-template-columns: 1fr;
    }

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

}


/* Mobile */
@media (max-width: 700px) {

    .myplan-page-heading,
    .myplan-plans-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .myplan-current-layout {
        padding: 0 16px;
    }

    .myplan-page-heading h1 {
        font-size: 28px;
    }

    .myplan-current-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .myplan-current-price {
        text-align: left;
    }

    .myplan-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .myplan-metric:nth-child(2) {
        border-right: 0;
    }

    .myplan-metric:nth-child(3),
    .myplan-metric:nth-child(4) {
        border-top: 1px solid #eef2f7;
    }

    .myplan-plan-grid {
        grid-template-columns: 1fr;
    }

    .myplan-support {
        margin-left: 16px;
        margin-right: 16px;
        align-items: stretch;
        flex-direction: column;
    }

    .myplan-support-button {
        width: 100%;
    }

    .myplan-usage-stats {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   NEXAROOT MY PLAN - PROFESSIONAL UI
   ========================================================= */

.myplan-header {
    min-height: 72px;
}

.myplan-page-heading {
    padding: 26px 30px 18px;
}

.myplan-page-heading h1 {
    margin: 5px 0 5px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.myplan-page-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

.myplan-current-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
    gap: 18px;
    padding: 0 30px;
}

.myplan-current-card,
.myplan-usage-card {
    min-width: 0;
}

.myplan-section-heading,
.myplan-usage-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.myplan-section-heading h2,
.myplan-usage-heading h2 {
    margin: 5px 0 0;
    font-size: 21px;
}

.myplan-current-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: #fffaf5;
}

.myplan-plan-identity {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.myplan-plan-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #fff0e5;
    color: #f97316;
    font-size: 27px;
    font-weight: 700;
}

.myplan-plan-identity h3 {
    margin: 0 0 4px;
    font-size: 21px;
}

.myplan-plan-identity span {
    color: #64748b;
    font-size: 13px;
}

.myplan-current-price {
    text-align: right;
    white-space: nowrap;
}

.myplan-current-price strong {
    display: block;
    font-size: 25px;
    color: #0f172a;
}

.myplan-current-price span {
    color: #94a3b8;
    font-size: 12px;
}

.myplan-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    overflow: hidden;
}

.myplan-metric {
    padding: 16px;
    min-width: 0;
    background: #fff;
    border-right: 1px solid #eef2f7;
}

.myplan-metric:last-child {
    border-right: 0;
}

.myplan-metric span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 7px;
}

.myplan-metric strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
}

.myplan-metric strong small {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

.myplan-usage-heading > strong {
    color: #f97316;
    font-size: 16px;
    padding-top: 5px;
}

.myplan-progress {
    height: 11px;
    margin-top: 25px;
    background: #edf2f7;
    border-radius: 99px;
    overflow: hidden;
}

.myplan-progress > div {
    height: 100%;
    min-width: 2px;
    background: #f97316;
    border-radius: 99px;
}

.myplan-usage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.myplan-usage-stats > div {
    padding: 13px;
    border-radius: 12px;
    background: #f8fafc;
}

.myplan-usage-stats span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 5px;
}

.myplan-usage-stats strong {
    color: #0f172a;
    font-size: 14px;
}

.myplan-no-plan {
    margin: 0 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.myplan-no-plan h2 {
    margin: 3px 0;
}

.myplan-no-plan p {
    margin: 0;
    color: #64748b;
}

.myplan-plans-section {
    padding: 35px 30px 0;
}

.myplan-plans-heading {
    margin-bottom: 18px;
}

.myplan-plans-heading h2 {
    margin: 5px 0;
    font-size: 27px;
}

.myplan-plans-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.myplan-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.myplan-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 21px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
    transition: transform .18s ease,
                box-shadow .18s ease,
                border-color .18s ease;
}

.myplan-plan-card:hover {
    transform: translateY(-3px);
    border-color: #fed7aa;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.myplan-plan-card.is-recommended {
    border: 1.5px solid #f97316;
    box-shadow: 0 10px 28px rgba(249, 115, 22, .10);
}

.myplan-plan-card.is-current {
    border-color: #bbf7d0;
}

.myplan-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 99px;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    white-space: nowrap;
}

.myplan-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    gap: 10px;
}

.myplan-small-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff1e8;
    color: #f97316;
    font-size: 20px;
    font-weight: 700;
}

.myplan-current-badge {
    padding: 5px 9px;
    border-radius: 99px;
    background: #dcfce7;
    color: #15803d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .45px;
    white-space: nowrap;
}

.myplan-plan-card h3 {
    margin: 18px 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.myplan-card-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 18px;
}

.myplan-card-price strong {
    font-size: 23px;
    color: #0f172a;
}

.myplan-card-price span {
    color: #94a3b8;
    font-size: 11px;
}

.myplan-card-features {
    display: grid;
    gap: 9px;
    margin-bottom: 15px;
}

.myplan-card-features > div {
    display: grid;
    grid-template-columns: 25px 1fr auto;
    align-items: center;
    column-gap: 5px;
    min-height: 28px;
}

.feature-symbol {
    color: #f97316;
    font-size: 17px;
    font-weight: 700;
}

.myplan-card-features strong {
    color: #1e293b;
    font-size: 13px;
}

.myplan-card-features small {
    color: #94a3b8;
    font-size: 10px;
    text-align: right;
}

.myplan-card-description {
    min-height: 34px;
    margin: 0 0 15px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.myplan-plan-form {
    margin-top: auto;
}

.myplan-plan-button {
    width: 100%;
    min-height: 43px;
    border: 1px solid #f97316;
    border-radius: 10px;
    background: #fff;
    color: #f97316;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

.myplan-plan-button:hover {
    background: #fff7ed;
}

.myplan-plan-button.recommended {
    background: #f97316;
    color: #fff;
}

.myplan-plan-button.recommended:hover {
    background: #ea580c;
}

.myplan-plan-button.current {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.myplan-support {
    margin: 22px 30px 30px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
}

.myplan-support > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.myplan-support-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #fff1e8;
    color: #f97316;
    font-weight: 800;
}

.myplan-support strong,
.myplan-support span {
    display: block;
}

.myplan-support strong {
    color: #0f172a;
    font-size: 14px;
}

.myplan-support span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.myplan-support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    border-radius: 9px;
    background: #f97316;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.myplan-support-button:hover {
    background: #ea580c;
}


/* Desktop spacing */
@media (min-width: 1200px) {

    .myplan-plan-grid {
        grid-template-columns:
            repeat(4, minmax(220px, 1fr));
    }

}


/* Tablet */
@media (max-width: 1100px) {

    .myplan-current-layout {
        grid-template-columns: 1fr;
    }

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

}


/* Mobile */
@media (max-width: 700px) {

    .myplan-page-heading,
    .myplan-plans-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .myplan-current-layout {
        padding: 0 16px;
    }

    .myplan-page-heading h1 {
        font-size: 28px;
    }

    .myplan-current-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .myplan-current-price {
        text-align: left;
    }

    .myplan-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .myplan-metric:nth-child(2) {
        border-right: 0;
    }

    .myplan-metric:nth-child(3),
    .myplan-metric:nth-child(4) {
        border-top: 1px solid #eef2f7;
    }

    .myplan-plan-grid {
        grid-template-columns: 1fr;
    }

    .myplan-support {
        margin-left: 16px;
        margin-right: 16px;
        align-items: stretch;
        flex-direction: column;
    }

    .myplan-support-button {
        width: 100%;
    }

    .myplan-usage-stats {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   NEXAROOT DASHBOARD - FINAL PROFESSIONAL LAYOUT
   ========================================================= */

.dashboard-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-primary-column,
.dashboard-secondary-column {
    min-width: 0;
}

.dashboard-primary-column {
    display: flex;
}

.dashboard-primary-column > .dashboard-card {
    width: 100%;
}

.dashboard-secondary-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.dashboard-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.dashboard-card-heading h2 {
    margin: 5px 0 0;
    font-size: 21px;
    color: #0f172a;
}

.dashboard-plan-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #f1f5f9;
    border-radius: 15px;
    background: #fffaf5;
}

.dashboard-plan-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.dashboard-plan-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #fff0e5;
    color: #f97316;
    font-size: 25px;
    font-weight: 700;
}

.dashboard-plan-identity h3 {
    margin: 0 0 4px;
    font-size: 21px;
    color: #0f172a;
}

.dashboard-plan-identity span {
    color: #64748b;
    font-size: 13px;
}

.dashboard-view-plan {
    padding: 9px 14px;
    border: 1px solid #fed7aa;
    border-radius: 9px;
    color: #ea580c;
    background: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-view-plan:hover {
    background: #fff7ed;
}

.dashboard-service-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 17px;
    border: 1px solid #eef2f7;
    border-radius: 13px;
    overflow: hidden;
}

.dashboard-service-metrics > div {
    padding: 14px;
    border-right: 1px solid #eef2f7;
}

.dashboard-service-metrics > div:last-child {
    border-right: 0;
}

.dashboard-service-metrics span,
.dashboard-usage-summary span,
.dashboard-connection-info span,
.dashboard-account-grid span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 5px;
}

.dashboard-service-metrics strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.dashboard-service-metrics small {
    color: #64748b;
    font-size: 10px;
    font-weight: 500;
}

.dashboard-usage-block {
    margin-top: 19px;
    padding-top: 19px;
    border-top: 1px solid #eef2f7;
}

.dashboard-usage-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.dashboard-usage-heading h3 {
    margin: 4px 0 0;
    font-size: 17px;
}

.dashboard-usage-heading > strong {
    color: #f97316;
    font-size: 15px;
}

.dashboard-progress {
    height: 10px;
    margin-top: 15px;
    border-radius: 99px;
    background: #edf2f7;
    overflow: hidden;
}

.dashboard-progress > div {
    height: 100%;
    min-width: 2px;
    border-radius: 99px;
    background: #f97316;
}

.dashboard-usage-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 13px;
}

.dashboard-usage-summary > div {
    padding: 11px 13px;
    border-radius: 10px;
    background: #f8fafc;
}

.dashboard-usage-summary strong {
    color: #0f172a;
    font-size: 13px;
}

.dashboard-unlimited {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border-radius: 12px;
    background: #f8fafc;
}

.unlimited-symbol {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff0e5;
    color: #f97316;
    font-size: 23px;
    font-weight: 700;
}

.dashboard-unlimited strong,
.dashboard-unlimited span {
    display: block;
}

.dashboard-unlimited span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.dashboard-empty-plan {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 28px 0 5px;
}

.dashboard-empty-plan h3 {
    margin: 0 0 4px;
}

.dashboard-empty-plan p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.dashboard-empty-plan .portal-button {
    margin-left: auto;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
    margin-top: 20px;
}

.dashboard-quick-action {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px 12px;
    border-radius: 13px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .18s ease,
                box-shadow .18s ease;
}

.dashboard-quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
}

.dashboard-quick-action.recharge {
    background: #fff7ed;
    border-color: #ffedd5;
}

.dashboard-quick-action.router {
    background: #eff6ff;
    border-color: #dbeafe;
}

.dashboard-quick-action.plan {
    background: #f0fdf4;
    border-color: #dcfce7;
}

.dashboard-quick-action.billing {
    background: #faf5ff;
    border-color: #f3e8ff;
}

.dashboard-quick-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255,255,255,.8);
    color: #f97316;
    font-size: 18px;
    font-weight: 700;
}

.dashboard-quick-action.router .dashboard-quick-icon {
    color: #2563eb;
}

.dashboard-quick-action.plan .dashboard-quick-icon {
    color: #16a34a;
}

.dashboard-quick-action.billing .dashboard-quick-icon {
    color: #9333ea;
}

.dashboard-quick-action div {
    min-width: 0;
}

.dashboard-quick-action strong,
.dashboard-quick-action small {
    display: block;
}

.dashboard-quick-action strong {
    color: #0f172a;
    font-size: 12px;
}

.dashboard-quick-action small {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    white-space: nowrap;
}

.dashboard-quick-action b {
    margin-left: auto;
    color: #64748b;
    font-size: 19px;
}

.dashboard-connection-card {
    padding-top: 20px;
}

.dashboard-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 800;
}

.dashboard-status-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dashboard-status-badge.online {
    background: #ecfdf5;
    color: #059669;
}

.dashboard-status-badge.online i {
    background: #10b981;
}

.dashboard-status-badge.offline {
    background: #fef2f2;
    color: #dc2626;
}

.dashboard-status-badge.offline i {
    background: #ef4444;
}

.dashboard-connection-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 17px;
}

.dashboard-connection-info > div {
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.dashboard-connection-info strong {
    display: block;
    color: #0f172a;
    font-size: 12px;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.dashboard-account-grid > div {
    padding: 13px;
    border-radius: 10px;
    background: #f8fafc;
}

.dashboard-account-grid strong {
    display: block;
    color: #0f172a;
    font-size: 12px;
    word-break: break-word;
}

.dashboard-small-link {
    color: #f97316;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-billing-empty {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding: 15px;
    border-radius: 12px;
    background: #f8fafc;
}

.dashboard-billing-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 11px;
    background: #fff0e5;
    color: #f97316;
    font-size: 20px;
}

.dashboard-billing-empty strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
}

.dashboard-billing-empty p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 11px;
}

.dashboard-support-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
}

.dashboard-support-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.dashboard-support-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    border-radius: 12px;
    background: #fff1e8;
    color: #f97316;
    font-weight: 800;
}

.dashboard-support-left span {
    color: #f97316;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.dashboard-support-left h3 {
    margin: 3px 0;
    font-size: 14px;
}

.dashboard-support-left p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
}


/* Tablet */
@media (max-width: 1100px) {

    .dashboard-main-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-secondary-column {
        grid-template-columns: 1fr 1fr;
    }

}


/* Mobile */
@media (max-width: 700px) {

    .dashboard-main-layout,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-secondary-column {
        grid-template-columns: 1fr;
    }

    .dashboard-service-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-service-metrics > div:nth-child(2) {
        border-right: 0;
    }

    .dashboard-service-metrics > div:nth-child(3),
    .dashboard-service-metrics > div:nth-child(4) {
        border-top: 1px solid #eef2f7;
    }

    .dashboard-usage-summary {
        grid-template-columns: 1fr;
    }

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

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

    .dashboard-plan-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-empty-plan {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-empty-plan .portal-button {
        margin-left: 0;
    }

    .dashboard-support-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-support-banner .portal-button {
        width: 100%;
    }

}

/* NEXAROOT LOGIN PAGE */
.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f6f8fb;
    box-sizing: border-box;
}

.authbox {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 38px;
    box-sizing: border-box;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

.authbox .brand {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #111827;
    margin-bottom: 28px;
}

.authbox .brand span {
    color: var(--accent, #f97316);
}

.authbox h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    color: #111827;
}

.authbox > p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.authbox form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.authbox label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.authbox input:not([type="hidden"]) {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.authbox input:not([type="hidden"]):focus {
    border-color: var(--accent, #f97316);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.authbox .btn.full {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: var(--accent, #f97316);
    transition: transform .15s, opacity .15s;
}

.authbox .btn.full:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.authbox .error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}

.authbox a {
    color: var(--accent, #f97316);
    text-decoration: none;
    font-weight: 600;
}

.authbox a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .auth {
        padding: 16px;
    }

    .authbox {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .authbox h1 {
        font-size: 24px;
    }
}


/* ===== NEXAROOT RECHARGE PAGE ===== */

.recharge-page {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 36px 38px 60px;
    box-sizing: border-box;
}

.recharge-page-heading {
    margin-bottom: 28px;
}

.recharge-page-heading h1 {
    margin: 6px 0 8px;
    font-size: 30px;
    line-height: 1.2;
    color: #111827;
}

.recharge-page-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.recharge-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.recharge-balance-card {
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 150px;
    box-sizing: border-box;
}

.recharge-balance-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    background: rgba(249, 115, 22, .10);
    color: var(--accent, #f97316);
    font-size: 25px;
    font-weight: 800;
}

.recharge-balance-card > div:last-child {
    min-width: 0;
}

.recharge-balance-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 7px;
}

.recharge-balance-card strong {
    display: block;
    color: #111827;
    font-size: 28px;
    line-height: 1.1;
}

.recharge-form-card {
    padding: 30px;
    box-sizing: border-box;
}

.recharge-card-heading h2 {
    margin: 6px 0 7px;
    color: #111827;
    font-size: 22px;
}

.recharge-card-heading p {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: 14px;
}

.recharge-quick-amounts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.recharge-amount-btn {
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.recharge-amount-btn:hover,
.recharge-amount-btn.selected {
    border-color: var(--accent, #f97316);
    color: var(--accent, #f97316);
    background: rgba(249, 115, 22, .06);
}

.recharge-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recharge-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.recharge-input-wrap {
    display: flex;
    align-items: center;
    height: 54px;
    border: 1px solid #d1d5db;
    border-radius: 11px;
    background: #fff;
    overflow: hidden;
    transition: .18s ease;
}

.recharge-input-wrap:focus-within {
    border-color: var(--accent, #f97316);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .10);
}

.recharge-input-wrap > span {
    width: 52px;
    text-align: center;
    color: #6b7280;
    font-size: 17px;
    font-weight: 700;
}

.recharge-input-wrap input {
    flex: 1;
    height: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px 0 0;
    font-size: 16px;
    color: #111827;
    background: transparent;
    box-sizing: border-box;
}

.recharge-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.recharge-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
}

.recharge-note {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 11px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.recharge-note-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.recharge-note strong {
    display: block;
    margin-bottom: 3px;
    color: #374151;
    font-size: 13px;
}

.recharge-note p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.recharge-back {
    display: inline-block;
    margin-top: 22px;
    color: var(--accent, #f97316);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.recharge-back:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .recharge-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .recharge-quick-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .recharge-page {
        padding: 26px 18px 45px;
    }

    .recharge-page-heading h1 {
        font-size: 25px;
    }

    .recharge-form-card {
        padding: 22px 18px;
    }

    .recharge-quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===== NEXAROOT MY ROUTER PAGE ===== */

.router-portal-page {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 36px 38px 60px;
    box-sizing: border-box;
}

.router-page-heading {
    margin-bottom: 26px;
}

.router-page-heading h1 {
    margin: 6px 0 8px;
    font-size: 30px;
    line-height: 1.2;
    color: #111827;
}

.router-page-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.router-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.router-notice > span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.router-notice-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.router-notice-success > span {
    background: #d1fae5;
}

.router-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.router-notice-error > span {
    background: #fee2e2;
}

.router-summary-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.router-summary-icon {
    width: 62px;
    height: 62px;
    border-radius: 15px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249,115,22,.10);
    color: var(--accent,#f97316);
    font-size: 25px;
    font-weight: 800;
}

.router-summary-main {
    min-width: 0;
    flex: 1;
}

.router-summary-main h2 {
    margin: 5px 0 9px;
    color: #111827;
    font-size: 22px;
}

.router-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #6b7280;
    font-size: 13px;
}

.router-summary-meta strong {
    color: #374151;
}

.router-summary-status {
    margin-left: auto;
}

.router-online,
.router-offline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.router-online {
    color: #047857;
    background: #ecfdf5;
}

.router-offline {
    color: #b91c1c;
    background: #fef2f2;
}

.router-online i,
.router-offline i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.router-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.router-section-heading h2 {
    margin: 5px 0 0;
    color: #111827;
    font-size: 21px;
}

.router-section-info {
    color: #6b7280;
    font-size: 13px;
}

.router-wifi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.router-wifi-card {
    padding: 25px;
    box-sizing: border-box;
}

.router-wifi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 23px;
}

.router-wifi-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.router-wifi-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249,115,22,.10);
    color: var(--accent,#f97316);
    font-size: 11px;
    font-weight: 800;
}

.router-wifi-title h3 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 18px;
}

.router-wifi-title span {
    color: #6b7280;
    font-size: 12px;
}

.router-active-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 10px;
    font-weight: 800;
}

.router-wifi-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.router-wifi-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.router-wifi-form label > span {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.router-input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.router-input:focus {
    border-color: var(--accent,#f97316);
    box-shadow: 0 0 0 3px rgba(249,115,22,.10);
}

.router-input[readonly] {
    background: #f8fafc;
    color: #6b7280;
}

.router-password-wrap {
    position: relative;
}

.router-password-wrap .router-input {
    padding-right: 65px;
}

.router-show-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--accent,#f97316);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.router-help {
    margin: -5px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.router-save-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--accent,#f97316);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: .18s ease;
}

.router-save-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.router-empty-card {
    padding: 40px;
    text-align: center;
}

.router-empty-icon {
    font-size: 35px;
    margin-bottom: 12px;
}

.router-empty-card h3 {
    margin: 0 0 7px;
    color: #111827;
}

.router-empty-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.router-devices-card {
    padding: 25px;
    box-sizing: border-box;
}

.router-devices-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.router-devices-header h2 {
    margin: 5px 0 5px;
    color: #111827;
    font-size: 21px;
}

.router-devices-header p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.router-device-count {
    padding: 7px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.router-device-list {
    width: 100%;
}

.router-device-head,
.router-device-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 20px;
    align-items: center;
}

.router-device-head {
    padding: 11px 14px;
    border-radius: 9px;
    background: #f8fafc;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.router-device-row {
    padding: 15px 14px;
    border-bottom: 1px solid #eef0f3;
    color: #6b7280;
    font-size: 13px;
}

.router-device-row:last-child {
    border-bottom: 0;
}

.router-device-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
}

.router-device-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
}

.router-no-devices {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.router-no-devices-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
    margin-bottom: 12px;
}

.router-no-devices strong {
    color: #374151;
    font-size: 14px;
}

.router-no-devices span {
    margin-top: 5px;
    color: #9ca3af;
    font-size: 12px;
}

.router-back-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--accent,#f97316);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.router-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 950px) {

    .router-wifi-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .router-portal-page {
        padding: 26px 18px 45px;
    }

    .router-page-heading h1 {
        font-size: 25px;
    }

    .router-summary-card {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 20px;
    }

    .router-summary-status {
        width: 100%;
        margin-left: 0;
    }

    .router-summary-meta {
        flex-direction: column;
        gap: 5px;
    }

    .router-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .router-wifi-card,
    .router-devices-card {
        padding: 20px;
    }

    .router-devices-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .router-device-head {
        display: none;
    }

    .router-device-row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 15px 5px;
    }

    .router-device-row > div:nth-child(2)::before {
        content: "IP: ";
        font-weight: 600;
        color: #374151;
    }

    .router-device-row > div:nth-child(3)::before {
        content: "MAC: ";
        font-weight: 600;
        color: #374151;
    }

}

/* ===== SIDEBAR MENU ICONS - ALWAYS VISIBLE ===== */

.portal-menu-item .menu-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    height: 22px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.portal-menu-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

.portal-menu-item .menu-icon {
    flex-shrink: 0;
}


/* =========================================================
   NEXAROOT MY PROFILE PAGE
   ========================================================= */

.profile-alert {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.profile-alert.success {
    background: #ecfdf3;
    color: #067647;
    border-color: #abefc6;
}

.profile-alert.error {
    background: #fef3f2;
    color: #b42318;
    border-color: #fecdca;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 22px;
    align-items: start;
}

.profile-grid .dashboard-card {
    min-width: 0;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-field label {
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.profile-field input,
.profile-field textarea,
.profile-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #101828;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.profile-field textarea {
    resize: vertical;
    min-height: 92px;
}

.profile-field input:focus,
.profile-field textarea:focus,
.profile-field select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .10);
}

.profile-field input:disabled,
.profile-field input[readonly] {
    background: #f8fafc;
    color: #667085;
    cursor: not-allowed;
}

.profile-field small {
    font-size: 12px;
    color: #98a2b3;
    line-height: 1.45;
}

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eaecf0;
}

.profile-password-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 22px;
}

.profile-grid .dashboard-card-heading {
    margin-bottom: 0;
}

.profile-grid .portal-button {
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 1000px) {

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

}

@media (max-width: 700px) {

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

    .profile-field-full {
        grid-column: auto;
    }

    .profile-form-actions {
        justify-content: stretch;
    }

    .profile-form-actions .portal-button {
        width: 100%;
        justify-content: center;
    }

}


/* =========================================================
   NEXAROOT SUPPORT PAGE
   ========================================================= */

.support-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 22px;
    align-items: start;
}

.support-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.support-form-grid .profile-field-full {
    grid-column: 1 / -1;
}

.support-help-card {
    min-height: 100%;
}

.support-help-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.support-help-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #f8fafc;
}

.support-help-item > span {
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eaecf0;
    font-size: 18px;
}

.support-help-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-help-item strong {
    font-size: 13px;
    color: #101828;
}

.support-help-item small {
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.support-tickets-card {
    margin-top: 22px;
}

.support-ticket-count {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.support-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    border: 1px dashed #d0d5dd;
    border-radius: 14px;
    background: #f8fafc;
    margin-top: 22px;
}

.support-empty-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eaecf0;
    font-size: 24px;
    margin-bottom: 5px;
}

.support-empty strong {
    font-size: 15px;
    color: #101828;
}

.support-empty span {
    font-size: 13px;
    color: #667085;
}

.support-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.support-ticket {
    border: 1px solid #eaecf0;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.support-ticket-main {
    min-width: 0;
}

.support-ticket-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 11px;
}

.ticket-number,
.ticket-category,
.ticket-priority,
.ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.ticket-number {
    background: #f2f4f7;
    color: #475467;
}

.ticket-category {
    background: #fff7ed;
    color: #c2410c;
}

.ticket-priority.low {
    background: #f2f4f7;
    color: #475467;
}

.ticket-priority.medium {
    background: #eff8ff;
    color: #175cd3;
}

.ticket-priority.high {
    background: #fffaeb;
    color: #b54708;
}

.ticket-priority.urgent {
    background: #fef3f2;
    color: #b42318;
}

.ticket-status.open {
    background: #eff8ff;
    color: #175cd3;
}

.ticket-status.progress {
    background: #fff7ed;
    color: #c2410c;
}

.ticket-status.resolved {
    background: #ecfdf3;
    color: #067647;
}

.ticket-status.closed {
    background: #f2f4f7;
    color: #475467;
}

.support-ticket h3 {
    margin: 0 0 7px;
    color: #101828;
    font-size: 15px;
}

.support-ticket p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.65;
}

.ticket-date {
    display: block;
    margin-top: 13px;
    color: #98a2b3;
    font-size: 11px;
}

.ticket-reply {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 11px;
    background: #f8fafc;
    border-left: 3px solid #f97316;
}

.ticket-reply strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #344054;
}

.ticket-reply p {
    color: #475467;
}

@media (max-width: 1000px) {

    .support-page-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .support-form-grid {
        grid-template-columns: 1fr;
    }

    .support-form-grid .profile-field-full {
        grid-column: auto;
    }

    .support-ticket-top {
        align-items: flex-start;
    }

}


/* =========================================================
   NEXAROOT ADMIN SUPPORT TICKETS
   ========================================================= */

.admin-ticket-priority,
.admin-ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.admin-ticket-priority.low {
    background: #f2f4f7;
    color: #475467;
}

.admin-ticket-priority.medium {
    background: #eff8ff;
    color: #175cd3;
}

.admin-ticket-priority.high {
    background: #fffaeb;
    color: #b54708;
}

.admin-ticket-priority.urgent {
    background: #fef3f2;
    color: #b42318;
}

.admin-ticket-status.open {
    background: #eff8ff;
    color: #175cd3;
}

.admin-ticket-status.in_progress {
    background: #fff7ed;
    color: #c2410c;
}

.admin-ticket-status.resolved {
    background: #ecfdf3;
    color: #067647;
}

.admin-ticket-status.closed {
    background: #f2f4f7;
    color: #475467;
}

.admin-ticket-detail-row td {
    padding-top: 0 !important;
}

.admin-ticket-detail-row details {
    margin-bottom: 8px;
}

.admin-ticket-detail-row summary {
    cursor: pointer;
    color: #c2410c;
    font-size: 13px;
    font-weight: 700;
}

.admin-ticket-detail {
    margin-top: 15px;
    padding: 18px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #f8fafc;
}

.admin-ticket-description {
    margin-bottom: 18px;
}

.admin-ticket-description strong {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 13px;
}

.admin-ticket-description p {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.65;
}

.admin-ticket-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.admin-ticket-detail label {
    display: block;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.admin-ticket-detail select,
.admin-ticket-detail textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #fff;
    color: #101828;
    font: inherit;
    box-sizing: border-box;
}

.admin-ticket-detail select {
    margin-top: 7px;
}

.admin-ticket-detail textarea:focus,
.admin-ticket-detail select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.10);
}

@media (max-width: 700px) {

    .admin-ticket-form-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   NEXAROOT ADMIN SUPPORT TICKETS
   ========================================================= */

.admin-ticket-priority,
.admin-ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.admin-ticket-priority.low {
    background: #f2f4f7;
    color: #475467;
}

.admin-ticket-priority.medium {
    background: #eff8ff;
    color: #175cd3;
}

.admin-ticket-priority.high {
    background: #fffaeb;
    color: #b54708;
}

.admin-ticket-priority.urgent {
    background: #fef3f2;
    color: #b42318;
}

.admin-ticket-status.open {
    background: #eff8ff;
    color: #175cd3;
}

.admin-ticket-status.in_progress {
    background: #fff7ed;
    color: #c2410c;
}

.admin-ticket-status.resolved {
    background: #ecfdf3;
    color: #067647;
}

.admin-ticket-status.closed {
    background: #f2f4f7;
    color: #475467;
}

.admin-ticket-detail-row td {
    padding-top: 0 !important;
}

.admin-ticket-detail-row details {
    margin-bottom: 8px;
}

.admin-ticket-detail-row summary {
    cursor: pointer;
    color: #c2410c;
    font-size: 13px;
    font-weight: 700;
}

.admin-ticket-detail {
    margin-top: 15px;
    padding: 18px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #f8fafc;
}

.admin-ticket-description {
    margin-bottom: 18px;
}

.admin-ticket-description strong {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 13px;
}

.admin-ticket-description p {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.65;
}

.admin-ticket-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.admin-ticket-detail label {
    display: block;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
}

.admin-ticket-detail select,
.admin-ticket-detail textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    background: #fff;
    color: #101828;
    font: inherit;
    box-sizing: border-box;
}

.admin-ticket-detail select {
    margin-top: 7px;
}

.admin-ticket-detail textarea {
    margin-top: 7px;
    resize: vertical;
}

.admin-ticket-detail textarea:focus,
.admin-ticket-detail select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,.10);
}

@media (max-width: 700px) {

    .admin-ticket-form-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   NEXAROOT NEW CONNECTION PAGE - SCOPED
   IMPORTANT: All selectors are scoped to .new-connection-page
   ========================================================= */

.new-connection-page .new-connection-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.new-connection-page .new-connection-form-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15,23,42,.045);
    padding: 28px;
}

.new-connection-page .portal-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f7;
}

.new-connection-page .portal-card-heading h2 {
    margin: 4px 0 0;
}

.new-connection-page .connection-step-badge {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.new-connection-page .portal-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 15px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid;
}

.new-connection-page .portal-alert-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.new-connection-page .portal-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.new-connection-page .form-section {
    padding: 26px 0;
    border-top: 1px solid #eef2f7;
}

.new-connection-page .form-section:first-of-type {
    padding-top: 8px;
    border-top: 0;
}

.new-connection-page .form-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.new-connection-page .form-section-title > span {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 12px;
    font-weight: 800;
}

.new-connection-page .form-section-title strong {
    display: block;
    color: #111827;
    font-size: 15px;
}

.new-connection-page .form-section-title small {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 12px;
}

.new-connection-page .portal-form-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.new-connection-page .portal-form-grid .full-width {
    grid-column: 1 / -1;
}

.new-connection-page .new-connection-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.new-connection-page .new-connection-form input[type="text"],
.new-connection-page .new-connection-form input[type="email"],
.new-connection-page .new-connection-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    padding: 12px 13px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease,box-shadow .15s ease;
}

.new-connection-page .new-connection-form textarea {
    resize: vertical;
    min-height: 105px;
}

.new-connection-page .new-connection-form input:focus,
.new-connection-page .new-connection-form textarea:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(249,115,22,.10);
}

.new-connection-page .connection-type-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.new-connection-page .connection-type-option,
.new-connection-page .connection-plan-option {
    position: relative;
    display: block !important;
}

.new-connection-page .connection-type-option input,
.new-connection-page .connection-plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.new-connection-page .connection-type-box {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    background: #fff;
    transition: .15s ease;
}

.new-connection-page .connection-type-box strong {
    display: block;
    color: #111827;
    font-size: 14px;
}

.new-connection-page .connection-type-box small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

.new-connection-page .connection-type-option input:checked + .connection-type-box {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 0 0 2px rgba(249,115,22,.10);
}

.new-connection-page .connection-plan-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
}

.new-connection-page .connection-plan-box {
    display: block;
    min-height: 135px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    background: #fff;
    transition: .15s ease;
}

.new-connection-page .connection-plan-option input:checked + .connection-plan-box {
    border-color: #f97316;
    background: #fffaf5;
    box-shadow: 0 0 0 2px rgba(249,115,22,.10);
}

.new-connection-page .connection-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.new-connection-page .connection-plan-top strong {
    color: #111827;
    font-size: 15px;
}

.new-connection-page .connection-plan-top b {
    color: #ea580c;
    font-size: 16px;
}

.new-connection-page .connection-plan-speed {
    display: block;
    margin-top: 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.new-connection-page .connection-plan-speed span {
    color: #9ca3af;
    padding: 0 5px;
}

.new-connection-page .connection-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.new-connection-page .connection-plan-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 11px;
    font-weight: 600;
}

.new-connection-page .connection-plan-box > small {
    display: block;
    margin-top: 10px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.45;
}

.new-connection-page .form-help {
    margin: 11px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.new-connection-page .portal-empty-state {
    padding: 18px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

.new-connection-page .new-connection-submit {
    margin-top: 20px;
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.new-connection-page .new-connection-submit strong {
    display: block;
    color: #111827;
    font-size: 14px;
}

.new-connection-page .new-connection-submit small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.new-connection-page .new-connection-submit-btn {
    white-space: nowrap;
}

.new-connection-page .new-connection-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.new-connection-page .connection-info-card,
.new-connection-page .connection-help-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(15,23,42,.045);
}

.new-connection-page .connection-info-card {
    padding: 24px;
}

.new-connection-page .connection-help-card {
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg,#fff7ed,#fff);
}

.new-connection-page .connection-info-card h2 {
    margin: 5px 0 22px;
}

.new-connection-page .connection-process {
    display: flex;
    flex-direction: column;
}

.new-connection-page .connection-process-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 20px;
}

.new-connection-page .connection-process-item:last-child {
    padding-bottom: 0;
}

.new-connection-page .connection-process-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 4px;
    width: 1px;
    background: #e5e7eb;
}

.new-connection-page .connection-process-item > span {
    position: relative;
    z-index: 1;
    width: 31px;
    height: 31px;
    min-width: 31px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid #fed7aa;
}

.new-connection-page .connection-process-item strong {
    display: block;
    padding-top: 2px;
    color: #111827;
    font-size: 13px;
}

.new-connection-page .connection-process-item small {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.45;
}

.new-connection-page .connection-help-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 11px;
    background: #f97316;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.new-connection-page .connection-help-card h3 {
    margin: 4px 0 7px;
    color: #111827;
    font-size: 15px;
}

.new-connection-page .connection-help-card p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.55;
}

.new-connection-page .connection-help-link {
    display: inline-block;
    margin-top: 12px;
    color: #ea580c;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.new-connection-page .connection-plan-box:hover,
.new-connection-page .connection-type-box:hover {
    border-color: #fdba74;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .new-connection-page .new-connection-grid {
        grid-template-columns: 1fr;
    }

    .new-connection-page .new-connection-side {
        position: static;
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 700px) {
    .new-connection-page .portal-form-grid,
    .new-connection-page .connection-type-grid,
    .new-connection-page .connection-plan-grid,
    .new-connection-page .new-connection-side {
        grid-template-columns: 1fr;
    }

    .new-connection-page .new-connection-form-card,
    .new-connection-page .connection-info-card,
    .new-connection-page .connection-help-card {
        padding: 18px;
        border-radius: 12px;
    }

    .new-connection-page .new-connection-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .new-connection-page .new-connection-submit-btn {
        width: 100%;
    }

    .new-connection-page .portal-card-heading {
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================================
   NEXAROOT NEW CONNECTION - SCOPED FINAL
   ========================================================= */

.new-connection-page .new-connection-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:22px;
    align-items:start;
    width:100%;
    box-sizing:border-box;
}

.new-connection-page .new-connection-form-card,
.new-connection-page .connection-info-card,
.new-connection-page .connection-help-card {
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    box-shadow:0 4px 18px rgba(15,23,42,.045);
}

.new-connection-page .new-connection-form-card {
    padding:28px;
}

.new-connection-page .connection-info-card {
    padding:24px;
}

.new-connection-page .connection-help-card {
    padding:20px;
    display:flex;
    gap:14px;
    align-items:flex-start;
    background:linear-gradient(135deg,#fff7ed,#fff);
}

.new-connection-page .portal-card-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
    padding-bottom:20px;
    border-bottom:1px solid #eef2f7;
}

.new-connection-page .portal-card-heading h2 {
    margin:4px 0 0;
}

.new-connection-page .connection-step-badge {
    background:#fff7ed;
    color:#ea580c;
    border:1px solid #fed7aa;
    border-radius:999px;
    padding:7px 12px;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.new-connection-page .portal-alert {
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:15px 18px;
    border-radius:12px;
    margin-bottom:20px;
    border:1px solid;
}

.new-connection-page .portal-alert-error {
    background:#fff1f2;
    border-color:#fecdd3;
    color:#9f1239;
}

.new-connection-page .portal-alert-success {
    background:#f0fdf4;
    border-color:#bbf7d0;
    color:#166534;
}

.new-connection-page .form-section {
    padding:26px 0;
    border-top:1px solid #eef2f7;
}

.new-connection-page .form-section:first-of-type {
    padding-top:8px;
    border-top:0;
}

.new-connection-page .form-section-title {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.new-connection-page .form-section-title > span {
    width:34px;
    height:34px;
    min-width:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#fff7ed;
    color:#ea580c;
    font-size:12px;
    font-weight:800;
}

.new-connection-page .form-section-title strong {
    display:block;
    color:#111827;
    font-size:15px;
}

.new-connection-page .form-section-title small {
    display:block;
    margin-top:3px;
    color:#6b7280;
    font-size:12px;
}

.new-connection-page .portal-form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.new-connection-page .portal-form-grid .full-width {
    grid-column:1/-1;
}

.new-connection-page .new-connection-form label {
    display:flex;
    flex-direction:column;
    gap:7px;
    color:#374151;
    font-size:13px;
    font-weight:600;
}

.new-connection-page .new-connection-form input[type="text"],
.new-connection-page .new-connection-form input[type="email"],
.new-connection-page .new-connection-form textarea {
    width:100%;
    box-sizing:border-box;
    border:1px solid #dbe2ea;
    border-radius:10px;
    background:#fff;
    color:#111827;
    padding:12px 13px;
    font-size:14px;
    outline:none;
}

.new-connection-page .new-connection-form textarea {
    resize:vertical;
    min-height:105px;
}

.new-connection-page .new-connection-form input:focus,
.new-connection-page .new-connection-form textarea:focus {
    border-color:#fb923c;
    box-shadow:0 0 0 3px rgba(249,115,22,.10);
}

.new-connection-page .connection-type-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.new-connection-page .connection-type-option,
.new-connection-page .connection-plan-option {
    position:relative;
    display:block !important;
}

.new-connection-page .connection-type-option input,
.new-connection-page .connection-plan-option input {
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.new-connection-page .connection-type-box {
    display:block;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:15px;
    cursor:pointer;
    background:#fff;
}

.new-connection-page .connection-type-box strong {
    display:block;
    color:#111827;
    font-size:14px;
}

.new-connection-page .connection-type-box small {
    display:block;
    margin-top:4px;
    color:#6b7280;
    font-size:12px;
    font-weight:400;
}

.new-connection-page .connection-type-option input:checked + .connection-type-box {
    border-color:#f97316;
    background:#fff7ed;
    box-shadow:0 0 0 2px rgba(249,115,22,.10);
}

.new-connection-page .connection-plan-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
}

.new-connection-page .connection-plan-box {
    display:block;
    min-height:135px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:16px;
    cursor:pointer;
    background:#fff;
}

.new-connection-page .connection-plan-option input:checked + .connection-plan-box {
    border-color:#f97316;
    background:#fffaf5;
    box-shadow:0 0 0 2px rgba(249,115,22,.10);
}

.new-connection-page .connection-plan-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.new-connection-page .connection-plan-top strong {
    color:#111827;
    font-size:15px;
}

.new-connection-page .connection-plan-top b {
    color:#ea580c;
    font-size:16px;
}

.new-connection-page .connection-plan-speed {
    display:block;
    margin-top:10px;
    color:#374151;
    font-size:13px;
    font-weight:700;
}

.new-connection-page .connection-plan-meta {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:12px;
}

.new-connection-page .connection-plan-meta span {
    padding:5px 8px;
    border-radius:999px;
    background:#f3f4f6;
    color:#4b5563;
    font-size:11px;
    font-weight:600;
}

.new-connection-page .connection-plan-box > small {
    display:block;
    margin-top:10px;
    color:#6b7280;
    font-size:11px;
    line-height:1.45;
}

.new-connection-page .form-help {
    margin:11px 0 0;
    color:#6b7280;
    font-size:12px;
}

.new-connection-page .portal-empty-state {
    padding:18px;
    border:1px dashed #d1d5db;
    border-radius:12px;
    background:#f9fafb;
    color:#6b7280;
    text-align:center;
    font-size:13px;
}

.new-connection-page .new-connection-submit {
    margin-top:20px;
    padding:18px;
    border-radius:14px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.new-connection-page .new-connection-submit strong {
    display:block;
    color:#111827;
    font-size:14px;
}

.new-connection-page .new-connection-submit small {
    display:block;
    margin-top:4px;
    color:#6b7280;
    font-size:12px;
}

.new-connection-page .new-connection-submit-btn {
    white-space:nowrap;
}

.new-connection-page .new-connection-side {
    display:flex;
    flex-direction:column;
    gap:18px;
    position:sticky;
    top:24px;
}

.new-connection-page .connection-info-card h2 {
    margin:5px 0 22px;
}

.new-connection-page .connection-process {
    display:flex;
    flex-direction:column;
}

.new-connection-page .connection-process-item {
    display:flex;
    gap:12px;
    position:relative;
    padding-bottom:20px;
}

.new-connection-page .connection-process-item:last-child {
    padding-bottom:0;
}

.new-connection-page .connection-process-item:not(:last-child)::after {
    content:"";
    position:absolute;
    left:15px;
    top:32px;
    bottom:4px;
    width:1px;
    background:#e5e7eb;
}

.new-connection-page .connection-process-item > span {
    position:relative;
    z-index:1;
    width:31px;
    height:31px;
    min-width:31px;
    border-radius:50%;
    background:#fff7ed;
    color:#ea580c;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:800;
    border:1px solid #fed7aa;
}

.new-connection-page .connection-process-item strong {
    display:block;
    padding-top:2px;
    color:#111827;
    font-size:13px;
}

.new-connection-page .connection-process-item small {
    display:block;
    margin-top:4px;
    color:#6b7280;
    font-size:11px;
    line-height:1.45;
}

.new-connection-page .connection-help-icon {
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:11px;
    background:#f97316;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
}

.new-connection-page .connection-help-card h3 {
    margin:4px 0 7px;
    color:#111827;
    font-size:15px;
}

.new-connection-page .connection-help-card p {
    margin:0;
    color:#6b7280;
    font-size:12px;
    line-height:1.55;
}

.new-connection-page .connection-help-link {
    display:inline-block;
    margin-top:12px;
    color:#ea580c;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
}

.new-connection-page .connection-plan-box:hover,
.new-connection-page .connection-type-box:hover {
    border-color:#fdba74;
    transform:translateY(-1px);
}

@media (max-width:1100px) {
    .new-connection-page .new-connection-grid {
        grid-template-columns:1fr;
    }

    .new-connection-page .new-connection-side {
        position:static;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:700px) {
    .new-connection-page .portal-form-grid,
    .new-connection-page .connection-type-grid,
    .new-connection-page .connection-plan-grid,
    .new-connection-page .new-connection-side {
        grid-template-columns:1fr;
    }

    .new-connection-page .new-connection-form-card,
    .new-connection-page .connection-info-card,
    .new-connection-page .connection-help-card {
        padding:18px;
        border-radius:12px;
    }

    .new-connection-page .new-connection-submit {
        align-items:stretch;
        flex-direction:column;
    }

    .new-connection-page .new-connection-submit-btn {
        width:100%;
    }

    .new-connection-page .portal-card-heading {
        flex-direction:column;
        gap:10px;
    }
}

/* ===== MY ROUTER SIDEBAR BOTTOM FIX ===== */
.portal-sidebar .sidebar-bottom {
    margin-top: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    position: static !important;
    width: auto !important;
}

.portal-sidebar {
    display: flex !important;
    flex-direction: column !important;
}

.portal-sidebar .portal-menu {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.portal-sidebar .sidebar-help,
.portal-sidebar .logout-link {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* =========================================================
   NEXAROOT MY BILLS & INVOICES
   SINGLE PAGE-SPECIFIC CSS BLOCK
   ========================================================= */

.bills-page .welcome-row {
    margin-bottom: 28px;
}

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

.bill-summary-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.bill-summary-card.bill-summary-due {
    border-color: #f3c4c4;
}

.bill-summary-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff3e8;
    color: #f47b20;
    font-weight: 800;
    font-size: 18px;
}

.bill-summary-card > div:last-child {
    min-width: 0;
}

.bill-summary-card span,
.bill-summary-card small {
    display: block;
}

.bill-summary-card span {
    color: #667085;
    font-size: 13px;
    margin-bottom: 5px;
}

.bill-summary-card strong {
    display: block;
    color: #101828;
    font-size: 22px;
    line-height: 1.2;
}

.bill-summary-card small {
    margin-top: 5px;
    color: #98a2b3;
    font-size: 12px;
}

.bill-due-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid #f2c5c5;
    background: #fff8f8;
    border-radius: 16px;
}

.bill-due-alert-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bill-due-alert-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0f0;
    color: #d92d20;
    font-weight: 800;
}

.bill-due-alert strong {
    display: block;
    color: #b42318;
    margin-bottom: 4px;
}

.bill-due-alert p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.bill-pay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 10px;
    background: #f47b20;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.bill-pay-button:hover {
    opacity: .92;
}

.bill-current-card,
.bill-history-card,
.bill-invoice-detail {
    margin-bottom: 22px;
}

.bill-plan-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.bill-plan-status.active {
    background: #ecfdf3;
    color: #027a48;
}

.bill-plan-status.expired {
    background: #fef3f2;
    color: #b42318;
}

.bill-current-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.bill-current-item {
    padding: 16px;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    background: #fafbfc;
}

.bill-current-item span,
.invoice-detail-grid span {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-bottom: 6px;
}

.bill-current-item strong {
    color: #101828;
    font-size: 14px;
}

.bill-renewal-row {
    margin-top: 18px;
    padding: 18px;
    border-radius: 13px;
    background: #fff8f1;
    border: 1px solid #f8dcc3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bill-renewal-row span {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-bottom: 4px;
}

.bill-renewal-row strong {
    color: #101828;
    font-size: 20px;
}

.bill-renewal-date {
    color: #667085;
    font-size: 13px;
}

.bill-renewal-date b {
    color: #101828;
}

.bill-count {
    padding: 7px 11px;
    background: #f2f4f7;
    border-radius: 999px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.bill-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.bill-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px;
}

.bill-table th {
    padding: 13px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #667085;
    background: #f8fafc;
    border-bottom: 1px solid #eaecf0;
}

.bill-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
    color: #344054;
    font-size: 13px;
}

.bill-table tbody tr:last-child td {
    border-bottom: 0;
}

.bill-table td strong {
    display: block;
    color: #101828;
}

.bill-table td small {
    display: block;
    margin-top: 4px;
    color: #98a2b3;
    font-size: 11px;
}

.bill-reference {
    font-family: monospace;
    font-size: 12px;
    color: #475467;
}

.bill-amount {
    color: #101828 !important;
}

.bill-amount-credit {
    color: #027a48 !important;
}

.bill-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.bill-status-success {
    background: #ecfdf3;
    color: #027a48 !important;
}

.bill-status-pending {
    background: #fffaeb;
    color: #b54708 !important;
}

.bill-status-failed {
    background: #fef3f2;
    color: #b42318 !important;
}

.bill-view-button,
.bill-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #344054 !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.bill-view-button:hover,
.bill-secondary-button:hover {
    background: #f9fafb;
}

.invoice-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.invoice-detail-grid > div {
    padding: 15px;
    border: 1px solid #edf0f4;
    border-radius: 11px;
    background: #fafbfc;
}

.invoice-detail-grid strong {
    color: #101828;
    font-size: 14px;
    word-break: break-word;
}

.invoice-note {
    margin-top: 15px;
    padding: 15px;
    border-radius: 11px;
    background: #f8fafc;
}

.invoice-note span {
    display: block;
    color: #667085;
    font-size: 12px;
    margin-bottom: 5px;
}

.invoice-note p {
    margin: 0;
    color: #344054;
    font-size: 13px;
}

.bill-empty-state {
    padding: 35px 20px;
    text-align: center;
    color: #667085;
}

.bill-empty-state strong {
    display: block;
    color: #344054;
    margin-bottom: 6px;
}

.bill-empty-state p {
    margin: 0 0 15px;
    font-size: 13px;
}

.portal-support-banner {
    margin-top: 4px;
}

@media (max-width: 1100px) {

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

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

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

@media (max-width: 700px) {

    .bills-summary-grid,
    .bill-current-grid,
    .invoice-detail-grid {
        grid-template-columns: 1fr;
    }

    .bill-due-alert,
    .bill-renewal-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .bill-pay-button {
        width: 100%;
    }

    .bill-summary-card strong {
        font-size: 19px;
    }
}

/* =========================================================
   END NEXAROOT MY BILLS & INVOICES
   ========================================================= */


/* =========================================================
   MY BILLS - TOP ALIGNMENT FIX

/* TEMP BILLS LAYOUT TEST */
body.bills-page .portal-shell {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-height: 100vh !important;
}

body.bills-page .portal-sidebar {
    flex: 0 0 var(--sidebar-width) !important;
    width: var(--sidebar-width) !important;
}

body.bills-page .portal-main {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   MY BILLS - PAYMENT HISTORY PAGINATION
   ========================================================= */

.bills-page .bill-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.bills-page .bill-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
}

.bills-page .bill-page-button,
.bills-page .bill-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.bills-page .bill-page-button:hover,
.bills-page .bill-page-number:hover {
    border-color: #f97316;
    color: #f97316;
}

.bills-page .bill-page-number.active {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

@media (max-width: 640px) {
    .bills-page .bill-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bills-page .bill-page-numbers {
        order: -1;
        width: 100%;
        flex: 0 0 100%;
    }
}


/* =========================================================
   MY PLAN - FINAL CATEGORY + SPEED ACCORDION LAYOUT
   ========================================================= */

.myplan-category-tabs {
    float: left;
    width: 210px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 24px 24px 0;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
}

.myplan-category-tab {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all .18s ease;
}

.myplan-category-tab:hover {
    background: #fff7ed;
    color: #ea580c;
}

.myplan-category-tab.active {
    background: #f97316;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(249, 115, 22, .20);
}

.myplan-plan-grid {
    display: block;
    margin-left: 234px;
    min-width: 0;
}

.myplan-speed-group {
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .035);
}

.myplan-speed-toggle {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border: 0;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.myplan-speed-toggle:hover {
    background: #fff7ed;
    color: #ea580c;
}

.myplan-speed-group.is-open {
    border-color: #fed7aa;
}

.myplan-speed-group.is-open .myplan-speed-toggle {
    background: #fff7ed;
    color: #ea580c;
}

.myplan-speed-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}

.myplan-speed-group.is-open .myplan-speed-arrow {
    background: #ffedd5;
    color: #ea580c;
}

.myplan-speed-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.myplan-speed-plans .myplan-plan-card {
    width: auto;
    min-width: 0;
}

.myplan-speed-plans .myplan-plan-card:hover {
    transform: translateY(-2px);
}

.myplan-plan-grid::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 900px) {

    .myplan-category-tabs {
        float: none;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 0 0 16px;
    }

    .myplan-category-tab {
        width: auto;
        flex: 1 1 140px;
        text-align: center;
    }

    .myplan-plan-grid {
        margin-left: 0;
    }

    .myplan-speed-plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .myplan-category-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .myplan-category-tab {
        width: 100%;
        min-height: 42px;
        padding: 0 10px;
        font-size: 13px;
    }

    .myplan-speed-toggle {
        min-height: 54px;
        padding: 0 15px;
    }

    .myplan-speed-plans {
        padding: 10px;
    }
}


/* =========================================================
   COMPACT PLAN CARDS
   ========================================================= */

.myplan-speed-plans {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: #f8fafc;
}

.myplan-speed-plans .myplan-plan-card {
    flex: 0 0 300px;
    width: 300px;
    min-height: 0;
    height: auto;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .05);
}

.myplan-speed-plans .myplan-plan-card h3 {
    margin: 12px 0 6px;
    font-size: 16px;
}

.myplan-speed-plans .myplan-card-top {
    min-height: 36px;
}

.myplan-speed-plans .myplan-small-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 17px;
}

.myplan-speed-plans .myplan-current-badge {
    padding: 4px 8px;
    font-size: 8px;
}

.myplan-speed-plans .myplan-recommended {
    top: -10px;
    padding: 4px 10px;
    font-size: 9px;
}

.myplan-speed-plans .myplan-card-price {
    margin-bottom: 12px;
}

.myplan-speed-plans .myplan-card-price strong {
    font-size: 21px;
}

.myplan-speed-plans .myplan-card-price span {
    font-size: 10px;
}

.myplan-speed-plans .myplan-card-features {
    gap: 5px;
    margin-bottom: 10px;
}

.myplan-speed-plans .myplan-card-features > div {
    min-height: 25px;
    grid-template-columns: 22px 1fr auto;
}

.myplan-speed-plans .feature-symbol {
    font-size: 15px;
}

.myplan-speed-plans .myplan-card-features strong {
    font-size: 12px;
}

.myplan-speed-plans .myplan-card-features small {
    font-size: 9px;
}

.myplan-speed-plans .myplan-card-description {
    min-height: 0;
    margin-bottom: 10px;
    font-size: 11px;
}

.myplan-speed-plans .myplan-plan-button {
    min-height: 38px;
    border-radius: 9px;
    font-size: 12px;
}

@media (max-width: 600px) {

    .myplan-speed-plans {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .myplan-speed-plans .myplan-plan-card {
        width: 100%;
        flex: none;
    }
}


/* Compact plan card - vertical feature layout */
.myplan-speed-plans .myplan-card-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.myplan-speed-plans .myplan-card-features > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-height: auto;
}

.myplan-speed-plans .myplan-card-features > div .feature-symbol {
    display: none;
}

.myplan-speed-plans .myplan-card-features > div strong {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
}

.myplan-speed-plans .myplan-card-features > div span {
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}



/* =========================================================
   NEXAROOT CUSTOMER SIDEBAR - MENU TEXT VISIBILITY FIX
   ========================================================= */

.portal-sidebar .portal-menu-item {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.portal-sidebar .portal-menu-item > span:not(.menu-icon) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    color: inherit !important;
}

.portal-sidebar .portal-menu-item .menu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    min-width: 28px !important;
    margin-right: 10px !important;
    white-space: nowrap !important;
}

.portal-sidebar .portal-menu-item:not(.active) {
    color: var(--text, #0f172a) !important;
}

.portal-sidebar .portal-menu-item.active {
    color: inherit !important;
}



/* =========================================================
   DATA TOP-UP SIDEBAR MENU
   Keep visible in both active and inactive states
   ========================================================= */

.portal-sidebar .data-topup-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 46px !important;
    padding: 0 13px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: #657086 !important;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap !important;
}

.portal-sidebar .data-topup-menu-item .menu-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    color: inherit !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.portal-sidebar .data-topup-menu-item .menu-label {
    display: inline-block !important;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    opacity: 1 !important;
    visibility: visible !important;
    white-space: nowrap !important;
}

.portal-sidebar .data-topup-menu-item:hover {
    color: var(--text) !important;
    background: #f7f8fa !important;
}

.portal-sidebar .data-topup-menu-item.active {
    color: var(--primary) !important;
    background: var(--primary-soft) !important;
}


/* =========================================================
   DATA TOP-UP - COMPACT CARD STYLE
   ========================================================= */

.topup-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 14px !important;
    margin-top: 14px !important;
}

.topup-card {
    min-height: 210px !important;
    padding: 17px !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 12px rgba(16,24,40,.05) !important;
}

.topup-card::before {
    height: 2px !important;
}

.topup-card h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
}

.topup-data {
    margin: 15px 0 3px !important;
    font-size: 27px !important;
    letter-spacing: -.5px !important;
}

.topup-price {
    margin-top: 8px !important;
    font-size: 18px !important;
}

.topup-meta {
    margin-top: 10px !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
}

.topup-card form {
    padding-top: 14px !important;
}

.topup-card .btn.full {
    min-height: 38px !important;
    font-size: 12px !important;
    border-radius: 9px !important;
}

/* Make the section itself feel compact */
.portal-content .dashcard {
    border-radius: 16px;
}

.portal-content .dashcard .section-head h2 {
    font-size: 17px !important;
    margin: 2px 0 3px !important;
}

.portal-content .dashcard .section-head p {
    font-size: 11px !important;
}

/* Desktop: compact plan cards */
@media (min-width: 1000px) {
    .topup-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Tablet */
@media (min-width: 701px) and (max-width: 999px) {
    .topup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .topup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .topup-card {
        min-height: 195px !important;
        padding: 14px !important;
    }

    .topup-data {
        font-size: 24px !important;
    }

    .topup-price {
        font-size: 16px !important;
    }
}

