body.start-bg {
    margin: 0;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, .35), rgba(0, 0, 0, .85)),
        url("/images/FootballField.jpg") center / cover no-repeat fixed;
}

.start-screen {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-logo-wrap {
    position: relative;
    display: inline-block;
}

.start-logo {
    width: min(92vw, 980px);
    height: auto;
    display: block;
    opacity: 0;
    animation: logoIntro 4.5s ease forwards;
}

@keyframes logoIntro {
    0% {
        opacity: 0;
        transform: scale(.98);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    65% {
        opacity: 1;
        transform: scale(1);
    }

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

.start-choice-panel {
    position: fixed;
    left: 50%;
    top: 55%;
    width: min(520px, 92vw);
    padding: 22px 22px 18px;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    background: rgba(20, 16, 8, .92);
    border: 2px solid rgba(255, 153, 51, .55);
    box-shadow:
        0 0 14px rgba(255, 153, 51, .45),
        0 0 34px rgba(255, 153, 51, .25);
    text-align: center;
    opacity: 0;
    animation: choicePanelIn 1.1s ease forwards;
    animation-delay: 4.6s;
}

@keyframes choicePanelIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.start-choice-title {
    margin-bottom: 16px;
    color: #ffb35c;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: .5px;
    text-shadow:
        0 0 10px rgba(255, 153, 51, .55),
        0 0 22px rgba(255, 153, 51, .35);
}

.login-subtitle {
    margin-bottom: 18px;
    color: #fff;
    font-size: 1rem;
    opacity: .9;
}

.start-choice-btn {
    padding: 14px 36px;
    border-radius: 12px;
    font-size: 22px;
}

.card-shop-page {
    min-height: calc(100vh - 130px);
    padding: 24px 0 50px;
}

.card-shop-grid {
    width: 100%;
    max-width: 3000px;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(300px, 560px));
    justify-content: center;
    gap: 24px;
}

.shop-card-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-card-slot {
    width: 100%;
    aspect-ratio: .72;
    overflow: hidden;
    background: #070707;
    border: 2px solid #19ff7a;
    border-radius: 18px;
    box-shadow:
        0 0 6px #19ff7a,
        0 0 12px rgba(25, 255, 122, .55);
    transition: .25s ease;
}

.shop-card-slot:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 10px #19ff7a,
        0 0 20px rgba(25, 255, 122, .85);
}

.shop-card-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 16px;
    object-fit: contain;
}

.shop-card-details {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #070707;
    border: 2px solid #19ff7a;
    border-radius: 14px;
    color: #19ff7a;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow:
        0 0 4px #19ff7a,
        0 0 8px rgba(25, 255, 122, .65);
    box-shadow:
        0 0 6px #19ff7a,
        0 0 12px rgba(25, 255, 122, .55);
}

.buy-card-btn {
    width: min(220px, 90%);
    margin-top: 6px;
}

.flip-card {
    perspective: 1200px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .78);
}

.payment-modal-content {
    position: relative;
    width: min(620px, 96vw);
    padding: 28px;
    border: 2px solid #f2d36b;
    border-radius: 16px;
    background: linear-gradient(135deg, #2a2100, #4a3a00);
    box-shadow:
        0 0 18px rgba(242, 211, 107, .7),
        0 0 40px rgba(242, 211, 107, .35);
    color: #fff;
}

.payment-modal-content h2 {
    color: #f2d36b;
    text-align: center;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(242, 211, 107, .8);
}

.payment-modal-close {
    position: absolute;
    top: 8px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #f2d36b;
    font-size: 32px;
    cursor: pointer;
}

.payment-card-name,
.payment-card-price {
    text-align: center;
    font-weight: 800;
}

.payment-card-price {
    margin-bottom: 18px;
    color: #19ff7a;
    font-size: 22px;
}

#payment-element {
    padding: 12px;
    background: rgba(255, 255, 255, .95);
    border-radius: 10px;
}

#payError {
    min-height: 22px;
    margin-top: 10px;
    color: #ffb3b3;
    font-size: 14px;
    text-align: center;
}

.payment-actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.purchase-result-wrap {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.purchase-result-panel {
    width: min(620px, 95vw);
    padding: 30px;
    background: rgba(0, 0, 0, .92);
    border: 2px solid #19ff7a;
    border-radius: 16px;
    color: #fff;
    text-align: center;
    box-shadow:
        0 0 10px #19ff7a,
        0 0 26px rgba(25, 255, 122, .6);
}

.purchase-result-panel h1 {
    color: #19ff7a;
}

@media (max-width: 2200px) {
    .card-shop-grid {
        grid-template-columns: repeat(3, minmax(300px, 520px));
    }
}

@media (max-width: 1650px) {
    .card-shop-grid {
        grid-template-columns: repeat(2, minmax(300px, 520px));
    }
}

@media (max-width: 900px) {
    .card-shop-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    body.start-bg {
        background-attachment: scroll;
    }

    .card-shop-grid {
        padding: 14px;
        gap: 20px;
    }

    .shop-card-details {
        padding: 10px;
        font-size: 18px;
    }

    .payment-modal-content {
        padding: 24px 14px 18px;
    }

    .payment-actions {
        flex-direction: column;
    }

    .payment-actions .gen-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .shop-card-details {
        font-size: 16px;
    }
}
.card-pagination {
    margin: 4px auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.card-page-arrow {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #070707;
    border: 2px solid #19ff7a;
    border-radius: 50%;
    color: #19ff7a;
    font-size: 34px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 6px #19ff7a, 0 0 16px rgba(25, 255, 122, .65);
}

    .card-page-arrow:hover {
        color: #fff;
        transform: scale(1.05);
    }

    .card-page-arrow.disabled {
        opacity: .25;
        cursor: default;
    }

.card-page-status {
    color: #19ff7a;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 0 0 5px #19ff7a, 0 0 12px rgba(25, 255, 122, .55);
}

.maintenance-page {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 18px;
}

.maintenance-panel {
    width: min(720px, 96vw);
    padding: 28px;
    background: rgba(0, 0, 0, .94);
    border: 2px solid #19ff7a;
    border-radius: 18px;
    color: #eaffea;
    box-shadow: 0 0 8px #19ff7a, 0 0 26px rgba(25, 255, 122, .55);
}

    .maintenance-panel h1 {
        color: #19ff7a;
        font-weight: 900;
        text-align: center;
        text-shadow: 0 0 6px #19ff7a, 0 0 16px rgba(25, 255, 122, .65);
    }

.maintenance-login-panel {
    width: min(520px, 94vw);
}

    .maintenance-login-panel form {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

.maintenance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.maintenance-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.maintenance-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .maintenance-field label,
    .maintenance-login-panel label {
        color: #19ff7a;
        font-weight: 800;
    }

    .maintenance-field input,
    .maintenance-login-panel input {
        width: 100%;
        padding: 11px 12px;
        background: #111;
        border: 1px solid #19ff7a;
        border-radius: 9px;
        color: #fff;
        font-size: 17px;
        box-shadow: inset 0 0 10px rgba(25, 255, 122, .08);
    }

        .maintenance-field input[type="file"] {
            padding: 9px;
        }

.maintenance-error,
.field-validation-error {
    color: #ff7272;
    font-weight: 700;
}

.maintenance-success {
    margin: 18px 0;
    padding: 12px;
    background: rgba(25, 255, 122, .12);
    border: 1px solid #19ff7a;
    border-radius: 10px;
    color: #19ff7a;
    text-align: center;
    font-weight: 800;
}

.image-preview-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.preview-label {
    margin-bottom: 6px;
    color: #19ff7a;
    font-weight: 800;
    text-align: center;
}

.maintenance-image-preview {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #070707;
    border: 2px solid #19ff7a;
    border-radius: 12px;
}

.maintenance-submit {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(300px, 100%);
}

.maintenance-shop-link {
    display: block;
    width: min(300px, 100%);
    margin: 18px auto 0;
}

@media (max-width: 700px) {
    .maintenance-form {
        grid-template-columns: 1fr;
    }

    .image-preview-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-header {
        flex-direction: column;
    }

    .card-page-arrow {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }

    .card-page-status {
        font-size: 15px;
    }
}