.plans-page {
    min-height: 70vh;
    padding: 34px 0 84px;
    background:
        radial-gradient(circle at 8% 5%, rgba(201,164,93,.10), transparent 20%),
        radial-gradient(circle at 92% 15%, rgba(3,52,107,.08), transparent 24%),
        #f7f9fc;
}

.plans-shell { max-width: 1240px; }
.plans-back { margin-bottom: 22px; }
.plans-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #607188;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.plans-back a:hover { color: #03346b; }

.plans-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    padding: 32px 34px;
    margin-bottom: 18px;
    border: 1px solid rgba(3,52,107,.09);
    border-radius: 26px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 16px 40px rgba(3,52,107,.07);
}
.plans-eyebrow {
    margin: 0 0 9px;
    color: #9a7533;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
}
.plans-hero h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #03346b;
    font-size: clamp(28px,3.6vw,46px);
    line-height: 1.15;
}
.plans-hero__flag { font-size: .72em; }
.plans-condition-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}
.plans-condition-line span,
.plans-condition-line strong {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12px;
}
.plans-condition-line span { background: #eef3f8; color: #52657c; }
.plans-condition-line strong { background: #03346b; color: #fff; }

.plans-filter {
    flex: 0 1 660px;
    display: grid;
    grid-template-columns: repeat(3,minmax(150px,1fr));
    gap: 12px;
}
.plans-filter label {
    display: grid;
    min-width: 0;
    gap: 7px;
}
.plans-filter label > span {
    color: #6d7c8f;
    font-size: 11px;
    font-weight: 750;
}
.plans-filter select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 8px 38px 8px 14px;
    border-color: #d8e0e9;
    background-color: #fff;
    color: #03346b;
    font-weight: 750;
}


.plans-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 280px;
    gap: 26px;
    align-items: start;
}
.plans-results { min-width: 0; }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
}

.esim-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #dce5ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(3,52,107,.065);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.esim-card:hover {
    transform: translateY(-5px);
    border-color: rgba(3,52,107,.22);
    box-shadow: 0 20px 42px rgba(3,52,107,.12);
}
.esim-card--recommended {
    overflow: visible;
    border: 2px solid #c9a45d;
    background:
        linear-gradient(145deg,rgba(255,251,240,.96),#fff 45%);
    box-shadow: 0 18px 42px rgba(169,126,49,.16);
}
.esim-card--recommended::after {
    content: "";
    position: absolute;
    right: -54px;
    top: -54px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(201,164,93,.12);
    pointer-events: none;
}
.esim-card__best {
    position: absolute;
    z-index: 3;
    top: -11px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    margin: 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg,#a67d35,#c9a45d);
    color: #fff;
    box-shadow: 0 5px 13px rgba(166,125,53,.18);
    white-space: nowrap;
}
.esim-card__best span {
    font-size: 7px;
    letter-spacing: .13em;
    font-weight: 800;
    opacity: .9;
}
.esim-card__best strong {
    font-size: 9px;
}

.esim-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.esim-card__destination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-top: 5px;
    color: #465b73;
    font-size: 12px;
    font-weight: 750;
}
.esim-card__destination span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.esim-score {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 16px 26px;
    align-content: center;
    justify-content: center;
    column-gap: 2px;
    padding: 8px;
    border: 1px solid #d9e4ee;
    border-radius: 50%;
    background: #f5f8fb;
    color: #03346b;
    text-align: center;
}
.esim-score span { grid-column: 1/3; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.esim-score strong { align-self: end; font-size: 20px; line-height: 1; }
.esim-score small { align-self: end; color: #8290a0; font-size: 7px; }
.esim-score--best {
    border-color: rgba(201,164,93,.55);
    background: #fff8e9;
    color: #8b6629;
    box-shadow: 0 5px 18px rgba(201,164,93,.16);
}

.esim-card__spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 22px;
}
.esim-card__spec > div {
    min-width: 0;
    padding: 12px 10px;
    border-radius: 12px;
    background: #f4f7fa;
}
.esim-card__spec span { display: block; color: #93a0af; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.esim-card__spec strong { display: block; margin-top: 3px; color: #03346b; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.esim-card__spec strong small { margin-left: 2px; font-size: 11px; }

.esim-card__price {
    margin-top: 17px;
    text-align: center;
}
.esim-card__price > span {
    display: block;
    color: #8996a5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}
.esim-card__price-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-top: 2px;
}
.esim-card__price strong {
    color: #03346b;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 850;
}
.esim-card__price small {
    margin: 0;
    color: #8592a0;
    font-size: 9px;
    font-weight: 750;
}
.esim-card__button {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 8px 7px 8px 15px;
    border-radius: 999px;
    background: #03346b;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}
.esim-card__button:hover { background: #0a4a94; color: #fff; transform: translateY(-1px); }
.esim-card__button-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #c9a45d;
    color: #03346b;
    font-size: 14px;
}

.plans-sidebar { position: sticky; top: 96px; }
.recent-esim {
    overflow: hidden;
    border: 1px solid rgba(3,52,107,.10);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(3,52,107,.065);
}
.recent-esim__heading { padding: 20px 20px 16px; border-bottom: 1px solid #edf1f5; }
.recent-esim__heading p { margin: 0 0 4px; color: #a17b39; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.recent-esim__heading h2 { margin: 0; color: #03346b; font-size: 18px; }
.recent-esim__list { padding: 7px 12px 12px; }
.recent-esim__empty { margin: 0; padding: 14px 8px; color: #8b97a5; font-size: 11px; line-height: 1.7; }
.recent-esim__item {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid #edf1f5;
    color: inherit;
    text-decoration: none;
}
.recent-esim__item:last-child { border-bottom: 0; }
.recent-esim__item:hover { color: inherit; background: #f8fafc; }
.recent-esim__country { color: #748397; font-size: 10px; }
.recent-esim__spec { display: flex; gap: 6px; margin-top: 4px; color: #03346b; font-size: 13px; font-weight: 800; }
.recent-esim__price { margin-top: 5px; color: #56697f; font-size: 11px; }

.plans-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 28px; }
.plans-pagination a {
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #dce5ee;
    border-radius: 10px;
    background: #fff;
    color: #52657b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}
.plans-pagination a.is-current { border-color: #03346b; background: #03346b; color: #fff; }

.plans-empty {
    padding: 70px 24px;
    border: 1px solid #dce5ee;
    border-radius: 24px;
    background: #fff;
    text-align: center;
}
.plans-empty__mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eef3f8;
    color: #03346b;
    font-size: 24px;
    font-weight: 850;
}
.plans-empty h2 { margin: 0; font-size: 24px; }
.plans-empty p { max-width: 500px; margin: 12px auto 22px; color: #6c7b8e; font-size: 13px; }
.plans-empty__button { display: inline-flex; min-height: 46px; align-items: center; padding: 8px 20px; border-radius: 999px; background: #03346b; color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; }

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

@media (max-width: 980px) {
    .plans-layout { grid-template-columns: 1fr; }
    .plans-sidebar { display: none; }
    .plans-hero { align-items: stretch; flex-direction: column; gap: 20px; }
    .plans-filter {
        flex-basis: auto;
        width: 100%;
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 700px) {
    .plans-page { padding: 22px 0 58px; }
    .plans-back { margin-bottom: 14px; }
    .plans-hero { padding: 22px 18px; border-radius: 20px; }
    .plans-hero h1 { font-size: 28px; }
    .plans-condition-line { margin-top: 14px; }
    .plans-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .esim-card { min-height: 286px; padding: 12px; border-radius: 15px; }
    .esim-card__best { margin: -12px -12px 11px; padding: 7px 9px; }
    .esim-card__best span { display: none; }
    .esim-card__top { gap: 5px; }
    .esim-card__destination { font-size: 10px; }
    .esim-score { width: 54px; height: 54px; padding: 5px; grid-template-rows: 12px 20px; }
    .esim-score span { font-size: 7px; }
    .esim-score strong { font-size: 15px; }
    .esim-score small { display: none; }
    .esim-card__spec { gap: 5px; margin-top: 14px; }
    .esim-card__spec > div { padding: 9px 7px; }
    .esim-card__spec strong { font-size: 14px; }
    .esim-card__spec span { font-size: 7px; }
    .esim-card__price { margin-top: 12px; }
    .esim-card__price strong { display: block; font-size: 23px; overflow-wrap: anywhere; }
    .esim-card__price small { margin: 0; }
    .esim-card__button { min-height: 39px; padding-left: 11px; font-size: 10px; }
    .esim-card__button-icon { width: 25px; height: 25px; font-size: 11px; }
}

@media (max-width: 380px) {
    .plans-grid { gap: 7px; }
    .esim-card { padding: 10px; }
    .esim-card__best { margin: -10px -10px 9px; }
    .esim-card__destination span:first-child { display: none; }
    .esim-score { width: 49px; height: 49px; }
    .esim-card__spec strong { font-size: 13px; }
    .esim-card__button span:first-child { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .esim-card,
    .esim-card__button { transition: none; }
}


.esim-card--recommended::after {
    z-index: 0;
}

.esim-card--recommended > *:not(.esim-card__best) {
    position: relative;
    z-index: 1;
}


@media (max-width: 620px) {
    .plans-filter {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Confirmed network carrier information */
.plan-carrier-info,.ai-search-result__carrier{font-size:.88rem;line-height:1.55;font-weight:600;margin:10px 0 2px;overflow-wrap:anywhere;color:inherit}
.plan-carrier-note,.ai-search-result__carrier small{display:block;font-size:.75rem;line-height:1.5;margin:1px 0 8px;opacity:.78}
.ai-search-result__split-notice,.ai-split-notice{font-size:.86rem;line-height:1.5;margin:6px 0;color:#9a5119;font-weight:600}
