.page{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-items: center;
    position: relative;
    flex-direction: column;
}

.content{
    font-family: Montserrat;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: clamp(30rem, 100%, 1500px);
    flex-direction: column;
    font-family: Montserrat;
    color: var(--cloudy-white);
    background-color: var(--translucid-dark);
    padding-bottom: 128px;
    min-height: calc(100svh - 128px);
}

.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-image: url('../img/small_banner.avif');
    background-size: cover;
    background-blend-mode: overlay;
    filter: grayscale(.5);
    background-color: #1f2025;
    flex-direction: column;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
    width: clamp(30rem, 100%, 1500px);
    overflow: hidden;
}

.banner>img {
    filter: drop-shadow(0px 0px 30px rgb(0, 0, 0));
    min-width: 200px;
    max-width: 24%;
}

.premium-wrapper {
    position: relative;
    border-radius: 10px;
    width: 100%;
    min-width: 470px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    overflow: hidden;
}

/* warstwa obrazka */
.premium-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0; */
    background-image: url('../img/geographic-pattern.avif');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateZ(0);
    /* pomoże z renderingiem na niektórych przeglądarkach */
    z-index: 0;
    transition: opacity 1.2s ease;
}

/* overlay/kolor na obrazku (np. półprzezroczysty) */
.premium-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(31, 32, 37, 0.47);
    /* #1f202578 */
    mix-blend-mode: overlay;
    /* jeżeli chcesz */
    z-index: 1;
    pointer-events: none;
}

/* treść nad tłem */
.premium-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* klasa aktywująca pojawienie się tła */
.premium-wrapper.bg-visible::before {
    opacity: 1;
}

/* Początkowy stan pingów */
.ping {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--main-green-hover);
    z-index: 0;
    transform: scale(0);
    /* start: niewidoczne */
    animation: pingAppear 0.4s ease-out forwards;
}

/* animacja pojawienia */
@keyframes pingAppear {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* fale po pojawieniu */
.ping::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--main-green-hover);
    animation: pingExpand 2.5s ease-out infinite;
    transform: scale(0.2);
    opacity: 1;
    animation-delay: 0.4s;
    /* ważne! dopiero po pojawieniu */
}

@keyframes pingExpand {
    0% {
        transform: scale(0.4);
        opacity: 0.8;
    }

    70% {
        opacity: 0.2;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}


#cancel-anytime{
    color:var(--main-green);
    font-size:14px;
    text-align: center;
    margin-top: -16px;
}

.premium-group{
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    flex-direction: column;
}

.premium-group h2{
    text-align: center;
    margin:0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0px 0px 30px rgb(0, 0, 0));
}

.premium-group>h2::after {
    content: '';
    display: block;
    height: 10px;
    width: 2px;
    background:rgba(128, 128, 128, 0.226);
    margin-left:auto;
    margin-right: auto;
}

.premium-cards{
    display: flex;
    gap: 20px;
    box-sizing: border-box;
    justify-content: center;
    height: 100%;
    z-index: 5;
    padding:20px;
    border-radius: 16px;
    border:2px solid #80808021;
    flex-wrap:wrap;
}

.premium-box {
    padding: 16px;
    background: rgba(20, 20, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    backdrop-filter: blur(5px) saturate(150%); 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.login-or-signup{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 3px;
    font-size:12px;
}

.login-or-signup a,
.plan-not-available{
    padding:8px 10px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--translucid-light);
    text-decoration: none;
    color:var(--cloudy-white);
    text-align: center;
    font-size:14px;
    border:1px solid #80808021;
    font-weight: 600;
    max-width: 200px;
}

.subscribed{
    background-color:#dac032;
    color:#2d280d;
    font-weight: 600 !important;
}

.plan-not-available{
    font-weight: 400;
}

.login-or-signup a:hover{
    filter:brightness(1.2);
}

.login-or-signup a:first-child{
    background-color: var(--translucid-light);
}

.login-or-signup a:nth-child(3) {
    background-color: var(--main-green) !important;
}


.powered-by-iscrim{
    font-size:10px;
    color:#868b86;
    display: flex;
    gap:5px;
    font-style:italic;
    margin-top: auto;
    padding-top: 8px;
}

.powered-by-iscrim img{
    height: 10px;
    filter:brightness(.9);
}


.premium-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.03), transparent 70%);
    transform: rotate(25deg);
    pointer-events: none;
}

.success-box{
    padding:32px;
    background:none !important;
    border:none !important;
}

.success-box a{
    padding: 10px 30px;
    border-radius: 24px;
    background-color: var(--main-green);
    text-decoration: none;
    color:var(--cloudy-white);
    font-weight: 550;
    margin-top: 20px;
}

.success-box a:hover{
    background-color: var(--main-green-hover);
}

.premium-box > h4{
    margin:10px;
    padding:0;
}



.price-box{
    display: flex;
    gap:5px;
    align-items: center;
}

.price-box > .price{
    font-size:54px;
    font-weight: 600;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.price-box > .price-desc{
    display: flex;
    gap:3px;
    flex-direction: column;
    font-weight: 600;
    font-size:14px;
    color:rgb(165, 165, 165);
}

.price-desc > .price-time{
    color:var(--cloudy-white);
}

/* Wrapper */
.lines-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: flex-end;
    height: 30px;
}

/* Każdy pasek */
.line {
    position: relative;
    width: 5px;
    height: 100%;
    background-color: gray;
    border-radius: 1px;
    overflow: hidden;
}

/* Pseudo-element wypełnienia */
.line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--main-green);
}

/* Animacja */
@keyframes fill-up {
    from {
        height: 0%;
    }

    to {
        height: 100%;
    }
}

/* --- Wariant: ANNUAL --- */
/* wszystkie paski animują */
.lines-wrapper.annual .line::after {
    animation: fill-up 1.5s ease forwards;
}

/* efekt fali dla annual */
.lines-wrapper.annual .line:nth-child(1)::after {
    animation-delay: 0s;
}

.lines-wrapper.annual .line:nth-child(2)::after {
    animation-delay: 0.1s;
}

.lines-wrapper.annual .line:nth-child(3)::after {
    animation-delay: 0.2s;
}

.lines-wrapper.annual .line:nth-child(4)::after {
    animation-delay: 0.3s;
}

.lines-wrapper.annual .line:nth-child(5)::after {
    animation-delay: 0.4s;
}

.lines-wrapper.annual .line:nth-child(6)::after {
    animation-delay: 0.5s;
}

.lines-wrapper.annual .line:nth-child(7)::after {
    animation-delay: 0.6s;
}

.lines-wrapper.annual .line:nth-child(8)::after {
    animation-delay: 0.7s;
}

.lines-wrapper.annual .line:nth-child(9)::after {
    animation-delay: 0.8s;
}

.lines-wrapper.annual .line:nth-child(10)::after {
    animation-delay: 0.9s;
}

.lines-wrapper.annual .line:nth-child(11)::after {
    animation-delay: 1s;
}

.lines-wrapper.annual .line:nth-child(12)::after {
    animation-delay: 1.1s;
}

/* --- Wariant: MONTHLY --- */
/* tylko pierwszy pasek animuje */
.lines-wrapper.monthly .line:nth-child(1)::after {
    animation: fill-up 1.5s ease forwards;
}
.processing-box{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--main-green);
    border-top-color: #000;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

#loader{
    padding:10px;
}

#status{
    padding:10px 20px;
    border-radius: 24px;
    animation: bgChange 3s linear infinite;
    --color1:rgb(58, 58, 58);
    --color2:rgb(43, 43, 43);
}

@keyframes rubberBand {
    0% {
        -webkit-transform: scaleX(1);
        transform: scaleX(1)
    }

    30% {
        -webkit-transform: scale3d(1.25, .75, 1);
        transform: scale3d(1.25, .75, 1)
    }

    40% {
        -webkit-transform: scale3d(.75, 1.25, 1);
        transform: scale3d(.75, 1.25, 1)
    }

    50% {
        -webkit-transform: scale3d(1.15, .85, 1);
        transform: scale3d(1.15, .85, 1)
    }

    65% {
        -webkit-transform: scale3d(.95, 1.05, 1);
        transform: scale3d(.95, 1.05, 1)
    }

    75% {
        -webkit-transform: scale3d(1.05, .95, 1);
        transform: scale3d(1.05, .95, 1)
    }

    to {
        -webkit-transform: scaleX(1);
        transform: scaleX(1)
    }
}

#status.activated{
    --color1: var(--main-green);
    --color2: var(--main-green-hover);
    animation: bgChange 3s linear infinite, rubberBand 700ms linear;
}

@keyframes bgChange {
    0% { background-color: var(--color1);}
    50% { background-color: var(--color2); }
    100% { background-color: var(--color1); }
}

#status.cancelled{
    --color1: var(--crimson-red);
    --color2: var(--crimson-red);
}

.premium-wrapper h1{
    margin:0;
}

.premium-wrapper p{
    margin:5px;
}

.premium-wrapper p>span{
    color:gold;
    font-weight: 600;
}

.content-2{
    padding:32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:16px;
}

.paragraph {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.paragraph h2{
    font-weight: 600;
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    color: var(--cloudy-white);
    margin-bottom: 5px;
    line-height: 24px;
}

.paragraph p{
    text-align: start;
    color: #a2a2a2;
    font-size: 18px;
    margin: 10px 0 0 0;
}

.paragraph ul li,
.paragraph span{
    color: #a2a2a2;
    font-size: 18px;
}

.avatar-frames-tiers{
    display: flex;
    width: 100%;
    justify-content: space-around;
    padding:30px;
    box-sizing: border-box;
}

.avatar-frame-tier{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 30%;
}

.avatar-frame-tier img{
    width: 100%;
    max-width: 250px;
}



table {
    border-collapse:collapse;
    width: 100%;
    background-color: var(--translucid-light);
    color: #cfcfcf;
    font-family: Montserrat;
    margin:30px 0 30px 0;
}

table strong{
    font-weight: 700;
    color:var(--cloudy-white);
}

td,
th {
    border:1px solid #80808021;
    text-align: left;
    padding: 16px;
    width: 50%;
    text-align: center;
}

tr:nth-child(even) {
    background-color: var(--translucid-dark);
}

@media only screen and (max-width: 660px) {
    .banner{
        height: 100px;
    }
    .content-2{
        width: 70%;
    }
    .content-2 p{
        font-size:14px;
    }
    .avatar-frames-tiers{
        padding:8px;
    }
    table{
        font-size:12px;
    }
    table td{
        padding:8px;
    }
    .premium-wrapper{
        flex-direction: column;
    }
    .premium-cards{
        padding:16px;
        flex-direction: column;
        align-items: center;
        border:none;
        padding-top: 0;
    }
    .premium-group>h2::after{
        display: none;
    }
    .premium-box{
        padding:12px;
        border-radius: 12px;
        width: 80%;
    }
    .premium-box>h4{
        font-size:12px;
        margin:0;
    }
    .price-box > .price{
        font-size:36px;
    }
    .price-box>.price-desc{
        font-size:10px;
    }
    .login-or-signup a, .plan-not-available{
        padding:4px;
        font-size:10px;
    }
    .lines-wrapper{
        height: 20px;
        margin-bottom: 3px;
        gap:5px;
    }
    .line{
        width: 4px;
    }
}