@font-face {
    font-family: 'Yekan Bakh';
    src: url('/fonts/woff/YekanBakh-Regular.woff') format('woff');
}

body {
    background: #05070a;
    background-image: radial-gradient(circle at 50% 0%, #151f32 0%, #05070a 60%);
    color: #e0e6ed;
    font-family: 'Yekan Bakh', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ساختار موبایل فرست ثابت برای همه دستگاه‌ها */
.container {
    width: 100%;
    max-width: 450px;
    /* جلوگیری از کش آمدن در دسکتاپ */
    padding: 30px 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

.header-title {
    text-align: center;
    font-size: clamp(20px, 5.5vw, 24px);
    /* جلوگیری از دو خطی شدن */
    white-space: nowrap;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #fff, #8fa3c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tab Bar (Always Visible Now) */
.plan-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 6px;
    margin: 0 auto 30px auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.p-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
    font-size: 15px;
    color: #8fa3c8;
    transition: all 0.3s;
}

.p-tab.active.vip-tab {
    background: linear-gradient(90deg, #bf953f, #fcf6ba);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 205, 0, 0.2);
}

.p-tab.active.eco-tab {
    background: linear-gradient(90deg, #00ddff, #2575fc);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.2);
}

/* Pricing Cards */
.pricing-wrapper {
    display: block;
    width: 100%;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    /* پدینگ پایین بیشتر شده تا فضا برای دکمه باز شود */
    width: 100%;
    box-sizing: border-box;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    margin: 0 auto;
}

.pricing-card {
    padding: 35px 25px 30px 25px;
}

/* لاجیک نمایش تک کارت (موبایل و دسکتاپ) */
.pricing-wrapper.show-vip .card-eco {
    display: none;
}

.pricing-wrapper.show-eco .card-vip {
    display: none;
}

.pricing-wrapper.show-vip .card-vip {
    animation: fadeIn 0.4s ease;
}

.pricing-wrapper.show-eco .card-eco {
    animation: fadeIn 0.4s ease;
}

.card-vip {
    border: 1px solid rgba(255, 205, 0, 0.2);
    box-shadow: 0 20px 50px rgba(255, 205, 0, 0.05);
}

.card-eco {
    border: 1px solid rgba(37, 117, 252, 0.2);
    box-shadow: 0 20px 50px rgba(37, 117, 252, 0.05);
}

.card-title {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 5px 0;
    text-align: center;
}

.card-vip .card-title {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-eco .card-title {
    background: linear-gradient(90deg, #00ddff, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-capacity {
    text-align: center;
    font-size: 13px;
    margin-bottom: 25px;
    font-weight: bold;
}

.card-vip .card-capacity {
    color: #fcf6ba;
}

.card-eco .card-capacity {
    color: #00ddff;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.pricing-list li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #c9d1d9;
}

.pricing-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 16px;
    font-weight: 900;
}

.card-vip .pricing-list li::before {
    color: #fcf6ba;
}

.card-eco .pricing-list li::before {
    color: #00ddff;
}

.price-tag {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #aebcd6;
}

.price-tag span {
    font-size: 12px;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

.pre-reg-box {
    margin: 20px 0;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.card-vip .pre-reg-box {
    color: #fcf6ba;
    border-color: rgba(255, 205, 0, 0.3);
    background: rgba(255, 205, 0, 0.05);
}

.card-eco .pre-reg-box {
    color: #00ddff;
    border-color: rgba(37, 117, 252, 0.3);
    background: rgba(37, 117, 252, 0.05);
}

.pre-reg-box span {
    display: block;
    font-size: 22px;
    margin-top: 5px;
    font-weight: 900;
}

.select-plan-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 40px);
    max-width: 410px;

    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-align: center;

    z-index: 999;
}


.btn-vip {
    background: linear-gradient(90deg, #bf953f, #fcf6ba);
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 205, 0, 0.2);
}

.btn-eco {
    background: linear-gradient(90deg, #00ddff, #2575fc);
    color: #fff;
    box-shadow: 0 5px 20px rgba(37, 117, 252, 0.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #0b111a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 95vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    color: #8fa3c8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.form-title {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 25px;
    color: #fff;
}

/* Improved Modal Plan Selector */
.plan-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.plan-option {
    flex: 1;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8fa3c8;
}

.plan-option-title {
    font-size: 16px;
    font-weight: 900;
}

.plan-option.vip.active {
    border-color: #fcf6ba;
    background: rgba(255, 205, 0, 0.05);
    color: #fcf6ba;
}

.plan-option.eco.active {
    border-color: #00ddff;
    background: rgba(37, 117, 252, 0.05);
    color: #00ddff;
}

/* Price Summary in Modal */
.modal-price-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin-bottom: 25px;
    font-size: 13px;
    color: #aebcd6;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-price-summary .total-price {
    font-size: 15px;
    color: #fff;
    margin-bottom: 5px;
}

.modal-price-summary .pre-price {
    color: #00ddff;
    font-weight: bold;
}

.modal-price-summary.vip-mode .pre-price {
    color: #fcf6ba;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.modern-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 15px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    border-color: #2575fc;
    background: rgba(0, 0, 0, 0.3);
}

.tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    color: #8fa3c8;
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    color: #fff;
}

.card-details-wrapper {
    display: none;
    animation: fadeIn 0.4s ease;
}

.virtual-card {
    background: linear-gradient(135deg, #1f293a 0%, #0d131f 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

/* جایگزین استایل‌های قبلی این بخش‌ها شود */
.card-number-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    /* بزرگتر شدن شماره کارت */
    color: #fff;
    letter-spacing: 3px;
    font-weight: bold;
    direction: ltr;
}

.card-owner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aebcd6;
    font-size: 14px;
    padding: 0 5px;
}

.card-owner strong {
    color: #fff;
    font-size: 15px;
}

/* --- استایل‌های جدید که باید اضافه شوند --- */

.card-amount-label {
    color: #aebcd6;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 8px;
}

.large-copy-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.large-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}


.card-owner strong {
    color: #fff;
    font-size: 14px;
}

/* Telegram Notice Box */
.telegram-notice {
    background: rgba(37, 117, 252, 0.05);
    border: 1px dashed rgba(37, 117, 252, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: #c9d1d9;
}

.telegram-notice strong {
    display: block;
    margin-top: 5px;
    color: #00ddff;
    font-size: 15px;
    direction: ltr;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* این رو به style-v10.css اضافه کن */
#vpnModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#vpnModal.active {
    opacity: 1;
}

/* استایل‌های محتوای مودال VPN */
#vpnModal .modal-header {
    margin-bottom: 15px;
}

#vpnModal .modal-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-align: center;
}

#vpnModal .modal-body {
    color: #c9d1d9;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 20px;
}

#vpnModal .modal-body strong {
    color: #fff;
}

#vpnModal .modal-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#vpnModal .btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.3s;
}

#vpnModal .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#cancelModal {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

#cancelModal:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

#cancelModal:active {
    transform: scale(0.98);
}

.telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* width: calc(100% - 32px); */
    /* این خط رو اضافه کن */
    margin: 14px 16px 16px 16px;
    /* به جای margin-top: 14px */
    padding: 12px 16px;
    background: #229ED9;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}


.telegram-btn:hover {
    background: #1a8bbf;
}

.telegram-btn span {
    font-size: 12px;
    opacity: 0.85;
    direction: ltr;
}

/* Crypto Tab & Sections Styles */
.crypto-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.crypto-network {
    color: #aebcd6;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
}

.crypto-addr {
    font-size: 11.5px !important;
    /* کمی کوچکتر برای جا شدن آدرس‌های طولانی */
    letter-spacing: 1px !important;
    word-break: break-all;
}

.crypto-copy {
    margin-top: 10px !important;
    padding: 10px !important;
    font-size: 13px !important;
}

.tabs .tab-btn {
    padding: 12px 5px;
    /* کمی فضای اطراف دکمه‌ها را کمتر کردیم تا ۳ دکمه در موبایل به راحتی جا شوند */
    font-size: 12px;
}