#plans {
    position: relative;
    overflow: hidden;
    background: #f4f7fb !important;
}

#plans::before,
#plans::after {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    content: '';
    filter: blur(1px);
    pointer-events: none;
}

#plans::before {
    top: -280px;
    left: -180px;
    background: rgba(14, 165, 233, 0.1);
}

#plans::after {
    right: -220px;
    bottom: -300px;
    background: rgba(99, 102, 241, 0.08);
}

#plans > .container {
    position: relative;
    z-index: 1;
}

#plans .section-title {
    letter-spacing: -0.04em;
}

#plans .section-subtitle {
    max-width: 600px;
    margin-right: auto;
    margin-left: auto;
}

#plans .plans-filter-tabs {
    width: fit-content !important;
    max-width: 100%;
    margin: 0 auto 42px !important;
    padding: 6px !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

#plans .filter-tab-btn {
    min-height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none;
}

#plans .filter-tab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

#plans .filter-tab-btn.active {
    border: 0;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

#plans .plans-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

#plans .plan-tile {
    --plan-accent: #0284c7;
    --plan-accent-dark: #075985;
    --plan-soft: #e0f2fe;
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #dce5ef;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#plans .plan-tile.tenure-quarterly {
    --plan-accent: #7c3aed;
    --plan-accent-dark: #5b21b6;
    --plan-soft: #f3e8ff;
}

#plans .plan-tile.tenure-biannual {
    --plan-accent: #ea580c;
    --plan-accent-dark: #9a3412;
    --plan-soft: #ffedd5;
}

#plans .plan-tile.tenure-annual {
    --plan-accent: #059669;
    --plan-accent-dark: #047857;
    --plan-soft: #d1fae5;
}

#plans .plan-tile.tier-basic {
    --plan-accent: #7c3aed;
    --plan-accent-dark: #5b21b6;
    --plan-soft: #f3e8ff;
}

#plans .plan-tile.tier-plus {
    --plan-accent: #ea580c;
    --plan-accent-dark: #9a3412;
    --plan-soft: #ffedd5;
}

#plans .plan-tile.tier-elite {
    --plan-accent: #059669;
    --plan-accent-dark: #047857;
    --plan-soft: #d1fae5;
}

#plans .plan-tile:hover {
    transform: translateY(-7px);
    border-color: color-mix(in srgb, var(--plan-accent) 45%, #dce5ef);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

#plans .plan-tile.is-featured {
    border-color: var(--plan-accent);
    box-shadow: 0 20px 55px color-mix(in srgb, var(--plan-accent) 18%, transparent);
}

#plans .plan-tile__hero {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 26px 26px 28px;
    background: linear-gradient(145deg, var(--plan-accent-dark), var(--plan-accent));
    color: #ffffff;
}

#plans .plan-tile__hero::before,
#plans .plan-tile__hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: '';
}

#plans .plan-tile__hero::before {
    top: -74px;
    right: -52px;
    width: 190px;
    height: 190px;
}

#plans .plan-tile__hero::after {
    right: 36px;
    bottom: -76px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.07);
}

#plans .plan-tile__topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#plans .plan-tile__type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#plans .plan-tile__type-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

#plans .plan-tile__type-icon svg {
    width: 16px;
    height: 16px;
}

#plans .plan-tile__featured {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

#plans .plan-tile__name {
    position: relative;
    z-index: 1;
    max-width: 230px;
    margin: 27px 0 18px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

#plans .plan-tile__price {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
}

#plans .plan-tile__amount {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
}

#plans .plan-tile__period {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 600;
}

#plans .plan-tile__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 26px;
}

#plans .plan-tile__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

#plans .plan-tile__fact {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e5ebf2;
    border-radius: 13px;
    background: #f8fafc;
}

#plans .plan-tile__fact span {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#plans .plan-tile__fact strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#plans .plan-tile__benefits-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

#plans .plan-tile__benefits {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

#plans .plan-tile__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #eef2f7;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

#plans .plan-tile__benefits li:last-child {
    border-bottom: 0;
}

#plans .plan-tile__benefits svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: 50%;
    background: var(--plan-soft);
    color: var(--plan-accent-dark);
    box-sizing: border-box;
}

#plans .plan-tile__empty-benefits {
    flex: 1;
    margin: 0 0 24px;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

#plans .plan-tile__action {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding: 0 18px;
    border: 0;
    border-radius: 15px;
    background: #0f172a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.17);
    transition: transform 0.25s ease, background 0.25s ease;
}

#plans .plan-tile__action:hover {
    transform: translateY(-2px);
    background: var(--plan-accent-dark);
}

#plans .plan-tile__action-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
}

#plans .plan-tile__action-icon svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    #plans {
        padding: 56px 0 !important;
    }

    #plans > .container {
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    #plans .plans-filter-tabs {
        width: 100% !important;
        margin-bottom: 28px !important;
        overflow-x: auto;
        scrollbar-width: none;
    }

    #plans .plans-filter-tabs::-webkit-scrollbar {
        display: none;
    }

    #plans .filter-tab-btn {
        flex: 1 0 auto;
        padding: 0 15px;
    }

    #plans .plans-grid-modern {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    #plans .plan-tile {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        border-radius: 22px;
    }

    #plans .plan-tile:hover {
        transform: none;
    }

    #plans .plan-tile__hero {
        min-height: 196px;
        padding: 22px;
    }

    #plans .plan-tile__name {
        margin: 24px 0 16px;
        font-size: 20px;
    }

    #plans .plan-tile__amount {
        font-size: 32px;
    }

    #plans .plan-tile__body {
        padding: 22px;
    }
}

@media (max-width: 390px) {
    #plans .plan-tile__facts {
        grid-template-columns: 1fr;
    }
}
