.ew-page {
    min-height: 100vh;
    padding: 44px 0 72px;
    background:
        radial-gradient(circle at 12% 2%, rgba(20, 184, 166, 0.18), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(59, 130, 246, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef9ff 46%, #ffffff 100%);
    color: #0f172a;
}

.ew-hero {
    display: block;
    margin-bottom: 28px;
}

.ew-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #0284c7;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ew-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #08111f;
    font-size: 52px;
    font-weight: 950;
    line-height: 1.02;
}

.ew-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.7;
}

.ew-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

.ew-main {
    display: grid;
    gap: 18px;
}

.ew-step,
.ew-summary-card {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 28px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 20px 54px rgba(15, 23, 42, .08);
    backdrop-filter: blur(16px);
}

.ew-step {
    padding: 24px;
}

.ew-step-head,
.ew-step-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ew-step-head--split {
    justify-content: space-between;
    gap: 20px;
}

.ew-step-head > span,
.ew-step-title > span {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 950;
}

.ew-step h2 {
    margin: 0;
    color: #08111f;
    font-size: 25px;
    font-weight: 950;
}

.ew-step p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.ew-search {
    position: relative;
    margin-top: 18px;
}

.ew-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    color: #94a3b8;
    transform: translateY(-50%);
}

.ew-search input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 44px;
    border: 1.5px solid #dbeafe;
    border-radius: 18px;
    color: #0f172a;
    background: #fff;
    font-size: 15px;
    font-weight: 800;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ew-search input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .14);
}

.ew-search-hint {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.ew-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 32px;
}

.ew-selected button,
.ew-empty-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.ew-empty-chip {
    background: #f1f5f9;
    color: #64748b;
}

.ew-country-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    max-height: 324px;
    overflow: auto;
    padding-right: 4px;
}

.ew-country-grid.is-empty {
    display: none;
}

.ew-country {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    color: #0f172a;
    text-align: left;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.ew-country:hover {
    transform: translateY(-1px);
    border-color: #7dd3fc;
}

.ew-country.is-active {
    border-color: #10b981;
    background: #ecfdf5;
}

.ew-country img,
.ew-country > span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.ew-country > span {
    display: grid;
    place-items: center;
    color: #475569;
    font-size: 10px;
    font-weight: 900;
}

.ew-country strong {
    overflow: hidden;
    color: inherit;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ew-days {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.ew-days > input[type="range"] {
    width: 100%;
    accent-color: #0284c7;
}

.ew-days-direct {
    display: grid;
    grid-template-columns: 1fr 130px;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #fff;
}

.ew-days-direct span {
    color: #475569;
    font-size: 13px;
    font-weight: 950;
}

.ew-days-direct input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eff6ff;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
    text-align: center;
}

.ew-days-meta {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.ew-days-meta button {
    min-height: 36px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #fff;
    color: #0369a1;
    font-size: 12px;
    font-weight: 950;
}

.ew-days-live {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
}

.ew-days-live span {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 900;
}

.ew-days-live strong {
    font-size: 22px;
    font-weight: 950;
}

.ew-mode-tabs,
.ew-tier-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #eff6ff;
}

.ew-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    min-width: 330px;
}

.ew-mode-tabs button,
.ew-tier-wrap button {
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #475569;
    font-weight: 950;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.ew-mode-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

.ew-mode-tabs button.is-active,
.ew-tier-wrap button.is-active {
    background: #0284c7;
    color: #fff;
    box-shadow: 0 10px 22px rgba(2, 132, 199, .22);
}

.ew-page--standard .ew-mode-tabs button.is-active {
    background: #10b981;
    box-shadow: 0 10px 22px rgba(16, 185, 129, .22);
}

.ew-tier-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 18px;
}

.ew-tier-wrap button {
    min-height: 64px;
    padding: 9px 10px;
}

.ew-tier-wrap strong,
.ew-tier-wrap span {
    display: block;
}

.ew-tier-wrap strong {
    font-size: 14px;
}

.ew-tier-wrap span {
    margin-top: 2px;
    font-size: 11px;
}

.ew-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #fde68a;
    border-radius: 18px;
    background: #fffbeb;
    color: #92400e;
}

.ew-note i {
    margin-top: 2px;
}

.ew-note p {
    margin: 0;
    color: inherit;
}

.ew-results-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.ew-results-head strong {
    color: #0f172a;
    font-weight: 950;
}

.ew-results-head span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.ew-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.ew-plan,
.ew-empty {
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
}

.ew-plan {
    position: relative;
    min-width: 0;
    min-height: 184px;
    padding: 16px;
    color: #0f172a;
    text-align: left;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ew-plan:hover {
    transform: translateY(-2px);
    border-color: #7dd3fc;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}

.ew-plan.is-active {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #fff 68%);
    box-shadow: 0 14px 32px rgba(16, 185, 129, .12);
}

.ew-plan-radio {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    color: transparent;
    background: #fff;
}

.ew-plan.is-active .ew-plan-radio {
    border-color: #10b981;
    background: #10b981;
    color: #fff;
}

.ew-plan-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 36px);
}

.ew-plan-tags em {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-style: normal;
    font-size: 11px;
    font-weight: 950;
}

.ew-plan-tags .ew-phone {
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    background: #dcfce7;
    color: #166534;
}

.ew-plan strong,
.ew-plan small,
.ew-plan b {
    display: block;
}

.ew-plan strong {
    margin-top: 12px;
    padding-right: 30px;
    color: #08111f;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.25;
}

.ew-plan small {
    min-height: 38px;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.ew-plan b {
    margin-top: 12px;
    color: #08111f;
    font-size: 24px;
    font-weight: 950;
}

.ew-plan-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.ew-plan-foot span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ew-coverage-link {
    cursor: pointer;
    color: #0369a1;
}

.ew-coverage-link:hover {
    text-decoration: underline;
}

.ew-empty {
    grid-column: 1 / -1;
    padding: 28px;
    color: #64748b;
    text-align: center;
    font-weight: 800;
}

.ew-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 1.5px solid #dbeafe;
    border-radius: 16px;
    background: #fff;
    color: #0369a1;
    font-size: 14px;
    font-weight: 950;
    transition: border-color .16s ease, transform .16s ease;
}

.ew-load-more:hover {
    transform: translateY(-1px);
    border-color: #38bdf8;
}

.ew-load-more[hidden] {
    display: none;
}

.ew-summary {
    position: sticky;
    top: 88px;
}

.ew-summary-card {
    overflow: hidden;
}

.ew-summary-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #07111f, #0f766e);
    color: #fff;
}

.ew-summary-top span {
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ew-summary-top strong {
    font-size: 24px;
    font-weight: 950;
    white-space: nowrap;
}

.ew-summary-card h3 {
    margin: 0;
    padding: 20px 22px 0;
    color: #08111f;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.2;
}

.ew-summary-card p {
    margin: 8px 0 0;
    padding: 0 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.ew-summary-list {
    margin: 18px 22px 0;
    padding: 0;
    list-style: none;
}

.ew-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid #f1f5f9;
}

.ew-summary-list span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.ew-summary-list strong {
    max-width: 210px;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    text-align: right;
    text-overflow: ellipsis;
}

.ew-summary-link {
    max-width: 100%;
    border: 0;
    background: transparent;
    color: #0369a1;
    font: inherit;
    font-weight: 950;
    text-align: right;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ew-summary-alert {
    margin: 18px 22px 0;
    padding: 13px 14px;
    border-radius: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
}

.ew-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 44px);
    min-height: 56px;
    margin: 18px 22px 22px;
    border: 0;
    border-radius: 18px;
    background: #10b981;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 18px 34px rgba(16, 185, 129, .24);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.ew-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(16, 185, 129, .30);
}

.ew-buy:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.ew-help {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.ew-help a,
.ew-help details {
    min-height: 128px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.ew-help i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 12px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0369a1;
}

.ew-help strong,
.ew-help summary {
    display: block;
    color: #08111f;
    font-size: 16px;
    font-weight: 950;
}

.ew-help summary {
    cursor: pointer;
    list-style: none;
}

.ew-help summary::-webkit-details-marker {
    display: none;
}

.ew-help span,
.ew-help p {
    display: block;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

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

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

.ew-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .54);
    backdrop-filter: blur(8px);
}

.ew-modal__panel {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(760px, 88vh);
    overflow: auto;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(15, 23, 42, .28);
}

.ew-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #475569;
}

.ew-modal h3 {
    margin: 0;
    padding-right: 46px;
    color: #08111f;
    font-size: 24px;
    font-weight: 950;
}

.ew-modal p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

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

.ew-modal__list span,
.ew-modal__list em {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
}

.ew-modal__list--rich {
    display: block;
}

.ew-refund-block {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.ew-refund-block strong {
    display: block;
    margin-top: 14px;
    color: #0f172a;
    font-weight: 950;
}

.ew-refund-block ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.ew-refund-block li + li {
    margin-top: 5px;
}

.ew-refund-block a {
    display: inline-flex;
    margin-top: 16px;
    color: #10b981;
    font-weight: 950;
    text-decoration: none;
}

.ew-refund-block a:hover {
    text-decoration: underline;
}

@media (max-width: 1199px) {
    .ew-shell {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .ew-country-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ew-page {
        padding-top: 30px;
    }

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

    .ew-hero h1 {
        font-size: 40px;
    }

    .ew-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .ew-step {
        padding: 18px;
        border-radius: 22px;
    }

    .ew-step.is-mobile-searching {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 200000;
        max-height: 100dvh;
        overflow: auto;
        padding: calc(8px + env(safe-area-inset-top)) 10px 14px;
        border-color: #dbeafe;
        border-radius: 0 0 24px 24px;
        background: #ffffff;
        box-shadow: 0 22px 60px rgba(15, 23, 42, .24);
    }

    .ew-step.is-mobile-searching .ew-country-grid {
        max-height: min(46vh, 360px);
    }

    .ew-step-head--split {
        display: grid;
    }

    .ew-mode-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

    .ew-country-grid,
    .ew-plan-grid {
        grid-template-columns: 1fr;
    }

    .ew-days-meta {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ew-help {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .ew-page {
        padding: 22px 0 54px;
    }

    .ew-hero h1 {
        font-size: 32px;
    }

    .ew-hero p {
        font-size: 15px;
    }

    .ew-tier-wrap {
        grid-template-columns: 1fr;
    }

    .ew-results-head,
    .ew-summary-list li {
        display: grid;
    }

    .ew-summary-list strong {
        text-align: left;
    }

    .ew-summary-link {
        text-align: left;
    }

    .ew-mode-tabs button {
        padding: 0 10px;
    }

    .ew-modal__list {
        grid-template-columns: 1fr;
    }
}
