section h4 {
    font-size: 30px;
}

.plan-comparison {
    box-sizing: border-box;
    border-radius: var(--item-rad);
    position: relative;
    background: var(--primary-bg);
}

.plan-comparison:not(.plan-3) {
    border: 2px solid var(--secondary-bg);
}

.plan-comparison h5 {
    margin: var(--item-pdd) 0px;
}

.plan-comparison .col.active h5 {
    background: -webkit-linear-gradient(#f5c10c, #ffe37e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-comparison p {
    margin: calc(var(--item-pdd) / 2) 0px;
}
.plan-comparison .last-row p {
    margin-bottom: var(--item-pdd);
}

.plan-selector {
    padding: var(--item-pdd);
    display: flex;
    align-items: center;
}

.plan-selector span {
    flex: 1;
    font-weight: bold;
    font-size: 18px;
}

.plan-selector i {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-bg);
    border-radius: 100%;
    transition: .3s;
}
.plan-selector i:hover {
    cursor: pointer;
    background-color: var(--tertiary-bg);
}

.row {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.col {
    position: relative;
    width: 100%;
    display: none;
}

.plan-comparison.plan-1 .col:nth-child(2),
.plan-comparison.plan-2 .col:nth-child(3),
.plan-comparison.plan-3 .col:nth-child(4) {
    display: inline-table;
}

.plan-comparison.plan-3::after {
    content: '';
    position: absolute; 
    top: -2px;
    left: -2px;
    right: -2px; 
    bottom: -2px;
    z-index: -10;
    border-radius: inherit;
    background-image: linear-gradient(to right, #f5c10c, #fdf1c7);
    background-size: 400% 400%;
    animation: moveGlint 2s linear infinite alternate;
    box-shadow: 0px 0px 50px 1px rgba(245, 195, 12, 0.1);
}
.col:not(.active) {
    z-index: -100;
}
.col:first-child {
    text-align: left;
}

.col h5:first-child {
    display: none;
}

.col p {
    display: inline-block;
}
.col p:first-child {
    font-size: 14px;
    color: var(--secondary-font-clr);
    float: left;
    margin-left: var(--item-pdd);
}
.col p:last-child {
    float: right;
    margin-right: var(--item-pdd);
}

.plans {
    display: flex;
    flex-direction: column;
    gap: var(--item-pdd);
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.plan {
    flex: 1;
    max-width: 60vw;
    background-color: var(--primary-bg);
    padding: var(--item-pdd);
    border-radius: var(--item-rad);
    border: 2px solid var(--secondary-bg);
    box-sizing: content-box;
    position: relative;
}

.plan.active {
    box-shadow: 0px 0px 50px 1px rgba(245, 195, 12, 0.1);
}

button.premium-btn::after,
.plan.active::after {
    content: '';
    position: absolute; 
    top: -4px;
    left: -4px;
    right: -4px; 
    bottom: -4px;
    z-index: -100;
    border-radius: inherit;
    background-image: linear-gradient(to right, #f5c10c, #fdf1c7);
    background-size: 400% 400%;
    animation: moveGlint 2s linear infinite alternate;
}

@keyframes moveGlint {
    0% {background-position: 0 0;}
    100% {background-position: 100% 0;}
}

.plan h4 {
    margin: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12.5px;
}

.plan p.price span,
.plan.active h4 {
    background: -webkit-linear-gradient(#f5c10c, #ffe37e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan h4 input[type="number"] {
    width: calc(var(--item-pdd) * 2);
    text-align: center;
    padding: calc(var(--item-pdd) / 3);
}

.plan p {
    margin: 0px;
    font-size: 14px;
    font-weight: bold;
}

.plan ul {
    list-style: none;
    text-align: left;
    padding-inline-start: 0;
}

.plan li span {
    float: right;
    font-weight: bold;
}

i.red {
    color: var(--danger-clr)
}
i.green {
    color: var(--success-clr)
}

.plan img {
    width: 80%;
    margin: 25px auto;
}

.plan p.price {
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 6.25px;
    justify-content: center;
}

.plan p.price s {
    font-weight: normal;
    color: var(--secondary-font-clr);
    font-size: 14px;
}

.plan button {
    width: 100%;
}

button.premium-btn {    
    position: relative;
    z-index: 2;
    color: black;
    font-size: 20px;
    font-weight: bold;
    height: 40px;
    padding: 0px 5px;
}

.plan button::after {
    z-index: -1;
}

.plan input[type="image"] {
    width: 100%;
}

.coins-container {
    margin-top: calc(var(--item-pdd) * 4);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checkout {
    position: fixed;
    z-index: 10;
    top: 10%;
    left: 50%;
    transform: scale(0);
    background: var(--primary-bg);
    border-radius: var(--item-pdd);
    padding: var(--item-pdd);
    transition: transform .1s linear;
    box-sizing: border-box;
    width: calc(100% - var(--item-pdd) * 2);
}

.checkout-top {
    display: flex;
    align-items: center;
    gap: 12.5px;
}

.checkout h3 {
    margin-top: 0px;
    flex: 1;
}
.checkout i {
    position: absolute;
    top: var(--item-pdd);
    right: var(--item-pdd);
    font-size: 20px;
}
.checkout i:hover {
    cursor: pointer;
}
.checkout input {
    width: calc(100% - 1 * var(--item-pdd));
    margin: 0px 0px calc(var(--item-pdd) / 2) 0px;
}
.checkout button {
    margin: calc(var(--item-pdd) / 2) 4px 4px 4px;
    width: calc(100% - 8px);
}

button.premium-action {
    padding: 12.5px 25px;
    height: unset;
}

button.premium-action i {
    margin-left: 12.5px;
    transition: .3s;
}

button.premium-action:hover i {
    transform: translateX(6.25px);
}

@media (min-width: 640px) {
    .plan {
        max-width: 300px;
    }

    .checkout {
        width: 450px;
    }
}

@media (min-width: 768px) {
    .plans {
        flex-direction: row;
        margin: 0px;
    }

    .plan-comparison {
        background-color: transparent
    }

    .plan-comparison:not(.plan-3) {
        border: none;
    }

    .plan-selector {
        display: none;
    }

    .row {
        display: flex;
        overflow: visible;
        z-index: unset;
    }

    .col {
        flex: 1;
        box-sizing: content-box;
        position: relative;
        background-color: var(--primary-bg);
        width: unset;
        display: block;
    }
    .col:first-child {
        display: block;
    }

    .col.active::after {
        content: '';
        position: absolute; 
        top: 0px;
        left: -2px;
        right: -2px; 
        bottom: 0px;
        z-index: -10;
        border-radius: inherit;
        background-image: linear-gradient(to right, #f5c10c, #fdf1c7);
        background-size: 400% 400%;
        animation: moveGlint 2s linear infinite alternate;
        box-shadow: 0px 0px 50px 1px rgba(245, 195, 12, 0.1);
    }

    .col p:first-child {
        display: none;
    }
    .col p:last-child {
        float: none;
        margin-right: 0px;
    }

    .row:first-child .col.active {
        border-radius: var(--item-rad) var(--item-rad) 0 0;
    }
    .last-row .col.active {
        border-radius: 0 0 var(--item-rad) var(--item-rad);
    }
    .row:first-child .col.active::after {
        top: -2px;
    }
    .last-row .col.active::after {
        bottom: -2px;
    }
    .row:not(:first-child) .col:first-child {
        color: var(--secondary-font-clr);
    }
    .row:not(:first-child) .col:not(:first-child) {
        font-weight: 500;
    }

    .coins-container {
        height: 100vh;
    }
}

@media (min-width: 1024px) {
    .coins-container {
        width: 1050px;
        margin: 0px auto;
    }
}