
body.modal-open { cursor:auto; }

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.308);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
}

.product-modal.show {
    display: flex;
    opacity: 1;
    cursor: auto;
}

.modal-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.modal-content {
    background: #0c0c0c;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    min-width: 250px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    max-height: 100vh;
}

.product-modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 7px;
    right: 12px;
    background: transparent;
    color: #c2c2c2;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
}
.modal-close:hover { color: #fff; }

.step-navigation {
    display: flex;
    height: 80px;
    border-bottom: 1px solid #1a1a1a;
    justify-content: center;
    align-items: center;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 10px;
    font-weight: 600;
    color: #c2c2c2;
    transition: all 0.3s ease;
}

.step.active .step-number { background: #fff; color: #000; border-color: #fff; }
.step.completed .step-number { background: #fff; color: #000; border-color: #fff; }

.step-title { font-size: 12px; color: #c2c2c2; font-weight: 500; }
.step.active .step-title { color: #fff; font-weight: 600; }

.step-connector {
    position: absolute;
    top: 14px;
    left: 60%;
    width: 80%;
    height: 1px;
    background: #1a1a1a;
    z-index: -1;
}
.step:last-child .step-connector { display: none; }
.step.completed .step-connector { background: #fff; }

.step-content {
    padding: 28px;
    min-height: 300px;
    max-height: 450px;
    overflow-y: auto; 
}
 
.step-content::-webkit-scrollbar { width: 4px;  }
.step-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.05);   }
.step-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15);  }
.step-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

.step-panel { display: none; }
.step-panel.active { display: block; }

.product-details {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 32px;
    align-items: start;
}

.product-image-large {
    width: 100%;
    height: auto;
    max-height: 280px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info-detailed { color: #fff; margin-top: -25px; }

.product-title-large { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; color: #fff; line-height: 1.3; }

.product-price-large { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.new-price-large { color: #fff; font-size: 1.4rem; font-weight: 700; }

.product-description {
    color: #c2c2c2;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    font-size: 14px;
}

.terms-title { font-size: 14px; color: #e0e0e0; margin-bottom: 8px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.terms-overflow {
    max-height: 170px;
    overflow-y: auto;
    padding: 8px 4px 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    text-align: left;
}

.terms-overflow::-webkit-scrollbar { width: 4px; }
.terms-overflow::-webkit-scrollbar-track { background: transparent; }
.terms-overflow::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.checkout-form { max-width: 420px; margin: 0 auto; }
.checkout-form h3 { text-align: center; margin-bottom: 28px; color: #fff; font-size: 1.3rem; font-weight: 700; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; color: #c2c2c2; font-weight: 600; margin-bottom: 6px; font-size: 13px; }
.form-input {
    width: 100%;
    max-width: 450px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.form-input:focus { outline: none; border-color: #3d3d3d; }
.form-input::placeholder { color: #c2c2c2; }

.payment-methods { margin-top: 24px; }
.payment-methods h4 { color: #fff; margin-bottom: 16px; font-size: 14px; font-weight: 700; }

.payment-method {
    display: flex;
    align-items: center;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.payment-method:hover { background: rgba(255,255,255,0.08); border-color: #3f3f3f; }
.payment-method.selected, .payment-method:focus-within { border-color: #3a3a3a; background: rgba(255,255,255,0.08); }

.payment-radio { display: none; }

.payment-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 14px;
}

.payment-name { font-weight: 600; color: #fff; flex: 1; font-size: 14px; }
.payment-desc { font-size: 12px; color: #c2c2c2; }

.order-summary {
    background: rgba(255,255,255,0.03);
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.summary-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; text-align: center; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: #c2c2c2; font-size: 13px; }
.summary-row.total { border-top: 1px solid #1a1a1a; padding-top: 12px; margin-top: 12px; font-weight: 700; color: #fff; font-size: 14px; }

.modal-actions {
    height: 70px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    background: transparent;
    padding: 0 20px;
}

.btn { justify-content: center; align-items: center; display: flex; width: 85px; height: 35px; margin: 0 10px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: 13px; }
.btn-secondary { background: rgba(255,255,255,0.08); color: #c2c2c2; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border: none; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #f0f0f0; }


@media (max-width: 1024px) {
    .modal-content { max-width: 90vw; }
    .step-content { padding: 24px; }
}

@media (max-width: 768px) {
    .step-content::-webkit-scrollbar { width: 3px; }
    .step-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }


    .terms-overflow::-webkit-scrollbar { width: 2px; }
    .terms-overflow::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }


    .step-content, .terms-overflow { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
    .product-modal {  padding: 3px; }
    .modal-content {  max-width: 100%; max-height: 90vh; border-radius: 12px; }
    .step-navigation { height: 70px; }
    .step-content { padding: 30px; min-height: 330px; max-height: 400px; }
    .modal-actions { height: 50px; padding: 10px 15px; }
    .modal-close { top: 5px; right: 2px; width: 25px; height: 25px; font-size: 18px; }
    .product-details { grid-template-columns: 1fr; gap: 20px; }
    .product-image-large { max-height: 180px; }
    .form-input { width: 100%; }
    

}


.discord-link-btn {
    width: 100px;
    height: 40px;
    background-color: transparent;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid white;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}