/* Tariff cards: stable alignment and restrained premium accents. */
.plans__plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 27px 18px 18px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.plans__plan:hover {
    border-color: #c9c1f7;
    box-shadow: 0 12px 30px rgba(52, 45, 102, .075);
}

.plans__plan--featured {
    border: 2px solid var(--plans-primary);
    padding: 26px 17px 17px;
    box-shadow: 0 8px 32px rgba(103, 86, 200, .11);
}

.plans__plan--featured:hover {
    border-color: var(--plans-primary);
    box-shadow: 0 12px 34px rgba(103, 86, 200, .15);
}

/* Annual plan: understated premium tier with a clear value proposition. */
.plans__plan--annual {
    isolation: isolate;
    overflow: hidden;
    padding: 26px 17px 17px;
    border: 2px solid #ddba73;
    background: linear-gradient(165deg, #fffdf8 0%, #fff 42%, #fffcf5 100%);
    box-shadow: 0 9px 28px rgba(89, 52, 126, .095), 0 0 0 1px rgba(221, 186, 115, .1);
}

.plans__plan--annual:hover {
    border-color: #ca9a48;
    box-shadow: 0 13px 32px rgba(89, 52, 126, .13), 0 0 0 1px rgba(221, 186, 115, .18);
}

.plans__plan--annual::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 72px;
    background: linear-gradient(113deg, #412775, #6036a1 62%, #77509e);
    border-bottom: 1px solid rgba(245, 209, 126, .45);
    pointer-events: none;
}

.plans__plan--annual::after {
    content: '';
    position: absolute;
    top: -26px;
    right: -60px;
    width: 180px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 215, 153, .22), transparent 68%);
    pointer-events: none;
}

.plans__annual-heading {
    position: absolute;
    top: 8px;
    right: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    color: #fff;
    text-align: center;
    pointer-events: none;
}

.plans__annual-heading>span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.plans__annual-heading i {
    color: #f5cc74;
    font-size: 16px;
}

.plans__annual-heading small {
    color: #e9dff7;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 500;
}

.plans__plan-label {
    position: absolute;
    top: -14px;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: calc(100% - 20px);
    padding: 7px 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--plans-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(103, 86, 200, .16);
}

.plans__gift-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    margin-bottom: 9px;
}

/* The gift overlaps the annual banner without shifting pricing rows. */
.plans__plan--annual .plans__gift-slot {
    position: relative;
    z-index: 3;
    align-items: flex-end;
    min-height: 74px;
    margin-bottom: -1px;
}

.plans__gift-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    max-width: 250px;
    min-height: 47px;
    padding: 4px 11px 4px 4px;
    border: 1px solid #e1d8fa;
    border-radius: 999px;
    background: linear-gradient(105deg, #f7f2ff 0%, #fffdf7 45%, #f1eafd 70%, #f7f2ff 100%);
    background-size: 220% 100%;
    color: #5843ad;
    box-shadow: 0 5px 15px rgba(105, 86, 175, .075);
    animation: plansGiftGlow 7s ease-in-out infinite;
}

.plans__gift-banner--annual {
    border-color: #f1dfbd;
    background: linear-gradient(105deg, #fff8e9 0%, #fffdf8 45%, #fff1d2 70%, #fff8e9 100%);
    background-size: 220% 100%;
    color: #8b6222;
}

/* Warm gold finish on the annual gift; the original slow animation stays. */
.plans__plan--annual .plans__gift-banner--annual {
    min-height: 47px;
    border-color: #eac16b;
    background: linear-gradient(105deg, #fff8e5 0%, #fffdf7 35%, #fbe2ab 70%, #fff9ec 100%);
    background-size: 220% 100%;
    color: #805018;
    box-shadow: 0 6px 16px rgba(121, 80, 35, .13);
}

.plans__gift-banner::after {
    content: '✦';
    position: absolute;
    top: -9px;
    right: 9px;
    color: #d1a95a;
    font-size: 14px;
    opacity: .2;
    pointer-events: none;
    animation: plansGiftSparkle 7s ease-in-out infinite;
}

.plans__gift-banner span {
    position: relative;
    z-index: 1;
    min-width: 0;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
    text-align: left;
    overflow-wrap: anywhere;
}

.plans__gift-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    overflow: visible;
    filter: drop-shadow(0 4px 3px rgba(89, 64, 151, .15));
    animation: plansGiftFloat 7s ease-in-out infinite;
}

.plans__gift-shadow {
    fill: rgba(57, 39, 105, .10);
}

.plans__gift-box {
    fill: #8e79e8;
}

.plans__gift-lid {
    fill: #6850cc;
}

.plans__gift-ribbon {
    fill: #f4c46d;
}

.plans__gift-bow {
    fill: none;
    stroke: #eab24a;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.plans__gift-banner--annual .plans__gift-box {
    fill: #b8a0f1;
}

.plans__gift-banner--annual .plans__gift-lid {
    fill: #8a72d9;
}

@keyframes plansGiftFloat {

    0%,
    76%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    80% {
        transform: translateY(-3px) rotate(-5deg);
    }

    86% {
        transform: translateY(-4px) rotate(3deg);
    }

    92% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes plansGiftGlow {

    0%,
    70%,
    100% {
        background-position: 0% 50%;
    }

    90% {
        background-position: 100% 50%;
    }
}

@keyframes plansGiftSparkle {

    0%,
    74%,
    100% {
        opacity: .2;
        transform: scale(.8);
    }

    83% {
        opacity: .95;
        transform: scale(1.15);
    }
}

.plans__plan-intro {
    min-height: 111px;
}

.plans__plan h3 {
    margin: 0 0 14px;
    color: var(--plans-text);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.plans__plan-price {
    color: #141b37;
    font-size: clamp(25px, 2.3vw, 33px);
    line-height: 1.16;
    letter-spacing: -.035em;
    font-weight: 800;
    white-space: nowrap;
}

.plans__plan--featured .plans__plan-price {
    color: #5f4dd0;
}

.plans__plan--annual .plans__plan-price {
    color: #482682;
}

.plans__plan--annual .plans__per-month {
    color: #735a94;
    font-weight: 700;
}

.plans__per-month {
    margin: 7px 0 0;
    color: #838ba4;
    font-size: 11px;
}

.plans__value-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 78px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    background: #f8f9fd;
    text-align: left;
}

.plans__value-panel--saving {
    border-color: #e5defa;
    background: linear-gradient(120deg, #faf9ff, #f3efff);
}

.plans__value-compare,
.plans__value-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-width: 0;
}

.plans__value-compare {
    color: #8288a0;
    font-size: 10px;
    line-height: 1.4;
}

.plans__value-compare del {
    flex: 0 0 auto;
    color: #8c92a8;
    font-weight: 600;
    white-space: nowrap;
}

.plans__value-result {
    color: #5d4ac6;
    font-size: 11px;
    font-weight: 700;
}

.plans__value-panel--saving .plans__value-result {
    padding-top: 8px;
    border-top: 1px solid #e3def0;
}

.plans__value-result>span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.plans__value-result strong {
    flex: 0 0 auto;
    color: #5945c3;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.plans__value-result--base {
    color: #747d99;
    font-weight: 600;
}

.plans__value-result--base strong {
    color: #374261;
    font-size: 13px;
}

/* Annual savings are the strongest financial argument, not a fake discount. */
.plans__plan--annual .plans__value-panel--saving {
    position: relative;
    border-color: #60409a;
    background: linear-gradient(120deg, #43257d 0%, #6340a0 76%, #744da2 100%);
    box-shadow: 0 6px 17px rgba(78, 43, 137, .16);
}

.plans__plan--annual .plans__value-compare,
.plans__plan--annual .plans__value-compare del {
    color: #e0d6ef;
}

.plans__plan--annual .plans__value-panel--saving .plans__value-result {
    border-top-color: rgba(255, 255, 255, .23);
    color: #fff;
}

.plans__plan--annual .plans__value-result>span i {
    color: #f5d28a;
}

.plans__plan--annual .plans__value-result strong {
    color: #ffdf92;
    font-size: 21px;
}

.plans__benefits {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 152px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.plans__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #000;
    font-size: 12px;
    line-height: 1.45;
}

.plans__benefits i {
    flex: 0 0 13px;
    color: #15934e;
    font-size: 14px;
    line-height: 1.1;
}

.plans__payment-form {
    margin: auto 0 0;
    padding-top: 18px;
}

.plans__button--pay {
    display: flex;
    width: 100%;
    min-height: 45px;
    font-size: 13px;
}

.plans__plan--annual .plans__button--pay {
    border-color: rgba(246, 214, 147, .48);
    background: linear-gradient(110deg, #633cba, #522b98 70%, #6432a7);
    box-shadow: 0 7px 16px rgba(84, 47, 152, .16);
}

.plans__plan--annual .plans__button--pay:hover,
.plans__plan--annual .plans__button--pay:focus-visible {
    border-color: #dfbc77;
    background: linear-gradient(110deg, #5832aa, #442381 70%, #562793);
    box-shadow: 0 9px 20px rgba(84, 47, 152, .21);
}

.plans__bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr);
    gap: 16px;
    margin-top: 18px;
}

.plans__info-card {
    padding: 20px 22px;
}

.plans__info-card-main>div {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 5px;
}

.plans__info-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    margin-top: 19px;
    padding-top: 15px;
    border-top: 1px solid var(--plans-border);
}

.plans__info-foot>span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-size: 10px;
    line-height: 1.5;
}

.plans__info-foot>span i {
    color: #394566;
    font-size: 15px;
}

.plans__link {
    color: var(--plans-primary);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 700;
    text-decoration: none;
}

.plans__link:hover {
    color: var(--plans-primary-hover);
    text-decoration: underline;
}

.plans__info-card--safety {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
}

.plans__safety-icon {
    font-size: 20px;
}

.plans__info-card--safety strong {
    color: var(--plans-text);
    font-size: 13px;
    font-weight: 800;
}

.plans__info-card--safety p {
    margin: 0;
    color: var(--plans-muted);
    font-size: 11px;
    line-height: 1.55;
}

.plans__history {
    margin-top: 32px;
}

.plans__history .plans__section-head h2 i {
    margin-right: 7px;
    color: var(--plans-primary);
    font-size: 17px;
}

.plans__count-badge {
    padding: 6px 12px;
    color: var(--plans-primary);
    background: #f1edff;
}

.plans__table-wrap {
    overflow: hidden;
}

.plans__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 12px;
}

.plans__table th {
    padding: 15px 18px;
    border-bottom: 1px solid var(--plans-border);
    background: #f7f8fc;
    color: #5b6481;
    font-weight: 700;
    text-align: left;
}

.plans__table td {
    padding: 15px 18px;
    border-bottom: 1px solid #edf0f5;
    color: #000;
}

.plans__table tbody tr:last-child td {
    border-bottom: 0;
}

.plans__table tbody tr:nth-child(even) {
    background: #fbfcff;
}

.plans__table tbody tr:hover {
    background: #faf8ff;
}

.plans__table td strong {
    color: var(--plans-text);
    font-weight: 700;
}

.plans__status {
    padding: 5px 9px;
}

.plans__status--paid {
    color: #147c45;
    background: #e8f8ef;
}

.plans__status--pending {
    color: #9d6b12;
    background: #fff4dc;
}

.plans__empty {
    padding: 28px !important;
    color: var(--plans-muted) !important;
    text-align: center !important;
}

