/* Mobile Recharge — approved banking-style layout. Scoped to this page only. */
body[data-page="mobile"] {
    --mc-blue: #075ce8;
    --mc-blue-bright: #0b6cff;
    --mc-navy: #031d52;
    --mc-ink: #071b3b;
    --mc-muted: #60718d;
    --mc-line: #dce7f5;
    --mc-pale: #eef7ff;
    --mc-white: #ffffff;
    background: #eef8ff;
    color: var(--mc-ink);
}

body[data-page="mobile"] .mobile-console {
    width: 100%;
    min-height: 70vh;
    padding: 0 8px 32px;
    color: var(--mc-ink);
}

body[data-page="mobile"] .mobile-console-hero {
    width: min(1500px, 100%);
    min-height: 190px;
    margin: 0 auto;
    padding: 20px clamp(26px, 5vw, 70px);
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    align-items: center;
    gap: 26px;
    position: relative;
    overflow: hidden;
    border: 1px solid #cfe0f4;
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background:
        radial-gradient(circle at 86% 3%, rgba(255, 255, 255, 0.95) 0 52px, transparent 53px),
        radial-gradient(circle at 92% 99%, transparent 0 92px, rgba(7, 92, 232, 0.07) 93px 132px, transparent 133px),
        linear-gradient(125deg, #f8fcff 0%, #eaf5ff 55%, #ddecff 100%);
    box-shadow: 0 15px 36px rgba(10, 54, 112, 0.1);
}

body[data-page="mobile"] .mobile-console-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(140deg, transparent 0 74%, rgba(255, 255, 255, 0.36) 74.2% 75%, transparent 75.2%),
        radial-gradient(circle at 63% 28%, rgba(7, 108, 255, 0.07) 0 4px, transparent 5px);
}

body[data-page="mobile"] .mobile-console-hero__icon {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    overflow: visible;
    border: 1px solid #d5e4f5;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(16, 64, 128, 0.15);
}

body[data-page="mobile"] .mobile-console-hero__icon img {
    width: 112px;
    height: 112px;
    object-fit: contain;
    filter: drop-shadow(0 10px 13px rgba(0, 70, 190, 0.13));
}

body[data-page="mobile"] .mobile-console-hero__content {
    min-width: 0;
    position: relative;
    z-index: 1;
}

body[data-page="mobile"] .mobile-console-hero .badge {
    display: none !important;
}

body[data-page="mobile"] .mobile-console-hero h1 {
    margin: 0 0 13px;
    color: var(--mc-ink);
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

body[data-page="mobile"] .mobile-console-hero p:not(.badge) {
    max-width: 720px;
    margin: 0 0 16px;
    display: block;
    color: #516582;
    font-size: 0.9rem;
    font-weight: 550;
    line-height: 1.5;
}

body[data-page="mobile"] .mobile-console-type {
    width: min(305px, 100%);
    min-height: 46px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #d5e1f0 !important;
    border-radius: 12px;
    background: #fff !important;
    box-shadow: 0 7px 16px rgba(12, 55, 117, 0.08);
}

body[data-page="mobile"] .mobile-console-type .toggle-pill {
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

body[data-page="mobile"] .mobile-console-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body[data-page="mobile"] .mobile-console-type span {
    height: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #31405e;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 750;
}

body[data-page="mobile"] .mobile-console-type span::before {
    content: "";
    width: 15px;
    height: 15px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
}

body[data-page="mobile"] .mobile-console-type input:checked + span {
    color: #fff !important;
    background: linear-gradient(135deg, var(--mc-blue-bright), #0046d5) !important;
    box-shadow: 0 8px 20px rgba(7, 92, 232, 0.24) !important;
}

body[data-page="mobile"] .mobile-console-type input:checked + span::before {
    border: 4px solid #fff;
}

body[data-page="mobile"] .service-form {
    width: min(1420px, calc(100% - 64px));
    margin: 0 auto;
    padding: 20px 0 0 !important;
    display: grid !important;
    grid-template-columns: minmax(420px, 1fr) minmax(500px, 1.1fr) !important;
    gap: 14px;
    align-items: stretch;
}

body[data-page="mobile"] .form-card,
body[data-page="mobile"] .plan-panel,
body[data-page="mobile"] .info-card {
    animation: none !important;
    border: 1px solid var(--mc-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 28px rgba(11, 49, 100, 0.09);
}

body[data-page="mobile"] .form-card {
    min-height: 0;
    height: auto;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
}

body[data-page="mobile"] .mobile-console-form-title {
    display: none;
}

body[data-page="mobile"] .mobile-console-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body[data-page="mobile"] .mobile-console-step {
    padding: 17px 0;
    border: 0;
    border-bottom: 1px solid #e4ecf7;
    border-radius: 0;
    background: transparent;
}

body[data-page="mobile"] .mobile-console-review {
    border-bottom: 0;
}

body[data-page="mobile"] .mobile-console-step__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px;
}

body[data-page="mobile"] .mobile-console-step__title > span {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, var(--mc-blue-bright), #0046d5);
    box-shadow: 0 7px 14px rgba(7, 92, 232, 0.22);
    font-size: 0.78rem;
    font-weight: 850;
}

body[data-page="mobile"] .mobile-console-step__title h3 {
    margin: 0;
    color: var(--mc-ink);
    font-size: 0.96rem;
    font-weight: 800;
}

body[data-page="mobile"] .mobile-console-form label {
    min-width: 0;
    color: #263956;
    font-size: 0.72rem;
    font-weight: 700;
}

body[data-page="mobile"] .mobile-console-form input,
body[data-page="mobile"] .mobile-console-form select {
    width: 100%;
    min-height: 49px;
    margin-top: 7px;
    padding: 0 14px;
    border: 1px solid #bfd3eb;
    border-radius: 11px;
    outline: 0;
    color: var(--mc-ink) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%) !important;
    font-size: 0.79rem;
    font-weight: 650;
    opacity: 1;
    box-shadow: inset 0 1px 2px rgba(8, 41, 87, 0.025), 0 4px 11px rgba(16, 67, 128, 0.045);
}

body[data-page="mobile"] .mobile-console-form input::placeholder {
    color: #75849a;
    opacity: 1;
}

body[data-page="mobile"] .mobile-console-form input:focus,
body[data-page="mobile"] .mobile-console-form select:focus {
    border-color: var(--mc-blue) !important;
    box-shadow: 0 0 0 3px rgba(7, 92, 232, 0.1) !important;
}

body[data-page="mobile"] .mobile-console-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

body[data-page="mobile"] .amount-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

body[data-page="mobile"] .amount-row label {
    grid-column: auto;
}

body[data-page="mobile"] .check-plans-btn {
    grid-column: auto;
    justify-self: end;
    min-width: 106px !important;
    min-height: 49px !important;
    padding: 0.55rem 0.8rem !important;
    border: 1px solid var(--mc-blue) !important;
    border-radius: 11px !important;
    color: var(--mc-blue) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%) !important;
    box-shadow: 0 5px 13px rgba(7, 92, 232, 0.09) !important;
    font-size: 0.73rem !important;
    font-weight: 800 !important;
}

body[data-page="mobile"] .check-plans-btn:hover,
body[data-page="mobile"] .check-plans-btn:focus-visible {
    color: #fff !important;
    background: linear-gradient(135deg, var(--mc-blue-bright), #0048d8) !important;
    box-shadow: 0 8px 18px rgba(7, 92, 232, 0.2) !important;
}

body[data-page="mobile"] .input-note {
    min-height: 0;
    margin-top: 4px;
    font-size: 0.65rem;
}

body[data-page="mobile"] .mobile-plan-selected {
    margin: 9px 0 0;
    color: #0756cd;
    font-size: 0.7rem;
    font-weight: 700;
}

body[data-page="mobile"] .mobile-plan-selected > span {
    width: 17px;
    height: 17px;
    margin-right: 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--mc-blue);
}

body[data-page="mobile"] .mobile-recharge-summary {
    display: grid;
    grid-template-columns: 1.05fr 1fr 0.8fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--mc-line);
    border-radius: 7px;
    background: #fff;
}

body[data-page="mobile"] .mobile-recharge-summary > span,
body[data-page="mobile"] .mobile-recharge-summary__operator {
    min-width: 0;
    min-height: 55px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-right: 1px solid #e2eaf5;
    border-radius: 0;
    background: #fff;
}

body[data-page="mobile"] .mobile-recharge-summary__operator {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    order: 2;
}

body[data-page="mobile"] .mobile-recharge-summary__mobile-cell {
    order: 1;
}

body[data-page="mobile"] .mobile-recharge-summary__amount-cell {
    order: 3;
    border-right: 0 !important;
}

body[data-page="mobile"] .mobile-recharge-summary__data-cell,
body[data-page="mobile"] .mobile-recharge-summary__validity-cell {
    display: none;
}

body[data-page="mobile"] .mobile-recharge-summary small {
    display: block;
    margin-bottom: 3px;
    color: #73819a;
    font-size: 0.58rem;
}

body[data-page="mobile"] .mobile-recharge-summary strong {
    display: block;
    overflow: hidden;
    color: var(--mc-ink);
    font-size: 0.73rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="mobile"] .operator-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #d7e3f2;
    border-radius: 8px;
    color: var(--mc-blue);
    background: #f5faff;
    font-size: 0.78rem;
    font-weight: 900;
}

body[data-page="mobile"] .operator-logo img {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
}

body[data-page="mobile"] .mobile-console-review .payment-controls {
    margin-top: 10px;
}

body[data-page="mobile"] .mobile-console-review .payment-controls .btn,
body[data-page="mobile"] .mobile-console .btn.primary {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    border: 0 !important;
    border-radius: 11px !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--mc-blue-bright), #0048d8) !important;
    box-shadow: 0 9px 18px rgba(7, 92, 232, 0.24) !important;
    font-size: 0.86rem;
    font-weight: 800;
}

body[data-page="mobile"] .mobile-console .btn.primary:disabled,
body[data-page="mobile"] .mobile-console .btn.primary.is-disabled {
    opacity: 0.58;
}

body[data-page="mobile"] .support-column {
    min-width: 0;
    height: auto;
    position: relative;
}

body[data-page="mobile"] .plan-panel {
    width: 100%;
    height: 100%;
    min-height: 490px;
    max-height: 640px;
    margin: 0;
    padding: 17px;
    border-radius: 12px;
    overflow: hidden;
    flex-direction: column;
}

body[data-page="mobile"] .plan-panel-mobile-brand {
    display: none;
}

body[data-page="mobile"] .plan-panel-header {
    min-height: 42px;
    padding: 0 2px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 0;
}

body[data-page="mobile"] .plan-panel-header strong {
    color: var(--mc-ink);
    font-size: 1rem;
    font-weight: 850;
}

body[data-page="mobile"] .plan-panel-meta {
    display: none;
}

body[data-page="mobile"] .plan-panel-close {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #71809a;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
}

body[data-page="mobile"] .plan-panel-body {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0 3px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

body[data-page="mobile"] .plan-panel-empty {
    min-height: 375px;
    padding: 32px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #c9d9ed;
    border-radius: 12px;
    color: var(--mc-muted);
    background: linear-gradient(145deg, #fff, #f5faff);
}

body[data-page="mobile"] .plan-panel-empty__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

body[data-page="mobile"] .plan-panel-empty__logos img {
    width: 48px;
    height: 48px;
    margin-left: -7px;
    padding: 5px;
    object-fit: contain;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 5px 14px rgba(11, 49, 100, 0.14);
}

body[data-page="mobile"] .plan-panel-empty h3 {
    margin: 0 0 7px;
    color: var(--mc-ink);
    font-size: 1.05rem;
}

body[data-page="mobile"] .plan-panel-empty p {
    max-width: 320px;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
}

body[data-page="mobile"] .plan-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
    padding: 2px 0 8px;
    overflow-x: auto;
    border: 0;
    background: #fff;
    scrollbar-width: none;
}

body[data-page="mobile"] .plan-tabs::-webkit-scrollbar {
    display: none;
}

body[data-page="mobile"] .plan-tab {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid #d9e4f2;
    border-radius: 10px;
    color: #31405f;
    background: #fff;
    font-size: 0.7rem;
    font-weight: 750;
}

body[data-page="mobile"] .plan-tab.active {
    border-color: var(--mc-blue);
    color: #fff;
    background: linear-gradient(135deg, var(--mc-blue-bright), #0048d8);
}

body[data-page="mobile"] .plan-result-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body[data-page="mobile"] .plan-result-table-empty {
    padding: 30px 18px;
    border: 1px dashed #c9d9ed;
    border-radius: 10px;
    color: var(--mc-muted);
    background: #f8fbff;
    text-align: center;
}

body[data-page="mobile"] .plan-result-row {
    padding: 11px 12px;
    display: block;
    border: 1px solid #dce6f3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(8, 43, 94, 0.045);
}

body[data-page="mobile"] .mobile-plan-row-head {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(130px, 1.15fr) minmax(62px, 0.5fr) minmax(225px, 1.55fr) auto;
    align-items: center;
    gap: 10px;
}

body[data-page="mobile"] .plan-price-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

body[data-page="mobile"] .plan-operator-logo {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    padding: 3px;
    object-fit: contain;
    border: 1px solid #d9e4f1;
    border-radius: 50%;
    background: #fff;
}

body[data-page="mobile"] .plan-price-brand > strong,
body[data-page="mobile"] .mobile-plan-amount strong {
    overflow: hidden;
    color: var(--mc-ink);
    font-size: 0.82rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="mobile"] .mobile-plan-amount strong {
    font-size: 0.86rem;
}

body[data-page="mobile"] .mobile-plan-metrics {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page="mobile"] .mobile-plan-metrics > span {
    min-width: 0;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid #e2e9f3;
    text-align: center;
}

body[data-page="mobile"] .mobile-plan-metrics strong {
    max-width: 100%;
    overflow: hidden;
    color: #172844;
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="mobile"] .mobile-plan-metrics small {
    margin-top: 2px;
    color: #75849d;
    font-size: 0.56rem;
}

body[data-page="mobile"] .plan-action-block {
    margin: 0;
}

body[data-page="mobile"] .plan-action-block .btn {
    min-width: 66px;
    min-height: 34px;
    padding: 0.45rem 0.65rem !important;
    border: 1px solid var(--mc-blue) !important;
    border-radius: 10px !important;
    color: var(--mc-blue) !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 0.66rem;
    font-weight: 800;
}

body[data-page="mobile"] .plan-row-desc {
    margin: 8px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #6a7890;
    font-size: 0.64rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

body[data-page="mobile"] .plan-panel-loading {
    padding: 38px 16px;
    color: var(--mc-blue);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 750;
}

body[data-page="mobile"] .info-card {
    min-height: 490px;
    padding: 24px;
    border-radius: 12px;
}

@media (min-width: 821px) {
    body[data-page="mobile"] .plan-panel.is-desktop-ready:not([hidden]) {
        display: flex !important;
    }

    body[data-page="mobile"] .plan-panel.is-desktop-ready:not([hidden]) + .info-card {
        display: none;
    }
}

@media (max-width: 1060px) {
    body[data-page="mobile"] .service-form {
        width: min(980px, calc(100% - 28px));
        grid-template-columns: minmax(360px, 0.95fr) minmax(430px, 1.05fr) !important;
    }

    body[data-page="mobile"] .mobile-console-fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    body[data-page="mobile"] .amount-row label {
        grid-column: auto;
    }

    body[data-page="mobile"] .check-plans-btn {
        grid-column: auto;
    }

    body[data-page="mobile"] .mobile-plan-row-head {
        grid-template-columns: minmax(115px, 1fr) 60px minmax(190px, 1.4fr) auto;
        gap: 7px;
    }
}

@media (max-width: 820px) {
    body.plan-panel-open {
        overflow: hidden !important;
    }

    body[data-page="mobile"] .mobile-console {
        padding: 0 0 22px;
    }

    body[data-page="mobile"] .mobile-console-hero {
        min-height: 158px;
        padding: 15px 18px;
        grid-template-columns: 78px minmax(0, 1fr) !important;
        gap: 14px;
        border-radius: 0;
        box-shadow: none;
    }

    body[data-page="mobile"] .mobile-console-hero__icon {
        width: 76px;
        height: 76px;
    }

    body[data-page="mobile"] .mobile-console-hero__icon img {
        width: 68px;
        height: 68px;
    }

    body[data-page="mobile"] .mobile-console-hero h1 {
        margin-bottom: 5px;
        font-size: clamp(1.35rem, 6vw, 1.8rem) !important;
        overflow: visible;
        white-space: normal;
    }

    body[data-page="mobile"] .mobile-console-hero p:not(.badge) {
        margin-bottom: 10px;
        font-size: 0.68rem;
        line-height: 1.35;
    }

    body[data-page="mobile"] .mobile-console-type {
        width: min(260px, 100%);
        min-height: 40px;
    }

    body[data-page="mobile"] .mobile-console-type span {
        min-height: 40px;
        font-size: 0.76rem;
    }

    body[data-page="mobile"] .service-form {
        width: 100%;
        padding: 12px 10px 0 !important;
        display: block !important;
    }

    body[data-page="mobile"] .form-card {
        padding: 0 14px;
        border-radius: 10px;
    }

    body[data-page="mobile"] .mobile-console-step {
        padding: 17px 0;
    }

    body[data-page="mobile"] .mobile-console-fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    body[data-page="mobile"] .amount-row label {
        grid-column: auto;
    }

    body[data-page="mobile"] .check-plans-btn {
        grid-column: auto;
    }

    body[data-page="mobile"] .mobile-recharge-summary {
        grid-template-columns: 1.25fr 0.7fr 0.9fr 0.8fr;
    }

    body[data-page="mobile"] .mobile-recharge-summary__operator {
        order: 1;
    }

    body[data-page="mobile"] .mobile-recharge-summary__mobile-cell {
        display: none;
    }

    body[data-page="mobile"] .mobile-recharge-summary__amount-cell {
        order: 2;
        border-right: 1px solid #e2eaf5 !important;
    }

    body[data-page="mobile"] .mobile-recharge-summary__data-cell {
        display: flex;
        order: 3;
    }

    body[data-page="mobile"] .mobile-recharge-summary__validity-cell {
        display: flex;
        order: 4;
        border-right: 0;
    }

    body[data-page="mobile"] .support-column {
        margin: 0;
    }

    body[data-page="mobile"] .support-column > .info-card {
        display: none !important;
    }

    body[data-page="mobile"] .plan-panel,
    body[data-page="mobile"] .plan-panel.is-desktop-ready {
        display: none;
    }

    body[data-page="mobile"] .plan-panel.is-visible {
        position: fixed !important;
        inset: var(--mobile-plan-top, 0px) 0 0 !important;
        z-index: 10020 !important;
        width: 100vw !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 14px 12px max(14px, env(safe-area-inset-bottom)) !important;
        display: flex !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        box-shadow: 0 -12px 28px rgba(0, 27, 77, 0.14) !important;
    }

    body[data-page="mobile"] .plan-panel-mobile-brand {
        display: none !important;
    }

    body[data-page="mobile"] .plan-panel-header {
        align-items: center;
        padding: 0 5px 10px;
        border-bottom: 1px solid #e3eaf4;
    }

    body[data-page="mobile"] .plan-panel-header > div {
        flex: 1;
        text-align: center;
    }

    body[data-page="mobile"] .plan-panel-header strong {
        display: block;
        font-size: 1.08rem;
    }

    body[data-page="mobile"] .plan-panel-meta {
        margin-top: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: #647390;
        font-size: 0.66rem;
    }

    body[data-page="mobile"] .plan-panel-close {
        position: absolute;
        right: 12px;
        top: 11px;
    }

    body[data-page="mobile"] .plan-panel-body {
        padding-top: 11px;
    }

    body[data-page="mobile"] .plan-panel-empty {
        min-height: 58vh;
    }

    body[data-page="mobile"] .mobile-plan-row-head {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
    }

    body[data-page="mobile"] .mobile-plan-metrics {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 7px;
        padding-top: 9px;
        border-top: 1px solid #e5ebf4;
    }

    body[data-page="mobile"] .mobile-plan-metrics > span:first-child {
        border-left: 0;
    }

    body[data-page="mobile"] .plan-row-desc {
        display: none;
    }
}

@media (max-width: 440px) {
    body[data-page="mobile"] .mobile-console-hero {
        padding-inline: 12px;
        grid-template-columns: 70px minmax(0, 1fr) !important;
        gap: 10px;
    }

    body[data-page="mobile"] .mobile-console-hero__icon {
        width: 68px;
        height: 68px;
    }

    body[data-page="mobile"] .mobile-console-hero__icon img {
        width: 61px;
        height: 61px;
    }

    body[data-page="mobile"] .mobile-console-type span {
        font-size: 0.7rem;
    }

    body[data-page="mobile"] .form-card {
        padding-inline: 12px;
    }

    body[data-page="mobile"] .mobile-console-step__title {
        margin-bottom: 13px;
    }

    body[data-page="mobile"] .mobile-console-form input,
    body[data-page="mobile"] .mobile-console-form select {
        min-height: 45px;
        padding-inline: 9px;
        font-size: 0.72rem;
    }

    body[data-page="mobile"] .mobile-recharge-summary > span,
    body[data-page="mobile"] .mobile-recharge-summary__operator {
        min-height: 52px;
        padding: 7px;
    }

    body[data-page="mobile"] .operator-logo {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    body[data-page="mobile"] .mobile-recharge-summary small {
        font-size: 0.52rem;
    }

    body[data-page="mobile"] .mobile-recharge-summary strong {
        font-size: 0.65rem;
    }

    body[data-page="mobile"] .plan-result-row {
        padding: 11px 10px;
    }

    body[data-page="mobile"] .plan-price-brand {
        gap: 7px;
    }

    body[data-page="mobile"] .plan-operator-logo {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }

    body[data-page="mobile"] .plan-price-brand > strong,
    body[data-page="mobile"] .mobile-plan-amount strong {
        font-size: 0.76rem;
    }
}

@media (max-width: 350px) {
    body[data-page="mobile"] .mobile-console-hero__icon {
        display: none;
    }

    body[data-page="mobile"] .mobile-console-hero {
        grid-template-columns: 1fr !important;
    }

    body[data-page="mobile"] .mobile-console-fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    body[data-page="mobile"] .amount-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
    }

    body[data-page="mobile"] .check-plans-btn {
        min-width: 88px !important;
        padding-inline: 0.55rem !important;
    }
}

/* Continuous recharge form: compact, icon-led and free of numbered steps. */
body[data-page="mobile"] .form-card {
    padding: 20px 20px 18px;
    gap: 18px;
    border-radius: 16px;
}

body[data-page="mobile"] .mobile-console-form-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

body[data-page="mobile"] .mobile-console-form-head__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--mc-blue);
    background: linear-gradient(145deg, #f7fbff, #e7f2ff);
    border: 1px solid #d7e7fa;
    box-shadow: 0 6px 14px rgba(7, 92, 232, 0.1);
}

body[data-page="mobile"] .mobile-console-form-head__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body[data-page="mobile"] .mobile-console-form-head h2 {
    margin: 0;
    color: var(--mc-ink);
    font-size: 1rem;
    font-weight: 850;
}

body[data-page="mobile"] .mobile-console-form-head p {
    margin: 4px 0 0;
    color: #6b7d95;
    font-size: 0.72rem;
    line-height: 1.35;
}

body[data-page="mobile"] .mobile-console-form {
    gap: 0;
}

body[data-page="mobile"] .mobile-console-block {
    padding: 0;
    border: 0;
    background: transparent;
}

body[data-page="mobile"] .mobile-console-block--plan,
body[data-page="mobile"] .mobile-console-block--review {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #dce7f4;
}

body[data-page="mobile"] .mobile-console-fields {
    gap: 12px 14px;
}

body[data-page="mobile"] .mobile-console-form label {
    color: #203650;
    font-size: 0.7rem;
    font-weight: 750;
}

body[data-page="mobile"] .mobile-console-form input,
body[data-page="mobile"] .mobile-console-form select {
    margin-top: 7px;
}

body[data-page="mobile"] .input-note:empty {
    display: none;
}

body[data-page="mobile"] .mobile-recharge-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-color: #d6e3f2;
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff, #f9fcff);
    box-shadow: 0 4px 12px rgba(16, 67, 128, 0.05);
}

body[data-page="mobile"] .mobile-recharge-summary > span,
body[data-page="mobile"] .mobile-recharge-summary__operator {
    min-height: 62px;
    padding: 10px 12px;
    display: flex !important;
    order: initial !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    border-right: 1px solid #e0e9f4 !important;
    background: transparent;
}

body[data-page="mobile"] .mobile-recharge-summary > :nth-last-child(2) {
    border-right: 0 !important;
}

body[data-page="mobile"] .mobile-recharge-summary__operator .operator-logo,
body[data-page="mobile"] .mobile-recharge-summary__validity-cell {
    display: none !important;
}

body[data-page="mobile"] .mobile-recharge-summary__operator > span {
    min-width: 0;
    width: 100%;
}

body[data-page="mobile"] .mobile-recharge-summary__operator {
    order: 1 !important;
}

body[data-page="mobile"] .mobile-recharge-summary__mobile-cell {
    order: 2 !important;
}

body[data-page="mobile"] .mobile-recharge-summary__data-cell {
    order: 3 !important;
}

body[data-page="mobile"] .mobile-recharge-summary__amount-cell {
    order: 4 !important;
    border-right: 0 !important;
}

body[data-page="mobile"] .mobile-recharge-summary small {
    margin-bottom: 5px;
    color: #74849a;
    font-size: 0.57rem;
}

body[data-page="mobile"] .mobile-recharge-summary strong {
    max-width: 100%;
    color: #102a48;
    font-size: 0.7rem;
    font-weight: 800;
}

body[data-page="mobile"] .mobile-console-review .payment-controls {
    margin-top: 14px;
}

body[data-page="mobile"] .mobile-console-review .payment-controls .btn {
    min-height: 48px;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #075ea9, #05366f 58%, #041f46) !important;
    box-shadow: 0 8px 18px rgba(4, 48, 101, 0.22) !important;
}

body[data-page="mobile"] .mobile-secure-note {
    margin: 9px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6f8097;
    font-size: 0.65rem;
    font-weight: 650;
}

body[data-page="mobile"] .mobile-secure-note svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 820px) {
    body[data-page="mobile"] .form-card {
        padding: 17px 14px 15px;
        border-radius: 13px;
    }

    body[data-page="mobile"] .mobile-console-form-head__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    body[data-page="mobile"] .mobile-console-block--plan,
    body[data-page="mobile"] .mobile-console-block--review {
        margin-top: 15px;
        padding-top: 15px;
    }

    body[data-page="mobile"] .mobile-recharge-summary__mobile-cell {
        display: flex !important;
    }
}

@media (max-width: 520px) {
    body[data-page="mobile"] .mobile-recharge-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="mobile"] .mobile-recharge-summary > span,
    body[data-page="mobile"] .mobile-recharge-summary__operator {
        min-height: 52px;
        padding: 8px 10px;
    }

    body[data-page="mobile"] .mobile-recharge-summary > :nth-child(2) {
        border-right: 0 !important;
    }

    body[data-page="mobile"] .mobile-recharge-summary > :nth-child(-n + 2) {
        border-bottom: 1px solid #e0e9f4;
    }
}

/* Premium plan browser: sticky, arrow-controlled categories and aligned offer cards. */
body[data-page="mobile"] .plan-panel-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

body[data-page="mobile"] .plan-panel-count {
    color: #75859c;
    font-size: 0.66rem;
    font-weight: 700;
}

body[data-page="mobile"] .plan-panel-body {
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 94, 120, 0.5) transparent;
}

body[data-page="mobile"] .plan-panel-body::-webkit-scrollbar {
    width: 7px;
}

body[data-page="mobile"] .plan-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

body[data-page="mobile"] .plan-panel-body::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(74, 94, 120, 0.48);
    background-clip: padding-box;
}

body[data-page="mobile"] .plan-tabs-shell {
    position: sticky;
    top: 0;
    z-index: 8;
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    padding: 3px 1px 9px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 7px 12px -11px rgba(8, 43, 94, 0.6);
}

body[data-page="mobile"] .plan-tabs-shell::before,
body[data-page="mobile"] .plan-tabs-shell::after {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 9px;
    z-index: 2;
    width: 18px;
    pointer-events: none;
}

body[data-page="mobile"] .plan-tabs-shell::before {
    left: 39px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0));
}

body[data-page="mobile"] .plan-tabs-shell::after {
    right: 39px;
    background: linear-gradient(270deg, #ffffff, rgba(255, 255, 255, 0));
}

body[data-page="mobile"] .plan-tabs-nav {
    position: relative;
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #c9dbf1;
    border-radius: 50%;
    color: var(--mc-blue);
    background: linear-gradient(180deg, #ffffff, #f2f8ff);
    box-shadow: 0 4px 10px rgba(7, 72, 160, 0.1);
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

body[data-page="mobile"] .plan-tabs-nav svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body[data-page="mobile"] .plan-tabs-nav:not(:disabled):hover,
body[data-page="mobile"] .plan-tabs-nav:not(:disabled):focus-visible {
    border-color: var(--mc-blue);
    color: #ffffff;
    background: linear-gradient(135deg, var(--mc-blue-bright), #0048d8);
    box-shadow: 0 7px 15px rgba(7, 92, 232, 0.22);
    transform: translateY(-1px);
    outline: 0;
}

body[data-page="mobile"] .plan-tabs-nav:disabled {
    opacity: 0.38;
    cursor: default;
    box-shadow: none;
}

body[data-page="mobile"] .plan-tabs {
    position: relative;
    top: auto;
    z-index: 1;
    min-width: 0;
    margin: 0;
    padding: 1px 9px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
    cursor: grab;
    background: transparent;
}

body[data-page="mobile"] .plan-tabs:active {
    cursor: grabbing;
}

body[data-page="mobile"] .plan-tab {
    min-height: 35px;
    padding: 7px 13px;
    scroll-snap-align: center;
    border: 1px solid #c9dbf1;
    border-radius: 999px;
    color: #203a5c;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(8, 43, 94, 0.04);
    font-size: 0.68rem;
    font-weight: 780;
}

body[data-page="mobile"] .plan-tab:hover,
body[data-page="mobile"] .plan-tab:focus-visible {
    border-color: var(--mc-blue);
    color: var(--mc-blue);
    outline: 0;
}

body[data-page="mobile"] .plan-tab.active {
    border-color: var(--mc-blue);
    color: #ffffff;
    background: linear-gradient(135deg, var(--mc-blue-bright), #0048d8);
    box-shadow: 0 6px 13px rgba(7, 92, 232, 0.2);
}

body[data-page="mobile"] .plan-result-table {
    gap: 10px;
}

body[data-page="mobile"] .plan-result-row {
    overflow: hidden;
    padding: 12px 13px 10px;
    border-color: #d9e5f2;
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(8, 43, 94, 0.055);
}

body[data-page="mobile"] .mobile-plan-row-head {
    grid-template-columns: minmax(92px, 1fr) minmax(58px, 0.55fr) minmax(155px, 1.5fr) 78px;
    gap: 8px;
}

body[data-page="mobile"] .plan-operator-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

body[data-page="mobile"] .mobile-plan-amount strong {
    font-size: 0.9rem;
}

body[data-page="mobile"] .mobile-plan-metrics > span {
    padding-inline: 6px;
}

body[data-page="mobile"] .mobile-plan-metrics strong {
    font-size: 0.66rem;
}

body[data-page="mobile"] .plan-action-block .btn {
    width: 100%;
    min-width: 74px;
    min-height: 35px;
    border-radius: 11px !important;
}

body[data-page="mobile"] .plan-row-desc {
    margin-top: 9px;
    padding-top: 8px;
    display: -webkit-box;
    border-top: 1px solid #e8eef6;
    color: #667791;
    font-size: 0.62rem;
    line-height: 1.42;
    -webkit-line-clamp: 2;
}

@media (max-width: 820px) {
    body[data-page="mobile"] .plan-panel-title-row {
        justify-content: center;
    }

    body[data-page="mobile"] .plan-tabs-shell {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 5px;
    }

    body[data-page="mobile"] .plan-tabs-nav {
        width: 34px;
        height: 34px;
    }

    body[data-page="mobile"] .plan-tabs-shell::before {
        left: 36px;
    }

    body[data-page="mobile"] .plan-tabs-shell::after {
        right: 36px;
    }

    body[data-page="mobile"] .mobile-plan-row-head {
        grid-template-columns: minmax(0, 1fr) auto 80px;
        gap: 8px;
    }

    body[data-page="mobile"] .plan-price-brand {
        grid-column: 1;
        grid-row: 1;
    }

    body[data-page="mobile"] .mobile-plan-amount {
        grid-column: 2;
        grid-row: 1;
    }

    body[data-page="mobile"] .plan-action-block {
        grid-column: 3;
        grid-row: 1;
    }

    body[data-page="mobile"] .mobile-plan-metrics {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 7px;
        padding-top: 8px;
        border-top: 1px solid #e6edf6;
    }

    body[data-page="mobile"] .plan-row-desc {
        display: -webkit-box !important;
    }
}

@media (max-width: 420px) {
    body[data-page="mobile"] .plan-result-row {
        padding-inline: 10px;
    }

    body[data-page="mobile"] .plan-operator-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    body[data-page="mobile"] .plan-price-brand > strong {
        font-size: 0.72rem;
    }

    body[data-page="mobile"] .plan-action-block .btn {
        min-width: 68px;
        padding-inline: 0.5rem !important;
    }
}

/* Phone layout: center the recharge card with equal safe gutters. */
@media (max-width: 820px) {
    body[data-page="mobile"] .mobile-console {
        width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
    }

    body[data-page="mobile"] .service-form {
        width: 100% !important;
        max-width: 600px !important;
        margin-right: auto !important;
        margin-left: auto !important;
        padding: 12px max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left)) !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
    }

    body[data-page="mobile"] .service-form > .form-card,
    body[data-page="mobile"] .service-form > .support-column {
        width: min(100%, 560px) !important;
        max-width: 560px !important;
        margin-right: auto !important;
        margin-left: auto !important;
        box-sizing: border-box;
    }

    body[data-page="mobile"] .mobile-console-form,
    body[data-page="mobile"] .mobile-console-block,
    body[data-page="mobile"] .mobile-console-fields,
    body[data-page="mobile"] .amount-row {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 520px) {
    body[data-page="mobile"] .mobile-console-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    body[data-page="mobile"] .amount-row {
        grid-column: 1;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body[data-page="mobile"] .operator-field,
    body[data-page="mobile"] .amount-row label {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    body[data-page="mobile"] .service-form {
        padding-right: max(9px, env(safe-area-inset-right)) !important;
        padding-left: max(9px, env(safe-area-inset-left)) !important;
    }

    body[data-page="mobile"] .amount-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body[data-page="mobile"] .check-plans-btn {
        width: 100%;
        min-width: 0 !important;
        justify-self: stretch;
    }
}

/* Compact recharge form + wide, branded plan browser. */
body[data-page="mobile"] .plan-panel-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

body[data-page="mobile"] .plan-panel-operator-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #d3e2f1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 13px rgba(8, 60, 122, 0.11);
}

body[data-page="mobile"] .plan-panel-operator-mark[hidden] {
    display: none !important;
}

body[data-page="mobile"] .plan-panel-operator-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

body[data-page="mobile"] .plan-panel-heading {
    min-width: 0;
    display: block;
}

body[data-page="mobile"] .plan-panel-meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: #687b94;
    font-size: 0.65rem;
    font-weight: 650;
}

body[data-page="mobile"] .mobile-recharge-summary__operator {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

body[data-page="mobile"] .mobile-recharge-summary__operator .operator-logo {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid !important;
}

body[data-page="mobile"] .mobile-plan-amount {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

body[data-page="mobile"] .mobile-plan-amount small {
    color: #75849d;
    font-size: 0.56rem;
}

body[data-page="mobile"] .plan-category-results {
    min-width: 0;
}

@media (min-width: 821px) {
    body[data-page="mobile"] .service-form {
        width: min(1460px, calc(100% - 42px));
        grid-template-columns: minmax(340px, 380px) minmax(0, 1fr) !important;
        gap: 18px;
        align-items: start;
    }

    body[data-page="mobile"] .form-card {
        width: 100%;
    }

    body[data-page="mobile"] .support-column,
    body[data-page="mobile"] .plan-panel,
    body[data-page="mobile"] .info-card {
        width: 100%;
    }

    body[data-page="mobile"] .plan-panel {
        min-height: 560px;
        max-height: 680px;
    }

    body[data-page="mobile"] .info-card {
        min-height: 490px;
    }
}

@media (min-width: 821px) and (max-width: 1060px) {
    body[data-page="mobile"] .service-form {
        width: min(1030px, calc(100% - 28px));
        grid-template-columns: minmax(330px, 365px) minmax(0, 1fr) !important;
        gap: 13px;
    }

    body[data-page="mobile"] .mobile-plan-row-head {
        grid-template-columns: minmax(100px, 1fr) minmax(58px, 0.55fr) minmax(155px, 1.45fr) 72px;
    }
}

@media (max-width: 820px) {
    body[data-page="mobile"] .plan-panel-identity {
        flex: 1;
        justify-content: center;
        padding-right: 34px;
    }

    body[data-page="mobile"] .plan-panel-heading {
        text-align: left;
    }

    body[data-page="mobile"] .plan-panel-meta {
        justify-content: flex-start;
    }

    body[data-page="mobile"] .plan-panel-operator-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    body[data-page="mobile"] .plan-panel-body,
    body[data-page="mobile"] .plan-category-results,
    body[data-page="mobile"] .plan-result-table {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body[data-page="mobile"] .mobile-plan-row-head {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) minmax(56px, auto) 74px !important;
    }

    body[data-page="mobile"] .plan-price-brand {
        grid-column: 1;
        grid-row: 1;
    }

    body[data-page="mobile"] .mobile-plan-amount {
        grid-column: 2;
        grid-row: 1;
    }

    body[data-page="mobile"] .plan-action-block {
        min-width: 0;
        grid-column: 3;
        grid-row: 1;
    }

    body[data-page="mobile"] .plan-action-block .btn {
        width: 100%;
        min-width: 0;
    }

    body[data-page="mobile"] .mobile-plan-metrics {
        min-width: 0;
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* AK MOBILE PLAN OVERLAY START
   A child z-index cannot escape main's z-index:1 stacking context.
   Elevate main only while the mobile plan panel is actually open. Keep the
   original DOM and plan/payment handlers; desktop stays an inline panel. */
@media (max-width: 820px) {
    body[data-page="mobile"]:has(#plan-panel.is-visible:not([hidden])) > main.mobile-console {
        z-index: 10030 !important;
    }
    html:has(body[data-page="mobile"] #plan-panel.is-visible:not([hidden])),
    body[data-page="mobile"]:has(#plan-panel.is-visible:not([hidden])) {
        overflow: hidden !important;
    }
    body[data-page="mobile"] #plan-panel.is-visible:not([hidden]) {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        max-height: none !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    body[data-page="mobile"] #plan-panel.is-visible:not([hidden]) .plan-panel-header {
        flex: 0 0 auto !important;
        min-width: 0;
    }
    body[data-page="mobile"] #plan-panel.is-visible:not([hidden]) .plan-panel-identity {
        padding-right: 0 !important;
        min-width: 0;
    }
    body[data-page="mobile"] #plan-panel.is-visible:not([hidden]) .plan-panel-close {
        position: static !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
    }
    body[data-page="mobile"] #plan-panel.is-visible:not([hidden]) .plan-panel-body {
        flex: 1 1 0% !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}
/* AK MOBILE PLAN OVERLAY END */
