* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main_buy {
    background: linear-gradient(135deg, var(--main-color-one) 0%, var(--main-color-one-hover) 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    padding-bottom: 70px;
}

/* هدر */
.header_buy {
    text-align: center;
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.header_buy::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 0;
}

.header-content-buy {
    position: relative;
    z-index: 1;
}

.logo_buy {
    font-size: 48px;
    margin-bottom: 20px;
}

.logo_buy i {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.title_header_buy {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.subtitle_buy {
    font-size: 18px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 25px;
}

.timer-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.timer-badge i {
    margin-left: 8px;
    color: #ffd700;
}

/* کارت اصلی */
.main-card-buy {
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* اطلاعات مهم */
.info-section {
    background: linear-gradient(90deg, #006C60FF, #003b35);
    color: white;
    padding: 30px 40px;
    border-bottom: 5px solid #ffd700;

}


.info-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.info-text {
    flex: 1;
    min-width: 300px;
}

.info-text p {
    font-size: 16px;
    line-height: 1.8;
}

.warning-box {
    background: rgba(255, 255, 255, 0.15);
    border-right: 4px solid #ffd700;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.warning-box i {
    color: #ffd700;
    margin-left: 8px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feature-icon i {
    font-size: 24px;
    color: #ffd700;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 13px;
    opacity: 0.9;
}

/* بخش فرم */
.form-section {
    padding: 40px;
}

/* انتخاب نوع حساب */
.account-type-selector {
    display: flex;
    background: #f8fafc;
    border-radius: 15px;
    padding: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.account-type-btn {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.account-type-btn.active {
    background: white;
    border-color: var(--main-color-two-light);
    color: var(--main-color-two-dark);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.account-type-btn i {
    font-size: 20px;
}

/* فرم‌ها */
.account-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

.account-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #334155;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-label .required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--main-color-two-dark);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* انتخاب پنل */
.panel-section {
    margin: 50px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f1f5f9;
}

.section-title i {
    color: var(--main-color-one);
}

.panel-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.item-plan-b{
    cursor: pointer !important;
}

.item-plan-b:hover {
    border-color: var(--main-color-two-hover);
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}

.item-plan-b.selected {
    background: linear-gradient(135deg, var(--main-color-two) 0%, #fff8f0 100%);
    border-color: var(--main-color-two-hover);
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}

.panel-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #4f46e5;
    color: white;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-badge.popular {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.panel-header {
    text-align: center;
    margin-bottom: 25px;
}

.panel-icon {
    font-size: 48px;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-name {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.panel-price {
    font-size: 32px;
    font-weight: 900;
    color: #4f46e5;
    margin: 20px 0;
}

.panel-price span {
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
}

.panel-features {
    list-style: none;
    margin: 25px 0;
    padding: 0;
}

.panel-features li {
    padding: 10px 0;
    color: #475569;
    font-size: 14px;
    position: relative;
    padding-right: 25px;
    border-bottom: 1px dashed #e2e8f0;
}

.panel-features li:last-child {
    border-bottom: none;
}

.panel-features li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 16px;
}

/* بخش تخفیف */
.discount-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 3px solid #86efac;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
}

.discount-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.discount-header i {
    font-size: 28px;
    color: #10b981;
}

.discount-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #065f46;
}

.discount-input-group {
    display: flex;
    gap: 15px;
}

.discount-input {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid #86efac;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Vazirmatn', sans-serif;
    background: white;
}

.discount-btn {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discount-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.discount-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    display: none;
}

.discount-message.success {
    background: #d1fae5;
    color: #065f46;
    border-right: 4px solid #10b981;
}

.discount-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-right: 4px solid #ef4444;
}

/* خلاصه قیمت */
.price-summary {
    background: #f8fafc;
    border-radius: 20px;
    padding: 35px;
    margin: 40px 0;
    border: 3px solid #e2e8f0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 2px dashed #e2e8f0;
    font-size: 16px;
}

.price-row:last-child {
    border-bottom: none;
    font-size: 18px;
    font-weight: 800;
    color: #000000;
    padding-top: 25px;
    margin-top: 10px;
}

.price-value {
    font-weight: 600;
}

.final-price {
    font-size: 22px;
    font-weight: 900;
    color: #000000;
}

/* دکمه ثبت‌نام */
.submit-section {
    text-align: center;
    padding: 30px 0;
}

.submit-btn {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 25px 50px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.3);
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 60px rgba(79, 70, 229, 0.4);
}

.submit-btn i {
    font-size: 24px;
}

.security-note {
    margin-top: 25px;
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.security-note i {
    color: #10b981;
}

/* فوتر */
.footer {
    text-align: center;
    color: white;
    padding: 40px 0;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

.copyright {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

/* ریسپانسیو */
@media (max-width: 768px) {

    .title_header_buy {
        font-size: 24px;
    }

    .subtitle {
        font-size: 16px;
    }

    .form-section {
        padding: 25px;
    }

    .account-type-btn {
        padding: 15px;
        font-size: 14px;
    }

    .panel-options {
        grid-template-columns: 1fr;
    }

    .discount-input-group {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
        padding: 20px;
        font-size: 18px;
    }

    .info-content {
        flex-direction: column;
    }
}

/* انیمیشن‌ها */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* اسکرول بار */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #3730a3 0%, #5b21b6 100%);
}

.tx-white-before::before{
    color: #ffffff !important;
}

/* ===== استایل بخش پرداخت ===== */
.payment-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.payment-header {
    margin-bottom: 30px;
}

.payment-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--main-color-one), var(--main-color-one-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 25px var(--main-color-one-shadow);
}

.payment-icon-wrapper i {
    font-size: 30px;
    color: white;
}

.payment-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.payment-subtitle {
    font-size: 15px;
    color: #718096;
}

/* ===== کارت‌های بانک ===== */
.payment-gateways {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(6, 167, 149, 0.1);
}

.payment-card {
    background: white;
    border-radius: 16px;
    padding: 15px 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.payment-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color-one);
    box-shadow: 0 15px 30px rgba(6, 167, 149, 0.08);
}

/* رادیو باتن سفارشی */
.custom-radio .custom-control-label::before {
    border-color: #e2e8f0;
    width: 20px;
    height: 20px;
    top: 0;
}

.custom-radio .custom-control-label::after {
    width: 20px;
    height: 20px;
    top: 0;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--main-color-one);
    background-color: var(--main-color-one);
}

.custom-control-input:checked ~ .custom-control-label .payment-card {
    border-color: var(--main-color-one);
    background: linear-gradient(145deg, #ffffff, #f8fffe);
}

.payment-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
}

.payment-bank-image {
    max-width: 90px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.payment-bank-name {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

/* ===== دکمه پرداخت ===== */
.submit-btn {
    background: linear-gradient(135deg, var(--main-color-two), var(--main-color-two-dark));
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 25px var(--main-color-two-shadow);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px rgba(255, 158, 28, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 18px;
}

/* ===== بج‌های امنیتی ===== */
.security-badge {
    background: #f7fafc;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin: 0 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.security-badge:hover {
    background: white;
    border-color: var(--main-color-one);
    color: var(--main-color-one);
}

.security-note {
    background: #ebf8ff;
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-block;
    color: #2c5282;
    font-size: 14px;
    border: 1px solid #bee3f8;
}

.payment-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .payment-card {
        padding: 12px 5px;
    }

    .payment-bank-image {
        max-width: 70px;
    }

    .payment-bank-name {
        font-size: 12px;
    }

    .submit-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .payment-bank-image {
        max-width: 60px;
    }

    .security-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ===== ریسپانسیو کامل برای موبایل ===== */
@media (max-width: 576px) {
    .payment-section {
        padding: 15px 10px !important;
        margin: 0 10px 20px !important;
    }

    .payment-gateways {
        padding: 20px 10px !important;
    }

    .payment-header {
        margin-bottom: 20px !important;
    }

    .payment-icon-wrapper {
        width: 55px !important;
        height: 55px !important;
    }

    .payment-icon-wrapper i {
        font-size: 24px !important;
    }

    .payment-title {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }

    .payment-subtitle {
        font-size: 13px !important;
    }

    /* کارت‌های بانک در موبایل */
    .payment-card {
        padding: 12px 5px !important;
        margin-bottom: 5px !important;
    }

    .payment-bank-image {
        max-width: 55px !important;
        max-height: 35px !important;
        margin-bottom: 6px !important;
    }

    .payment-bank-name {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 80px !important;
    }

    /* دکمه پرداخت در موبایل */
    .submit-btn {
        padding: 12px 25px !important;
        font-size: 15px !important;
        width: 90% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .submit-btn i {
        font-size: 16px !important;
    }

    /* بج‌های امنیتی در موبایل */
    .security-features .d-flex {
        flex-direction: column !important;
        align-items: center !important;
    }

    .security-badge {
        padding: 6px 15px !important;
        font-size: 12px !important;
        margin: 3px 0 !important;
        width: fit-content !important;
        display: inline-flex !important;
    }

    .security-note {
        padding: 10px 15px !important;
        font-size: 12px !important;
        width: 95% !important;
        margin: 15px auto !important;
        display: block !important;
        text-align: center !important;
        line-height: 1.6 !important;
    }

    .payment-guarantee {
        flex-direction: column !important;
        gap: 5px !important;
    }

    .payment-guarantee img {
        height: 25px !important;
    }

    .payment-guarantee span {
        font-size: 11px !important;
    }

    /* تنظیم ستون‌ها برای موبایل */
    .row .col-6 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* رادیو باتن در موبایل */
    .custom-radio {
        padding-left: 25px !important;
    }

    .custom-control-label::before,
    .custom-control-label::after {
        width: 18px !important;
        height: 18px !important;
        top: 15px !important;
        right: -25px !important;
    }

    .payment-image-wrapper {
        padding: 5px !important;
    }
}

/* برای موبایل‌های خیلی کوچک */
@media (max-width: 375px) {
    .payment-bank-image {
        max-width: 45px !important;
        max-height: 30px !important;
    }

    .payment-bank-name {
        font-size: 10px !important;
        max-width: 70px !important;
    }

    .payment-card {
        padding: 8px 3px !important;
    }

    .security-note {
        font-size: 11px !important;
        padding: 8px 12px !important;
    }
}

/* افکت کلیک برای موبایل */
@media (max-width: 768px) {
    .payment-card:active {
        background: linear-gradient(145deg, #ffffff, #f0fff9) !important;
        transform: scale(0.98) !important;
    }

    .submit-btn:active {
        transform: scale(0.96) !important;
    }

    /* رفع مشکل overflow */
    .payment-gateways {
        overflow-x: hidden !important;
    }
}